/* ==========================================================================
   株式会社GranttiX コーポレートサイト
   1. Tokens / 2. Base / 3. Parts / 4. Sections / 5. Motion / 6. Review / 7. Print
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  --green: #235e55;
  --green-deep: #173f39;
  --mint: #ddede7;
  --mint-soft: #eff6f2;
  --bg: #fafbf8;
  --white: #fff;
  --ink: #26332f;
  --ink-soft: #55645f;
  --gold: #d5b58a;
  --line: rgb(38 51 47 / .14);

  --font-ja: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --font-en: "Manrope", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(96px, 13vw, 208px);
  --radius-s: 16px;
  --radius-m: clamp(20px, 2.4vw, 32px);
  --radius-l: clamp(28px, 4vw, 56px);
  --overlap: clamp(28px, 4vw, 56px);
  --header-h: 84px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.33, 1, .68, 1);
  --shadow: 0 1px 2px rgb(23 63 57 / .04), 0 18px 48px -24px rgb(23 63 57 / .16);
  --shadow-lift: 0 2px 4px rgb(23 63 57 / .06), 0 40px 72px -32px rgb(23 63 57 / .5);
}

/* 2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .03em;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 日本語を文節で折り返す（対応ブラウザのみ） */
.hero__sub, .about__text, .card__text, .contact__text, .value__ja, .policy__lead, .policy__section p { word-break: auto-phrase; }

h1, h2, h3, p, ul, figure, address { margin: 0; padding: 0; }
ul { list-style: none; }
address { font-style: normal; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible,
.philosophy :focus-visible,
.page-hero :focus-visible,
.footer :focus-visible,
.header:not(.is-scrolled) :focus-visible {
  outline-color: var(--gold);
}

.wrap {
  width: 100%;
  max-width: 1560px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--green);
  translate: 0 -200%;
  transition: translate .3s var(--ease);
}
.skip-link:focus { translate: 0 0; }

.nb { white-space: nowrap; }
.only-wide { display: none; }
@media (min-width: 720px) { .only-wide { display: inline; } }

/* 3. Parts
   ========================================================================== */
.display-en {
  font-family: var(--font-en);
  font-size: clamp(3.75rem, 9.2vw, 10rem);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.045em;
  color: var(--green);
}
.display-en--wide { font-size: clamp(3.75rem, 12.5vw, 14rem); }
.display-en--company { display: block; font-size: clamp(3.25rem, 6.6vw, 7.5rem); }
.display-en--contact { font-size: clamp(3rem, 5.2vw, 5.75rem); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--green);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.eyebrow--light { color: var(--mint); }

.heading {
  font-size: clamp(1.875rem, 3.7vw, 3.75rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .02em;
  font-feature-settings: "palt";
}
.heading--sm { font-size: clamp(1.75rem, 2.9vw, 3rem); }

.mask-line { display: block; overflow: hidden; padding-block: .04em; }
.mask-line > span { display: block; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 60px;
  padding: 6px 7px 6px 30px;
  border: 0;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .45s var(--ease-soft), color .45s var(--ease-soft), box-shadow .45s var(--ease-soft);
}
.button__arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  transition: background-color .45s var(--ease-soft), color .45s var(--ease-soft);
}
.button__arrow svg { transition: transform .55s var(--ease); }

.button--light { background: var(--bg); color: var(--ink); }
.button--light .button__arrow { background: var(--green); color: var(--white); }

.button--primary { background: var(--green); color: var(--white); }
.button--primary .button__arrow { background: var(--bg); color: var(--green); }

@media (hover: hover) {
  .button--light:hover { background: var(--white); box-shadow: 0 12px 32px -12px rgb(0 0 0 / .4); }
  .button--light:hover .button__arrow { background: var(--green-deep); }
  .button--light:hover .button__arrow svg { transform: translateY(4px); }
  .button--primary:hover { background: var(--green-deep); box-shadow: 0 16px 32px -16px rgb(23 63 57 / .7); }
  .button--primary:hover .button__arrow { background: var(--gold); color: var(--green-deep); }
  .button--primary:hover .button__arrow svg { transform: translateX(4px); }
}
.button:active .button__arrow svg { transform: scale(.88); }

.text-link {
  display: inline;
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
  transition: text-decoration-color .3s, color .3s;
}
@media (hover: hover) {
  .text-link:hover { color: var(--green-deep); text-decoration-color: var(--gold); }
}

