:root {
  --ink: #fff9ee;
  --ink-soft: rgba(255, 249, 238, 0.66);
  --ink-muted: rgba(255, 249, 238, 0.46);
  --shadow: rgba(17, 12, 8, 0.5);
  --wood-deep: #493323;
  --paper: #f5eee2;
  --service-ink: #35281d;
  --service-ink-soft: rgba(53, 40, 29, 0.72);
  --service-line: rgba(88, 66, 45, 0.2);
  --background-base: #ece5d7;
  --background-wood-mist: url("assets/images/backgrounds/suehiro-background-wood-mist.webp");
  --site-header-safe-height: 92px;
  --reading-measure: 34em;
  --reading-gutter: clamp(18px, 2.4vw, 34px);
  --service-sticky-top: var(--site-header-safe-height);
  --service-heading-height: clamp(54px, 6svh, 68px);
  --service-image-height: clamp(430px, 58svh, 650px);
  --service-section-padding: clamp(88px, 13vw, 160px);
  --service-mobile-breath-space: 14px;
  --font-main: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --font-body: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--site-header-safe-height) + 18px);
  overflow-x: clip;
  background: var(--background-base);
}

body {
  position: relative;
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--wood-deep);
  background: transparent;
  font-family: var(--font-body);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.2), rgba(239, 231, 216, 0.12)),
    var(--background-wood-mist) center center / cover no-repeat;
  content: "";
  pointer-events: none;
}

body > main,
body > .quick-contact-spacer {
  position: relative;
  z-index: 1;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--site-header-safe-height);
  padding: max(18px, env(safe-area-inset-top)) clamp(20px, 4.8vw, 58px) 12px;
  color: var(--ink);
  pointer-events: none;
  isolation: isolate;
  transition: color 320ms ease;
}

.brand,
.site-menu {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.site-header::after {
  position: absolute;
  inset: 0 0 calc(-1 * var(--service-mobile-breath-space));
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(239, 232, 218, 0.97), rgba(239, 232, 218, 0.94) 76%, transparent 100%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: inherit;
  text-align: center;
  text-decoration: none;
}

.brand-mark {
  width: clamp(42px, 4.1vw, 58px);
  height: auto;
  opacity: 1;
  filter:
    brightness(0)
    invert(1)
    drop-shadow(0 1px 2px rgba(15, 10, 6, 0.48))
    drop-shadow(0 8px 14px rgba(15, 10, 6, 0.32));
  transition: filter 320ms ease, opacity 320ms ease;
}

.brand-name {
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(0.76rem, 0.92vw, 0.88rem);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 2px 14px var(--shadow);
  transition: color 320ms ease, text-shadow 320ms ease;
}

.site-header.is-over-light {
  color: rgba(53, 40, 29, 0.86);
}

.site-header.is-over-light .brand-mark {
  filter:
    brightness(0)
    sepia(26%)
    saturate(430%)
    hue-rotate(344deg)
    brightness(0.74)
    drop-shadow(0 5px 10px rgba(255, 250, 238, 0.32));
}

.site-header.is-over-light .brand-name {
  color: rgba(53, 40, 29, 0.72);
  text-shadow: 0 2px 10px rgba(255, 250, 238, 0.34);
}

.site-header.is-over-light .site-menu {
  text-shadow: 0 2px 10px rgba(255, 250, 238, 0.34);
}

.site-header.is-over-light::after {
  opacity: 1;
}

.site-header.is-over-dark-story {
  color: var(--ink);
}

.site-header.is-over-dark-story .brand-mark {
  filter:
    brightness(0)
    invert(1)
    drop-shadow(0 1px 2px rgba(15, 10, 6, 0.48))
    drop-shadow(0 8px 14px rgba(15, 10, 6, 0.32));
}

.site-header.is-over-dark-story .brand-name {
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 2px 14px var(--shadow);
}

.site-header.is-over-dark-story .site-menu {
  text-shadow: 0 1px 2px rgba(15, 10, 6, 0.54), 0 8px 14px rgba(15, 10, 6, 0.28);
}

.site-header.is-over-dark-story::after {
  opacity: 0;
}

.site-menu {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: 500 clamp(0.92rem, 1.5vw, 1.02rem) / 1 var(--font-body);
  text-shadow: 0 1px 2px rgba(15, 10, 6, 0.54), 0 8px 14px rgba(15, 10, 6, 0.28);
  cursor: pointer;
  transition: text-shadow 320ms ease;
}

.site-menu:focus-visible,
.brand:focus-visible,
.about-journey-link:focus-visible,
.service-link:focus-visible,
.hinoki-button:focus-visible {
  outline: 2px solid rgba(255, 249, 238, 0.86);
  outline-offset: 5px;
}

.menu-lines {
  position: relative;
  width: 24px;
  height: 12px;
}

.menu-lines::before,
.menu-lines::after {
  position: absolute;
  left: 0;
  width: 24px;
  height: 1px;
  background: currentColor;
  content: "";
}

.menu-lines::before {
  top: 2px;
}

.menu-lines::after {
  bottom: 2px;
}

.site-navigation {
  position: fixed;
  top: calc(max(18px, env(safe-area-inset-top)) + 52px);
  right: clamp(20px, 4.8vw, 58px);
  z-index: 999;
  width: min(370px, calc(100vw - 40px));
  max-height: calc(100dvh - var(--site-header-safe-height));
  overflow-y: auto;
  color: var(--service-ink);
  background:
    linear-gradient(180deg, rgba(248, 243, 233, 0.97), rgba(235, 227, 212, 0.95)),
    var(--background-wood-mist) center / cover no-repeat;
  border-top: 1px solid rgba(88, 66, 45, 0.2);
  box-shadow: 0 18px 42px rgba(44, 32, 22, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transform: translate3d(0, -8px, 0);
  transition:
    clip-path 620ms cubic-bezier(0.22, 0.72, 0.18, 1),
    opacity 360ms ease,
    transform 620ms cubic-bezier(0.22, 0.72, 0.18, 1),
    visibility 0s linear 620ms;
}

.site-navigation.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  clip-path: inset(0 0 0 0);
  transform: translate3d(0, 0, 0);
  transition-delay: 0s;
}

.site-navigation-inner {
  padding: 24px clamp(22px, 3vw, 34px) 28px;
}

.menu-list,
.menu-sublist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-list > li {
  border-bottom: 1px solid rgba(88, 66, 45, 0.14);
  opacity: 0;
  transform: translate3d(0, -5px, 0);
  transition:
    opacity 280ms ease calc(60ms + var(--menu-index) * 42ms),
    transform 420ms cubic-bezier(0.22, 0.72, 0.18, 1) calc(60ms + var(--menu-index) * 42ms);
}

.site-navigation.is-open .menu-list > li {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.menu-entry {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 15px 0 13px;
  color: inherit;
  font-family: var(--font-main);
  font-size: clamp(1.14rem, 1.35vw, 1.3rem);
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition: color 280ms ease, transform 280ms ease;
}

a.menu-entry::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: rgba(108, 70, 38, 0.58);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms ease;
}

a.menu-entry:hover,
.menu-sublist a:hover {
  color: rgba(108, 70, 38, 0.96);
  transform: translate3d(3px, 0, 0);
}

a.menu-entry:hover::after,
a.menu-entry:focus-visible::after {
  transform: scaleX(1);
}

.menu-entry:focus-visible,
.menu-sublist a:focus-visible {
  outline: 2px solid rgba(88, 66, 45, 0.58);
  outline-offset: 4px;
}

.menu-group-title {
  min-height: 56px;
  padding-bottom: 8px;
}

.menu-sublist {
  display: grid;
  gap: 2px;
  padding: 0 0 14px clamp(14px, 2vw, 24px);
}

.menu-sublist a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 0;
  color: rgba(53, 40, 29, 0.78);
  font-size: 0.94rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 280ms ease, transform 280ms ease;
}

