:root {
  --detail-paper: #f1eadf;
  --detail-ink: #3f3024;
  --detail-ink-soft: rgba(63, 48, 36, 0.72);
  --detail-line: rgba(75, 56, 39, 0.16);
  --detail-background-wood-mist: url("../assets/images/backgrounds/suehiro-background-wood-mist.webp");
}

.hinoki-detail-page {
  color: var(--detail-ink);
  background: var(--detail-paper);
}

.hinoki-detail-page .site-header {
  color: rgba(58, 43, 31, 0.88);
}

.hinoki-detail-page .site-header::after {
  opacity: 1;
}

.hinoki-detail-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));
}

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

.hinoki-detail-page .site-menu {
  text-shadow: 0 2px 10px rgba(255, 250, 238, 0.34);
}

.hinoki-detail-main {
  overflow: clip;
  background:
    linear-gradient(180deg, rgba(250, 246, 237, 0.48), rgba(234, 226, 213, 0.16)),
    var(--detail-background-wood-mist) center / cover fixed;
}

.hinoki-detail-top-link,
.hinoki-detail-bottom-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(63, 48, 36, 0.7);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.hinoki-detail-top-link:hover,
.hinoki-detail-bottom-link:hover {
  color: rgba(63, 48, 36, 0.96);
}

.hinoki-detail-top-link:focus-visible,
.hinoki-detail-bottom-link:focus-visible,
.hinoki-detail-contact-button:focus-visible {
  outline: 2px solid rgba(82, 61, 42, 0.74);
  outline-offset: 5px;
}

.hinoki-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  min-height: 82svh;
  padding-top: var(--site-header-safe-height);
  border-bottom: 1px solid var(--detail-line);
}

.hinoki-detail-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 660px);
  padding: clamp(52px, 6vw, 96px) clamp(34px, 6vw, 96px);
}

.hinoki-detail-hero-copy .hinoki-detail-top-link {
  align-self: flex-start;
  margin-bottom: clamp(56px, 8vw, 104px);
}

.hinoki-detail-eyebrow {
  margin: 0 0 20px;
  color: rgba(63, 48, 36, 0.48);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
}

.hinoki-detail-hero h1 {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(2.6rem, 4vw, 4.8rem);
  font-weight: 500;
  line-height: 1.34;
}

.hinoki-detail-story .hinoki-detail-hero h1 span {
  display: block;
  white-space: nowrap;
}

.hinoki-detail-about .hinoki-detail-hero h1 {
  font-size: clamp(2.4rem, 3.5vw, 4.2rem);
  white-space: nowrap;
}

.hinoki-detail-story .hinoki-detail-hero h1 {
  font-size: clamp(2.5rem, 3.5vw, 4.1rem);
}

.hinoki-detail-spec .hinoki-detail-hero h1 span,
.hinoki-detail-about #scarcity-title span {
  display: block;
  white-space: nowrap;
}

.hinoki-detail-spec .hinoki-detail-hero h1 {
  font-size: clamp(2.2rem, 3.3vw, 3.85rem);
}

.hinoki-detail-hero-lead {
  margin: clamp(30px, 4vw, 46px) 0 0;
  color: var(--detail-ink-soft);
  font-size: clamp(1rem, 1.18vw, 1.14rem);
  line-height: 2;
}

.hinoki-detail-hero-lead span,
.hinoki-detail-turning-copy span {
  display: block;
}

.hinoki-detail-hero-media {
  min-height: 640px;
  margin: 0;
  overflow: hidden;
  background: #94816d;
}

.hinoki-detail-hero-media img,
.hinoki-detail-hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) brightness(0.88);
}

.hinoki-detail-about .hinoki-detail-hero-media img {
  object-position: 54% 58%;
}

.hinoki-detail-story .hinoki-detail-hero-media img {
  object-position: 66% 52%;
}

.hinoki-detail-spec .hinoki-detail-hero-media img {
  object-position: 48% 52%;
}