/* 写真：比率を固定してCLSを防ぎ、読み込み失敗時も面として成立させる */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: linear-gradient(150deg, var(--mint), var(--mint-soft));
}
.media img {
  position: absolute;
  inset: -10% 0 auto;
  width: 100%;
  height: 120%;
  max-width: none;
  object-fit: cover;
  will-change: transform;
}
.is-failed > img { visibility: hidden; }

.ghost {
  position: absolute;
  top: clamp(40px, 8vw, 120px);
  left: 0;
  z-index: 0;
  font-family: var(--font-en);
  font-size: clamp(7rem, 24vw, 26rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.05em;
  white-space: nowrap;
  color: var(--green);
  opacity: .045;
  pointer-events: none;
  user-select: none;
}

.overlap {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--overlap) * -1);
  border-radius: var(--overlap) var(--overlap) 0 0;
}

/* プログレスバー */
.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  height: 2px;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}

/* ローディング */
.loader { display: none; }
.js .loader {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--white);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s cubic-bezier(.76, 0, .24, 1);
}
.is-ready .loader { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader__inner { display: grid; gap: 18px; justify-items: center; }
.loader__logo {
  display: block;
  overflow: hidden;
  font-family: var(--font-en);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.03em;
}
.loader__logo > span { display: block; animation: rise .9s var(--ease) both; }
.loader__bar {
  display: block;
  width: 112px;
  height: 1px;
  background: var(--gold);
  transform-origin: left;
  animation: grow 1s cubic-bezier(.65, 0, .35, 1) both;
}
@keyframes rise { from { transform: translateY(105%); } }
@keyframes grow { from { transform: scaleX(0); } }

/* 4. Sections
   ========================================================================== */

/* ヘッダー
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: var(--gutter);
  color: var(--white);
  transition: height .5s var(--ease), color .4s var(--ease-soft);
}
/* backdrop-filterは疑似要素に：モバイルメニュー（fixed）の基準がずれるのを防ぐ */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(250 251 248 / .76);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0;
  transition: opacity .4s var(--ease-soft);
}
.header.is-scrolled { --header-h: 68px; color: var(--ink); }
.header.is-scrolled::before { opacity: 1; }

.logo {
  position: relative;
  z-index: 2;
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.03em;
  transition: color .4s var(--ease-soft);
}
.header.is-scrolled .logo { color: var(--green); }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
  font-family: var(--font-en);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
}
.nav__link {
  position: relative;
  display: inline-block;
  padding-block: 8px;
}
.nav__link::after {
  content: "";
  position: absolute;
  inset: auto 0 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .55s var(--ease);
}
.nav__link[aria-current]::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) {
  .nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
}
.nav__link--contact {
  padding: 10px 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background-color .4s var(--ease-soft), color .4s var(--ease-soft), border-color .4s var(--ease-soft);
}
.nav__link--contact::after { display: none; }
@media (hover: hover) {
  .nav__link--contact:hover { background: var(--white); border-color: var(--white); color: var(--green); }
  .header.is-scrolled .nav__link--contact:hover { background: var(--green); border-color: var(--green); color: var(--white); }
}

.menu-button {
  position: relative;
  z-index: 2;
  display: none;
  width: 48px;
  height: 48px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-button__lines { position: relative; display: block; width: 28px; height: 10px; margin-inline: auto; }
.menu-button__lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.menu-button__lines span:first-child { top: 0; }
.menu-button__lines span:last-child { top: 8.5px; }
.menu-open .menu-button__lines span:first-child { top: 4px; transform: rotate(45deg); }
.menu-open .menu-button__lines span:last-child { top: 4px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .header.is-scrolled { --header-h: 64px; }
  .menu-button { display: block; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    padding-inline: var(--gutter);
    background: var(--green);
    color: var(--white);
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .7s cubic-bezier(.76, 0, .24, 1), visibility 0s linear .7s;
  }
  .menu-open .nav {
    visibility: visible;
    clip-path: inset(0 0 0 0);
    transition: clip-path .7s cubic-bezier(.76, 0, .24, 1), visibility 0s;
  }
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    font-size: clamp(2.5rem, 12vw, 4rem);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1.2;
  }
  .nav__list li {
    opacity: 0;
    translate: 0 24px;
    transition: opacity .3s, translate .3s;
  }
  .menu-open .nav__list li {
    opacity: 1;
    translate: 0 0;
    transition: opacity .8s var(--ease) calc(.18s + var(--i, 0) * .07s), translate .8s var(--ease) calc(.18s + var(--i, 0) * .07s);
  }
  .nav__list li:nth-child(2) { --i: 1; }
  .nav__list li:nth-child(3) { --i: 2; }
  .nav__list li:nth-child(4) { --i: 3; }
  .nav__link--contact { padding: 8px 0; border: 0; }
  .nav__link--contact::after { display: block; }

  .menu-open .header,
  .menu-open .header.is-scrolled { color: var(--white); }
  .menu-open .header .logo { color: var(--white); }
  .menu-open .header::before { opacity: 0; }
}
.menu-open { overflow: hidden; }