body.is-menu-open .site-header {
  color: rgba(53, 40, 29, 0.86);
}

body.is-menu-open .site-header::after {
  opacity: 1;
}

body.is-menu-open .brand-mark {
  filter:
    brightness(0)
    sepia(26%)
    saturate(430%)
    hue-rotate(344deg)
    brightness(0.74)
    drop-shadow(0 5px 10px rgba(255, 250, 238, 0.32));
}

body.is-menu-open .brand-name {
  color: rgba(53, 40, 29, 0.72);
  text-shadow: 0 2px 10px rgba(255, 250, 238, 0.34);
}

body.is-menu-open .site-menu {
  text-shadow: 0 2px 10px rgba(255, 250, 238, 0.34);
}

body.is-menu-open .site-menu:focus-visible {
  outline: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: clip;
  isolation: isolate;
  color: var(--ink);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(18, 13, 8, 0.16), rgba(18, 13, 8, 0.03) 42%, rgba(18, 13, 8, 0.18)),
    linear-gradient(90deg, rgba(18, 13, 8, 0.13), transparent 34%, transparent 72%, rgba(18, 13, 8, 0.12));
  content: "";
  pointer-events: none;
}

.hero-photos,
.hero-slide,
.hero-slide img {
  position: absolute;
  inset: 0;
}

.hero-photos {
  z-index: 1;
  background: #33291f;
}

.hero-slide {
  margin: 0;
  opacity: 0;
  visibility: hidden;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(20, 14, 8, 0.12), rgba(20, 14, 8, 0.02) 46%, rgba(20, 14, 8, 0.12)),
    rgba(20, 14, 8, var(--scene-shade, 0.34));
  content: "";
  pointer-events: none;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(var(--from-x), var(--from-y), 0) scale(1);
}

.hero-slide:nth-child(1) img {
  object-position: 46% 52%;
}

.hero-slide:nth-child(2) img {
  object-position: 42% 52%;
}

.hero-slide:nth-child(3) img {
  object-position: 52% 56%;
}

.hero-slide:nth-child(4) img {
  object-position: 48% 50%;
}

.hero-copy {
  position: relative;
  z-index: 5;
  align-self: center;
  justify-self: center;
  width: min(920px, calc(100% - 96px));
  height: min(72svh, 640px);
  min-height: 500px;
  margin-top: 2svh;
  text-align: left;
  text-shadow: 0 3px 24px var(--shadow);
}

.hero-copy::before {
  position: absolute;
  top: 56%;
  left: 50%;
  z-index: 0;
  width: min(94vw, 980px);
  height: min(56svh, 500px);
  background: radial-gradient(ellipse at center, rgba(18, 13, 8, 0.44), rgba(18, 13, 8, 0.24) 44%, rgba(18, 13, 8, 0.08) 68%, transparent 78%);
  content: "";
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
}

.hero-kicker {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  opacity: 1;
  transform: translateY(-50%);
  transform-origin: left center;
  will-change: transform, opacity;
}

.hero-place {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(0.94rem, 1.18vw, 1.08rem);
  font-weight: 400;
  line-height: 1.72;
  opacity: 0;
  animation: copy-fade 1050ms ease forwards;
  text-shadow: 0 2px 14px rgba(17, 12, 8, 0.9);
}

.hero-copy .hero-main-title {
  margin: 0;
  color: rgba(255, 249, 238, 0.94);
  font-family: var(--font-main);
  font-size: clamp(3.24rem, 4.86vw, 5.15rem);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: 0;
  opacity: 0;
  white-space: nowrap;
  animation: copy-fade 1050ms ease 140ms forwards;
}

.hero-story {
  position: absolute;
  top: 55%;
  left: 50%;
  z-index: 2;
  width: min(calc(100vw - 160px), 1080px);
  min-height: 7.2em;
  color: rgba(255, 249, 238, 0.98);
  font-family: var(--font-body);
  font-size: clamp(2.36rem, 3.05vw, 3.55rem);
  font-weight: 500;
  line-height: 1.72;
  letter-spacing: 0;
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-50%, -44%, 0);
  will-change: opacity, visibility;
}