.hinoki-detail-spec .hinoki-detail-hero-media .hinoki-detail-hero-image-04 {
  object-position: 50% 56%;
  transform: scale(1.28);
  transform-origin: 35% 58%;
}

.hinoki-detail-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: clamp(52px, 8vw, 128px);
  align-items: center;
  width: min(1320px, calc(100% - clamp(68px, 10vw, 160px)));
  min-height: min(880px, 90svh);
  margin-inline: auto;
  padding-block: clamp(88px, 10vw, 154px);
  border-bottom: 1px solid var(--detail-line);
}

/* PCでは戻るリンクを通常の文書の流れから外し、表紙本文を写真の中央に保ちます。 */
@media (min-width: 721px) {
  .hinoki-detail-hero {
    height: clamp(600px, 72svh, 760px);
    min-height: 0;
  }

  .hinoki-detail-hero-media {
    min-height: 0;
  }

  .hinoki-detail-about .hinoki-detail-section {
    min-height: 0;
    gap: clamp(48px, 5vw, 72px);
    padding-block: clamp(56px, 4.5vw, 72px);
  }

  .hinoki-detail-hero-copy {
    position: relative;
    justify-content: center;
  }

  .hinoki-detail-hero-copy .hinoki-detail-top-link {
    position: absolute;
    top: clamp(42px, 6svh, 68px);
    left: clamp(34px, 6vw, 96px);
    margin-bottom: 0;
  }
}

/* 2列表示になる中間幅では、長い見出しが写真側へはみ出さない大きさにします。 */
@media (min-width: 721px) and (max-width: 1099px) {
  .hinoki-detail-hero-copy {
    padding-inline: clamp(26px, 4vw, 44px);
  }

  .hinoki-detail-hero-copy .hinoki-detail-top-link {
    left: clamp(26px, 4vw, 44px);
  }

  .hinoki-detail-about .hinoki-detail-hero h1 {
    font-size: clamp(1.65rem, 3.6vw, 2rem);
    white-space: normal;
  }

  .hinoki-detail-story .hinoki-detail-hero h1 {
    font-size: clamp(1.65rem, 3.6vw, 2rem);
  }

  .hinoki-detail-spec .hinoki-detail-hero h1 {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
  }

  .hinoki-detail-story .hinoki-detail-hero h1 span,
  .hinoki-detail-spec .hinoki-detail-hero h1 span {
    white-space: normal;
  }

  .hinoki-detail-hero-lead {
    font-size: 0.92rem;
  }
}

@media (min-width: 1100px) {
  .hinoki-detail-hero-lead span,
  .hinoki-detail-turning-copy span {
    white-space: nowrap;
  }
}

.hinoki-detail-section.is-media-first .hinoki-detail-media {
  order: 1;
}

.hinoki-detail-grain-diagrams {
  order: 1;
  display: grid;
  gap: 20px;
}

.hinoki-detail-grain-diagrams .hinoki-detail-media {
  padding: clamp(16px, 2vw, 24px);
}

.hinoki-detail-grain-diagrams .hinoki-detail-media figcaption {
  display: grid;
  gap: 3px;
}

.hinoki-detail-grain-diagrams .hinoki-detail-media figcaption strong {
  color: rgba(63, 48, 36, 0.9);
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 500;
}

.hinoki-detail-section.is-media-first .hinoki-detail-copy {
  order: 2;
}

.hinoki-detail-copy {
  width: min(100%, 610px);
}

.hinoki-detail-copy h2,
.hinoki-detail-full h2,
.hinoki-detail-contact h2 {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(2.12rem, 3.25vw, 4rem);
  font-weight: 500;
  line-height: 1.42;
}

.hinoki-detail-copy p,
.hinoki-detail-full p,
.hinoki-detail-contact p {
  margin: clamp(20px, 2.5vw, 30px) 0 0;
  color: var(--detail-ink-soft);
  font-size: clamp(1rem, 1.08vw, 1.1rem);
  line-height: 2;
}

.hinoki-detail-media {
  margin: 0;
  padding: clamp(22px, 3.2vw, 44px);
  background: rgba(255, 252, 244, 0.68);
  border: 1px solid var(--detail-line);
}

