/* =====================================================
   Siete合同会社 — style.css
   Mobile-first / Vanilla CSS
   構成：
   ① CSS変数
   ② リセット・ベース
   ③ 共通コンポーネント（container / buttons / labels）
   ④ Navigation
   ⑤ Hero
   ⑥ Ticker
   ⑦ WHO WE ARE
   ⑧ OUR STORY
   ⑨ Services
   ⑩ THE PROGRAM
   ⑪ THE PEOPLE
   ⑫ Gallery
   ⑬ Contact
   ⑭ Footer
   ⑮ Tablet (≥768px)
   ⑯ Desktop (≥1024px)
   ⑰ Hover effects
   ⑱ Animations (fade / ticker)
   ⑲ prefers-reduced-motion
===================================================== */


/* =====================================================
   ① CSS変数
===================================================== */
:root {
  /* カラー */
  --color-bg:       #FAF4EC;
  --color-bg-alt:   #EDE8E0;
  --color-text:     #1F1108;
  --color-accent:   #C4532A;
  --color-cta-bg:   #1F1108;
  --color-cta-text: #FAF4EC;
  --color-gold:     #F2C94C;
  --color-nav:      #141414;
  --color-nav-text: #FFFFFF;
  --hero-overlay:   rgba(0, 0, 0, 0.35);

  /* フォント */
  --font-display-en: 'Fraunces', serif;
  --font-body-en:    'Plus Jakarta Sans', sans-serif;
  --font-display-ja: 'Noto Serif JP', serif;
  --font-body-ja:    'Noto Sans JP', sans-serif;

  /* フォントサイズ */
  --text-hero:  clamp(40px, 10vw, 96px);
  --text-h2:    clamp(28px, 6vw, 64px);
  --text-h3:    clamp(18px, 4vw, 32px);
  --text-label: 12px;
  --text-body:  clamp(15px, 1.2vw, 17px);
  --text-small: 13px;

  /* スペーシング */
  --section-py-mobile: 80px;
  --section-py-desktop: 120px;
  --nav-height: 64px;
  --radius-card: 20px;
  --radius-img:  24px;
}


/* =====================================================
   ② リセット・ベーススタイル
===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body-ja);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

blockquote {
  margin: 0;
}


/* =====================================================
   ③ 共通コンポーネント
===================================================== */

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 80px);
}

/* Section wrapper */
.section {
  padding: var(--section-py-mobile) 0;
}

/* Section label */
.section-label {
  font-family: var(--font-body-en);
  font-weight: 600;
  font-size: var(--text-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.section-label--center {
  text-align: center;
}

/* Section title */
.section-title {
  font-family: var(--font-display-ja);
  font-weight: 700;
  font-size: clamp(26px, 5.5vw, 56px);
  color: var(--color-text);
  line-height: 1.35;
  margin-top: 12px;
}
.section-title--center {
  text-align: center;
}

/* Section body text */
.section-text {
  font-family: var(--font-body-ja);
  font-weight: 400;
  font-size: clamp(15px, 2vw, 17px);
  color: var(--color-text);
  line-height: 1.9;
  margin-top: 24px;
}

/* ---- Buttons ---- */

/* Primary（ダークブラウン ピル型） */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--color-cta-bg);
  color: var(--color-cta-text);
  font-family: var(--font-body-ja);
  font-weight: 500;
  font-size: 15px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease;
  margin-top: 36px;
}

/* Gold（ゴールデンイエロー ピル型） */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--color-gold);
  color: var(--color-text);
  font-family: var(--font-body-ja);
  font-weight: 600;
  font-size: 15px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Nav用 小サイズ Gold */
.btn-gold--sm {
  padding: 12px 22px;
  font-size: 14px;
  min-height: 44px;
  min-width: 44px;
}

/* Contact用 白 ピル型 */
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--color-bg);
  color: var(--color-accent);
  font-family: var(--font-body-ja);
  font-weight: 600;
  font-size: 15px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  margin-top: 36px;
}

/* Secondary link（テキスト + 矢印） */
.link-secondary {
  font-family: var(--font-body-ja);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-accent);
  text-decoration: none;
  transition: text-decoration 0.2s ease;
  margin-top: 16px;
}

/* Accent link（テラコッタ → テキスト） */
.link-accent {
  display: inline-block;
  font-family: var(--font-body-ja);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-accent);
  text-decoration: none;
  margin-top: 28px;
  transition: opacity 0.2s ease;
}