.story-layer {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  clip-path: inset(0 100% 0 0);
}

.story-layer.is-active {
  opacity: 1;
  visibility: visible;
  clip-path: inset(0 0% 0 0);
}

.story-line {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.story-empty {
  display: none;
}

.story-air {
  position: absolute;
  inset: -0.12em -0.9em;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255, 249, 238, 0.04) 28%, rgba(255, 249, 238, 0.2) 50%, rgba(255, 249, 238, 0.05) 72%, transparent);
  opacity: 0;
  transform: translate3d(-118%, 0, 0);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-mobile-story {
  display: none;
}

.hero-mobile-interface {
  display: none;
}

@keyframes copy-fade {
  to {
    opacity: 1;
  }
}

.about-section {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: min(760px, 86svh);
  padding: clamp(78px, 9vw, 130px) clamp(24px, 7vw, 110px);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(25, 19, 17, 0.79), rgba(25, 19, 17, 0.57)),
    url("assets/images/backgrounds/about-rain-wood-soft.webp") center / cover no-repeat;
}

.about-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(36px, 5vw, 80px);
  width: min(100%, 1280px);
  margin: auto;
}

.about-text {
  min-width: 0;
}

.about-team-photo {
  width: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 249, 238, 0.16);
  box-shadow: 0 24px 60px rgba(13, 10, 8, 0.3);
}

.about-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.58) contrast(1.05) brightness(0.84);
}

.about-eyebrow {
  margin: 0 0 clamp(10px, 1.4vw, 18px);
  color: rgba(255, 249, 238, 0.72);
  font-family: var(--font-main);
  font-size: clamp(1.2rem, 2vw, 1.72rem);
  font-weight: 500;
  line-height: 1;
}

.about-section h2 {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(2.7rem, 4vw, 4.5rem);
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}

.about-content {
  margin-top: clamp(28px, 3vw, 44px);
}

.about-content p {
  margin: 0;
  color: rgba(255, 249, 238, 0.8);
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  font-weight: 500;
  line-height: 1.9;
}

.about-copy-line {
  display: block;
  white-space: nowrap;
}

@media (min-width: 721px) and (max-width: 1050px) {
  .about-inner {
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
  }

  .about-team-photo {
    max-width: 720px;
  }
}

.about-journey-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: clamp(34px, 4vw, 52px);
  font-size: clamp(0.94rem, 1.2vw, 1.08rem);
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
}

/* 「木肌の艶」: 通常文字は残し、その上の文字と矢印だけを柔らかな光が横切ります。 */
.about-journey-label,
.about-journey-shine {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  white-space: nowrap;
}

.about-journey-label {
  color: rgba(255, 249, 238, 0.82);
}

.about-journey-shine {
  position: absolute;
  inset: 0;
  color: rgba(242, 224, 187, 0.86);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    100deg,
    transparent 42%,
    #000 48%,
    #000 52%,
    transparent 58%
  );
  mask-image: linear-gradient(
    100deg,
    transparent 42%,
    #000 48%,
    #000 52%,
    transparent 58%
  );
  -webkit-mask-position: 100% 50%;
  mask-position: 100% 50%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 200% 100%;
  mask-size: 200% 100%;
  animation: about-text-shine 6.4s linear infinite;
}

.about-journey-arrows {
  display: inline-block;
  white-space: nowrap;
}

@keyframes about-text-shine {
  from {
    -webkit-mask-position: 100% 50%;
    mask-position: 100% 50%;
  }

  to {
    -webkit-mask-position: -100% 50%;
    mask-position: -100% 50%;
  }
}

.services-section {
  position: relative;
  z-index: 1;
  overflow: visible;
  margin-top: -10svh;
  padding: calc(var(--service-section-padding) + 10svh) clamp(24px, 6vw, 88px) clamp(28px, 4vw, 56px);
  background:
    linear-gradient(180deg, rgba(245, 238, 226, 0.12), rgba(230, 226, 214, 0.12) 58%, rgba(219, 224, 211, 0.1));
  color: var(--service-ink);
}

.services-section::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 26svh;
  background: linear-gradient(180deg, rgba(245, 238, 226, 0), rgba(242, 235, 222, 0.56) 58%, rgba(236, 229, 216, 0.24));
  content: "";
  pointer-events: none;
}

.services-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(36px, 8vw, 120px);
  align-items: end;
  max-width: 1240px;
  margin: 0 auto clamp(82px, 12vw, 140px);
}

.services-intro h2 {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0;
}

.services-intro h2 span {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.services-intro p {
  max-width: 620px;
  margin: 0;
  color: var(--service-ink-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  font-weight: 400;
  line-height: 2.05;
}

.service-stack {
  position: relative;
  max-width: 1480px;
  margin: clamp(130px, 15vw, 220px) auto 0;
}

/* 次章へ続くため、末尾の固定カードを待機させる空のスクロール領域は置きません。 */

.service-panel {
  position: sticky;
  top: var(--service-sticky-top);
  z-index: 10;
  min-height: calc(100svh - var(--service-sticky-top));
  padding-bottom: clamp(56px, 8vw, 94px);
  background:
    linear-gradient(180deg, rgba(245, 238, 226, 0.34), rgba(229, 224, 211, 0.18)),
    var(--background-wood-mist) center / cover no-repeat;
}

.service-panel-second {
  top: calc(var(--service-sticky-top) + var(--service-heading-height));
  z-index: 11;
  /* 最後のカードは内容の高さで終え、次章の前に空白を残しません。 */
  min-height: 0;
}

/* カード内の見出し・写真・文章を一つの通常リンクにする。指の縦スクロールはブラウザへ任せる。 */
.service-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  touch-action: pan-y;
}

.service-card-link:focus-visible {
  outline: 2px solid rgba(53, 40, 29, 0.68);
  outline-offset: 4px;
}

.service-card-link .about-journey-label {
  color: rgba(53, 40, 29, 0.82);
}

.service-panel-heading {
  display: flex;
  align-items: center;
  height: var(--service-heading-height);
  min-height: var(--service-heading-height);
  border-top: 1px solid rgba(88, 66, 45, 0.14);
  border-bottom: 1px solid rgba(88, 66, 45, 0.16);
  background: rgba(242, 235, 222, 0.95);
}

.service-panel-heading p {
  margin: 0;
  color: rgba(53, 40, 29, 0.74);
  font-family: var(--font-main);
  font-size: clamp(1.18rem, 1.7vw, 1.48rem);
  font-weight: 500;
  line-height: 1.4;
}

.service-panel-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.26fr) minmax(320px, 0.74fr);
  gap: clamp(38px, 6vw, 92px);
  align-items: center;
  padding-top: clamp(24px, 3.6vw, 46px);
}