/* メインビジュアル
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--green-deep);
  color: var(--white);
}
.hero__media {
  position: absolute;
  inset: 0 0 -12%;
  will-change: transform;
}
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transform-origin: 50% 30%;
  animation: hero-zoom 30s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes hero-zoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.1); }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgb(18 48 43 / .5) 0, rgb(18 48 43 / 0) 20%),
    linear-gradient(to top, rgb(16 42 38 / .9) 0, rgb(16 42 38 / .72) 34%, rgb(16 42 38 / 0) 66%);
}
.hero__content {
  position: relative;
  width: 100%;
  max-width: 1560px;
  margin-inline: auto;
  padding: calc(var(--header-h) + 32px) var(--gutter) clamp(36px, 5vw, 64px);
}
.hero__title {
  font-size: clamp(1.5rem, 7.7vw, 2.75rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: .01em;
  font-feature-settings: "palt";
}
@media (min-width: 861px) {
  .hero__title { font-size: clamp(2.75rem, 5.7vw, 6.25rem); }
}
.hero__line { display: block; white-space: nowrap; }
.hero__char { display: inline-block; }

.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: clamp(24px, 3.4vw, 48px);
  padding-right: clamp(0px, 7vw, 120px);
}
.hero__sub {
  max-width: 34em;
  font-size: clamp(.9375rem, 1.15vw, 1.125rem);
  line-height: 2;
}
.hero__lead { display: grid; gap: 22px; justify-items: start; }
/* 広い画面では横一列にまとめ、人物の顔に文字が重ならないようにする */
@media (min-width: 1100px) {
  .hero__foot { align-items: center; }
  .hero__lead { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); }
  .hero__sub { flex: none; }
  .hero__button { flex: none; }
}
.hero__en {
  flex: none;
  padding-left: 22px;
  border-left: 1px solid var(--gold);
  font-family: var(--font-en);
  font-size: clamp(1.0625rem, 1.75vw, 1.75rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -.015em;
}
.hero__en span { display: block; }

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(36px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 8px;
  font-family: var(--font-en);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.scroll-cue__label { writing-mode: vertical-rl; }
.scroll-cue__line {
  position: relative;
  display: block;
  width: 1px;
  height: 72px;
  overflow: hidden;
  background: rgb(255 255 255 / .3);
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  animation: cue 2.4s cubic-bezier(.76, 0, .24, 1) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}

@media (max-width: 860px) {
  .hero__foot { flex-direction: column-reverse; align-items: flex-start; gap: 24px; padding-right: 0; }
  /* 縦長画面：写真は上部に収め、下部の濃いグリーンへ自然につなぐ */
  .hero__media { inset: 0 0 30%; }
  .hero__image { object-position: 56% 30%; }
  .hero__scrim {
    background:
      linear-gradient(to bottom, rgb(18 48 43 / .5) 0, rgb(18 48 43 / 0) 16%),
      linear-gradient(to top, var(--green-deep) 30%, rgb(23 63 57 / .82) 44%, rgb(23 63 57 / 0) 66%);
  }
  .scroll-cue { bottom: 36px; }
  .scroll-cue__label { display: none; }
  .scroll-cue__line { height: 56px; }
}

/* ABOUT
   -------------------------------------------------------------------------- */
.about { overflow: hidden; }
.about .wrap { position: relative; z-index: 1; }

.about__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px clamp(16px, 2vw, 32px);
  align-items: end;
}
.about__head .display-en { grid-column: 1 / span 6; }
.about__heading { grid-column: 7 / -1; display: grid; gap: clamp(20px, 2.4vw, 36px); }

.about__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 36px clamp(16px, 2vw, 32px);
  align-items: end;
  margin-top: clamp(64px, 9vw, 150px);
}
.about__text {
  font-size: clamp(1.0625rem, 1.45vw, 1.375rem);
  line-height: 2.15;
}
.media--a { grid-column: 1 / span 7; aspect-ratio: 3 / 2; }
.about__row:not(.about__row--reverse) .about__text { grid-column: 9 / -1; }
.about__row--reverse { margin-top: clamp(48px, 7vw, 120px); align-items: center; }
.about__row--reverse .about__text { grid-column: 2 / span 4; }
.media--b { grid-column: 7 / -1; aspect-ratio: 4 / 3; }

