/* ═══════════════════════════════════════════════════════
   01 — HOME
   Scope: トップページ
═══════════════════════════════════════════════════════ */

/* ── 01.1 HERO ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--ink);
  display: flex;
  align-items: center;
}
.hero-vid {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-vid iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: none;
  opacity: 0.45;
}
.hero-vid-poster {
  position: absolute;
  inset: 0;
  z-index: 1;

  background-color: var(--ink);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  opacity: 1;
  transition:
    opacity 1.2s ease,
    visibility 1.2s ease;
}

.hero-vid-poster.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.hero-ov {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
}
.hero-ct {
  position: relative;
  z-index: 3;
  padding: 0 var(--g);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.hero-badge {
  font-family: var(--din);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeup 0.8s 0.3s forwards;
}
.hero-badge .dot {
  width: 5px;
  height: 5px;
  background: var(--sage);
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(52px, 9.5vw, 128px);
  font-weight: 300;
  line-height: 0.88;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeup 0.9s 0.5s forwards;
}
.hero-title em {
  display: block;
  font-style: italic;
  color: rgba(255, 255, 255, 0.38);
}
.hero-sub {
  font-family: var(--body);
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.5);
  max-width: 500px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeup 0.9s 0.7s forwards;
}

/* Editable Home copy keeps the fixed design system while allowing restrained
   inline emphasis from the WordPress editor. */
.home-rich-text p {
  color: inherit;
  font: inherit;
  line-height: inherit;
}

.home-rich-text p + p {
  margin-top: 1em;
}

.home-rich-text a {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.home-rich-text .home-sage,
.home-rich-title .home-sage {
  color: var(--sage);
}

.home-rich-text .home-sage-underline,
.home-rich-title .home-sage-underline {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--sage);
  text-decoration-thickness: 0.22em;
  text-underline-offset: -0.05em;
  text-decoration-skip-ink: none;
}

.home-rich-text .home-muted,
.home-rich-title .home-muted {
  color: var(--silver);
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeup 0.9s 0.9s forwards;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeup 0.8s 1.4s forwards;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--sage);
  animation: scrolldown 2s 2s infinite;
}
.hero-scroll-lbl {
  font-family: var(--din);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}
@keyframes fadeup {
  to {
    opacity: 1;
    transform: none;
  }
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}
@keyframes scrolldown {
  0% {
    top: -100%;
  }
  100% {
    top: 200%;
  }
}

/* ── 01.2 PROVENANCE STRIP ── */
.prov {
  background: var(--sage);
  padding: clamp(18px, 2.5vw, 28px) var(--g);
  overflow: hidden;
}
.prov-in {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  flex-wrap: wrap;
}
.prov-item {
  font-family: var(--serif);
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 300;
  color: var(--ink);
  white-space: nowrap;
}
.prov-div {
  font-family: var(--din);
  font-size: 9px;
  color: rgba(0, 0, 0, 0.3);
  letter-spacing: 0.2em;
  flex-shrink: 0;
}

/* ── 01.3 STATEMENT ── */
.stmt {
  padding: clamp(80px, 10vw, 140px) var(--g);
}
.stmt-in {
  max-width: var(--max);
  margin: 0 auto;
}
.stmt-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(60px, 8vw, 120px);
  align-items: center;
}
.stmt-label {
  font-family: var(--din);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.stmt-label::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--sage);
}
.stmt-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 64px);
  font-weight: 300;
  color: var(--ink);
  line-height: 0.95;
  margin-bottom: 24px;
}
.stmt-title em {
  font-style: italic;
  color: var(--silver);
}
.stmt-body {
  font-family: var(--body);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.88;
  color: var(--grey);
  margin-bottom: 28px;
}
.stmt-pull {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  line-height: 1.4;
  padding-left: 24px;
  border-left: 2px solid var(--sage);
}

/* ── 01.4 SEVEN DISCIPLINES ── */
.sevens {
  padding: clamp(60px, 8vw, 110px) var(--g);
  background: var(--warm);
  border-top: 1px solid var(--rule);
}
.sevens-in {
  max-width: var(--max);
  margin: 0 auto;
}
.sevens-hd {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 40px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.sevens-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  color: var(--ink);
  line-height: 0.95;
}
.sevens-title em {
  font-style: italic;
  color: var(--silver);
}
.sevens-rule {
  height: 1px;
  background: var(--rule);
  margin-bottom: 8px;
}
.sevens-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.sc {
  padding: clamp(18px, 2vw, 28px) clamp(14px, 1.5vw, 20px);
  background: var(--white);
  border: 1px solid var(--rule);
  cursor: default;
  transition: background 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.sc::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s;
}
.sc:hover {
  background: var(--sage10);
  border-color: var(--sage20);
}
.sc:hover::after {
  transform: scaleX(1);
}
.sc-num {
  font-family: var(--din);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--sage);
  margin-bottom: 12px;
}
.sc-name {
  font-family: var(--serif);
  font-size: clamp(15px, 1.5vw, 22px);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 10px;
}
.sc-micro {
  font-family: var(--din);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  line-height: 1.6;
}