@media (min-width: 721px) {
  :root {
    --service-image-height: clamp(460px, 62svh, 700px);
  }

  body::before {
    background-attachment: fixed;
  }

}

.service-media {
  position: relative;
  min-width: 0;
  height: var(--service-image-height);
  margin: 0;
  overflow: hidden;
  background: rgba(54, 43, 31, 0.16);
}

.service-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 238, 0.18), transparent 34%, transparent 70%, rgba(56, 42, 28, 0.1)),
    linear-gradient(180deg, transparent 72%, rgba(40, 31, 22, 0.18));
  content: "";
  pointer-events: none;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-link .service-media img {
  transition: transform 500ms ease;
}

.service-card-link:hover .service-media img,
.service-card-link:focus-visible .service-media img {
  transform: scale(1.012);
}

.service-panel-table .service-media img {
  object-position: 50% 48%;
}

.service-panel-joinery .service-media img {
  width: 122%;
  max-width: none;
  margin-left: -22%;
  object-position: 70% 64%;
}

.service-copy {
  width: min(100%, var(--reading-measure));
  max-width: 520px;
  padding-inline: var(--reading-gutter);
  color: var(--service-ink);
}

.service-copy h3 {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(2rem, 3.35vw, 3.55rem);
  font-weight: 500;
  line-height: 1.36;
  letter-spacing: 0;
}

.service-copy h3 span {
  display: block;
  white-space: nowrap;
}

.service-copy p {
  margin: clamp(24px, 3.2vw, 36px) 0 0;
  color: var(--service-ink-soft);
  font-size: clamp(1rem, 1.26vw, 1.12rem);
  font-weight: 400;
  line-height: 2.05;
}

.service-copy-line {
  display: block;
  white-space: nowrap;
}

.service-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  margin-top: clamp(22px, 3vw, 34px);
  color: var(--service-ink);
  font-family: var(--font-body);
  font-size: 1.04rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

/* 既存の「木肌の艶」を再利用し、サービス内では元のリンクの余白を保つ。 */
.service-copy .service-works-link {
  margin-top: clamp(22px, 3vw, 34px);
}

.service-link:focus-visible {
  outline-color: rgba(53, 40, 29, 0.62);
}

.service-link::after {
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.46;
  transform: scaleX(1);
  transform-origin: left center;
  transition: transform 360ms ease, opacity 360ms ease;
}

.service-link span {
  transition: transform 360ms ease;
}

.service-link:hover::after {
  opacity: 0.64;
  transform: scaleX(1);
}

.service-link:hover span {
  transform: translate3d(4px, 0, 0);
}