/* =====================================================
   ④ Navigation
===================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--color-nav);
  z-index: 1000;
  transition: border-bottom 0.3s ease;
}

.nav.scrolled {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 clamp(20px, 5vw, 48px);
  max-width: 1280px;
  margin: 0 auto;
}

.nav__logo {
  font-family: var(--font-display-en);
  font-weight: 700;
  font-size: 22px;
  color: var(--color-nav-text);
  text-decoration: none;
  flex-shrink: 0;
}

/* デスクトップ用ナビリンクは初期非表示（モバイルファースト） */
.nav__links {
  display: none;
  gap: 32px;
}

.nav__link {
  font-family: var(--font-body-en);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-nav-text);
  text-decoration: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

/* Nav CTA：モバイルでは非表示 */
.nav__cta {
  display: none;
}

/* ハンバーガーボタン */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-nav-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* ハンバーガー open状態 */
.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* モバイルメニュー（フルスクリーンオーバーレイ） */
.nav__mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--nav-height));
  background: var(--color-nav);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
}

.nav__mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav__mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.nav__mobile-link {
  font-family: var(--font-body-ja);
  font-size: 20px;
  color: var(--color-nav-text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nav__mobile-cta {
  margin-top: 0;
}


/* =====================================================
   ⑤ Hero
===================================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  margin-top: var(--nav-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

/* テキストブロック：モバイルは下部 left:0 padding使用 */
.hero__content {
  position: absolute;
  bottom: 10%;
  left: 0;
  right: 0;
  padding: 0 clamp(24px, 6vw, 80px);
  z-index: 1;
}

.hero__label {
  font-family: var(--font-body-en);
  font-weight: 600;
  font-size: var(--text-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FFFFFF;
  opacity: 0;
  transform: translateY(20px);
}

.hero__title {
  font-family: var(--font-display-ja);
  font-weight: 700;
  font-size: var(--text-hero);
  color: #FFFFFF;
  line-height: 1.3;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(30px);
}

.hero__sub {
  font-family: var(--font-body-ja);
  font-weight: 400;
  font-size: clamp(14px, 2.5vw, 17px);
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin-top: 20px;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
}

.hero__cta {
  margin-top: 32px;
  opacity: 0;
  transform: translateY(10px);
}

/* ロードアニメーション後の状態（JSで付与） */
.hero__label.hero-loaded  { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.hero__title.hero-loaded  { opacity: 1; transform: translateY(0); transition: opacity 0.8s 0.1s ease-out, transform 0.8s 0.1s ease-out; }
.hero__sub.hero-loaded    { opacity: 1; transform: translateY(0); transition: opacity 0.7s 0.3s ease-out, transform 0.7s 0.3s ease-out; }
.hero__cta.hero-loaded    { opacity: 1; transform: translateY(0); transition: opacity 0.6s 0.5s ease-out, transform 0.6s 0.5s ease-out; }


/* =====================================================
   ⑥ Ticker
===================================================== */
.ticker-wrapper {
  overflow: hidden;
  white-space: nowrap;
  background: var(--color-gold);
  height: 48px;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.ticker-item {
  font-family: var(--font-body-en);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text);
  padding: 0 20px;
}

.ticker-sep {
  font-family: var(--font-body-en);
  font-size: 14px;
  color: var(--color-text);
  opacity: 0.5;
}


/* =====================================================
   ⑦ WHO WE ARE
===================================================== */
.who {
  background: var(--color-bg);
}

/* モバイル：1カラム縦積み */
.who__grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.who__img-wrap {
  width: 100%;
}

.who__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-img);
}

.who__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


/* =====================================================
   ⑧ OUR STORY
===================================================== */
.story {
  background: var(--color-bg);
}

.story__header {
  margin-bottom: 32px;
}

.story__grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.story__img-wrap {
  width: 100%;
}

.story__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-img);
}

.story__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.story__title {
  font-size: clamp(22px, 4.5vw, 52px);
}

.story__name {
  font-family: var(--font-body-ja);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-accent);
  margin-top: 24px;
}

.story__ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 8px;
}


/* =====================================================
   ⑧.5 Company
===================================================== */
.company {
  background: var(--color-bg-alt);
}

.company__table {
  max-width: 680px;
  margin: 48px auto 0;
}

.company__row {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(31, 17, 8, 0.1);
}

.company__row:first-child {
  border-top: 1px solid rgba(31, 17, 8, 0.1);
}

.company__label {
  display: block;
  flex: 0 0 100px;
  min-width: 100px;
  font-family: var(--font-body-ja);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-text-muted, #7a6a5a);
  padding-top: 2px;
}

.company__value {
  display: block;
  flex: 1;
  font-family: var(--font-body-ja);
  font-size: var(--text-body);
  color: var(--color-text);
  line-height: 1.7;
  margin: 0;
}