@media (max-width: 899px) {
  .about__head .display-en,
  .about__heading,
  .media--a,
  .media--b,
  .about__row:not(.about__row--reverse) .about__text,
  .about__row--reverse .about__text { grid-column: 1 / -1; }
  .about__row--reverse .about__text { order: 2; }
  .media--b { aspect-ratio: 3 / 2; }
}

/* SERVICE
   -------------------------------------------------------------------------- */
.service { background: var(--mint-soft); padding-bottom: calc(var(--section) + clamp(40px, 6vw, 96px)); }
.service__head { display: grid; gap: clamp(28px, 3vw, 44px); }
.service__heading { display: grid; gap: 18px; }
.service__heading .eyebrow { margin-bottom: 4px; }
@media (min-width: 1000px) {
  .service__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
  .service__heading { padding-bottom: .5vw; }
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 24px);
  margin-top: clamp(56px, 6.5vw, 112px);
}
.cards > li { display: flex; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: clamp(520px, 44vw, 660px);
  padding: clamp(28px, 2.8vw, 44px);
  border-radius: var(--radius-m);
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: transform .7s var(--ease), background-color .6s var(--ease-soft), color .6s var(--ease-soft), box-shadow .7s var(--ease);
}
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card__number {
  font-family: var(--font-en);
  font-size: clamp(4.5rem, 7.2vw, 7.5rem);
  font-weight: 300;
  line-height: .9;
  letter-spacing: -.055em;
  color: var(--green);
  transition: color .6s var(--ease-soft);
}
.icon { flex: none; color: var(--green); transition: color .6s var(--ease-soft); }
.card__body { margin-top: auto; padding-top: 56px; }
.card__label {
  margin-bottom: 10px;
  font-family: var(--font-en);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--green);
  transition: color .6s var(--ease-soft);
}
.card__title {
  font-size: clamp(1.25rem, 1.7vw, 1.625rem);
  font-weight: 500;
  line-height: 1.5;
  font-feature-settings: "palt";
}
.card__text {
  margin-top: 16px;
  font-size: .9375rem;
  line-height: 2;
  color: var(--ink-soft);
  transition: color .6s var(--ease-soft);
}
.card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  font-weight: 500;
  transition: border-color .6s var(--ease-soft);
}
/* カード全体をクリック可能に */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.card__link:focus-visible { outline: none; }
.card__link:focus-visible::after { outline: 2px solid var(--green); outline-offset: 3px; }

.arrow-circle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  transition: background-color .5s var(--ease-soft), border-color .5s var(--ease-soft), color .5s var(--ease-soft);
}
.arrow-circle svg { transition: transform .6s var(--ease); }

@media (hover: hover) {
  .card:hover {
    transform: translateY(-10px);
    background: var(--green);
    color: var(--white);
    box-shadow: var(--shadow-lift);
  }
  .card:hover .card__number { color: var(--gold); }
  .card:hover .icon,
  .card:hover .card__label { color: var(--mint); }
  .card:hover .card__text { color: rgb(255 255 255 / .86); }
  .card:hover .card__link { border-color: rgb(255 255 255 / .24); }
  .card:hover .arrow-circle { background: var(--gold); border-color: var(--gold); color: var(--green-deep); }
  .card:hover .arrow-circle svg { transform: translateX(4px); }
}

@media (max-width: 999px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 0; }
  .card__body { padding-top: 48px; }
}

/* PHILOSOPHY
   -------------------------------------------------------------------------- */