@media (max-width: 720px) {
  :root {
    --site-header-safe-height: max(82px, calc(env(safe-area-inset-top) + 72px));
    --service-sticky-top: var(--site-header-safe-height);
    --service-heading-height: 56px;
    --service-section-padding: clamp(54px, 14vw, 76px);
    --service-mobile-breath-space: clamp(10px, 1.35svh, 14px);
    --service-mobile-bridge-space: clamp(30px, 8svh, 56px);
  }

  .home-page {
    --site-header-safe-height: max(76px, calc(env(safe-area-inset-top) + 66px));
    --service-sticky-top: var(--site-header-safe-height);
    --service-mobile-breath-space: clamp(6px, 1svh, 9px);
  }

  .site-header {
    min-height: var(--site-header-safe-height);
    padding: max(12px, env(safe-area-inset-top)) 18px 10px;
    opacity: 1;
    visibility: visible;
  }

  .home-page .site-header {
    padding-block: max(10px, env(safe-area-inset-top)) 8px;
  }

  .home-page .brand-mark {
    width: 39px;
  }

  .home-page .brand-name {
    font-size: 0.72rem;
  }

  .brand {
    gap: 4px;
    opacity: 0.9;
  }

  .brand-mark {
    width: clamp(34px, 10vw, 42px);
    opacity: 1;
  }

  .brand-name {
    font-size: clamp(0.66rem, 3.1vw, 0.74rem);
  }

  .site-menu {
    gap: 9px;
    font-size: 0.9rem;
  }

  html.is-mobile-menu-locked,
  body.is-mobile-menu-locked {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .site-navigation {
    top: 0;
    right: 0;
    width: 100%;
    max-height: none;
    height: 100svh;
    height: 100dvh;
    padding-top: var(--site-header-safe-height);
    overflow-y: auto;
    border-top: 0;
    box-shadow: none;
    opacity: 0.7;
    clip-path: none;
    transform: translate3d(0, 100%, 0);
    transition:
      opacity 480ms ease,
      transform 680ms cubic-bezier(0.22, 0.72, 0.18, 1),
      visibility 0s linear 680ms;
  }

  .site-navigation.is-open {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .site-navigation.is-closing {
    opacity: 0.72;
    visibility: visible;
    pointer-events: none;
    transform: translate3d(0, -100%, 0);
    transition:
      opacity 430ms ease,
      transform 680ms cubic-bezier(0.22, 0.72, 0.18, 1),
      visibility 0s linear 680ms;
  }

  .site-navigation-inner {
    display: grid;
    align-items: center;
    min-height: calc(100% - var(--site-header-safe-height));
    padding: 20px clamp(30px, 9vw, 48px) max(34px, env(safe-area-inset-bottom));
  }

  .menu-list {
    width: 100%;
  }

  .menu-entry {
    min-height: 60px;
    padding-block: 15px 13px;
    font-size: clamp(1.26rem, 5.5vw, 1.62rem);
  }

  .menu-sublist {
    grid-template-columns: 1fr;
    padding: 2px 0 15px 18px;
  }

  .menu-sublist a {
    min-height: 44px;
    font-size: 0.98rem;
  }

  body.is-menu-open .menu-lines::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }

  body.is-menu-open .menu-lines::after {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
  }

  .menu-lines::before,
  .menu-lines::after {
    transition: transform 420ms ease, top 420ms ease, bottom 420ms ease;
  }

  .hero {
    display: block;
    height: auto;
    min-height: 0;
    overflow: clip;
    isolation: auto;
  }

  .hero::before,
  .hero-photos,
  .hero-copy {
    display: none;
  }

  .hero-mobile-story {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    background: #33291f;
  }

  html.has-mobile-story.is-mobile-story-interface-active .hero-mobile-interface {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--ink);
    pointer-events: none;
  }

  .hero-mobile-interface > .site-header {
    position: relative;
    inset: auto;
    z-index: auto;
    width: 100%;
    flex: 0 0 auto;
    visibility: visible;
    opacity: 1;
    isolation: auto;
    transform: none;
  }

  .hero-mobile-interface > .quick-contact-bar {
    position: relative;
    inset: auto;
    z-index: 1100;
    display: flex;
    width: 100%;
    flex: 0 0 auto;
    pointer-events: auto;
  }

  .hero-mobile-scene {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 480px;
    overflow: clip;
    color: var(--ink);
    background: #33291f;
  }

  .hero-mobile-scene::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      radial-gradient(ellipse at 52% 42%, rgba(18, 13, 8, 0.1), rgba(18, 13, 8, 0.3) 76%),
      linear-gradient(180deg, rgba(18, 13, 8, 0.34), rgba(18, 13, 8, 0.25) 42%, rgba(18, 13, 8, 0.43));
    content: "";
    pointer-events: none;
  }

  .hero-mobile-scene > img {
    position: absolute;
    top: -6%;
    left: 0;
    width: 100%;
    height: 112%;
    max-width: none;
    object-fit: cover;
    transform-origin: 50% 45%;
    transform: scale(1.045);
  }

  .hero-mobile-scene:nth-child(1) > img {
    object-position: 35% 50%;
    /* 初期CSSとGSAPの構図を合わせ、読込直後の拡大を防ぐ。 */
  }

  .hero-mobile-scene:nth-child(2) > img {
    object-position: 45% 52%;
  }

  .hero-mobile-scene:nth-child(3) > img {
    object-position: 54% 50%;
  }

  .hero-mobile-scene:nth-child(4) > img {
    object-position: 50% 55%;
  }

  .hero-mobile-copy {
    position: relative;
    z-index: 2;
    width: calc(100% - 32px);
    margin: 0;
    padding: 12px 10px;
    color: rgba(255, 249, 238, 0.98);
    font-size: clamp(1.05rem, 5vw, 1.35rem);
    font-weight: 500;
    line-height: 1.9;
    text-shadow:
      0 1px 3px rgba(12, 8, 5, 0.96),
      0 7px 26px rgba(12, 8, 5, 0.78);
    background: none;
    will-change: opacity, -webkit-mask-position, mask-position;
  }

  .hero-mobile-line {
    display: block;
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
  }

  .hero-mobile-opening-copy {
    position: relative;
    z-index: 2;
    width: calc(100% - 32px);
  }

  .hero-mobile-opening-copy .hero-place {
    margin-bottom: 11px;
    color: var(--ink);
    font-size: clamp(0.78rem, 3.1vw, 0.88rem);
    line-height: 1.68;
  }

  .hero-mobile-opening-copy .hero-main-title {
    margin: 0;
    color: rgba(255, 249, 238, 0.94);
    font-family: var(--font-main);
    font-size: clamp(2.18rem, 9.2vw, 2.9rem);
    font-weight: 500;
    line-height: 1.24;
    white-space: nowrap;
    text-shadow: 0 3px 24px rgba(17, 12, 8, 0.62);
  }

  .services-section {
    overflow: visible;
    margin-top: -8svh;
    padding-top: calc(var(--service-mobile-bridge-space) + 8svh);
    padding-inline: 24px;
  }

  .about-section {
    z-index: 3;
    margin-top: 0;
    min-height: 0;
    padding: clamp(72px, 19vw, 96px) 24px clamp(66px, 18vw, 92px);
  }

  .about-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .about-team-photo {
    margin-top: 38px;
  }

  .about-eyebrow {
    margin-bottom: 10px;
    font-size: clamp(1rem, 4.7vw, 1.2rem);
  }

  .about-section h2 {
    font-size: clamp(1.8rem, 8.9vw, 3.2rem);
    line-height: 1.34;
    white-space: nowrap;
  }

  .about-content {
    margin-top: clamp(38px, 11vw, 54px);
  }

  .about-content p {
    font-size: 1rem;
    line-height: 1.9;
  }

  .about-copy-line {
    white-space: normal;
    text-wrap: pretty;
  }

  .about-journey-link {
    margin-top: clamp(34px, 9vw, 44px);
    font-size: clamp(0.9rem, 3.9vw, 1rem);
  }

  .services-section::before {
    height: 20svh;
  }

  .services-intro {
    display: block;
    position: relative;
    z-index: 4;
    margin-inline: -24px;
    margin-bottom: clamp(58px, 16vw, 82px);
    padding: clamp(54px, 15vw, 76px) 24px clamp(58px, 16vw, 82px);
    background: var(--paper);
  }

  .services-intro h2 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
    line-height: 1.18;
  }

  .services-intro p {
    margin-top: 24px;
    font-size: 1rem;
    line-height: 1.95;
  }

  .service-stack {
    position: relative;
    margin-top: clamp(58px, 16vw, 78px);
  }

  .service-panel-heading {
    padding-inline: 4px;
    background: rgba(242, 235, 222, 0.96);
  }

  .service-panel-heading p {
    font-size: clamp(1.12rem, 5.2vw, 1.34rem);
  }

  .service-panel {
    position: sticky;
    top: var(--service-sticky-top);
    min-height: calc(100svh - var(--service-sticky-top));
    padding-bottom: clamp(28px, 8vw, 40px);
    border-top: 0;
    background:
      linear-gradient(180deg, rgba(245, 238, 226, 0.36), rgba(229, 224, 211, 0.2)),
      var(--background-wood-mist) center / cover no-repeat;
  }

  .service-panel-second {
    top: calc(var(--service-sticky-top) + var(--service-heading-height));
    /* 指を離しても1枚目のリンクを押せる間を保ってから、2枚目を重ねます。 */
    margin-top: clamp(720px, 110svh, 900px);
    min-height: 0;
  }

  .service-panel-layout {
    display: block;
    padding-top: 0;
  }

  .service-media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .service-copy {
    max-width: none;
    padding-inline: 0;
    padding-top: clamp(18px, 5vw, 24px);
  }

  .service-copy h3 {
    font-size: clamp(1.78rem, 8vw, 2.28rem);
    line-height: 1.38;
  }

  .service-copy h3 span {
    display: block;
    white-space: nowrap;
  }

  .service-copy p {
    margin-top: 14px;
    font-size: clamp(0.94rem, 4vw, 1rem);
    line-height: 1.78;
  }

  .service-copy-line {
    display: inline;
    white-space: normal;
  }

  .service-link {
    margin-top: 12px;
  }

  .service-panel-joinery .service-media img {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    object-position: 52% 42%;
  }

  .service-panel-table .service-media img {
    object-position: 50% 56%;
  }
}