.hinoki-detail-media img {
  width: 100%;
  max-height: 590px;
  object-fit: contain;
}

.hinoki-detail-media.is-photo {
  height: clamp(480px, 66svh, 720px);
  padding: 0;
  overflow: hidden;
  background: #9c8871;
}

.hinoki-detail-media.is-photo img {
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.hinoki-detail-media figcaption {
  margin-top: 18px;
  color: rgba(63, 48, 36, 0.56);
  font-size: 0.88rem;
  line-height: 1.72;
  text-align: center;
}

.hinoki-detail-feature-list,
.hinoki-detail-context-list {
  margin: clamp(34px, 4vw, 52px) 0 0;
  padding: 0;
  list-style: none;
}

.hinoki-detail-feature-list li,
.hinoki-detail-context-list li {
  padding: 17px 0;
  border-top: 1px solid var(--detail-line);
  color: rgba(63, 48, 36, 0.78);
  font-size: clamp(0.98rem, 1.08vw, 1.08rem);
  line-height: 1.72;
}

.hinoki-detail-feature-list li strong {
  display: block;
  margin-bottom: 4px;
  color: rgba(63, 48, 36, 0.94);
  font-family: var(--font-main);
  font-size: 1.2em;
  font-weight: 500;
}

.hinoki-detail-full {
  width: min(1040px, calc(100% - clamp(68px, 10vw, 160px)));
  margin-inline: auto;
  padding-block: clamp(96px, 11vw, 168px);
  border-bottom: 1px solid var(--detail-line);
}

.hinoki-detail-context-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(46px, 6vw, 76px);
}

.hinoki-detail-context-list li {
  display: flex;
  align-items: center;
  min-height: 90px;
  padding-inline: clamp(12px, 2vw, 24px);
  border-right: 1px solid var(--detail-line);
}

.hinoki-detail-context-list li:last-child {
  border-right: 0;
}

.hinoki-detail-dark {
  position: relative;
  min-height: 82svh;
  overflow: hidden;
  color: rgba(255, 249, 238, 0.94);
  background: #493d32;
  isolation: isolate;
}

.hinoki-detail-dark::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(25, 18, 12, 0.84), rgba(25, 18, 12, 0.36) 72%, rgba(25, 18, 12, 0.58));
  content: "";
}

.hinoki-detail-dark video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.58) brightness(0.6);
}

.hinoki-detail-dark .hinoki-detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 82svh;
  margin-left: clamp(34px, 8vw, 128px);
  padding-block: clamp(88px, 10vw, 150px);
}

.hinoki-detail-dark .hinoki-detail-copy p {
  color: rgba(255, 249, 238, 0.78);
}

.hinoki-detail-specification {
  width: min(1220px, calc(100% - clamp(68px, 10vw, 160px)));
  margin-inline: auto;
  padding-block: clamp(96px, 11vw, 168px);
  border-bottom: 1px solid var(--detail-line);
}

.hinoki-detail-specification-heading {
  max-width: 720px;
}

.hinoki-detail-specification h2,
.hinoki-detail-process h2 {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(2.12rem, 3.25vw, 4rem);
  font-weight: 500;
  line-height: 1.42;
}

.hinoki-detail-specification-heading p,
.hinoki-detail-spec-note {
  color: var(--detail-ink-soft);
  font-size: 1rem;
  line-height: 1.9;
}

.hinoki-detail-specification-heading p {
  margin: 22px 0 0;
}

.hinoki-detail-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(46px, 6vw, 74px);
}

.hinoki-detail-spec-card {
  padding: clamp(26px, 3.5vw, 42px);
  background: rgba(255, 252, 244, 0.58);
  border: 1px solid var(--detail-line);
}

.hinoki-detail-spec-card h3 {
  margin: 0 0 24px;
  font-family: var(--font-main);
  font-size: clamp(1.42rem, 2vw, 1.9rem);
  font-weight: 500;
}