.philosophy { position: relative; background: var(--mint-soft); }
.philosophy__panel {
  position: relative;
  overflow: hidden;
  padding-block: clamp(120px, 15vw, 240px) calc(clamp(112px, 13vw, 208px) + var(--overlap));
  background:
    radial-gradient(90% 80% at 85% 5%, rgb(255 255 255 / .07), transparent 60%),
    radial-gradient(70% 70% at 0% 100%, rgb(16 42 38 / .5), transparent 70%),
    var(--green);
  color: var(--white);
  /* JSでスクロールに合わせて全幅へ広げる */
  clip-path: inset(var(--panel-inset-y, 0px) var(--panel-inset-x, 0px) 0 var(--panel-inset-x, 0px) round var(--panel-radius, 0px));
}
.ring {
  position: absolute;
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.ring--1 { top: -18vw; right: -14vw; width: 62vw; height: 62vw; }
.ring--2 { top: -6vw; right: -2vw; width: 38vw; height: 38vw; border-color: rgb(213 181 138 / .24); }
.ring--3 { bottom: -34vw; left: -12vw; width: 70vw; height: 70vw; }

.philosophy__inner { position: relative; }
.philosophy__title {
  margin-top: clamp(28px, 3vw, 44px);
  font-size: clamp(2.125rem, 6.4vw, 6.75rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: .01em;
  font-feature-settings: "palt";
}
.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px clamp(24px, 3.4vw, 56px);
  margin-top: clamp(72px, 9vw, 150px);
}
.value { position: relative; padding-top: clamp(22px, 2.2vw, 32px); }
.value::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--gold);
  transform-origin: left;
}
.value__en {
  font-family: var(--font-en);
  font-size: clamp(2.25rem, 4.2vw, 4.75rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.04em;
}
.value__ja {
  margin-top: 16px;
  font-size: clamp(.9375rem, 1.15vw, 1.0625rem);
  color: var(--mint);
}
@media (max-width: 760px) {
  .values { grid-template-columns: minmax(0, 1fr); }
}

/* COMPANY
   -------------------------------------------------------------------------- */
.company {
  background: var(--bg);
  padding-bottom: calc(var(--section) + var(--overlap));
}
.company__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px clamp(16px, 2vw, 32px);
}
.company__head { grid-column: 1 / span 5; }
.company__title {
  position: sticky;
  top: 112px;
  display: grid;
  gap: clamp(16px, 1.8vw, 28px);
  font-size: inherit;
  font-weight: 400;
}
.company__head { align-self: stretch; }
.company__body { grid-column: 6 / -1; }

.info { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.info tr { border-bottom: 1px solid var(--line); }
.info th,
.info td { padding-block: clamp(22px, 2.2vw, 32px); text-align: left; vertical-align: top; }
.info th {
  width: clamp(104px, 11vw, 168px);
  padding-right: 20px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--green);
  line-height: 2;
}
.info td { font-size: clamp(1rem, 1.2vw, 1.125rem); }
.info__list li + li { margin-top: 4px; }