/* ヒノキマサ：表紙と、3つの詳細ページへつながる特集目次 */
.hinokimasa-section {
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
  isolation: isolate;
}

.hinoki-opening {
  position: relative;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: #8c765f;
  isolation: isolate;
}

.hinoki-opening::before,
.hinoki-opening::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.hinoki-opening::before {
  background:
    linear-gradient(180deg, rgba(244, 237, 223, 0.8), rgba(244, 237, 223, 0.06) 24%, transparent 42%),
    linear-gradient(90deg, rgba(26, 18, 12, 0.52), rgba(26, 18, 12, 0.1) 62%, rgba(26, 18, 12, 0.34));
}

.hinoki-opening::after {
  background: linear-gradient(180deg, transparent 66%, rgba(27, 19, 12, 0.44));
}

.hinoki-opening-visual,
.hinoki-opening-image {
  position: absolute;
  inset: 0;
}

.hinoki-opening-visual {
  margin: 0;
  overflow: hidden;
}

.hinoki-opening-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 58%;
  filter: saturate(0.82) brightness(0.88);
}

.hinoki-opening-light {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(112deg, transparent 18%, rgba(255, 250, 232, 0.08) 34%, rgba(255, 250, 232, 0.24) 48%, rgba(255, 250, 232, 0.05) 60%, transparent 76%);
  opacity: 0.36;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hinoki-opening-copy {
  position: absolute;
  top: 52%;
  left: clamp(34px, 8vw, 132px);
  z-index: 3;
  width: min(800px, calc(100% - clamp(68px, 16vw, 264px)));
  color: rgba(255, 249, 238, 0.96);
  text-shadow: 0 3px 26px rgba(24, 16, 10, 0.58);
  transform: translateY(-50%);
}

.hinoki-opening-lead,
.hinoki-opening-support {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
}

.hinoki-opening-lead {
  color: rgba(255, 249, 238, 0.9);
  font-size: clamp(1.12rem, 1.65vw, 1.48rem);
  line-height: 1.86;
}

.hinoki-opening-lead span,
.hinoki-opening-support span {
  display: block;
}

.hinoki-opening-name {
  margin: clamp(24px, 3vw, 38px) 0 8px;
  color: rgba(255, 249, 238, 0.72);
  font-size: clamp(0.78rem, 0.9vw, 0.94rem);
  letter-spacing: 0.24em;
  line-height: 1;
}

.hinoki-opening-intro h2 {
  margin: 0 0 clamp(28px, 3.2vw, 42px);
  font-family: var(--font-main);
  font-size: clamp(4.6rem, 7.2vw, 7.8rem);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.hinoki-opening-support {
  color: rgba(255, 249, 238, 0.82);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.92;
}

.hinoki-toc {
  position: relative;
  min-height: 220svh;
  overflow: hidden;
  color: rgba(255, 249, 238, 0.94);
  background: #5a402d;
  isolation: isolate;
}

.hinoki-toc-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    linear-gradient(rgba(88, 59, 38, 0.52), rgba(55, 36, 24, 0.7)),
    url("assets/images/hinokimasa/production-bridge-poster.webp") center / cover no-repeat;
}

.hinoki-toc-background::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(236, 191, 130, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(108, 70, 43, 0.58), rgba(66, 41, 26, 0.72));
  content: "";
  pointer-events: none;
}

.hinoki-toc-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
  filter: sepia(0.52) saturate(1.05) brightness(0.72) contrast(1.02);
  transform: scale(1.035);
}

@media (max-width: 720px) {
  .hinoki-toc-video {
    display: none;
  }
}