.hinoki-detail-spec-card dl {
  margin: 0;
}

.hinoki-detail-spec-card dl > div {
  display: grid;
  grid-template-columns: 4em minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--detail-line);
}

.hinoki-detail-spec-card dt,
.hinoki-detail-spec-card dd {
  margin: 0;
}

.hinoki-detail-spec-card dt,
.hinoki-detail-spec-card .unit {
  color: rgba(63, 48, 36, 0.55);
  font-size: 0.86rem;
}

.hinoki-detail-spec-card .value {
  color: rgba(63, 48, 36, 0.9);
  font-family: var(--font-main);
  font-size: clamp(1.28rem, 1.8vw, 1.72rem);
  white-space: nowrap;
}

.hinoki-detail-spec-note {
  margin: 28px 0 0;
}

.hinoki-detail-process {
  width: min(1220px, calc(100% - clamp(68px, 10vw, 160px)));
  margin-inline: auto;
  padding-block: clamp(96px, 11vw, 168px);
  border-bottom: 1px solid var(--detail-line);
}

.hinoki-detail-process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 34px);
  margin-top: clamp(46px, 6vw, 72px);
}

.hinoki-detail-process-item {
  display: grid;
  grid-template-rows: minmax(300px, 42svh) auto;
  margin: 0;
  background: rgba(255, 252, 244, 0.54);
  border: 1px solid var(--detail-line);
}

.hinoki-detail-process-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 58%;
}

.hinoki-detail-process-placeholder {
  display: grid;
  place-items: center;
  color: rgba(63, 48, 36, 0.48);
  background:
    linear-gradient(135deg, rgba(255, 252, 244, 0.66), rgba(218, 207, 188, 0.46)),
    var(--detail-background-wood-mist) center / cover;
  text-align: center;
}

.hinoki-detail-process-item figcaption {
  padding: 18px 20px;
  color: rgba(63, 48, 36, 0.72);
  line-height: 1.6;
}

.hinoki-detail-contact {
  padding: clamp(104px, 12vw, 180px) clamp(34px, 8vw, 128px);
  text-align: center;
  background: rgba(218, 208, 191, 0.38);
}

.hinoki-detail-contact p {
  max-width: 660px;
  margin-inline: auto;
}

.hinoki-detail-contact-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 56px;
  margin-top: 38px;
  padding: 0 28px;
  color: rgba(255, 250, 240, 0.96);
  background: rgba(62, 48, 36, 0.94);
  font-size: 1rem;
  text-decoration: none;
}

.hinoki-detail-footer-nav {
  display: flex;
  justify-content: center;
  padding: 56px 24px 80px;
  background: rgba(241, 234, 223, 0.94);
}

