/* トップページ固有スタイル */

/* ---- Hero ---- */
/* スマホ(〜639px): 画像(4:3)の上に英字ラベルと見出しを重ね、画像の下の濃茶の帯にリード文とボタンを置く(Figma スマホ版 1003:4672) */
.hero {
  position: relative;
  display: block;
  overflow: hidden;
  color: var(--c-white);
  background: #3a312a;
}
.hero__bg { display: block; width: 100%; height: auto; }
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1448 / 1086;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(43,37,32,.8), rgba(43,37,32,.4) 49.5%, rgba(43,37,32,.15));
}
.hero__title {
  position: absolute;
  top: 31px;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 2;
}
.hero__inner {
  position: static;  /* 見出しの絶対配置の基準を .hero にする */
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-block: 16px;
}
.hero__main { display: flex; flex-direction: column; gap: 16px; }
.hero__eyebrow {
  font-family: var(--f-latin);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.3em;
  margin-bottom: 16px;
}
.hero .heading-1 { font-size: 30px; line-height: 1.3; }
.hero__lead { font-size: 14px; line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 639.98px) {
  .hero__actions { gap: 12px; }
  .hero__actions .btn { flex: 1 1 0; justify-content: center; padding-inline: 12px; white-space: nowrap; }
}
.hero__side { display: none; }
.hero__side-label {
  font-family: var(--f-latin);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.2em;
  opacity: 0.5;
}
.hero__links { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.hero__links a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.05em;
  opacity: 0.7;
  transition: opacity .2s;
}
.hero__links a::before { content: ""; width: 16px; height: 1px; background: var(--c-primary); flex: none; }
.hero__links a:hover { opacity: 1; }
.hero__scroll {
  position: absolute;
  left: 50%;
  top: calc(100vw * 1086 / 1448 - 56px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--f-latin);
  font-size: 12px;
  letter-spacing: 0.2em;
  opacity: 0.6;
}
.hero__scroll i { display: block; width: 1px; height: 32px; background: var(--c-cream); }
@media (min-width: 640px) {
  /* タブレット以上: Hero の高さを画像の縦横比(1448:1086)に合わせて画像を切り抜かず全体表示し、本文を重ねる */
  .hero { display: flex; flex-direction: column; justify-content: flex-end; height: calc(100vw * 1086 / 1448); background: var(--c-text-strong); }
  .hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
  .hero__overlay {
    inset: 0;
    width: auto;
    aspect-ratio: auto;
    background:
      linear-gradient(to right, rgba(168,76,42,.08), rgba(168,76,42,0) 60%),
      linear-gradient(to top, rgba(43,37,32,.85), rgba(43,37,32,.15));
  }
  .hero__title { position: static; }
  .hero__inner { position: relative; display: grid; grid-template-columns: 1fr; gap: 40px; padding-block: 16px 40px; }
  .hero__main { gap: 0; }
  .hero__eyebrow { opacity: 0.7; }
  .hero .heading-1 { font-size: 32px; line-height: 1.3; }
  .hero__lead { margin-top: 16px; max-width: 420px; font-size: 15px; line-height: 1.8; opacity: 0.85; }
  .hero__actions { margin-top: 20px; }
  .hero__scroll { display: none; }
}
@media (min-width: 768px) {
  .hero__inner { padding-block: 40px 64px; }
  .hero .heading-1 { font-size: 44px; line-height: 1.3; }
  .hero__lead { font-size: 17px; line-height: 1.9; }
}
@media (min-width: 1024px) {
  /* PC: 画像の縦横比のまま。極端に横長の画面のみ高さ 1000px を上限に上下を少し切る */
  .hero { max-height: 1000px; }
  .hero__scroll { display: flex; top: auto; bottom: 20px; opacity: 0.4; }
  .hero .heading-1 { font-size: 60px; line-height: 75px; }
  .hero__lead { font-size: 18px; line-height: 36px; }
  .hero__inner {
    grid-template-columns: auto 1fr;
    gap: 48px;
    align-items: end;
    padding-block: 120px 100px;
  }
  .hero .heading-1 { white-space: nowrap; }
  .hero__side {
    display: block;
    border-top: 0;
    border-left: 1px solid rgba(215,203,191,.5);
    padding: 0 0 0 48px;
    align-self: end;
  }
  .hero__links { gap: 20px; margin-top: 32px; }
  /* PC は写真を明るく見せる(2026-09-27 指摘): 暗いグラデーションを本文のある下側だけに絞り、文字は影で読みやすさを保つ */
  .hero__overlay {
    background:
      linear-gradient(to top, rgba(43,37,32,.72) 0%, rgba(43,37,32,.35) 30%, rgba(43,37,32,0) 60%),
      linear-gradient(to right, rgba(43,37,32,.25), rgba(43,37,32,0) 55%);
  }
  .hero__bg { filter: brightness(1.06); }
  .hero__main, .hero__side { text-shadow: 0 1px 12px rgba(43,37,32,.55); }
}

/* ---- Mission ---- */
.mission__grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
.mission__body { margin-top: 24px; }
.mission__cards { display: flex; flex-direction: column; gap: 24px; }
.mission__card .heading-3 { margin-top: 12px; }
.mission__card .body-text { margin-top: 12px; }
.mission__more { margin-top: 0; }
@media (min-width: 900px) {
  /* PC は「代表メッセージを読む」を左列の本文の直後に置く(Figma 1003:4243)。カードは右列で 2 行分 */
  .mission__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr; gap: 32px 48px; margin-top: 48px; }
  .mission__copy { grid-column: 1; grid-row: 1; }
  .mission__cards { grid-column: 2; grid-row: 1 / span 2; }
  .mission__more { grid-column: 1; grid-row: 2; align-self: start; }
  .mission__cards { gap: 32px; }
}