.hinoki-toc-list {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-inline: auto;
  padding: clamp(34px, 4vw, 64px) clamp(34px, 4vw, 64px) clamp(110px, 13vw, 190px);
}

.hinoki-toc-item {
  width: min(1120px, calc(100% - clamp(70px, 8vw, 120px)));
  margin: 0;
  padding-block: clamp(96px, 11vw, 168px);
}

.hinoki-toc-item-right {
  margin-left: auto;
  margin-right: clamp(60px, 6vw, 100px);
}

.hinoki-toc-item-left {
  margin-left: clamp(60px, 6vw, 100px);
}

.hinoki-toc-item:first-child {
  padding-top: clamp(52px, 6vw, 84px);
}

.hinoki-toc-link {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr);
  gap: clamp(82px, 10vw, 152px);
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.hinoki-toc-item-right .hinoki-toc-photo {
  order: 2;
}

.hinoki-toc-item-right .hinoki-toc-copy {
  order: 1;
}

.hinoki-toc-photo {
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  background: rgba(14, 20, 17, 0.7);
  box-shadow: 0 28px 58px rgba(9, 14, 11, 0.28);
  transform-origin: center;
  will-change: transform, box-shadow;
}

.hinoki-toc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) brightness(0.86);
  transform: scale(1.015);
  transition: filter 420ms ease;
  will-change: transform;
}

.hinoki-toc-item:nth-child(1) .hinoki-toc-photo img {
  object-position: 54% 57%;
}

.hinoki-toc-item:nth-child(2) .hinoki-toc-photo img {
  object-position: 66% 52%;
}

.hinoki-toc-item:nth-child(3) .hinoki-toc-photo img {
  object-position: 48% 52%;
}

.hinoki-toc-copy {
  max-width: 390px;
  text-shadow: 0 3px 22px rgba(7, 11, 9, 0.5);
}

.hinoki-toc-copy h3 {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(2rem, 3vw, 3.35rem);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: 0.02em;
}

.hinoki-toc-title span,
.hinoki-toc-summary span {
  display: block;
}

.hinoki-toc-summary span {
  white-space: nowrap;
}

.hinoki-toc-item:nth-child(3) .hinoki-toc-copy h3 {
  font-size: clamp(1.82rem, 2.2vw, 2.45rem);
}

.hinoki-toc-title-spec span {
  white-space: nowrap;
}

.hinoki-toc-copy p {
  margin: clamp(24px, 3vw, 38px) 0 0;
  color: rgba(255, 249, 238, 0.74);
  font-size: clamp(0.96rem, 1.06vw, 1.05rem);
  line-height: 2.05;
}

.hinoki-toc-view {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: clamp(28px, 3vw, 42px);
  color: rgba(255, 249, 238, 0.84);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 249, 238, 0.5);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  opacity: 0.86;
  transform: translateX(0);
  transition: opacity 360ms ease, transform 360ms ease;
}

.hinoki-toc-link:hover .hinoki-toc-photo img {
  filter: saturate(0.86) brightness(0.92);
}

.hinoki-toc-link:hover .hinoki-toc-view,
.hinoki-toc-link:focus-visible .hinoki-toc-view {
  opacity: 1;
  transform: translateX(5px);
}

.hinoki-toc-link:focus-visible {
  outline: 2px solid rgba(255, 249, 238, 0.86);
  outline-offset: 10px;
}

.preparing-page .site-header {
  color: rgba(53, 40, 29, 0.86);
  background:
    linear-gradient(180deg, rgba(247, 240, 228, 0.94), rgba(239, 232, 218, 0.84)),
    var(--background-wood-mist) center / cover no-repeat;
  border-bottom: 1px solid rgba(88, 66, 45, 0.08);
}

.preparing-page .site-header::after {
  opacity: 0;
}

.preparing-page .brand-mark {
  filter:
    brightness(0)
    sepia(26%)
    saturate(430%)
    hue-rotate(344deg)
    brightness(0.74)
    drop-shadow(0 5px 10px rgba(255, 250, 238, 0.32));
}

.preparing-page .brand-name {
  color: rgba(53, 40, 29, 0.72);
  text-shadow: 0 2px 10px rgba(255, 250, 238, 0.34);
}

.preparing-main {
  color: var(--service-ink);
}

.preparing-section {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: calc(var(--site-header-safe-height) + 64px) clamp(24px, 8vw, 120px) 80px;
  border-bottom: 1px solid rgba(88, 66, 45, 0.12);
  background:
    linear-gradient(180deg, rgba(249, 244, 234, 0.48), rgba(231, 224, 211, 0.2)),
    var(--background-wood-mist) center / cover no-repeat;
  scroll-margin-top: var(--site-header-safe-height);
}

.preparing-copy {
  width: min(100%, 720px);
}

.preparing-label {
  margin: 0 0 26px;
  color: rgba(53, 40, 29, 0.58);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.preparing-copy h1 {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 1.38;
}

.preparing-copy p:not(.preparing-label) {
  margin: 36px 0 0;
  color: var(--service-ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 2;
}

.preparing-copy a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 42px;
  color: rgba(53, 40, 29, 0.76);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 40, 29, 0.34);
}

.preparing-copy a:hover {
  color: rgba(53, 40, 29, 1);
}