/* =====================================================
   ⑨ Services
===================================================== */
.services {
  background: var(--color-bg-alt);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
}

.service-card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  padding: 36px 28px;
  box-shadow: 0 4px 24px rgba(31, 17, 8, 0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  font-family: var(--font-display-ja);
  font-weight: 700;
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--color-text);
  margin-top: 20px;
  line-height: 1.4;
}

.service-card__text {
  font-family: var(--font-body-ja);
  font-weight: 400;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.8;
  margin-top: 16px;
  flex: 1;
}


/* =====================================================
   ⑩ THE PROGRAM
===================================================== */
.program {
  background: var(--color-bg);
}

.program__hero-img {
  margin-top: 48px;
}

.program__hero-img img {
  width: 100%;
  border-radius: var(--radius-img);
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.program__phases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
}

.program__phase-card {
  background: var(--color-bg-alt);
  border-radius: 16px;
  padding: 28px 24px;
}

.program__phase-title {
  font-family: var(--font-display-ja);
  font-weight: 700;
  font-size: clamp(16px, 3vw, 22px);
  color: var(--color-text);
  line-height: 1.4;
}

.program__dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin-top: 20px;
  align-items: baseline;
}

.program__dl dt {
  font-family: var(--font-body-ja);
  font-weight: 500;
  font-size: var(--text-small);
  color: var(--color-accent);
  white-space: nowrap;
}

.program__dl dd {
  font-family: var(--font-body-ja);
  font-weight: 400;
  font-size: 15px;
  color: var(--color-text);
  line-height: 2.0;
}

.program__cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.program__contents {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 56px;
}

.program__content-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.program__content-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.program__content-title {
  font-family: var(--font-display-ja);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.4;
}

.program__content-text {
  font-family: var(--font-body-ja);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text);
  opacity: 0.75;
  margin-top: 4px;
  line-height: 1.7;
}


/* =====================================================
   ⑪ THE PEOPLE
===================================================== */
.people {
  background: var(--color-bg-alt);
}

.people__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 9999px;
  background: var(--color-accent);
  color: #FFFFFF;
  font-family: var(--font-display-ja);
  font-weight: 700;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-family: var(--font-display-ja);
  font-weight: 700;
  font-size: 17px;
  color: var(--color-text);
  margin-top: 16px;
}

.testimonial-card__role {
  font-family: var(--font-body-ja);
  font-weight: 400;
  font-size: var(--text-small);
  color: var(--color-accent);
  margin-top: 4px;
}

.testimonial-card__quote {
  font-family: var(--font-display-ja);
  font-weight: 700;
  font-style: italic;
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.9;
  margin-top: 20px;
}


/* =====================================================
   ⑫ Gallery
===================================================== */
.gallery {
  background: var(--color-bg);
  padding: 60px 0;
}

.gallery__header {
  margin-bottom: 32px;
}

.gallery__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 0 clamp(24px, 6vw, 80px);
  cursor: grab;
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.gallery__track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.gallery__item {
  flex-shrink: 0;
  width: 85vw;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  pointer-events: none;
  display: block;
}


/* =====================================================
   ⑬ Contact
===================================================== */
.contact {
  background: var(--color-accent);
  padding: 80px 0;
}

.contact__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact__title {
  font-family: var(--font-display-ja);
  font-weight: 700;
  font-size: clamp(24px, 5vw, 52px);
  color: #FFFFFF;
  line-height: 1.4;
}

.contact__sub {
  font-family: var(--font-body-ja);
  font-weight: 400;
  font-size: clamp(14px, 2vw, 17px);
  color: rgba(255, 255, 255, 0.88);
  max-width: 480px;
  margin-top: 16px;
  line-height: 1.8;
}


