/* =========================================================
   sections.css — 各セクションのコンポーネント
   ========================================================= */

/* ---------------------------------------------------------
   MESSAGE / ABOUT
   --------------------------------------------------------- */

.section--about {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
}

.about__lead {
  flex: 1 1 420px;
}

.about__heading {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.22;
  font-weight: 400;
  font-style: italic;
}

.about__text {
  margin-top: 24px;
  max-width: 480px;
  font-size: 14px;
  line-height: 1.7;
  font-style: italic;
  opacity: 0.7;
}

.about__ai-list {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 48px;
}

.about__ai-item {
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 1px;
  opacity: 0.45;
}

.about__principles {
  flex: 1.6 1 480px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.principle {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 26px 28px;
  border-radius: 16px;
  background: var(--c-card);
  transition: background-color 0.3s ease;
}

.principle:hover {
  background: var(--c-card-hover);
}

.principle__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-fg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.principle__title {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 400;
}

.principle__text {
  font-size: 10px;
  line-height: 1.6;
  opacity: 0.65;
}

/* ---------------------------------------------------------
   SERVICE
   --------------------------------------------------------- */

.section--service .section__title {
  margin-top: 30px;
}

.service-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(230, 110, 95, 0.42);
  background: var(--c-card-service);
  transition: transform 0.4s var(--ease-out), border-color 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 110, 95, 0.7);
}

.service-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.service-card__icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-fg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__index {
  font-size: 13px;
  font-weight: 100;
  font-style: italic;
  letter-spacing: 1px;
  opacity: 0.3;
}

.service-card__title {
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 700;
}

.service-card__text {
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.78;
}

/* ---------------------------------------------------------
   CONTENTS
   --------------------------------------------------------- */

.content-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.content-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: 28px;
  border-radius: 16px;
  background: var(--c-card-alt);
  border: 1px solid var(--c-border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.content-card:hover {
  background: var(--c-card-hover);
  border-color: rgba(255, 255, 255, 0.16);
}

.content-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.content-card__text {
  margin-top: 20px;
  font-size: 14px;
  opacity: 0.35;
}

/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */

.section--faq {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
}

.faq__heading {
  flex: 1 1 280px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
  font-weight: 500;
  font-style: italic;
}

.faq {
  flex: 2 1 480px;
  border-bottom: 1px solid var(--c-rule);
}

.faq__item {
  border-top: 1px solid var(--c-rule);
}

/* 設問はアウトライン上 h3 だが、見た目はボタン側に任せる */
.faq__heading-item {
  font: inherit;
  margin: 0;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 24px 0;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: color 0.2s ease;
}

.faq__question:hover {
  color: var(--c-accent-hi);
}

.faq__chevron {
  flex: none;
  display: inline-flex;
  transition: transform 0.3s var(--ease-out);
}

.faq__item.is-open .faq__chevron {
  transform: rotate(180deg);
}

/* 0fr → 1fr で高さをなめらかに開閉する */
.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.4s var(--ease-out), opacity 0.3s ease;
}

.faq__item.is-open .faq__answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq__answer-text {
  overflow: hidden;
  min-height: 0;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.6;
}

.faq__item.is-open .faq__answer-text {
  padding-bottom: 24px;
}

/* ---------------------------------------------------------
   COMPANY
   --------------------------------------------------------- */

.section--company {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
}

.company__heading {
  flex: 1 1 240px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 4px;
}

.company__list {
  flex: 2 1 480px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  font-size: 14px;
}

.company__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 60px;
}

.company__label {
  flex: none;
  width: 140px;
  opacity: 0.5;
}

.company__value--address {
  max-width: 520px;
  line-height: 1.7;
}

/* ---------------------------------------------------------
   CONTACT
   --------------------------------------------------------- */

.section--contact {
  padding-top: clamp(60px, 10vw, 140px);
  padding-bottom: clamp(60px, 10vw, 140px);
  text-align: center;
}

.contact__eyebrow {
  font-size: 16px;
  opacity: 0.6;
}

.contact__title {
  margin-top: 20px;
  font-size: clamp(48px, 9vw, 88px);
  line-height: 1.08;
  font-weight: 500;
}

.contact__title-line {
  display: block;
}

.contact__action {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

/* ---------------------------------------------------------
   レスポンシブ
   --------------------------------------------------------- */

@media (max-width: 1024px) {
  .company__row {
    flex-direction: column;
    gap: 6px;
  }

  .company__label {
    width: auto;
  }
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section--about,
  .section--faq,
  .section--company {
    gap: 44px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}