/* ---- Business / 6MoN ---- */
.business { padding-block: 72px; }
.business__intro { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
.business__name {
  font-family: var(--f-ui);  /* 6MoN ロゴは社名と同じ Meiryo UI */
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  color: var(--c-text-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}
.business__ip { margin-top: 16px; }
.business__name { flex-direction: column; align-items: flex-start; gap: 4px; }
.business__name .mon-reading { color: #1c1815; }
.business__tagline {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: var(--c-text-strong);
  opacity: 0.85;
}
.business__desc .body-text { margin-top: 8px; color: rgba(74,55,40,.7); }
.business__desc .btn { margin-top: 24px; }
.questions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: 56px;
  background: var(--c-bg-alt);
  counter-reset: q;
}
.questions__item { background: var(--c-bg); padding: 28px 24px; }
.questions__num { font-family: var(--f-latin); font-weight: 700; font-size: 30px; line-height: 36px; color: var(--c-primary); }
.questions__title { margin-top: 12px; font-family: var(--f-serif); font-weight: 700; font-size: 18px; line-height: 28px; color: var(--c-text-brown); }
.questions__text { margin-top: 8px; font-size: 12px; line-height: 24px; color: rgba(74,55,40,.6); }
@media (min-width: 640px) { .questions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .business { padding-block: 112px; }
  .business__intro { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-top: 48px; }
  .business__name { font-size: 64px; line-height: 60px; padding-top: 16px; }  /* Figma 1003:4296 */
  .business__desc { padding-top: 24px; }
  .questions { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 80px; }
  .questions__item { padding: 32px; }
}

/* ---- Company ---- */
.company__grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
.company__table { margin-top: 32px; }
.company__row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: start;
  padding-block: 16px;
  border-bottom: 1px solid var(--c-border-strong);
}
.company__row dt { font-size: 12px; line-height: 16px; letter-spacing: 0.05em; padding-top: 3px; }
.company__row dd { font-size: 14px; line-height: 22.75px; color: var(--c-text-deep); }
.company__more { margin-top: 24px; }
.company__map {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 0;
  overflow: hidden;
  color: var(--c-text-strong);
}
.company__map .map-embed { flex: 1 0 auto; }
.company__map-note { padding: 12px 16px; font-size: 12px; line-height: 1.6; border-top: 1px solid var(--c-border); }
.company__map-note a { white-space: nowrap; }
@media (min-width: 900px) {
  .company__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; margin-top: 48px; }
  .company__row { grid-template-columns: 112px 1fr; }
  .company__map { min-height: 430px; }
}

/* ---- Contact CTA ---- */
.contact-cta__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  text-align: center;
}
.contact-cta__text { font-size: 14px; line-height: 20px; color: var(--c-text-brown); opacity: 0.5; }
.contact-cta__body .btn { margin-top: 8px; }

/* ---- スマホ(〜639px)固有の調整: Figma スマホ版 1003:4672 に合わせる ---- */
@media (max-width: 639.98px) {
  .mission { padding-block: 24px; }
  .mission__grid { gap: 24px; margin-top: 24px; }
  .mission .heading-2 { font-size: 28px; line-height: 1.5; }
  .mission__body { margin-top: 16px; }
  .mission__cards { gap: 16px; }
  .mission__card { padding: 20px; }
  .mission__card .heading-3 { font-size: 18px; margin-top: 10px; }
  .mission__card .body-text { font-size: 12px; line-height: 22px; margin-top: 10px; }
  .mission__more .btn { width: 100%; justify-content: center; }

  .business { padding-block: 32px; }
  /* スマホは Figma 1003:4726 の順(ロゴ → 見出し → 説明 → 特許表記 → ボタン)に並べ替える */
  .business__intro { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
  .business__brand, .business__desc { display: contents; }
  .business__name { order: 1; font-size: 48px; line-height: 60px; }
  .business__tagline { order: 2; }
  .business__desc .body-text { order: 3; margin-top: 0; }
  .business__ip { order: 4; margin-top: 0; }
  .business__desc .btn { order: 5; margin-top: 20px; width: 100%; justify-content: center; }
  .questions { margin-top: 32px; }
  .questions__item { padding: 20px; }
  .questions__num { font-size: 20px; line-height: 26px; }
  .questions__title { margin-top: 8px; font-size: 17px; line-height: 24px; }
  .questions__text { font-size: 11px; line-height: 20px; }

  .company { padding-block: 56px; }
  .company__more .btn { width: 100%; justify-content: center; }
  .company__grid { gap: 32px; margin-top: 32px; }
  .company__row { grid-template-columns: 1fr; gap: 12px; padding-block: 14px; }
  .company__row dt { padding-top: 0; opacity: 0.7; }
  .company__map { min-height: 260px; }
  .company__map .map-embed { height: 260px; }

  .contact-cta { padding-block: 56px; }
  .contact-cta__body { margin-top: 18px; gap: 18px; }
  .contact-cta .heading-2 { font-size: 28px; }
  .contact-cta__body .btn { margin-top: 0; }
}