/* ── 01.5 SERVICES ── */
.services {
  border-top: 1px solid var(--rule);
}
.disc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule);
  min-height: 340px;
}
.disc.flip {
  direction: rtl;
}
.disc.flip > * {
  direction: ltr;
}
.disc-img {
  position: relative;
  overflow: hidden;
  background: var(--warm);
  min-height: 280px;
}
.disc-img img {
  transition: transform 0.6s ease;
}
.disc:hover .disc-img img {
  transform: scale(1.03);
}
.disc-ct {
  padding: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}
.disc.dark .disc-ct {
  background: var(--ink);
}
.disc-num {
  font-family: var(--din);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--sage);
  margin-bottom: 16px;
}
.disc-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 300;
  line-height: 0.95;
  margin-bottom: 16px;
  color: var(--ink);
}
.disc.dark .disc-title {
  color: var(--white);
}
.disc-title em {
  font-style: italic;
  color: var(--silver);
}
.disc.dark .disc-title em {
  color: rgba(255, 255, 255, 0.3);
}
.disc-body {
  font-family: var(--body);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.85;
  color: var(--grey);
  margin-bottom: 20px;
}
.disc.dark .disc-body {
  color: rgba(255, 255, 255, 0.45);
}
.disc-ref {
  font-family: var(--din);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
}
.disc.dark .disc-ref {
  color: rgba(255, 255, 255, 0.2);
}

/* ── 01.6 WORK SHOWCASE ── */
.work-section {
  border-top: 1px solid var(--rule);
}
.work-hd {
  padding: clamp(60px, 7vw, 100px) var(--g) clamp(40px, 5vw, 64px);
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}
.work-ht {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  color: var(--ink);
  line-height: 0.95;
}
.work-ht em {
  font-style: italic;
  color: var(--silver);
}
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border-top: 1px solid var(--rule);
}
.proj {
  position: relative;
  overflow: hidden;
  background: var(--warm);
  aspect-ratio: 4/3;
  cursor: pointer;
}
.proj.wide {
  grid-column: span 2;
}
.proj-img {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}
.proj:hover .proj-img {
  transform: scale(1.04);
}
.proj-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.proj:hover .proj-ov {
  opacity: 1;
}
.proj-ct {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  transform: translateY(6px);
  transition: transform 0.3s;
  opacity: 0;
}
.proj:hover .proj-ct {
  opacity: 1;
  transform: none;
}
.proj-client {
  font-family: var(--din);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}
.proj-name {
  font-family: var(--serif);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
}
.proj-tags {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.proj-tag {
  font-family: var(--din);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 7px;
}

/* ── 01.7 WA AWAKEN ── */
.wawaken {
  padding: clamp(80px, 10vw, 130px) var(--g);
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.wawaken-in {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(60px, 8vw, 120px);
  align-items: center;
}
.wa-label {
  font-family: var(--din);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--sage);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.wa-label::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--sage);
}
.wa-title {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 300;
  color: var(--ink);
  line-height: 0.88;
  margin-bottom: 20px;
}
.wa-title .wa-a {
  color: var(--sage);
}
.wa-body {
  font-family: var(--body);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.88;
  color: var(--grey);
  margin-bottom: 28px;
}
.wa-art {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--warm);
  overflow: hidden;
}
.wa-art-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-big {
  font-family: var(--serif);
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 600;
  color: var(--ink);
  opacity: 0.04;
  line-height: 1;
  user-select: none;
}
.wa-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-family: var(--din);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--sage);
  color: var(--ink);
  padding: 8px 16px;
}

/* ── 01.8 MILL PROFILE ── */
.mill-strip {
  padding: clamp(80px, 10vw, 130px) var(--g);
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.mill-strip-in {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(60px, 8vw, 120px);
  align-items: center;
}
.mill-ht {
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 60px);
  font-weight: 300;
  color: var(--white);
  line-height: 0.92;
  margin-bottom: 20px;
}
.mill-ht em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.3);
}
.mill-body {
  font-family: var(--body);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.88;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 28px;
}
.mill-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 40px;
}
.mill-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 24px;
  transition: background 0.25s;
}
.mill-stat:hover {
  background: var(--sage10);
}
.mill-sn {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
}
.mill-sn span {
  font-size: 0.55em;
  vertical-align: super;
  color: var(--sage);
}
.mill-sl {
  font-family: var(--din);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 6px;
}