.map {
  position: relative;
  aspect-ratio: 16 / 10;
  margin-block: 20px 14px;
  overflow: hidden;
  border-radius: var(--radius-s);
  background: var(--mint);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.info .text-link { font-size: .875rem; }

@media (max-width: 899px) {
  .company__head, .company__body { grid-column: 1 / -1; }
  .company__title { position: static; }
}
@media (max-width: 600px) {
  .info, .info tbody, .info tr, .info th, .info td { display: block; width: 100%; }
  .info tr { padding-block: 20px; }
  .info th { padding: 0 0 4px; }
  .info td { padding: 0; }
  .map { aspect-ratio: 4 / 3; }
}

/* CONTACT
   -------------------------------------------------------------------------- */
.contact { background: var(--mint); padding-bottom: calc(var(--section) + var(--overlap)); }
.contact__box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px clamp(40px, 6vw, 104px);
  padding: clamp(20px, 3vw, 44px) clamp(20px, 3vw, 44px) clamp(20px, 3vw, 44px) clamp(28px, 6vw, 96px);
  border-radius: var(--radius-l);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.contact__intro {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 36px);
  padding-block: clamp(20px, 4vw, 64px);
}
.contact__text { color: var(--ink-soft); }
.contact__info {
  display: grid;
  justify-items: start;
  gap: 28px;
  margin-top: auto;
  padding-top: clamp(24px, 3vw, 44px);
}
.contact__list { width: 100%; margin: 0; border-top: 1px solid var(--line); }
.contact__list > div {
  display: grid;
  grid-template-columns: 6em minmax(0, 1fr);
  gap: 4px 16px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
.contact__list dt { font-size: .875rem; font-weight: 500; line-height: 2; color: var(--green); }
.contact__list dd { margin: 0; }
.contact__media {
  min-height: 360px;
  border-radius: var(--radius-m);
}
.contact__media img { inset: 0; height: 100%; object-position: 40% 30%; will-change: auto; }

@media (max-width: 960px) {
  .contact__box { grid-template-columns: minmax(0, 1fr); padding: 12px 12px 12px; }
  .contact__intro { padding: 24px 12px 8px; }
  .contact__media { min-height: 0; aspect-ratio: 3 / 2; }
}
@media (max-width: 600px) {
  .contact > .wrap { padding-inline: 12px; }
  .contact__button { width: 100%; justify-content: space-between; }
  .contact__list > div { grid-template-columns: minmax(0, 1fr); }
}

/* フッター
   -------------------------------------------------------------------------- */
.footer {
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 120px) 28px;
  background: var(--green-deep);
  color: var(--white);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
}
.footer__name { font-size: 1.0625rem; font-weight: 500; }
.footer__address { margin-top: 10px; font-size: .875rem; line-height: 1.9; color: var(--mint); }
.footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}
.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(20px, 3vw, 44px);
  font-family: var(--font-en);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
}
.footer__nav a { display: inline-block; padding-block: 6px; transition: color .3s var(--ease-soft); }
.footer__privacy { font-size: .8125rem; color: var(--mint); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em; }
@media (hover: hover) {
  .footer__nav a:hover { color: var(--gold); }
}
.footer__logo {
  display: block;
  margin-top: clamp(56px, 8vw, 120px);
  font-family: var(--font-en);
  font-size: clamp(3.5rem, 24.8vw, 25rem);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.055em;
  white-space: nowrap;
  color: var(--white);
  transition: color .6s var(--ease-soft);
}
@media (hover: hover) {
  .footer__logo:hover { color: var(--gold); }
}
.footer__copy {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / .16);
  font-family: var(--font-en);
  font-size: .75rem;
  color: var(--mint);
}
.footer__copy small { font-size: inherit; }

@media (max-width: 720px) {
  .footer__top { flex-direction: column; }
  .footer__nav { align-items: flex-start; }
}

/* プライバシーポリシー（privacy.html）
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: calc(var(--header-h) + clamp(56px, 8vw, 128px)) calc(clamp(56px, 7vw, 112px) + var(--overlap));
  background:
    radial-gradient(90% 90% at 88% 0%, rgb(255 255 255 / .07), transparent 60%),
    var(--green);
  color: var(--white);
}
.page-hero .ring--2 { top: -14vw; right: -6vw; }
.page-hero__en {
  font-family: var(--font-en);
  font-size: clamp(3rem, 9.2vw, 10rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.045em;
}
.page-hero__title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(20px, 2.4vw, 36px);
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  font-weight: 500;
}
.page-hero__title::before { content: ""; width: 28px; height: 1px; background: var(--gold); }

.policy { background: var(--bg); padding-bottom: calc(var(--section) + var(--overlap)); }
.policy__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px clamp(16px, 2vw, 32px);
}
.policy__toc { grid-column: 1 / span 4; }
.policy__toc ol {
  position: sticky;
  top: 108px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  font-size: .875rem;
}
.policy__toc li { counter-increment: toc; }
.policy__toc a {
  display: flex;
  gap: 14px;
  padding-block: 6px;
  color: var(--ink-soft);
  transition: color .3s var(--ease-soft), translate .5s var(--ease);
}
.policy__toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  width: 1.5em;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--green);
}
@media (hover: hover) {
  .policy__toc a:hover { color: var(--green); translate: 4px 0; }
}
.policy__body { grid-column: 5 / -1; counter-reset: policy; }
.policy__lead { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 2.1; }
.policy__section {
  counter-increment: policy;
  margin-top: clamp(40px, 4.4vw, 64px);
  padding-top: clamp(28px, 2.8vw, 40px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.policy__section h2 {
  display: flex;
  gap: 16px;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  font-weight: 500;
  line-height: 1.6;
  font-feature-settings: "palt";
}
.policy__section h2::before {
  content: counter(policy, decimal-leading-zero);
  font-family: var(--font-en);
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--green);
}
.policy__section p,
.policy__section ul,
.policy__section dl { margin-top: 16px; }
.policy__section ul { display: grid; gap: 6px; }
.policy__section li { position: relative; padding-left: 1.4em; }
.policy__section li::before {
  content: "";
  position: absolute;
  top: .85em;
  left: .2em;
  width: .45em;
  height: 1px;
  background: var(--green);
}
.policy__contact > div {
  display: grid;
  grid-template-columns: 7em minmax(0, 1fr);
  gap: 4px 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.policy__contact dt { font-size: .875rem; font-weight: 500; line-height: 2; color: var(--green); }
.policy__contact dd { margin: 0; }
.policy__date { margin-top: clamp(40px, 4vw, 56px); font-size: .875rem; color: var(--ink-soft); }

@media (max-width: 899px) {
  .policy__toc { display: none; }
  .policy__body { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .policy__contact > div { grid-template-columns: minmax(0, 1fr); }
}

/* 5. Motion
   ========================================================================== */