@media (max-width: 720px) {
  .hinoki-detail-hero-lead span,
  .hinoki-detail-turning-copy span {
    display: inline;
  }

  .hinoki-detail-about .hinoki-detail-hero-lead span {
    display: block;
    white-space: nowrap;
  }

  .hinoki-detail-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-top: var(--site-header-safe-height);
  }

  .hinoki-detail-hero-media {
    order: 1;
    width: 100%;
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .hinoki-detail-hero-copy {
    order: 2;
    width: 100%;
    padding: 42px 24px 76px;
  }

  .hinoki-detail-hero-copy .hinoki-detail-top-link {
    margin-bottom: 42px;
  }

  .hinoki-detail-hero h1 {
    font-size: clamp(2.2rem, 10.4vw, 3.2rem);
  }

  .hinoki-detail-spec .hinoki-detail-hero h1 {
    font-size: clamp(1.95rem, 8.6vw, 2.5rem);
  }

  .hinoki-detail-about .hinoki-detail-hero h1 {
    font-size: clamp(2rem, 9vw, 2.65rem);
  }

  .hinoki-detail-section,
  .hinoki-detail-section.is-media-first {
    display: flex;
    flex-direction: column;
    gap: 36px;
    width: 100%;
    min-height: 0;
    padding: 76px 24px;
  }

  .hinoki-detail-section .hinoki-detail-copy,
  .hinoki-detail-section.is-media-first .hinoki-detail-copy {
    order: 1;
    width: 100%;
  }

  .hinoki-detail-section .hinoki-detail-media,
  .hinoki-detail-section.is-media-first .hinoki-detail-media {
    order: 2;
    width: 100%;
  }

  .hinoki-detail-section .hinoki-detail-grain-diagrams,
  .hinoki-detail-section.is-media-first .hinoki-detail-grain-diagrams {
    order: 2;
    width: 100%;
  }

  .hinoki-detail-copy h2,
  .hinoki-detail-full h2,
  .hinoki-detail-contact h2,
  .hinoki-detail-specification h2,
  .hinoki-detail-process h2 {
    font-size: clamp(2rem, 9.2vw, 2.8rem);
  }

  .hinoki-detail-copy p,
  .hinoki-detail-full p,
  .hinoki-detail-contact p {
    font-size: 1rem;
    line-height: 1.96;
  }

  .hinoki-detail-media {
    padding: 16px;
  }

  .hinoki-detail-media.is-photo {
    height: auto;
    aspect-ratio: 3 / 2;
    padding: 0;
  }

  .hinoki-detail-full,
  .hinoki-detail-specification,
  .hinoki-detail-process {
    width: 100%;
    padding: 82px 24px;
  }

  .hinoki-detail-context-list {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .hinoki-detail-context-list li {
    min-height: 0;
    padding-inline: 0;
    border-right: 0;
  }

  .hinoki-detail-dark,
  .hinoki-detail-dark .hinoki-detail-copy {
    min-height: 74svh;
  }

  .hinoki-detail-dark .hinoki-detail-copy {
    width: 100%;
    margin-left: 0;
    padding: 92px 24px;
  }

  .hinoki-detail-specs,
  .hinoki-detail-process-list {
    grid-template-columns: 1fr;
  }

  .hinoki-detail-process-list {
    gap: 32px;
  }

  .hinoki-detail-process-item {
    grid-template-rows: minmax(300px, 52svh) auto;
  }

  .hinoki-detail-contact {
    padding: 92px 24px;
  }

  .hinoki-detail-contact h2 {
    font-size: clamp(1.85rem, 8vw, 2.6rem);
  }

  .hinoki-detail-contact-button {
    width: min(100%, 350px);
  }

  .hinoki-detail-spec .hinoki-detail-hero-copy {
    padding-bottom: 28px;
  }

  .hinoki-detail-about .hinoki-detail-hero-copy,
  .hinoki-detail-story .hinoki-detail-hero-copy {
    padding-bottom: 38px;
  }

  .hinoki-detail-about .hinoki-detail-section,
  .hinoki-detail-story .hinoki-detail-section {
    gap: 28px;
    padding-block: 38px;
  }

  .hinoki-detail-story .hinoki-detail-full {
    padding-block: 41px;
  }

  .hinoki-detail-story #context-title {
    font-size: clamp(1.62rem, 7vw, 1.9rem);
    line-height: 1.48;
  }

  .hinoki-detail-story #context-title span {
    display: block;
    white-space: nowrap;
  }

  .hinoki-detail-story #context-title br {
    display: none;
  }

  .hinoki-detail-about .hinoki-detail-media {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    height: auto;
    min-height: 0;
  }

  .hinoki-detail-about .hinoki-detail-media img {
    height: auto;
    max-height: none;
  }

  .hinoki-detail-about .hinoki-detail-media figcaption span {
    display: block;
    white-space: nowrap;
  }

  .hinoki-detail-spec .hinoki-detail-section,
  .hinoki-detail-spec .hinoki-detail-specification,
  .hinoki-detail-spec .hinoki-detail-process {
    padding-block: 28px;
  }

  .hinoki-detail-spec .hinoki-detail-process h2 {
    font-size: clamp(1.65rem, 7vw, 2.1rem);
    white-space: nowrap;
  }

  .hinoki-detail-contact-description {
    text-align: left;
  }
}
