/* ===================================
   Reset & Base
   =================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  line-height: 1.8;
  color: #333;
  background-color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* ===================================
   Utility
   =================================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section--gray {
  background-color: #f5f5f5;
}

.section--dark {
  background-color: #1a2744;
}

.section__title {
  font-size: 1.625rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #1a2744;
}

.section__title--white {
  color: #fff;
}

/* Placeholder images */
.placeholder-img {
  background-color: #d0d0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.875rem;
}

.placeholder-img::after {
  content: attr(data-label);
}

.placeholder-icon {
  background-color: #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.75rem;
}

.placeholder-icon::after {
  content: attr(data-label);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.btn:hover {
  opacity: 0.8;
}

.btn--primary {
  background-color: #1a2744;
  color: #fff;
  padding: 12px 32px;
}

.btn--accent {
  background-color: #e8a735;
  color: #fff;
  padding: 16px 48px;
  font-size: 1.125rem;
  border-radius: 6px;
}

.btn--outline {
  background-color: transparent;
  color: #1a2744;
  border: 2px solid #1a2744;
  padding: 12px 40px;
}

/* ===================================
   Header
   =================================== */
.header {
  background-color: #1a2744;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header__logo {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
}

.header__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 110;
}

.header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  position: absolute;
  left: 0;
  transition: transform 0.3s, opacity 0.3s;
}

.header__hamburger span:nth-child(1) { top: 0; }
.header__hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.header__hamburger span:nth-child(3) { bottom: 0; }

.header__hamburger.is-open span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-open span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.header__nav-list {
  display: flex;
  gap: 28px;
}

.header__nav-list a {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.3s;
}

.header__nav-list a:hover {
  opacity: 0.7;
}

/* ===================================
   Hero
   =================================== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-color: #c8d0d8;
  z-index: 0;
}

.hero__bg::after {
  content: "Hero: 住宅の外観写真";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #999;
  font-size: 1rem;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
  width: 100%;
}

.hero__title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.5;
  color: #1a2744;
  margin-bottom: 16px;
}

.hero__sub {
  font-size: 0.9375rem;
  color: #444;
  margin-bottom: 32px;
}

.hero__search {
  background-color: rgba(26, 39, 68, 0.9);
  border-radius: 8px;
  padding: 24px;
  max-width: 640px;
}

.hero__search-label {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.hero__search-icons {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero__search-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.3s;
}

.hero__search-icon:hover {
  border-color: #e8a735;
}

.hero__search-icon-img {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.hero__search-area {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.hero__search-select {
  flex: 1;
  min-width: 200px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.9375rem;
  border: none;
  border-radius: 4px;
}

.hero__search-btn {
  white-space: nowrap;
}

/* ===================================
   About
   =================================== */
.about__text {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 0.9375rem;
  line-height: 2;
}

.about__image {
  width: 100%;
  height: 360px;
  border-radius: 8px;
}

/* ===================================
   Pest Types
   =================================== */
.pest-types__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pest-types__card {
  background-color: #fff;
  border-radius: 8px;
  padding: 28px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: box-shadow 0.3s;
}

.pest-types__card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.pest-types__icon {
  width: 64px;
  height: 64px;
}

.pest-types__name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #1a2744;
}

/* ===================================
   Knowledge
   =================================== */
.knowledge__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.knowledge__card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.knowledge__card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.knowledge__thumb {
  width: 100%;
  height: 180px;
}

.knowledge__card-title {
  padding: 16px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
  color: #333;
}

/* ===================================
   Points
   =================================== */
.points__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.points__item {
  text-align: center;
}

.points__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
}

.points__heading {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1a2744;
  margin-bottom: 12px;
}

.points__text {
  font-size: 0.875rem;
  line-height: 1.8;
  color: #555;
}

/* ===================================
   Companies
   =================================== */
.companies__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.companies__card {
  background-color: #fff;
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: box-shadow 0.3s;
}

.companies__card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.companies__logo {
  width: 80px;
  height: 80px;
}

.companies__name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #333;
}

.companies__more {
  text-align: center;
}

/* ===================================
   Column
   =================================== */
.column__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.column__card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  transition: box-shadow 0.3s;
}

.column__card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.column__thumb {
  width: 100%;
  height: 160px;
}

.column__body {
  padding: 16px;
}

.column__date {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 8px;
}

.column__card-title {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
  color: #333;
}

.column__more {
  text-align: center;
}

/* ===================================
   CTA
   =================================== */
.cta {
  text-align: center;
}

.cta__title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta__text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  margin-bottom: 32px;
  line-height: 2;
}

/* ===================================
   Footer
   =================================== */
.footer {
  background-color: #1a2744;
  color: #fff;
  padding: 48px 0 24px;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.footer__nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.footer__nav-list a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
  transition: opacity 0.3s;
}

.footer__nav-list a:hover {
  opacity: 0.7;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__sns a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 700;
}

.footer__copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===================================
   Responsive — Tablet
   =================================== */
@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .section__title {
    font-size: 1.375rem;
    margin-bottom: 28px;
  }

  /* Header */
  .header__hamburger {
    display: block;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 320px;
    height: 100vh;
    background-color: #1a2744;
    padding: 80px 24px 40px;
    transition: right 0.3s;
    z-index: 105;
  }

  .header__nav.is-open {
    right: 0;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 0;
  }

  .header__nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .header__nav-list a {
    display: block;
    padding: 16px 0;
    font-size: 1rem;
  }

  /* Hero */
  .hero {
    min-height: 400px;
  }

  .hero__title {
    font-size: 1.5rem;
  }

  .hero__search-icons {
    gap: 8px;
  }

  .hero__search-icon {
    padding: 8px 10px;
    font-size: 0.6875rem;
  }

  .hero__search-icon-img {
    width: 28px;
    height: 28px;
  }

  /* Grids → 2 columns */
  .pest-types__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .knowledge__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .points__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .companies__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .column__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* About */
  .about__image {
    height: 240px;
  }

  /* Footer */
  .footer__top {
    flex-direction: column;
    gap: 24px;
  }
}

/* ===================================
   Responsive — Mobile
   =================================== */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .section {
    padding: 48px 0;
  }

  /* Hero */
  .hero {
    min-height: 360px;
  }

  .hero__title {
    font-size: 1.375rem;
  }

  .hero__search {
    padding: 16px;
  }

  .hero__search-select {
    min-width: 0;
    width: 100%;
  }

  .hero__search-btn {
    width: 100%;
  }

  /* Grids → 1 column */
  .knowledge__grid,
  .column__grid {
    grid-template-columns: 1fr;
  }

  .points__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .companies__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* About */
  .about__text {
    text-align: left;
  }

  .about__image {
    height: 200px;
  }

  /* Knowledge */
  .knowledge__thumb {
    height: 160px;
  }

  /* CTA */
  .cta__title {
    font-size: 1.25rem;
  }

  .btn--accent {
    padding: 14px 32px;
    font-size: 1rem;
    width: 100%;
  }

  /* Footer */
  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