/* ── 01.9 CLIENTS ── */
.clients {
  padding: clamp(60px, 7vw, 100px) var(--g);
  border-top: 1px solid var(--rule);
}
.clients-in {
  max-width: var(--max);
  margin: 0 auto;
}
.clients-label {
  font-family: var(--din);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.clients-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.clients-row {
  display: flex;
  gap: clamp(28px, 4vw, 56px);
  flex-wrap: wrap;
  align-items: center;
}
.cl {
  font-family: var(--din);
  font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  transition: color 0.2s;
  white-space: nowrap;
}
.cl:hover {
  color: var(--ink);
}

/* ── 01.10 RESPONSIVE ── */
@media (max-width: 1024px) {
  .stmt-grid,
  .wawaken-in,
  .mill-strip-in {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sevens-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .disc {
    grid-template-columns: 1fr;
  }
  .disc.flip {
    direction: ltr;
  }
  .disc-img {
    min-height: 220px;
  }
  .proj-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .hero-scroll {
    right: clamp(16px, 5vw, 24px);
    bottom: 20px;
    left: auto;
    transform: none;
  }

  .hero-scroll-line {
    height: 32px;
  }

  .sevens-grid {
    grid-template-columns: 1fr 1fr;
  }
  .proj-grid {
    grid-template-columns: 1fr;
  }
  .proj.wide {
    grid-column: span 1;
  }
  .mill-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── 01.11 SELECTED WORK GRID ── */
/* Home — Selected Work */
.home-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, clamp(220px, 25vw, 340px));
  grid-template-areas:
    "wide wide standard1"
    "wide wide ."
    "standard2 standard3 .";
  gap: 2px;
  background: var(--white);
}

.home-work-grid .home-work-wide {
  grid-area: wide;
}

.home-work-grid .home-work-standard-1 {
  grid-area: standard1;
}

.home-work-grid .home-work-standard-2 {
  grid-area: standard2;
}

.home-work-grid .home-work-standard-3 {
  grid-area: standard3;
}

/* 全カード内の画像を枠いっぱいにする */
.home-work-grid .proj {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.home-work-grid .proj-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 1024px) and (min-width: 769px) {
  .home-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, clamp(220px, 36vw, 340px));
    grid-template-areas:
      "wide wide"
      "wide wide"
      "standard1 standard2"
      "standard3 .";
  }
}
@media (max-width: 768px) {
  .home-work-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas: none;
    gap: 2px;
  }

  .home-work-grid .proj {
    grid-area: auto;
    aspect-ratio: 4 / 3;
    height: auto;
  }
}
/* ── 01.12 SERVICE IMAGE / WA STORY ── */
.service-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wa-story {
  display: block;
  color: var(--white);
}

.wa-story-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.wa-story:hover .wa-story-image {
  transform: scale(1.04);
}

.wa-story-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.08) 65%
  );
}

.wa-story-content {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 1;
  padding-right: 150px;
}

.wa-story-category {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--din);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wa-story-title {
  max-width: 560px;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 300;
  line-height: 1;
}

@media (max-width: 768px) {
  .wa-story-content {
    right: 20px;
    bottom: 68px;
    left: 20px;
    padding-right: 0;
  }
}

/* ── Japanese typography adjustments ── */
html[lang^="ja"] body.home .hero-title {
  max-width: 960px;
  font-size: clamp(34px, 6.2vw, 82px);
  line-height: 1.12;
  letter-spacing: 0.01em;
}

html[lang^="ja"] body.home .hero-sub {
  max-width: 620px;
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.95;
}

html[lang^="ja"] body.home .stmt-title {
  font-size: clamp(29px, 3.7vw, 52px);
  line-height: 1.25;
}

html[lang^="ja"] body.home .stmt-pull {
  font-size: clamp(18px, 1.8vw, 25px);
  line-height: 1.65;
}

html[lang^="ja"] body.home .sevens-title,
html[lang^="ja"] body.home .work-ht {
  font-size: clamp(29px, 3.3vw, 44px);
  line-height: 1.25;
}

html[lang^="ja"] body.home .disc-title {
  font-size: clamp(25px, 2.7vw, 39px);
  line-height: 1.24;
}

html[lang^="ja"] body.home .mill-ht {
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.22;
}

html[lang^="ja"] body.home .cta-title {
  font-size: clamp(31px, 4.2vw, 58px);
  line-height: 1.24;
}

@media (max-width: 768px) {
  html[lang^="ja"] body.home .hero-title {
    max-width: 19em;
    font-size: clamp(32px, 9.2vw, 42px);
    line-height: 1.18;
  }

  html[lang^="ja"] body.home .hero-sub {
    max-width: 32em;
  }
}