/* =====================================================
   ⑭ Footer
===================================================== */
.footer {
  background: var(--color-text);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer__logo {
  font-family: var(--font-display-en);
  font-weight: 700;
  font-size: 24px;
  color: var(--color-bg);
  text-decoration: none;
  display: inline-block;
}

.footer__tagline {
  font-family: var(--font-display-ja);
  font-weight: 700;
  font-size: 14px;
  color: rgba(250, 244, 236, 0.7);
  margin-top: 8px;
  line-height: 1.6;
}

.footer__email {
  font-family: var(--font-body-ja);
  font-weight: 400;
  font-size: 14px;
  color: rgba(250, 244, 236, 0.7);
  margin-top: 16px;
  display: inline-block;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer__nav a {
  font-family: var(--font-body-ja);
  font-weight: 400;
  font-size: 14px;
  color: rgba(250, 244, 236, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__sns {
  display: flex;
  gap: 20px;
  margin-top: 24px;
}

.footer__sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(250, 244, 236, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__sns-link svg {
  width: 22px;
  height: 22px;
}

.footer__copy {
  font-family: var(--font-body-ja);
  font-weight: 400;
  font-size: 12px;
  color: rgba(250, 244, 236, 0.4);
  text-align: center;
  padding: 32px 0 24px;
  margin-top: 48px;
  border-top: 1px solid rgba(250, 244, 236, 0.08);
}


/* =====================================================
   ⑮ Tablet (≥768px)
===================================================== */
@media (min-width: 768px) {

  /* Services: 2カラム（3枚目はfull） */
  .services__grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-card:last-child {
    grid-column: span 2;
  }

  /* Program: Phaseカード 2カラム */
  .program__phases {
    grid-template-columns: 1fr 1fr;
  }

  /* Program contents: 2カラム */
  .program__contents {
    grid-template-columns: 1fr 1fr;
  }

  /* People: 3カラム */
  .people__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Gallery item: 少し広く */
  .gallery__item {
    width: 55vw;
  }

  /* Footer: 2カラム */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
  }

  /* Nav: ハンバーガー非表示、リンク表示 */
  .nav__hamburger {
    display: none;
  }
  .nav__links {
    display: flex;
  }
  .nav__cta {
    display: inline-flex;
  }
  .nav__mobile-menu {
    display: none !important;
  }
}


/* =====================================================
   ⑯ Desktop (≥1024px)
===================================================== */
@media (min-width: 1024px) {

  /* Hero: テキスト位置を左寄せ（bottom: 15%; left固定） */
  .hero__content {
    bottom: 15%;
    left: 0;
    right: auto;
    padding-right: 0;
  }

  /* WHO WE ARE: 2カラム */
  .who__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }

  /* OUR STORY: 2カラム */
  .story__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }

  /* 中里パート: 左右反転 */
  .story__grid--rev {
    grid-template-columns: 1fr 1fr;
  }
  .story__grid--rev .story__body { order: 1; }
  .story__grid--rev .story__img-wrap--mobile-first { order: 2; }

  /* Services: 3カラム */
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .service-card:last-child {
    grid-column: auto;
  }

  /* Gallery item: 420px固定 */
  .gallery__item {
    width: 420px;
  }

  /* Section padding */
  .section {
    padding: var(--section-py-desktop) 0;
  }
  .gallery {
    padding: 80px 0;
  }
}


/* =====================================================
   ⑰ Hover effects（ポインターデバイスのみ）
===================================================== */
@media (hover: hover) and (pointer: fine) {

  .btn-primary:hover {
    opacity: 0.8;
  }

  .btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(242, 201, 76, 0.4);
  }

  .btn-contact:hover {
    opacity: 0.9;
    transform: scale(1.02);
  }

  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(31, 17, 8, 0.12);
  }

  .link-secondary:hover {
    text-decoration: underline;
  }

  .link-accent:hover {
    opacity: 0.7;
  }

  .nav__link:hover {
    opacity: 0.7;
  }

  .nav__mobile-link:hover {
    opacity: 0.7;
  }

  .footer__nav a:hover {
    color: var(--color-bg);
  }

  .footer__email:hover {
    color: var(--color-bg);
  }

  .footer__sns-link:hover {
    color: var(--color-bg);
  }
}


/* =====================================================
   ⑱ Animations
===================================================== */

/* ---- Scroll fade animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;
  transition-delay: var(--delay, 0s);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;
  transition-delay: var(--delay, 0s);
}
.fade-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;
  transition-delay: var(--delay, 0s);
}
.fade-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Ticker scroll ---- */
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* =====================================================
   ⑲ prefers-reduced-motion（アクセシビリティ）
===================================================== */
@media (prefers-reduced-motion: reduce) {

  /* ヒーローロードアニメーション無効化 */
  .hero__label,
  .hero__title,
  .hero__sub,
  .hero__cta {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__label.hero-loaded,
  .hero__title.hero-loaded,
  .hero__sub.hero-loaded,
  .hero__cta.hero-loaded {
    transition: none;
  }

  /* スクロールフェード無効化 */
  .fade-up,
  .fade-left,
  .fade-right {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* ティッカー停止 */
  .ticker-track {
    animation: none;
  }

  /* ボタンホバーアニメーション抑制 */
  .btn-gold,
  .btn-contact,
  .service-card {
    transition: none;
  }

  /* スムーススクロール無効化 */
  html {
    scroll-behavior: auto;
  }
}