/* メインビジュアル */
.js .hero__char {
  opacity: 0;
  transform: translateY(.42em);
}
.is-ready .hero__char {
  opacity: 1;
  transform: none;
  transition:
    opacity 1s var(--ease) calc(.4s + var(--i) * 34ms),
    transform 1.2s var(--ease) calc(.4s + var(--i) * 34ms);
}
.js [data-hero-item] { opacity: 0; translate: 0 20px; }
.is-ready [data-hero-item] {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 1.2s var(--ease) calc(1.05s + var(--order) * .14s),
    translate 1.2s var(--ease) calc(1.05s + var(--order) * .14s);
}

/* スクロール連動 */
.js [data-reveal] {
  opacity: 0;
  translate: 0 32px;
  transition:
    opacity 1.2s var(--ease) var(--delay, 0s),
    translate 1.3s var(--ease) var(--delay, 0s);
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

.js [data-reveal="mask"] { opacity: 1; translate: 0 0; }
.js [data-reveal="mask"] .mask-line > span {
  transform: translateY(108%);
  transition: transform 1.4s var(--ease);
}
.js [data-reveal="mask"] .mask-line:nth-child(2) > span { transition-delay: .12s; }
.js [data-reveal="mask"].is-in .mask-line > span { transform: none; }

.js [data-reveal="media"] {
  opacity: 1;
  translate: 0 0;
  clip-path: inset(14% 0 0 0 round var(--radius-m));
  transition: clip-path 1.5s var(--ease);
}
.js [data-reveal="media"].is-in { clip-path: inset(0 0 0 0 round var(--radius-m)); }

.js [data-reveal="line"]::before {
  transform: scaleX(0);
  transition: transform 1.5s var(--ease) var(--delay, 0s);
}
.js [data-reveal="line"].is-in::before { transform: scaleX(1); }

/* 線画アイコンが描かれる */
.js .icon path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s var(--ease-soft) calc(var(--delay, 0s) + .3s);
}
.js .is-in .icon path { stroke-dashoffset: 0; }

/* アニメーションを減らす設定：静的表示 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .loader { display: none; }
  .js .hero__char,
  .js [data-hero-item],
  .js [data-reveal],
  .js [data-reveal] .mask-line > span,
  .js [data-reveal]::before {
    opacity: 1;
    translate: 0 0;
    transform: none;
    clip-path: none;
  }
  .js .icon path { stroke-dashoffset: 0; }
  .progress { display: none; }
  .scroll-cue__line::after { transform: none; }
  .hero__image { transform: none; }
  .card:hover { transform: none !important; }
}

/* 6. Review（index.html?review=1 で仮文言を確認）
   ========================================================================== */
.review-mode [data-draft] {
  outline: 2px dashed var(--gold);
  outline-offset: 6px;
  border-radius: 2px;
}
.review-panel {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 130;
  max-width: 300px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  font-size: .8125rem;
  line-height: 1.7;
  box-shadow: 0 16px 40px -12px rgb(0 0 0 / .5);
}
.review-panel strong { color: var(--gold); font-weight: 500; }

/* 7. Print
   ========================================================================== */
@media print {
  .loader, .progress, .scroll-cue, .menu-button, .map { display: none !important; }
  .header { position: static; color: var(--ink); }
  .js [data-reveal], .js [data-hero-item], .js .hero__char, .js [data-reveal] .mask-line > span {
    opacity: 1 !important;
    translate: 0 0 !important;
    transform: none !important;
    clip-path: none !important;
  }
}