@media (max-width: 720px) {
  .hinoki-opening {
    min-height: 100svh;
    width: calc(100% + 48px);
    margin-inline: -24px;
  }

  .hinoki-opening::before {
    background:
      linear-gradient(180deg, rgba(244, 237, 223, 0.72), rgba(244, 237, 223, 0.04) 20%, transparent 38%),
      linear-gradient(90deg, rgba(26, 18, 12, 0.52), rgba(26, 18, 12, 0.1) 74%, rgba(26, 18, 12, 0.28));
  }

  .hinoki-opening-image {
    object-position: 55% 58%;
  }

  .hinoki-opening-copy {
    top: 50%;
    left: 24px;
    width: calc(100% - 48px);
  }

  .hinoki-opening-lead {
    font-size: clamp(1rem, 4.45vw, 1.16rem);
    line-height: 1.84;
  }

  .hinoki-opening-intro h2 {
    margin-bottom: 28px;
    font-size: clamp(3.3rem, 14.6vw, 4.45rem);
  }

  .hinoki-opening-name {
    margin-top: 24px;
    font-size: 0.72rem;
  }

  .hinoki-opening-support span {
    display: inline;
  }

  .hinoki-opening-support {
    font-size: clamp(0.96rem, 4.2vw, 1.06rem);
    line-height: 1.88;
  }

  .hinoki-toc {
    width: calc(100% + 48px);
    min-height: 0;
    margin-inline: -24px;
  }

  .hinoki-toc-list {
    width: 100%;
    padding: 44px 0 92px;
  }

  .hinoki-toc-item,
  .hinoki-toc-item-right {
    width: 100%;
    margin: 0;
    padding: 48px 0 52px;
  }

  .hinoki-toc-item-left {
    margin-left: 0;
  }

  .hinoki-toc-item:first-child {
    padding-top: 30px;
  }

  .hinoki-toc-link {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .hinoki-toc-item-right .hinoki-toc-photo,
  .hinoki-toc-item-right .hinoki-toc-copy {
    order: initial;
  }

  .hinoki-toc-photo {
    width: 100%;
    aspect-ratio: 3 / 2;
    box-shadow: 0 18px 36px rgba(9, 14, 11, 0.24);
  }

  .hinoki-toc-copy {
    max-width: none;
    padding: 34px 24px 0;
  }

  .hinoki-toc-copy h3 {
    font-size: clamp(1.9rem, 8.9vw, 2.7rem);
    line-height: 1.46;
  }

  .hinoki-toc-title span {
    white-space: nowrap;
  }

  .hinoki-toc-title-story {
    font-size: clamp(1.86rem, 8.5vw, 2.55rem);
  }

  .hinoki-toc-item:nth-child(3) .hinoki-toc-copy .hinoki-toc-title-spec {
    font-size: clamp(1.7rem, 7.7vw, 2.3rem);
  }

  .hinoki-toc-copy p {
    margin-top: 24px;
    font-size: clamp(0.88rem, 3.8vw, 0.98rem);
    line-height: 1.9;
  }

  .hinoki-toc-view {
    margin-top: 28px;
  }
}


/* 施工実績は事業紹介の外に置く通常の章。写真・陰影・呼吸はworks.cssを共用します。 */
.home-works {
  position: relative;
  color: var(--service-ink);
}

.home-works .works-hero {
  /* svhで高さを先に確保。Safariのバーや画像読込で章の位置を動かしません。 */
  height: clamp(480px, 82svh, 860px);
}

.home-works .works-hero-copy {
  /* 高さの小さいスマホでも、固定ヘッダーと章タイトルが重ならない余白です。 */
  padding-top: clamp(64px, 6vw, 88px);
}

.home-works .works-hero-copy h2 {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: clamp(3rem, 5.5vw, 5.4rem);
  letter-spacing: .08em;
  line-height: 1.4;
}

.home-works-action {
  padding-block: clamp(24px, 3.5vw, 48px);
}

.home-works-action a {
  color: inherit;
  padding-block: 8px;
  border-bottom: 1px solid var(--service-line);
  font-size: 1.0625rem;
}

.home-works-action a:focus-visible {
  outline: 2px solid var(--wood-deep);
  outline-offset: 6px;
}

@media (max-width: 720px) {
  .home-works .works-hero-copy h2 {
    font-size: clamp(2.6rem, 10vw, 3rem);
  }
}

@media (max-width: 380px) {
  .hero-mobile-opening-copy {
    width: calc(100% - 44px);
  }

  .hero-mobile-opening-copy .hero-main-title {
    font-size: clamp(2rem, 8.6vw, 2.24rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .about-journey-shine {
    display: none;
  }

  .hinoki-opening {
    min-height: auto;
    padding: clamp(120px, 16vw, 180px) clamp(24px, 8vw, 120px);
  }

  .hinoki-opening-copy {
    position: relative;
    top: auto;
    left: auto;
    width: min(720px, 100%);
    transform: none;
  }

}

/* JavaScriptの準備完了後だけ、4場面を同じ画面に重ねる。 */
@media (max-width: 720px) {
  html.has-mobile-story .hero-mobile-story {
    height: var(--mobile-story-height, 100svh);
    min-height: 480px;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
  }

  html.has-mobile-story .hero-mobile-story.is-first-scene,
  html.has-mobile-story .hero-mobile-story.is-final-scene {
    overflow: clip;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
  }

  html.has-mobile-story .hero-mobile-scene {
    position: absolute;
    inset: 0;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  html.has-mobile-story .hero-mobile-scene.is-active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  html.has-mobile-story .hero-mobile-copy {
    opacity: 1;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 42%, transparent 58%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 42%, transparent 58%, transparent 100%);
    -webkit-mask-position: 100% 0%;
    mask-position: 100% 0%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 250% 100%;
    mask-size: 250% 100%;
  }
}

.quick-contact-bar,
.quick-contact-spacer {
  display: none;
}

@media (max-width: 720px) {
  .quick-contact-spacer {
    display: block;
    height: calc(60px + env(safe-area-inset-bottom));
  }

  .quick-contact-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1100;
    display: flex;
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
    background: rgba(245, 238, 226, 0.96);
    border-top: 1px solid rgba(88, 66, 45, 0.2);
    box-shadow: 0 -8px 24px rgba(28, 20, 14, 0.14);
  }

  .quick-contact-link {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: baseline;
    gap: 12px;
    min-height: 44px;
    padding: 6px 14px;
    color: rgba(255, 250, 240, 0.98);
    background: var(--wood-deep);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.84rem;
    text-decoration: none;
  }

  .quick-contact-link strong {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.04em;
  }

  .quick-contact-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -5px;
  }
}
