/**
 * FUNTABASE site styles.
 * Keep rule order: later responsive overrides intentionally win.
 */

/* Design tokens */
:root {
  --paper: #f1ede3;
  --paper-deep: #e7e0d3;
  --ink: #17282e;
  --navy: #15303a;
  --navy-soft: #284852;
  --bengara: #a94f3a;
  --bengara-dark: #7e382b;
  --sand: #c5af8c;
  --white: #fffdf8;
  --line: #17282e40;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Avenir Next", "Helvetica Neue", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  --content: min(100% - 40px, 1180px);
  --gutter: 20px;
  --ease-editorial: cubic-bezier(.22, 1, .36, 1);
}

/* Base styles */
*,:before,:after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
  scrollbar-gutter: stable;
}

html.menu-open {
  overflow: hidden;
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  overflow-x: clip;
}

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

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

button,input,textarea,select {
  font: inherit;
}

button {
  color: inherit;
}

h1,h2,h3,p,figure {
  margin: 0;
}

/* Shared layout and typography */
.container {
  width: var(--content);
  margin-inline: auto;
}

.section-pad {
  padding-block: clamp(96px,16vw,180px);
}

.eyebrow {
  letter-spacing: .24em;
  margin-bottom: 18px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.text-link {
  letter-spacing: .12em;
  border-bottom: 1px solid;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
  padding-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
}

.text-link span {
  font-size: 15px;
}

.section-heading {
  z-index: 4;
  max-width: 620px;
  position: relative;
}

.section-heading--right {
  text-align: right;
  margin-left: auto;
}

.section-heading--center {
  text-align: center;
  margin-inline: auto;
}

.section-heading h2 {
  font-family: var(--serif);
  letter-spacing: -.06em;
  line-break: strict;
  overflow-wrap: break-word;
  text-wrap: balance;
  white-space: pre-line;
  word-break: auto-phrase;
  font-size: clamp(42px,11vw,84px);
  font-weight: 400;
  line-height: 1.05;
}

.section-heading h2 br:last-child {
  display: none;
}

.section-heading__description {
  font-family: var(--serif);
  margin-top: 25px;
  font-size: 14px;
  line-height: 2;
}

/* Header and full-screen navigation */
.site-header {
  z-index: 50;
  justify-content: space-between;
  align-items: flex-start;
  height: 84px;
  padding: 22px 20px;
  display: flex;
  position: fixed;
  inset: 0 0 auto;
  pointer-events: none;
}

.site-header .brand,
.site-header .menu-button,
.site-header .global-menu {
  pointer-events: auto;
}

.brand {
  z-index: 52;
  font-family: var(--serif);
  letter-spacing: .22em;
  flex-direction: column;
  font-size: 18px;
  font-weight: 600;
  line-height: .8;
  display: flex;
  position: relative;
}

.site-header--dark .brand,.site-header--dark .menu-button {
  color: var(--white);
}

.menu-button {
  z-index: 52;
  cursor: pointer;
  background: 0 0;
  border: 0;
  align-items: center;
  gap: 12px;
  padding: 5px 0 10px 10px;
  display: flex;
  position: relative;
}

.menu-button__label {
  letter-spacing: .2em;
  font-size: 9px;
  font-weight: 700;
}

.menu-button__lines {
  width: 28px;
  height: 20px;
  display: block;
  position: relative;
}

.menu-button__lines i {
  width: 28px;
  height: 1px;
  transition: transform .4s var(--ease-editorial), top .4s var(--ease-editorial), opacity .4s var(--ease-editorial);
  background: currentColor;
  position: absolute;
  left: 0;
}

.menu-button__lines i:nth-child(1) {
  top: 1px;
}

.menu-button__lines i:nth-child(2) {
  top: 10px;
}

.menu-button__lines i:nth-child(3) {
  top: 19px;
}

.menu-button[aria-expanded=true] .menu-button__lines i:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}

.menu-button[aria-expanded=true] .menu-button__lines i:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-button[aria-expanded=true] .menu-button__lines i:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}

.menu-button[aria-expanded=true],.site-header--dark .menu-button[aria-expanded=true],.site-header--dark:has(.menu-button[aria-expanded=true]) .brand {
  color: var(--paper);
}

.global-menu {
  z-index: 51;
  color: var(--paper);
  background: var(--navy);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, transform .5s var(--ease-editorial), visibility .5s;
  place-items: center;
  display: grid;
  position: fixed;
  inset: 0;
  transform: translateY(-12px);
}

.global-menu[data-open=true] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.global-menu__inner {
  width: min(100% - 48px,720px);
}

.global-menu__eyebrow {
  color: #f1ede38c;
  letter-spacing: .24em;
  margin-bottom: 35px;
  font-size: 9px;
}

.global-menu a {
  font-family: var(--serif);
  letter-spacing: -.04em;
  border-top: 1px solid #f1ede333;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  font-size: clamp(24px,7vw,42px);
  display: flex;
}

.global-menu a:last-child {
  border-bottom: 1px solid #f1ede333;
}

.global-menu a span {
  width: 28px;
  font-family: var(--sans);
  letter-spacing: .1em;
  opacity: .5;
  font-size: 9px;
}

/* Home: hero */
.hero {
  height: 100svh;
  min-height: 720px;
  max-height: 960px;
  color: var(--white);
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.hero__photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__photo picture,
.hero__photo img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero__panel {
  width: 100%;
  height: 50%;
  position: absolute;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
}

.hero__panel--maker {
  bottom: 0;
  justify-content: flex-end;
}

.hero__panel--user {
  top: 0;
  align-items: flex-end;
  justify-content: flex-start;
}

.hero__panel>span {
  z-index: 3;
  letter-spacing: .22em;
  writing-mode: vertical-rl;
  font-size: 8px;
  font-weight: 700;
  text-shadow: 0 1px 3px #00000080, 0 0 8px #00000059;
}

.hero__panel--maker>span {
  margin: 14px 18px 0 0;
}

.hero__panel--user>span {
  margin: 0 0 14px 18px;
}

.hero__grain {
  z-index: 2;
  opacity: .25;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  position: absolute;
  inset: 0;
}

.hero__copy {
  z-index: 4;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  inset: 0;
}

.hero__copy>p:first-child {
  letter-spacing: .24em;
  margin-bottom: 20px;
  font-size: 8px;
  font-weight: 700;
}

.hero__logo-mobile,
.hero__eyebrow-mobile {
  display: none;
}

.hero h1 {
  font-family: var(--serif);
  letter-spacing: -.05em;
  text-shadow: 0 2px 28px #00000029;
  flex-direction: column;
  font-size: clamp(56px,17vw,88px);
  font-weight: 500;
  line-height: .72;
  display: flex;
}

.hero h1 span:last-child {
  transform: translate(.24em);
}

.hero__tagline {
  font-family: var(--serif);
  letter-spacing: .08em;
  text-shadow: 0 2px 20px #00000040;
  margin-top: 40px;
  font-size: clamp(20px,5.4vw,30px);
  line-height: 1.7;
}

@media (width<720px) {
  .hero {
    height: calc(100vw * 1469 / 996);
    min-height: 0;
    max-height: 100svh;
  }

  .hero__copy>p:first-child {
    margin-top: -190px;
    margin-bottom: 20px;
  }

  .hero h1 {
    flex-direction: row;
    font-size: clamp(32px,11vw,56px);
  }

  .hero h1 span:last-child {
    transform: none;
  }

  .hero__tagline {
    margin-top: 20px;
    font-size: clamp(16px,4.4vw,22px);
  }

  .hero__photo picture,
  .hero__photo img {
    object-position: center center;
  }

  .hero__logo-mobile,
  .hero__eyebrow-mobile {
    display: none;
  }

  .hero__panel {
    width: 50%;
    height: 100%;
    top: 0;
    bottom: auto;
    align-items: flex-end;
  }

  .hero__panel--maker {
    left: 0;
    justify-content: flex-start;
  }

  .hero__panel--user {
    left: 50%;
    justify-content: flex-end;
  }

  .hero__panel--maker>span,
  .hero__panel--user>span {
    z-index: 3;
    position: absolute;
    bottom: 4%;
    margin: 0;
  }

  .hero__panel--maker>span {
    left: 4%;
  }

  .hero__panel--user>span {
    right: 4%;
  }

}

.hero__scroll {
  z-index: 5;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  display: flex;
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%);
}

.hero__scroll span {
  letter-spacing: .24em;
  writing-mode: vertical-rl;
  font-size: 7px;
  font-weight: 700;
}

.hero__scroll i {
  transform-origin: top;
  background: #fffdf8cc;
  width: 1px;
  height: 36px;
  animation: 2.2s ease-in-out infinite scroll-line;
}

@keyframes scroll-line {
  0%,to {
    opacity: .45;
    transform: scaleY(.35);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }

}

/* Home: concept */
.concept {
  place-items: center;
  min-height: 680px;
  display: grid;
  position: relative;
  overflow: hidden;
}

.concept:before {
  content: "";
  background: linear-gradient(transparent, var(--line) 18%, var(--line) 82%, transparent);
  width: 1px;
  height: 100%;
  position: absolute;
  top: 0;
  left: 50%;
}

.concept__inner {
  z-index: 2;
  text-align: center;
  width: min(100% - 64px,720px);
  position: relative;
}

.concept h2 {
  font-family: var(--serif);
  letter-spacing: -.06em;
  font-size: clamp(32px,7vw,52px);
  font-weight: 400;
  line-height: 1.45;
}

.concept__inner>p:not(.eyebrow) {
  font-family: var(--serif);
  margin-top: 36px;
  font-size: 14px;
  line-height: 2.35;
}

/* Home: two doors (もの / こと) */
.two-doors {
  position: relative;
  overflow: hidden;
}

.two-doors:before {
  content: "";
  background: linear-gradient(transparent, var(--line) 8%, var(--line) 92%, transparent);
  width: 1px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
}

/* 見出しブロックは左に置いたまま、h2内だけ右揃え（「分岐」を右側に） */
.two-doors .section-heading {
  width: fit-content;
}

.two-doors .section-heading h2 {
  text-align: right;
  line-height: 1.2;
}

/* PC */
@media (min-width: 761px) {
  .two-doors .section-heading h2 {
    /* 最長行（7字≒6.7em）がコンテナ左半分＝中心線の手前に収まるサイズへ */
    font-size: min(84px, calc((min(100vw - 80px, 1180px) / 2 - 32px) / 6.7));
  }
}

.two-doors__grid {
  gap: 24px;
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.two-doors__card {
  color: var(--white);
  padding: 40px clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
}

.two-doors__card {
  position: relative;
  overflow: hidden;
}

.two-doors__card>* {
  position: relative;
  z-index: 1;
}

/* 背景に薄く入れる一文字（父／娘） */
.two-doors__card:after {
  font-family: var(--serif);
  font-size: clamp(160px, 22vw, 280px);
  line-height: 1;
  color: var(--white);
  opacity: .065;
  position: absolute;
  right: .08em;
  bottom: -.12em;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.two-doors__card--mono {
  background: var(--navy);
}

.two-doors__card--mono:after {
  content: "父";
}

.two-doors__card--koto {
  background: var(--bengara);
}

.two-doors__card--koto:after {
  content: "娘";
}

.two-doors__head {
  border-bottom: 1px solid currentColor;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 16px;
  display: flex;
}

.two-doors__head h3 {
  font-family: var(--serif);
  letter-spacing: .1em;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 400;
}

.two-doors__lead {
  font-family: var(--serif);
  margin-top: 22px;
  font-size: 14px;
  line-height: 2;
}

.two-doors__card>.text-link {
  color: var(--white);
  margin-top: auto;
  padding-top: 32px;
}

.two-doors__links {
  gap: 20px;
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
}

.two-doors__links .text-link {
  color: var(--white);
  margin-top: 0;
}

@media (max-width: 760px) {
  .two-doors__grid {
    grid-template-columns: 1fr;
  }

  .two-doors:before {
    display: none;
  }

  .two-doors__card--mono {
    margin-left: calc(-1 * var(--gutter));
    margin-right: clamp(32px, 9vw, 75px);
    padding-left: calc(var(--gutter) + 4px);
  }

  .two-doors__card--koto {
    margin-right: calc(-1 * var(--gutter));
    margin-left: clamp(32px, 9vw, 75px);
    padding-right: 4px;
  }
}

/* Home: editorial notes */
.notes {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.notes .section-heading {
  text-align: left;
  margin-bottom: 110px;
  margin-left: 0;
  margin-right: auto;
}

.note-list {
  position: relative;
}

.note-list:before {
  content: "";
  background: linear-gradient(transparent, var(--line) 8%, var(--line) 92%, transparent);
  width: 1px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
}

.note {
  width: 88%;
  min-height: 360px;
  margin-block: 72px 125px;
  position: relative;
}

.note--left {
  margin-right: auto;
}

.note--right {
  text-align: right;
  margin-left: auto;
}

.note__number {
  z-index: 0;
  color: var(--navy);
  font-family: var(--serif);
  letter-spacing: -.08em;
  opacity: .055;
  user-select: none;
  font-size: clamp(130px,42vw,250px);
  line-height: .8;
  position: absolute;
  top: -64px;
  left: -8px;
}

.note--right .note__number {
  color: var(--bengara);
  left: auto;
  right: -8px;
}

.note__rule {
  z-index: 2;
  background: var(--ink);
  width: 50px;
  height: 1px;
  position: absolute;
  top: 12px;
  left: calc(100% - 30px);
}

.note--right .note__rule {
  left: auto;
  right: calc(100% - 30px);
}

.note__content {
  z-index: 1;
  max-width: 470px;
  position: relative;
}

.note--right .note__content {
  margin-left: auto;
}

.note__author-line {
  background: var(--navy);
  width: 4px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: -20px;
}

.note--right .note__author-line {
  left: auto;
  right: -20px;
}

.note time {
  letter-spacing: .17em;
  margin-bottom: 22px;
  font-size: 9px;
  font-weight: 700;
  display: block;
}

.note h3 {
  font-family: var(--serif);
  letter-spacing: -.04em;
  font-size: clamp(28px,6vw,44px);
  font-weight: 400;
  line-height: 1.42;
}

.note h3 br:last-child,.story__copy h3 br:last-child {
  display: none;
}

.note__content>p {
  max-width: 360px;
  font-family: var(--serif);
  margin-top: 26px;
  font-size: 13px;
  line-height: 2.15;
}

.note--right .note__content>p {
  margin-left: auto;
}

.note__meta {
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-top: 28px;
  display: flex;
}

.note--right .note__meta {
  align-items: flex-end;
}

.note__meta div {
  color: #17282ea6;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 9px;
  display: flex;
}

.note__meta a {
  letter-spacing: .18em;
  border-bottom: 1px solid;
  gap: 15px;
  padding-bottom: 4px;
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
}

.section-action {
  z-index: 4;
  justify-content: center;
  margin-top: 45px;
  display: flex;
  position: relative;
}

.section-action--right {
  justify-content: flex-end;
}

.circle-link {
  border: 1px solid var(--ink);
  text-align: center;
  width: 142px;
  height: 142px;
  transition: color .35s ease, background .35s ease, transform .45s var(--ease-editorial);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  display: flex;
}

.circle-link span {
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.7;
}

.circle-link i {
  margin-top: 84px;
  font-size: 18px;
  font-style: normal;
  position: absolute;
}

.circle-link:hover {
  color: var(--paper);
  background: var(--ink);
  transform: rotate(-5deg);
}

/* Home: products */
.products {
  background: var(--white);
  position: relative;
}

/* 「もの」側の青ライン（画面左端） */
.products:before {
  content: "";
  background: var(--navy);
  width: 7.5px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

@media (width>=720px) {
  .products:before {
    width: 9px;
  }
}

.products .section-heading {
  text-align: left;
  margin-bottom: 70px;
  margin-left: 0;
  margin-right: auto;
}

/* Home: news */
.now {
  color: var(--paper);
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.now__bg-word {
  color: var(--paper);
  font-family: var(--serif);
  opacity: .03;
  font-size: clamp(140px,48vw,560px);
  line-height: .8;
  position: absolute;
  top: -.12em;
  right: -.12em;
}

.now__inner {
  z-index: 2;
  gap: 80px;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  position: relative;
}

.now__visual {
  width: 92%;
  min-width: 0;
  margin-left: -20px;
  position: relative;
}

.now__content {
  min-width: 0;
}

.news-media__viewport {
  overflow: hidden;
}

.news-media__track {
  transform: translate3d(calc(var(--news-index,0) * -100%), 0, 0);
  transition: transform .75s var(--ease-editorial);
  display: flex;
}

.news-media__slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
}

.news-media__slide:after {
  content: "";
  background: linear-gradient(135deg,#15303a0d,#15303a80);
  position: absolute;
  inset: 0;
}

.news-media__slide img {
  aspect-ratio: 4/5;
  object-fit: cover;
}

.news-media__slide figcaption {
  z-index: 3;
  color: var(--paper);
  font-family: var(--serif);
  writing-mode: vertical-rl;
  font-size: clamp(25px,7vw,46px);
  line-height: 1.15;
  position: absolute;
  bottom: 26px;
  right: -35px;
}

.news-media__slide figcaption span {
  color: var(--bengara);
  font-family: var(--sans);
  letter-spacing: .12em;
  margin-bottom: 12px;
  font-size: .28em;
  font-weight: 700;
  display: inline-block;
}

.now__content .section-heading h2 {
  white-space: pre-line;
  font-size: clamp(36px,7vw,52px);
}

.now__lead {
  font-family: var(--serif);
  margin-top: 30px;
  font-size: 17px;
  line-height: 2;
}

.news-slider {
  margin-top: 52px;
}

.news-slider__viewport {
  border-top: 1px solid #f1ede340;
  border-bottom: 1px solid #f1ede340;
  overflow: hidden;
}

.news-slider__track {
  transform: translate3d(calc(var(--news-index,0) * -100%), 0, 0);
  transition: transform .75s var(--ease-editorial);
  display: flex;
}

.news-item {
  border-bottom: 1px solid #f1ede340;
  grid-template-columns: 88px 1fr 18px;
  gap: 8px 12px;
  padding: 20px 0;
  display: grid;
  position: relative;
}

.news-slide {
  border-bottom: 0;
  flex: 0 0 100%;
  min-width: 100%;
  padding-block: 24px;
}

.news-slide[aria-hidden=true] {
  pointer-events: none;
}

.news-item time,.news-item>span {
  letter-spacing: .1em;
  opacity: .65;
  font-size: 8px;
}

.news-item>span {
  text-align: right;
}

.news-item strong {
  font-family: var(--serif);
  grid-column: 1/3;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}

.news-item i {
  grid-area: 1/3/3;
  align-self: center;
  font-style: normal;
}

.news-slider__controls {
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  display: flex;
}

.news-slider__status {
  letter-spacing: .18em;
  opacity: .65;
  font-size: 9px;
}

.news-slider__dots {
  align-items: center;
  gap: 10px;
  display: flex;
}

.news-slider__dots button {
  cursor: pointer;
  background: 0 0;
  border: 0;
  width: 26px;
  height: 18px;
  padding: 0;
}

.news-slider__dots button:before {
  content: "";
  opacity: .3;
  background: currentColor;
  width: 100%;
  height: 1px;
  transition: opacity .35s,transform .35s;
  display: block;
  transform: scaleX(.55);
}

.news-slider__dots button[aria-current=true]:before {
  opacity: 1;
  transform: scaleX(1);
}

/* Home: stories */
.stories {
  background: var(--paper-deep);
  position: relative;
  overflow: hidden;
}

/* 「こと」側の赤ライン（画面右端） */
.stories:after {
  content: "";
  background: var(--bengara);
  width: 7.5px;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
}

@media (width>=720px) {
  .stories:after {
    width: 9px;
  }
}

.stories .section-heading {
  text-align: left;
  max-width: 780px;
  margin-bottom: 38px;
  margin-left: 0;
  margin-right: auto;
}

.stories .section-heading h2 {
  font-size: clamp(38px,7vw,54px);
}

@media (width>=700px) {
  .stories .section-heading {
    transform: none;
  }

}

.story-tags {
  z-index: 8;
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
  position: relative;
}

.story-tags a,.story-tags button {
  letter-spacing: .06em;
  cursor: pointer;
  background: 0 0;
  border: 1px solid #17282e80;
  border-radius: 100px;
  padding: 8px 13px;
  font-size: 9px;
}

.story-tags button[aria-pressed=true] {
  color: var(--paper);
  background: var(--ink);
}

.story-list {
  margin-top: 110px;
}

.story {
  min-height: 680px;
  margin-block: 0 170px;
  position: relative;
}

.story__word {
  z-index: 0;
  color: var(--navy);
  font-family: var(--serif);
  letter-spacing: -.08em;
  opacity: .045;
  white-space: nowrap;
  pointer-events: none;
  flex-direction: column;
  font-size: clamp(82px,26vw,220px);
  font-weight: 600;
  line-height: .68;
  display: flex;
  position: absolute;
  top: -24px;
}

.story--left .story__word {
  left: -.08em;
}

.story--right .story__word {
  align-items: flex-end;
  right: -.08em;
}

.story__number {
  z-index: 4;
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
  position: absolute;
  top: 50px;
}

.story--left .story__number {
  left: 20px;
}

.story--right .story__number {
  right: 20px;
}

.story__image {
  z-index: 1;
  width: 88%;
  padding-top: 105px;
  position: relative;
}

.story--left .story__image {
  margin-left: -5%;
}

.story--right .story__image {
  margin-left: auto;
  margin-right: -5%;
}

.story__image img {
  object-fit: cover;
  filter: saturate(.82)contrast(1.03);
  width: 100%;
  aspect-ratio: 3/2;
}

.story:nth-child(2) .story__image img,.story:nth-child(5) .story__image img {
  object-position: center 70%;
}

.story__copy {
  z-index: 3;
  backdrop-filter: blur(8px);
  background: #f1ede3f0;
  width: min(84%,540px);
  margin-top: -58px;
  padding: 27px 25px 30px;
  position: relative;
  box-shadow: 0 24px 60px #17282e12;
}

.story--left .story__copy {
  margin-left: auto;
  margin-right: 18px;
}

.story--right .story__copy {
  margin-left: 18px;
  margin-right: auto;
}

.story__author-line {
  z-index: 4;
  background: var(--navy);
  width: 4px;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
}

.story--right .story__author-line {
  right: auto;
  left: 0;
}

.story--no-image {
  padding-top: 105px;
}

.story--no-image .story__copy {
  margin-top: 0;
}

.story--no-image.story--left .story__copy {
  margin-left: 0;
  margin-right: auto;
}

.story--no-image.story--right .story__copy {
  margin-left: auto;
  margin-right: 0;
}

.story__meta {
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 14px;
  display: flex;
}

.story__tag {
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 700;
}

.story__updated {
  font-family: var(--sans);
  letter-spacing: .12em;
  opacity: .68;
  white-space: nowrap;
  flex: none;
  font-size: 8px;
}

.story__copy h3 {
  font-family: var(--serif);
  letter-spacing: -.06em;
  line-break: strict;
  overflow-wrap: break-word;
  text-wrap: pretty;
  word-break: auto-phrase;
  font-feature-settings: "palt";
  font-size: clamp(36px,9vw,58px);
  font-weight: 400;
  line-height: 1.12;
}

.story__copy>p:not(.story__tag) {
  font-family: var(--serif);
  line-break: strict;
  text-wrap: pretty;
  margin-top: 22px;
  font-size: 12px;
  line-height: 2;
}

.story__copy>a {
  letter-spacing: .16em;
  border-bottom: 1px solid;
  gap: 18px;
  margin-top: 27px;
  padding-bottom: 4px;
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
}

.circle-link--dark {
  color: var(--paper);
  border-color: var(--navy);
  background: var(--navy);
}

.circle-link--dark:hover {
  color: var(--navy);
  background: 0 0;
}

.circle-link--paper {
  color: var(--paper);
  border-color: var(--paper);
  background: 0 0;
}

.circle-link--paper:hover {
  color: var(--navy);
  background: var(--paper);
}

/* Home: store */
.store {
  min-height: 760px;
  color: var(--paper);
  background: linear-gradient(90deg, var(--navy) 50%, var(--bengara) 50%);
  place-items: center;
  display: grid;
  position: relative;
  overflow: hidden;
}

.store:before {
  content: "";
  opacity: .2;
  background: linear-gradient(180deg, transparent, #00000059);
  position: absolute;
  inset: 0;
}

.store__inner {
  z-index: 2;
  text-align: center;
  width: min(100% - 64px,640px);
  position: relative;
}

.store h2 {
  font-family: var(--serif);
  letter-spacing: -.06em;
  font-size: clamp(40px,9vw,64px);
  font-weight: 400;
  line-height: 1.35;
}

.store__inner>p:not(.eyebrow) {
  font-family: var(--serif);
  margin-top: 25px;
  font-size: 14px;
  line-height: 2;
}

.store__button {
  letter-spacing: .12em;
  border: 1px solid #f1ede3bf;
  justify-content: space-between;
  align-items: center;
  width: min(100%,270px);
  margin-top: 46px;
  padding: 15px 20px;
  font-size: 11px;
  transition: color .3s,background .3s;
  display: inline-flex;
}

.store__button:hover {
  color: var(--bengara);
  background: var(--paper);
}

.store__button i {
  font-size: 18px;
  font-style: normal;
}

.store__type {
  color: var(--paper);
  font-family: var(--serif);
  letter-spacing: -.08em;
  text-align: right;
  opacity: .035;
  font-size: clamp(82px,23vw,210px);
  font-weight: 600;
  line-height: .7;
  position: absolute;
  bottom: -.12em;
  right: -.08em;
}

/* Footer */
.site-footer {
  color: var(--paper);
  background: #0d2026;
  padding: 78px 20px 30px;
}

.site-footer__lead>p:last-child {
  font-family: var(--serif);
  font-size: clamp(23px,6vw,36px);
  line-height: 1.7;
}

.site-footer__nav {
  border-top: 1px solid #f1ede338;
  margin-top: 70px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-top: 30px;
}

.site-footer__nav a {
  letter-spacing: .1em;
  padding: 6px 0;
  font-size: 13px;
  color: #f1ede3c4;
  position: relative;
  transition: color .2s ease;
}

.site-footer__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--paper);
  transition: right .25s ease;
}

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

.site-footer__nav a:hover::after {
  right: 0;
}

.site-footer__bottom {
  color: #f1ede38c;
  letter-spacing: .08em;
  flex-direction: column;
  gap: 12px;
  margin-top: 48px;
  font-size: 12px;
  display: flex;
}

/* Archive and article pages */
/* Named archive-wrap (not "archive") because WordPress core auto-adds an
   "archive" class to <body> on every post-type-archive page, which would
   otherwise collide with this layout class and pad/center <body> itself. */
.archive-wrap {
  width: var(--content);
  margin-inline: auto;
  padding: 90px 0 140px;
}

.archive-hero {
  min-height: 250px;
  padding-top: 30px;
  position: relative;
}

.archive-hero:after {
  content: "INDEX";
  z-index: -1;
  font-family: var(--serif);
  letter-spacing: -.08em;
  opacity: .04;
  font-size: clamp(100px,30vw,280px);
  font-weight: 600;
  position: absolute;
  top: -15px;
  right: -.08em;
}

.story-archive .archive-hero:after {
  content: none;
}

.archive-hero h1 {
  font-family: var(--serif);
  letter-spacing: -.07em;
  font-size: clamp(42px,6vw,60px);
  font-weight: 400;
  line-height: 1.05;
}

.archive-hero>p:last-child {
  font-family: var(--serif);
  margin-top: 30px;
  font-size: 13px;
  line-height: 2;
}

/* Products archive: full-bleed hero (Ref: funtabase-products, no photo — flat navy) */
.product-hero {
  width: 100vw;
  height: 100svh;
  min-height: 640px;
  max-height: 960px;
  color: var(--white);
  background: var(--navy);
  position: relative;
  overflow: hidden;
  margin-inline: calc(50% - 50vw);
}

.product-hero__content {
  z-index: 2;
  width: var(--content);
  margin-inline: auto;
  height: 100%;
  justify-content: center;
  flex-direction: column;
  display: flex;
  position: relative;
}

.product-hero__content .eyebrow {
  color: var(--white);
}

.product-hero__content h1 {
  font-family: var(--serif);
  letter-spacing: -.02em;
  margin-bottom: 36px;
  font-size: clamp(38px,7vw,64px);
  font-weight: 500;
  line-height: 1.5;
}

.hero-text {
  max-width: 480px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 2.15;
}

.hero-text--sub {
  color: #fffdf8b8;
}

/* Products archive: tag filter tabs */
.product-tags {
  z-index: 10;
  gap: 28px;
  background: #f1ede3eb;
  border-bottom: 1px solid var(--line);
  margin: 0 0 60px;
  padding: 14px 4px;
  display: flex;
  overflow-x: auto;
  position: sticky;
  top: 0;
  scrollbar-width: none;
}

.product-tags::-webkit-scrollbar {
  display: none;
}

.product-tags button {
  color: #17282e7a;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 10px 0;
  font-size: 12px;
  position: relative;
  flex-shrink: 0;
}

.product-tags button:after {
  content: "";
  background: transparent;
  width: 100%;
  height: 1px;
  position: absolute;
  bottom: -14px;
  left: 0;
}

.product-tags button[aria-pressed="true"] {
  color: var(--navy);
}

.product-tags button[aria-pressed="true"]:after {
  background: var(--navy);
}

/* Products archive: alternating product rows */
.product-list {
  flex-direction: column;
  gap: 90px;
  display: flex;
}

.product-item[hidden] {
  display: none;
}

.product-image {
  aspect-ratio: 4/5;
  background: var(--paper-deep);
  position: relative;
  overflow: hidden;
}

.product-image img {
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-editorial);
}

.product-image-link:hover img {
  transform: scale(1.03);
}

.product-index {
  color: var(--navy);
  background: #f1ede3e6;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  display: flex;
  position: absolute;
  top: 18px;
  left: 18px;
}

.product-info {
  padding-top: 24px;
}

.product-category {
  color: #17282ea3;
  letter-spacing: .18em;
  margin-bottom: 8px;
  font-size: 9px;
  font-weight: 700;
}

.product-name {
  font-family: var(--serif);
  letter-spacing: -.02em;
  margin-bottom: 22px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
}

.product-catch {
  font-family: var(--serif);
  margin-bottom: 16px;
  font-size: 18px;
  line-height: 1.8;
}

.product-description {
  color: #17282eb3;
  max-width: 480px;
  margin-bottom: 26px;
  font-size: 13px;
  line-height: 2;
}

.product-link {
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  display: flex;
  transition: padding .3s ease;
}

.product-link:hover {
  padding-left: 8px;
}

@media (min-width: 768px) {
  .product-item {
    grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr);
    align-items: center;
    gap: 60px;
    display: grid;
  }

  .product-item:nth-child(even) .product-image-link {
    order: 2;
  }

  .product-item:nth-child(even) .product-info {
    order: 1;
  }

  .product-image {
    aspect-ratio: 1/1;
  }

  .product-info {
    padding-top: 0;
  }
}

/* Products archive: product story teaser (Ref: funtabase-products #03) */
.product-story-section {
  background: var(--white);
}

.product-story-list {
  flex-direction: column;
  gap: 64px;
  margin-top: 45px;
  display: flex;
}

.product-story-card__image {
  aspect-ratio: 4/3;
  display: block;
  overflow: hidden;
}

.product-story-card__image img {
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-editorial);
}

.product-story-card__image:hover img {
  transform: scale(1.03);
}

.product-story-card__content {
  padding-top: 27px;
}

/* 開発ラボ：書き手の色（もの＝紺／こと＝ベンガラ）。縦積みは文字の左に縦線、横並びはカード右上の三角で示す */
.product-story-card {
  position: relative;
}

.product-story-card__content {
  position: relative;
}

.product-story-card--author-mono .product-story-card__content:before,
.product-story-card--author-koto .product-story-card__content:before {
  content: "";
  width: 4px;
  position: absolute;
  top: 27px;
  bottom: 0;
  left: 0;
}

.product-story-card--author-mono .product-story-card__content,
.product-story-card--author-koto .product-story-card__content {
  padding-left: 20px;
}

.product-story-card--author-mono .product-story-card__content:before,
.product-story-card--author-mono:after {
  background: var(--navy);
}

.product-story-card--author-koto .product-story-card__content:before,
.product-story-card--author-koto:after {
  background: var(--bengara);
}

.product-story-card--author-mono:after,
.product-story-card--author-koto:after {
  content: "";
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  pointer-events: none;
  display: none;
  width: 72px;
  height: 72px;
  position: absolute;
  top: 0;
  right: 0;
}

.product-story-card__meta {
  color: var(--gray, #778087);
  letter-spacing: .1em;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 9px;
  display: flex;
}

.product-story-card__content h3 {
  font-family: var(--serif);
  letter-spacing: -.01em;
  margin-bottom: 24px;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.65;
}

.product-story-card__content>p {
  color: #17282eb3;
  margin-bottom: 30px;
  font-size: 13px;
  line-height: 2;
}

.product-story-card__button {
  border: 1px solid var(--navy);
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 17px 19px;
  font-size: 12px;
  display: flex;
  transition: background .25s ease, color .25s ease;
}

.product-story-card__button:hover {
  color: var(--white);
  background: var(--navy);
}

@media (min-width: 768px) {
  .product-story-card {
    grid-template-columns: 1.35fr .65fr;
    align-items: center;
    gap: 64px;
    display: grid;
  }

  .product-story-card__content {
    padding-top: 0;
  }

  /* 横並び：縦線をやめて右上の三角へ。狭い幅では三角を小さくし、文字を三角の下へ逃がす */
  .product-story-card--author-mono .product-story-card__content:before,
  .product-story-card--author-koto .product-story-card__content:before {
    display: none;
  }

  .product-story-card--author-mono:after,
  .product-story-card--author-koto:after {
    display: block;
    width: 40px;
    height: 40px;
  }

  .product-story-card--author-mono .product-story-card__content,
  .product-story-card--author-koto .product-story-card__content {
    padding-top: 40px;
    padding-left: 0;
  }
}

@media (min-width: 1100px) {
  .product-story-card--author-mono:after,
  .product-story-card--author-koto:after {
    width: 72px;
    height: 72px;
  }

  .product-story-card--author-mono .product-story-card__content,
  .product-story-card--author-koto .product-story-card__content {
    padding-top: 0;
  }
}

.archive-notes {
  padding-top: 40px;
  position: relative;
}

.archive-notes:before {
  content: "";
  background: var(--line);
  width: 1px;
  position: absolute;
  inset: 0 auto 0 50%;
}

.archive-note {
  width: 88%;
  max-width: 560px;
  margin-bottom: 50px;
  position: relative;
}

.archive-note--right {
  text-align: right;
  margin-left: auto;
}

.archive-note__author-line {
  background: var(--navy);
  width: 4px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: -20px;
}

.archive-note--right .archive-note__author-line {
  left: auto;
  right: -20px;
}

.archive-note__image {
  aspect-ratio: 3 / 2;
  width: 100%;
  display: block;
  overflow: hidden;
}

.archive-note__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-note time {
  letter-spacing: .15em;
  font-size: 9px;
}

.archive-note h2 {
  font-family: var(--serif);
  letter-spacing: -.04em;
  margin-top: 18px;
  font-size: clamp(26px,4vw,38px);
  font-weight: 400;
  line-height: 1.35;
}

.archive-note>p {
  font-family: var(--serif);
  margin-top: 22px;
  font-size: 13px;
}

.archive-note div {
  color: #17282e99;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 20px;
  font-size: 9px;
  display: flex;
}

.archive-note--right div {
  justify-content: flex-end;
}

.archive-note>a {
  letter-spacing: .12em;
  border-bottom: 1px solid;
  margin-top: 24px;
  padding-bottom: 3px;
  font-size: 9px;
  display: inline-block;
}

.pagination {
  margin-top: 80px;
}

.pagination .nav-links {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  display: flex;
}

.pagination .page-numbers {
  color: var(--ink);
  text-align: center;
  min-width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  padding: 0 4px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 44px;
  text-decoration: none;
  transition: color .35s ease, background .35s ease, border-color .35s ease;
  display: inline-flex;
}

.pagination a.page-numbers:hover {
  border-color: var(--ink);
}

.pagination .page-numbers.current {
  color: var(--paper);
  background: var(--ink);
}

.pagination .page-numbers.dots {
  border-color: transparent;
  min-width: auto;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  letter-spacing: .1em;
  border-radius: 22px;
  width: auto;
  min-width: 88px;
  padding: 0 20px;
  font-size: 11px;
}

.pagination .page-numbers.prev:hover,
.pagination .page-numbers.next:hover {
  color: var(--paper);
  background: var(--ink);
}

.now .pagination .page-numbers,
.now .pagination a.page-numbers:hover {
  color: var(--paper);
}

.story-archive .story-tags {
  margin-bottom: 60px;
}

.story-grid {
  align-items: start;
  gap: 70px 20px;
  width: min(92%, 980px);
  margin-inline: auto;
  display: grid;
}

.story-card {
  position: relative;
}

.story-card[hidden] {
  display: none;
}

.story-card a {
  display: block;
}

.story-card__author-line {
  background: var(--navy);
  width: 4px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: -14px;
}

.story-card figure {
  overflow: hidden;
}

.story-card img {
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform .8s var(--ease-editorial);
}

.story-card:hover img {
  transform: scale(1.035);
}

.story-card p {
  letter-spacing: .1em;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 9px;
  display: flex;
}

.story-card p span {
  font-family: var(--serif);
  font-size: 22px;
}

/* タグ表示（#付き・細い枠で「タグ」と分かるように） */
.tag-chip {
  font-style: normal;
  letter-spacing: .08em;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid currentColor;
  border-radius: 5px;
  padding: 7px 13px;
  display: inline-block;
  align-self: center;
  width: fit-content;
}

.story-card__updated {
  letter-spacing: .12em;
  opacity: .62;
  white-space: nowrap;
  font-size: 8px;
  display: block;
}

.story-card h2 {
  font-family: var(--serif);
  letter-spacing: -.04em;
  line-break: strict;
  overflow-wrap: break-word;
  text-wrap: balance;
  word-break: auto-phrase;
  margin-top: 10px;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.35;
}

.story-card small {
  letter-spacing: .14em;
  border-bottom: 1px solid;
  margin-top: 15px;
  font-size: 8px;
  display: inline-block;
}

.back-link {
  letter-spacing: .1em;
  border-bottom: 1px solid;
  margin-bottom: 70px;
  padding-bottom: 4px;
  font-size: 9px;
  display: inline-block;
}

/* Home: products teaser (Ref: funtabase-products visual language, kept to photo + name) */
.product-teaser-grid {
  gap: 50px 20px;
  grid-template-columns: repeat(2, 1fr);
  display: grid;
}

.product-teaser-card a {
  display: block;
}

.product-teaser-card__image {
  aspect-ratio: 4/5;
  background: var(--paper-deep);
  position: relative;
  overflow: hidden;
}

.product-teaser-card__image img {
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-editorial);
}

.product-teaser-card a:hover .product-teaser-card__image img {
  transform: scale(1.035);
}

.product-teaser-card__index {
  color: var(--navy);
  background: #f1ede3e6;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  display: flex;
  position: absolute;
  top: 14px;
  left: 14px;
}

.product-teaser-card__category {
  color: #17282ea3;
  letter-spacing: .18em;
  margin-top: 18px;
  font-size: 9px;
  font-weight: 700;
}

.product-teaser-card__name {
  font-family: var(--serif);
  letter-spacing: -.02em;
  text-wrap: balance;
  margin-top: 8px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .product-teaser-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.note-detail,.story-detail {
  width: var(--content);
  max-width: 920px;
  margin-inline: auto;
  padding: 130px 0 140px;
}

.note-detail article {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.note-detail time {
  letter-spacing: .14em;
  font-size: 10px;
}

.note-detail h1,.story-detail h1 {
  font-family: var(--serif);
  letter-spacing: -.06em;
  margin-top: 28px;
  font-size: clamp(40px,9vw,64px);
  font-weight: 400;
  line-height: 1.35;
}

.note-detail article>p:not(.eyebrow) {
  font-family: var(--serif);
  margin-top: 50px;
  font-size: 16px;
  line-height: 2.4;
}

/* 編集ノート：記事の最後に入る父のコメント・追記。本文とは罫線と余白で区切る */
.note-detail .note-father {
  text-align: left;
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.note-father__label {
  color: var(--navy);
  letter-spacing: .2em;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
}

.note-father__label:before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.note-detail .note-father__text {
  font-family: var(--serif);
  margin-top: 20px;
  font-size: 15px;
  line-height: 2.2;
}

.detail-tags {
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 45px;
  font-size: 10px;
  display: flex;
}

.story-detail header {
  margin-bottom: 65px;
}

.story-detail__meta {
  letter-spacing: .1em;
  justify-content: space-between;
  font-size: 9px;
  display: flex;
}

.story-detail header>p:last-child {
  max-width: 620px;
  font-family: var(--serif);
  margin-top: 30px;
  font-size: 15px;
  line-height: 2.1;
}

.story-detail>article>figure {
  width: 100%;
  max-width: 650px;
  margin-inline: auto;
}

.story-detail>article>figure img {
  object-fit: cover;
  width: 100%;
  max-height: 400px;
}

/* C型（起承転結）：メイン画像＋本文の後に、画像4枚を横並び（1×4）でそれぞれテキスト付きで並べる */
.story-detail__blocks {
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 20px;
  margin-top: 70px;
  display: grid;
}

.story-detail__block figure img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.story-detail__block p {
  font-family: var(--serif);
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.9;
}

@media (max-width: 767px) {
  .story-detail__blocks {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.story-detail__body {
  max-width: 650px;
  font-family: var(--serif);
  margin: 70px auto 0;
  font-size: 16px;
  line-height: 2.4;
}

.story-detail__body p+p {
  margin-top: 28px;
}

/* D型（自由記述）：冒頭（タグ／タイトル／日付／サムネ＋サブタイトル）は固定、本文以下は自由 */
.story-detail--d article {
  max-width: 650px;
  margin-inline: auto;
}

.story-free__head {
  margin-bottom: 0 !important;
  padding-bottom: 28px;
  border-bottom: 1px solid currentColor;
}

.story-free__tags {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.story-free__tag {
  font-size: 13px;
  letter-spacing: .05em;
}

.story-detail--d .story-free__head h1 {
  margin-top: 20px;
  font-size: clamp(30px,7.5vw,44px);
  letter-spacing: -.03em;
}

.story-free__date {
  display: block;
  margin-top: 28px;
  text-align: right;
  font-size: 12px;
  letter-spacing: .05em;
}

.story-free__lead {
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  display: flex;
}

.story-free__lead img {
  flex: none;
  width: 92px;
  height: auto;
}

.story-free__lead p {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.7;
}

.story-free__body {
  margin-top: 48px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2.2;
}

.story-free__body > * + * {
  margin-top: 1.6em;
}

.story-free__body img,
.story-free__body figure {
  max-width: 100%;
  height: auto;
}

.story-free__series {
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid currentColor;
}

.story-free__series-name {
  font-size: 12px;
  letter-spacing: .1em;
}

.story-free__series-text {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 2.2;
}

/* 連載記事（D型＋連載設定あり）：本文幅・行間・余白で、通常の記事より少し静かに読ませる */
.story-detail--series article {
  max-width: 540px;
}

.story-detail--series .story-free__body {
  margin-top: 72px;
  line-height: 2.5;
}

.story-detail--series .story-free__series {
  margin-top: 96px;
}

/* 暗転デザイン（背景を暗く、文字を明るく）。
   single-stories.php の $series_night を true にすると .story-detail--night が付いて有効になる。
   背景→共通文の帯→フッターの3段階。 */
html:has(.story-detail--night) {
  background-color: #223a46;
}

body:has(.story-detail--night) {
  color: #f1ede3;
  background: transparent;
}

body:has(.story-detail--night) .site-header .brand,
body:has(.story-detail--night) .site-header .menu-button {
  color: #f1ede3;
}

.story-detail--night {
  padding-bottom: 0;
}

/* 共通文：画面端から端までの帯にする */
.story-detail--night .story-free__series {
  margin: 96px calc(50% - 50vw) 0;
  padding: 72px calc(50vw - 50%) 96px;
  border-top: 0;
  background: #182c36;
}

.story-detail--night .series-pager {
  border-top-color: #f1ede333;
  margin-top: 56px;
}

/* 本文中の白地の画像が浮かないよう、控えめに沈める */
.story-detail--night .story-free__body img {
  filter: brightness(.92);
}

/* 連載記事の一覧表示：連載名を大きく出して、どの連載か分かるようにする */
.story__series,
.story-card__series {
  font-family: var(--serif);
  letter-spacing: .04em;
  line-height: 1.4;
  font-weight: 600;
}

.story__series {
  margin-bottom: 14px;
  font-size: clamp(22px,5.5vw,30px);
}

.story-card__series {
  margin-top: 12px;
  font-size: 20px;
}

.story__series span,
.story-card__series span {
  vertical-align: middle;
  margin-right: 10px;
  padding: 2px 7px;
  border: 1px solid currentColor;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

/* ===== 連載（series）共通デザイン：線と丸印のタイムライン =====
   特定の連載には依存しない。連載名・タグ名はPHPから渡す。 */
.screen-reader-text {
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  position: absolute;
}

/* SERIES／連載名／EPISODE nn（左に丸印と短い縦線） */
.series-tag {
  padding-left: 24px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  display: block;
  position: relative;
}

.series-tag:before {
  content: "";
  background: var(--bengara);
  border-radius: 50%;
  width: 9px;
  height: 9px;
  position: absolute;
  top: 3px;
  left: 0;
}

.series-tag:after {
  content: "";
  background: currentColor;
  opacity: .35;
  width: 1px;
  position: absolute;
  top: 19px;
  bottom: 2px;
  left: 4px;
}

.series-tag__label {
  letter-spacing: .28em;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  display: block;
}

.series-tag__name {
  letter-spacing: .04em;
  margin-top: 4px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  display: block;
}

.series-tag__ep {
  letter-spacing: .2em;
  opacity: .7;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 9px;
  display: block;
}

.series-tag--home {
  margin-bottom: 18px;
}

.series-tag--home .series-tag__name {
  font-size: clamp(22px, 5.5vw, 28px);
}

.series-tag--card {
  margin-top: 14px;
}

.series-tag--head .series-tag__name {
  font-size: clamp(22px, 5vw, 28px);
}

/* 記事詳細：冒頭の連載表示と現在位置 */
.series-head {
  margin-bottom: 48px;
}

.series-progress ol {
  align-items: center;
  margin: 12px 0 0 24px;
  padding: 10px 0;
  list-style: none;
  display: flex;
  overflow: auto hidden;
  scrollbar-width: none;
}

.series-progress ol::-webkit-scrollbar {
  display: none;
}

.series-progress li {
  flex: none;
  align-items: center;
  display: flex;
}

.series-progress li + li:before {
  content: "";
  background: currentColor;
  opacity: .35;
  width: 22px;
  height: 1px;
}

.series-progress__dot {
  border: 1px solid currentColor;
  opacity: .6;
  border-radius: 50%;
  width: 9px;
  height: 9px;
  display: block;
  position: relative;
}

.series-progress a.series-progress__dot:after {
  content: "";
  position: absolute;
  inset: -9px;
}

.series-progress a.series-progress__dot:hover {
  opacity: 1;
  background: currentColor;
}

.series-progress .is-current .series-progress__dot {
  background: var(--bengara);
  border-color: var(--bengara);
  opacity: 1;
  width: 11px;
  height: 11px;
}

/* 記事詳細：末尾の前後リンク */
.series-pager {
  border-top: 1px solid var(--line);
  gap: 16px;
  margin-top: 64px;
  padding-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.series-pager a {
  min-width: 0;
  display: block;
}

.series-pager__prev {
  grid-column: 1;
}

.series-pager__next {
  text-align: right;
  grid-column: 2;
}

.series-pager small {
  letter-spacing: .2em;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  display: block;
}

.series-pager span {
  letter-spacing: .2em;
  opacity: .7;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 9px;
  display: block;
}

.series-pager strong {
  font-family: var(--serif);
  overflow-wrap: anywhere;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  display: block;
}

.series-pager a:hover strong {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .series-pager {
    grid-template-columns: 1fr;
  }

  .series-pager__next {
    text-align: left;
    grid-column: 1;
  }
}

/* 一覧：連載名と同名のタグを選んだときの縦型タイムライン */
.series-timeline[hidden],
[data-series-hide][hidden] {
  display: none;
}

.series-timeline {
  width: min(92%, 720px);
  margin-inline: auto;
  padding-bottom: 60px;
}

.series-timeline:not([hidden]) {
  animation: series-fade .6s ease both;
}

@keyframes series-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.series-timeline__eyebrow {
  color: var(--bengara);
  letter-spacing: .3em;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
}

.series-timeline__title {
  font-family: var(--serif);
  letter-spacing: -.04em;
  overflow-wrap: break-word;
  margin-top: 14px;
  font-size: clamp(32px, 8vw, 54px);
  font-weight: 400;
  line-height: 1.25;
}

.series-timeline__lead {
  font-family: var(--serif);
  margin-top: 28px;
  font-size: 15px;
  line-height: 2.2;
}

.series-timeline__list {
  margin: 64px 0 0;
  padding: 0 0 0 34px;
  list-style: none;
}

.series-timeline__item {
  padding-bottom: 44px;
  position: relative;
}

.series-timeline__item:last-child {
  padding-bottom: 0;
}

.series-timeline__item:not(:last-child):before {
  content: "";
  background: currentColor;
  opacity: .3;
  width: 1px;
  position: absolute;
  top: 17px;
  bottom: -6px;
  left: -29px;
}

.series-timeline__dot {
  background: var(--bengara);
  border-radius: 50%;
  width: 11px;
  height: 11px;
  position: absolute;
  top: 6px;
  left: -34px;
  box-shadow: 0 0 0 5px #223a46;
}

.series-timeline__item a {
  display: block;
}

.series-timeline__item a.has-image {
  align-items: start;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 190px;
  display: grid;
}

.series-timeline__num {
  letter-spacing: .24em;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
}

.series-timeline__item time {
  letter-spacing: .12em;
  opacity: .62;
  margin-left: 14px;
  font-size: 10px;
}

.series-timeline__item h3 {
  font-family: var(--serif);
  letter-spacing: -.03em;
  overflow-wrap: break-word;
  margin-top: 10px;
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 400;
  line-height: 1.4;
}

.series-timeline__item figure {
  margin-top: 2px;
  overflow: hidden;
}

.series-timeline__item img {
  object-fit: cover;
  width: 100%;
  aspect-ratio: 4 / 3;
  transition: transform .8s var(--ease-editorial);
}

.series-timeline__item a:hover img {
  transform: scale(1.03);
}

.series-timeline__item small {
  letter-spacing: .14em;
  border-bottom: 1px solid;
  margin-top: 16px;
  font-size: 8px;
  display: inline-block;
}

@media (max-width: 560px) {
  .series-timeline__item a.has-image {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .series-timeline__item a.has-image figure {
    grid-row: 2;
  }

  .series-timeline__item img {
    aspect-ratio: 16 / 9;
  }
}

/* 連載モード：背景を深い濃紺、文字をアイボリー、アクセントは赤茶色 */
html:has(.story-archive) {
  background-color: var(--paper);
  transition: background-color .6s ease;
}

body:has(.story-archive) {
  background: transparent;
  transition: color .6s ease;
}

html:has(.story-archive--series-mode) {
  background-color: #223a46;
}

body:has(.story-archive--series-mode) {
  color: var(--paper);
}

body:has(.story-archive--series-mode) .site-header .brand,
body:has(.story-archive--series-mode) .site-header .menu-button {
  color: var(--paper);
}

.story-archive--series-mode .story-tags button {
  border-color: #f1ede366;
}

.story-archive--series-mode .story-tags button[aria-pressed=true] {
  color: #223a46;
  background: var(--paper);
  border-color: var(--paper);
}

/* Scroll reveals */
.reveal {
  opacity: 0;
  transition: opacity .9s ease, transform 1.05s var(--ease-editorial);
  will-change: opacity, transform;
}

.reveal-left {
  transform: translate(-34px);
}

.reveal-right {
  transform: translate(34px);
}

.reveal-up {
  transform: translateY(28px);
}

.story__image.reveal-left {
  transform: translate(clamp(-120px,-8vw,-48px));
}

.story__image.reveal-right {
  transform: translate(clamp(48px,8vw,120px));
}

.story__copy.reveal-left {
  transform: translate(clamp(-90px,-6vw,-38px));
}

.story__copy.reveal-right {
  transform: translate(clamp(38px,6vw,90px));
}

.story__copy.reveal {
  transition-delay: .12s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0);
}

@media (width>=720px) {
  :root {
    --content: min(100% - 80px, 1180px);
    --gutter: 40px;
  }

  .site-header {
    height: 112px;
    padding: 34px 40px;
  }

  .brand {
    font-size: 22px;
  }

  .hero__panel {
    width: 50%;
    height: 100%;
    top: 0;
    bottom: auto;
    align-items: flex-end;
  }

  .hero__panel--maker {
    left: 0;
    justify-content: flex-start;
  }

  .hero__panel--user {
    right: 0;
    left: auto;
    justify-content: flex-end;
  }

  .hero__panel>span {
    font-size: 8px;
  }

  .hero__panel--maker>span {
    margin: 0 0 36px 38px;
  }

  .hero__panel--user>span {
    margin: 0 38px 36px 0;
  }

  /* PC: ロゴ（INVENTION…/FUNTABASE）を中央から下げる。paddingは中央基準を動かすので2倍 */
  .hero__copy {
    --hero-shift: 40px;
    padding-top: calc(var(--hero-shift) * 2);
  }

  .hero h1 {
    flex-direction: row;
    font-size: clamp(92px,15vw,190px);
    line-height: .8;
  }

  .hero h1 span:last-child {
    transform: none;
  }

  .hero__tagline {
    position: absolute;
    top: calc(50% + 90px);
    transform: translateY(var(--hero-shift));
  }

  .concept__inner>p:not(.eyebrow) {
    font-size: 15px;
  }

  .notes .section-heading {
    margin-left: 6%;
  }

  .note {
    width: 70%;
    min-height: 400px;
    margin-bottom: 145px;
  }

  .note--right {
    width: 66%;
  }

  .note__rule {
    width: 100px;
    left: calc(100% - 10px);
  }

  .note--right .note__rule {
    right: calc(100% - 10px);
  }

  .note__meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .note--right .note__meta {
    flex-direction: row-reverse;
    align-items: flex-end;
  }

  .now__inner {
    grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
    align-items: center;
    gap: 8vw;
  }

  .now__visual {
    width: 100%;
    margin-left: -40px;
  }

  .news-media__slide img {
    aspect-ratio: 4/5;
    max-height: 700px;
  }

  .news-media__slide figcaption {
    bottom: 7%;
    right: -4vw;
  }

  .story {
    min-height: 850px;
    margin-bottom: 230px;
  }

  /* Keep the home story articles grouped toward the center. */
  .stories .story-list {
    width: min(100%, 1040px);
    margin-inline: auto;
  }

  .stories .story__image {
    width: min(72%, 900px);
  }

  .stories .story--left .story__image {
    margin-left: 0;
  }

  .stories .story--right .story__image {
    margin-right: 0;
  }

  .story__image {
    width: min(76%,1080px);
    padding-top: 135px;
  }

  .story--left .story__image {
    margin-left: -4vw;
  }

  .story--right .story__image {
    margin-right: -4vw;
  }

  .story__image img {
    aspect-ratio: 3/2;
    height: clamp(500px,62vw,720px);
  }

  .story__copy {
    width: min(50%,600px);
    margin-top: -130px;
    padding: 45px 50px 48px;
  }

  .story--left .story__copy {
    margin-right: 8%;
  }

  .story--right .story__copy {
    margin-left: 8%;
  }

  .story--no-image {
    padding-top: 135px;
  }

  .story--no-image .story__copy {
    margin-top: 0;
  }

  .story--no-image.story--right .story__copy {
    margin-left: auto;
  }

  .story__number {
    font-size: 64px;
    top: 90px;
  }

  .story--left .story__number {
    left: 5vw;
  }

  .story--right .story__number {
    right: 5vw;
  }

  .site-footer {
    padding: 110px 40px 34px;
  }

  .site-footer__nav {
    gap: 10px 48px;
  }

  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .story-grid {
    grid-template-columns: repeat(2,1fr);
    gap: 95px 30px;
  }

  .story-card:nth-child(2n) {
    margin-top: 140px;
  }

}

@media (width>=1100px) {
  .site-header {
    padding-inline: 55px;
  }

  .brand {
    flex-direction: row;
    font-size: 24px;
    line-height: 1;
  }

  .global-menu__inner {
    width: min(100% - 80px,900px);
  }

  .hero__copy>p:first-child {
    margin-bottom: 26px;
  }

  .hero__tagline {
    font-size: 25px;
    position: absolute;
    top: calc(50% + 115px);
  }

  .notes .section-heading {
    margin-left: 0;
  }

  .note {
    width: 56%;
  }

  .note--right {
    width: 53%;
  }

  .note__number {
    left: -8vw;
  }

  .note--right .note__number {
    right: -8vw;
  }

  .story__word {
    top: -20px;
  }

  .story--left .story__image {
    margin-left: -8vw;
  }

  .story--right .story__image {
    margin-right: -8vw;
  }

  .stories .story--left .story__image {
    margin-left: 0;
  }

  .stories .story--right .story__image {
    margin-right: 0;
  }

  .story__copy h3 {
    font-size: clamp(46px,4.5vw,60px);
  }

  .story-grid {
    grid-template-columns: repeat(3,1fr);
  }

  .story-card:nth-child(2n) {
    margin-top: 100px;
  }

  .story-card:nth-child(3n+2) {
    margin-top: 140px;
  }

}

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

  *,:before,:after {
    transition-duration: .01ms!important;
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

}

/* About page */
.about-hero {
  min-height: 100svh;
  color: var(--white);
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.about-hero>img {
  object-fit: cover;
  object-position: center;
  filter: saturate(.7)contrast(1.05);
  height: 100%;
  position: absolute;
  inset: 0;
}

.about-hero__veil {
  background: linear-gradient(110deg,#0a1e25f0 5%,#0a1e259e 55%,#0a1e2540);
  position: absolute;
  inset: 0;
}

.about-hero__word {
  color: var(--paper);
  font-family: var(--serif);
  letter-spacing: -.08em;
  opacity: .07;
  font-size: clamp(125px,36vw,430px);
  font-weight: 600;
  line-height: .7;
  position: absolute;
  bottom: -.13em;
  right: -.08em;
}

.about-hero__copy {
  z-index: 2;
  width: var(--content);
  margin-inline: auto;
  padding-top: clamp(170px,28vh,260px);
  position: relative;
}

.about-hero__copy h1 {
  max-width: 1040px;
  font-family: var(--serif);
  letter-spacing: -.07em;
  font-size: clamp(44px,9vw,80px);
  font-weight: 400;
  line-height: 1.17;
}

.about-hero__copy>p:last-child {
  font-family: var(--serif);
  margin-top: 38px;
  font-size: clamp(15px,3vw,22px);
  line-height: 1.9;
}

.about-hero__copy>p:last-child span {
  font-family: var(--sans);
  letter-spacing: .12em;
  opacity: .68;
  margin-top: 16px;
  font-size: .52em;
  font-weight: 600;
  line-height: 1.7;
  display: inline-block;
}

.about-hero__scroll {
  z-index: 3;
  letter-spacing: .18em;
  writing-mode: vertical-rl;
  align-items: center;
  gap: 14px;
  font-size: 8px;
  display: flex;
  position: absolute;
  bottom: 32px;
  right: 20px;
}

.about-hero__scroll i {
  opacity: .55;
  background: currentColor;
  width: 1px;
  height: 64px;
  display: block;
}

.about-nav {
  z-index: 35;
  color: var(--paper);
  backdrop-filter: blur(12px);
  background: #0d2026f5;
  position: sticky;
  top: 64px;
}

@media (width>=720px) {
  .about-nav {
    top: 72px;
  }
}

/* 狭い画面: ヘッダーをナビと同色で塗り、高さを詰めてナビと一続きの帯にする */
@media (width<1100px) {
  body:has(.about-nav) .site-header {
    background: #0d2026f5;
    align-items: center;
    height: 64px;
    padding-block: 0;
  }

  body:has(.about-nav) .site-header .brand,
  body:has(.about-nav) .site-header .menu-button {
    color: var(--paper);
  }

  body:has(.about-nav) .site-header .menu-button {
    padding-block: 5px;
  }
}

@media (width>=720px) and (width<1100px) {
  body:has(.about-nav) .site-header {
    height: 72px;
  }
}

/* 広い画面: ヘッダー（ロゴ/MENU）と同じ高さの帯に重ね、ロゴとMENUの間にナビを置いて一体に見せる */
@media (width>=1100px) {
  .about-nav {
    top: 0;
    height: 112px;
    display: flex;
    align-items: center;
  }

  .about-nav>div {
    justify-content: center;
  }
}

.about-nav>div {
  width: var(--content);
  scrollbar-width: none;
  margin-inline: auto;
  display: flex;
  overflow-x: auto;
}

.about-nav>div::-webkit-scrollbar {
  display: none;
}

.about-nav a {
  letter-spacing: .08em;
  opacity: .42;
  flex: none;
  padding: 17px 18px 16px 0;
  font-size: 9px;
  transition: opacity .3s;
  position: relative;
}

.about-nav a+a {
  padding-left: 18px;
}

.about-nav a span {
  font-family: var(--serif);
  margin-right: 7px;
}

.about-nav a[aria-current=true] {
  opacity: 1;
}

.about-nav a[aria-current=true]:after {
  content: "";
  background: var(--bengara);
  height: 2px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 18px;
}

.about-nav a+a[aria-current=true]:after {
  left: 18px;
}

.about-philosophy {
  position: relative;
  overflow: hidden;
}

/* 各セクション背景の大きな番号（01〜04、ページ内ナビの番号と対応） */
.about-process,
.about-people {
  position: relative;
  overflow: hidden;
}

.about-index {
  color: var(--bengara);
  font-family: var(--serif);
  opacity: .07;
  font-size: clamp(160px,44vw,520px);
  line-height: .8;
  position: absolute;
  top: .1em;
  left: -.08em;
  pointer-events: none;
}

.about-index--right {
  left: auto;
  right: -.08em;
}

.about-index~.container {
  z-index: 2;
  position: relative;
}

.about-philosophy__inner {
  z-index: 2;
  position: relative;
}

.about-philosophy h2 {
  max-width: 1050px;
  font-family: var(--serif);
  letter-spacing: -.065em;
  font-size: clamp(38px,8vw,68px);
  font-weight: 400;
  line-height: 1.32;
}

.about-philosophy h2 em {
  color: var(--bengara);
  font-style: normal;
}

.about-philosophy__text {
  max-width: 580px;
  font-family: var(--serif);
  margin-top: 54px;
  margin-left: auto;
  font-size: 15px;
  line-height: 2.35;
}

.about-philosophy__text p+p {
  margin-top: 24px;
}

.about-origin {
  color: var(--paper);
  background: var(--navy);
  display: grid;
}

.about-origin__image {
  width: 88%;
  position: relative;
}

.about-origin__image img {
  object-fit: cover;
  height: 68vw;
  min-height: 420px;
  max-height: 680px;
}

.about-origin__image:after {
  content: "";
  background: linear-gradient(140deg,#0000 45%,#15303a9e);
  position: absolute;
  inset: 0;
}

.about-origin__image span {
  z-index: 2;
  color: var(--bengara);
  font-family: var(--serif);
  letter-spacing: -.07em;
  font-size: clamp(40px,9vw,70px);
  font-weight: 600;
  line-height: .8;
  position: absolute;
  bottom: -.18em;
  right: -14px;
}

.about-origin__copy {
  width: var(--content);
  margin: 72px auto 0;
}

.about-origin__copy h2,.about-section-heading h2 {
  font-family: var(--serif);
  letter-spacing: -.065em;
  font-size: clamp(40px,9vw,64px);
  font-weight: 400;
  line-height: 1.3;
}

.about-origin__copy>p:not(.eyebrow) {
  max-width: 560px;
  font-family: var(--serif);
  margin-top: 30px;
  font-size: 14px;
  line-height: 2.2;
}

.about-origin__copy>p+p {
  margin-top: 18px;
}

.about-process {
  color: var(--paper);
  background: #0d2026;
}

.about-section-heading {
  max-width: 760px;
}

.about-section-heading>p:last-child {
  font-family: var(--serif);
  margin-top: 26px;
  font-size: 14px;
}

.about-process__list {
  border-top: 1px solid #f1ede33d;
  margin: 70px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.about-process__list li {
  border-bottom: 1px solid #f1ede33d;
  grid-template-columns: 48px 1fr;
  gap: 4px 14px;
  padding: 30px 0;
  display: grid;
}

.about-process__list li>span {
  color: var(--bengara);
  font-family: var(--serif);
  grid-row: 1/4;
  font-size: 30px;
}

.about-process__list small {
  letter-spacing: .18em;
  opacity: .55;
  font-size: 8px;
}

.about-process__list h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}

.about-process__list p {
  max-width: 420px;
  font-family: var(--serif);
  opacity: .72;
  font-size: 12px;
  line-height: 2;
}

.about-people {
  overflow: hidden;
}

.about-people__grid {
  gap: 100px;
  margin-top: 70px;
  display: grid;
}

.about-person figure {
  position: relative;
  overflow: hidden;
}

.about-person figure:after {
  content: "";
  background: linear-gradient(145deg,#0000 55%,#15303a52);
  position: absolute;
  inset: 0;
}

.about-person img {
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-person>div {
  background: var(--paper);
  width: 88%;
  margin-top: -46px;
  margin-left: auto;
  padding: 28px 0 0 28px;
  position: relative;
}

.about-person>div>p:first-child {
  letter-spacing: .15em;
  justify-content: space-between;
  font-size: 8px;
  font-weight: 700;
  display: flex;
}

.about-person>div>p:first-child span {
  color: var(--bengara);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.about-person h3 {
  font-family: var(--serif);
  letter-spacing: -.05em;
  margin-top: 18px;
  font-size: clamp(34px,8vw,54px);
  font-weight: 400;
  line-height: 1.15;
}

.about-person h3 small {
  font-family: var(--sans);
  letter-spacing: .14em;
  margin-top: 9px;
  font-size: 9px;
  font-weight: 600;
  display: block;
}

.about-person__role {
  font-family: var(--serif);
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.8;
}

.about-person__bio {
  font-family: var(--serif);
  margin-top: 28px;
  font-size: 13px;
  line-height: 2.1;
}

.about-person__bio p+p {
  margin-top: 18px;
}

.about-person__awards {
  border-top: 1px solid var(--line);
  grid-template-columns: 74px 1fr;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  display: grid;
}

.about-person__awards>p {
  letter-spacing: .14em;
  font-size: 8px;
  font-weight: 700;
}

.about-person__awards ul {
  letter-spacing: .06em;
  margin: 0;
  padding: 0;
  font-size: 9px;
  line-height: 2;
  list-style: none;
}

.about-values {
  color: var(--paper);
  background: var(--bengara-dark);
}

.about-values__grid {
  border-top: 1px solid #f1ede34d;
  margin-top: 38px;
  display: grid;
}

.about-values article {
  border-bottom: 1px solid #f1ede34d;
  padding: 32px 0;
  position: relative;
}

.about-values article>span {
  font-family: var(--serif);
  opacity: .55;
  font-size: 12px;
}

.about-values h2 {
  font-family: var(--serif);
  letter-spacing: -.04em;
  margin-top: 8px;
  font-size: clamp(29px,7vw,45px);
  font-weight: 400;
}

.about-values article p {
  font-family: var(--serif);
  opacity: .72;
  margin-top: 13px;
  font-size: 12px;
}

.about-company {
  position: relative;
  overflow: hidden;
}

.about-company:after {
  content: "PROFILE";
  z-index: 0;
  font-family: var(--serif);
  letter-spacing: -.08em;
  opacity: .035;
  font-size: clamp(110px,28vw,300px);
  font-weight: 600;
  line-height: .7;
  position: absolute;
  bottom: -.1em;
  right: -.08em;
}

.about-company__layout {
  z-index: 2;
  position: relative;
}

.about-company__list {
  margin: 65px 0 0;
}

.about-company__list>div {
  border-top: 1px solid var(--line);
  grid-template-columns: 94px 1fr;
  gap: 20px;
  padding: 22px 0;
  display: grid;
}

.about-company__list>div:last-child {
  border-bottom: 1px solid var(--line);
}

.about-company dt {
  letter-spacing: .12em;
  font-size: 9px;
  font-weight: 700;
}

.about-company dd {
  font-family: var(--serif);
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
}

.about-company dd small {
  font-family: var(--sans);
  letter-spacing: .08em;
  opacity: .55;
  font-size: 9px;
}

.about-company dd a {
  border-bottom: 1px solid #17282e59;
  display: inline-block;
}

.about-next {
  color: var(--paper);
  background: var(--navy);
  display: grid;
}

.about-next a {
  border-bottom: 1px solid #f1ede338;
  gap: 12px;
  padding: 36px 20px;
  transition: color .3s,background .3s;
  display: grid;
  position: relative;
}

.about-next a:hover {
  color: var(--navy);
  background: var(--paper);
}

.about-next small {
  letter-spacing: .18em;
  opacity: .6;
  font-size: 8px;
}

.about-next strong {
  max-width: 280px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}

.about-next i {
  font-size: 20px;
  font-style: normal;
  position: absolute;
  bottom: 35px;
  right: 20px;
}

@media (width>=720px) {
  .about-hero__scroll {
    right: 40px;
  }

  .about-nav a {
    padding-block: 20px;
    padding-right: 28px;
  }

  .about-nav a+a {
    padding-left: 28px;
  }

  .about-nav a[aria-current=true]:after {
    right: 28px;
  }

  .about-nav a+a[aria-current=true]:after {
    left: 28px;
  }

  .about-origin {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    align-items: center;
  }

  .about-origin__image {
    width: 100%;
  }

  .about-origin__image img {
    height: 760px;
    max-height: none;
  }

  .about-origin__copy {
    width: auto;
    margin: 0;
    padding: 80px clamp(40px,7vw,110px);
  }

  .about-process__list {
    border-left: 1px solid #f1ede33d;
    grid-template-columns: repeat(2,1fr);
  }

  .about-process__list li {
    border-right: 1px solid #f1ede33d;
    min-height: 260px;
    padding: 35px;
  }

  .about-people__grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    align-items: start;
    gap: 8vw;
  }

  .about-person--user {
    margin-top: 140px;
  }

  .about-values__grid {
    border-left: 1px solid #f1ede34d;
    grid-template-columns: repeat(3,1fr);
  }

  .about-values article {
    border-right: 1px solid #f1ede34d;
    min-height: 260px;
    padding: 36px 30px;
  }

  .about-company__layout {
    grid-template-columns: .8fr 1.2fr;
    align-items: start;
    gap: 10vw;
    display: grid;
  }

  .about-company__list {
    margin-top: 0;
  }

  .about-next {
    grid-template-columns: repeat(3,1fr);
  }

  .about-next a {
    border-bottom: 0;
    border-right: 1px solid #f1ede338;
    min-height: 190px;
    padding: 40px;
  }

  .about-next i {
    bottom: 40px;
    right: 40px;
  }

}

@media (width>=1100px) {
  .about-hero__copy {
    padding-top: 220px;
  }

  .about-philosophy__text {
    margin-top: 80px;
  }

  .about-process__list {
    grid-template-columns: repeat(4,1fr);
  }

  .about-process__list li {
    min-height: 330px;
    display: block;
  }

  .about-process__list li>span {
    margin-bottom: 60px;
    display: block;
  }

  .about-process__list h3 {
    margin-top: 10px;
  }

  .about-process__list p {
    margin-top: 18px;
  }

  .about-person--maker {
    margin-left: -4vw;
  }

  .about-person--user {
    margin-right: -4vw;
  }

}

@media (width>=720px) {
  .notes .section-heading {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
    transform: none;
  }

  .note--left {
    margin-left: min(9vw,130px);
  }

  .note--right {
    margin-right: min(9vw,130px);
  }

}

/* STORE page (page-store.php) */
.store-hero {
  min-height: 88svh;
  color: var(--white);
  background: var(--navy);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.store-hero__word {
  color: var(--paper);
  font-family: var(--serif);
  letter-spacing: -.08em;
  opacity: .07;
  font-size: clamp(125px,36vw,430px);
  font-weight: 600;
  line-height: .7;
  position: absolute;
  bottom: -.13em;
  right: -.08em;
}

.store-hero__copy {
  z-index: 2;
  text-align: center;
  width: min(100% - 48px,760px);
  position: relative;
}

.store-hero__copy h1 {
  font-family: var(--serif);
  letter-spacing: -.06em;
  margin-top: 25px;
  font-size: clamp(40px,8vw,60px);
  font-weight: 400;
  line-height: 1.3;
}

.store-hero__copy>p:last-child {
  font-family: var(--serif);
  margin-top: 25px;
  font-size: 15px;
  line-height: 1.9;
}

.store-hero__scroll {
  z-index: 3;
  letter-spacing: .18em;
  writing-mode: vertical-rl;
  align-items: center;
  gap: 14px;
  font-size: 8px;
  display: flex;
  position: absolute;
  bottom: 32px;
  right: 20px;
}

.store-hero__scroll i {
  opacity: .55;
  background: currentColor;
  width: 1px;
  height: 64px;
  display: block;
}

.store-links--dark {
  color: var(--white);
  background: var(--navy);
}

.store-links--dark .section-heading__description {
  opacity: .78;
}

.store-links__grid {
  gap: 28px;
  margin-top: 50px;
  display: grid;
}

.store-links__card {
  border: 1px solid var(--line);
  padding: 28px;
}

.store-links--dark .store-links__card {
  border-color: #f1ede333;
}

.store-links__top {
  letter-spacing: .14em;
  opacity: .6;
  font-size: 9px;
}

.store-links__brand {
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  display: flex;
}

.store-links__brand img {
  object-fit: contain;
  width: 32px;
  height: 32px;
}

.store-links__brand p {
  letter-spacing: .1em;
  opacity: .65;
  font-size: 9px;
}

.store-links__brand h3 {
  font-family: var(--serif);
  margin-top: 4px;
  font-size: 20px;
  font-weight: 400;
}

.store-links__desc {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.8;
}

.store-links__link {
  letter-spacing: .08em;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 12px;
  display: inline-flex;
}

.store-links__link b {
  font-style: normal;
}

.store-next {
  color: var(--paper);
  background: var(--ink);
  grid-template-columns: 1fr;
  display: grid;
}

.store-next a {
  border-bottom: 1px solid #f1ede338;
  gap: 12px;
  padding: 36px 20px;
  transition: color .3s,background .3s;
  display: grid;
  position: relative;
}

.store-next a:hover {
  color: var(--ink);
  background: var(--paper);
}

.store-next small {
  letter-spacing: .18em;
  opacity: .6;
  font-size: 8px;
}

.store-next strong {
  max-width: 280px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}

.store-next i {
  font-size: 20px;
  font-style: normal;
  position: absolute;
  bottom: 35px;
  right: 20px;
}

@media (width>=560px) {
  .store-links__grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (width>=720px) {
  .store-next {
    grid-template-columns: repeat(2,1fr);
  }

  .store-next a {
    border-bottom: 0;
    border-right: 1px solid #f1ede338;
    min-height: 190px;
    padding: 40px;
  }

  .store-next i {
    bottom: 40px;
    right: 40px;
  }
}

@media (width>=980px) {
  .store-links__grid {
    grid-template-columns: repeat(3,1fr);
  }
}

/* 書き手ライン（もの＝浅山代表／こと＝遥香様）の共通色 */
.author-line--koto {
  background: var(--bengara);
}

@media (width<720px) {
  .note-list:before {
    display: none;
  }

  .note {
    width: 80%;
  }

  .note--left {
    margin-left: min(3vw, 14px);
  }

  .note--right {
    margin-right: min(3vw, 14px);
  }

  .note__author-line {
    left: -12px;
  }

  .note--right .note__author-line {
    right: -12px;
  }

  .story {
    min-height: 0;
    margin-block: 0 110px;
  }

  .archive-notes:before {
    display: none;
  }

  .archive-note {
    width: 80%;
    margin-left: min(3vw, 14px);
  }

  .archive-note--right {
    margin-left: auto;
    margin-right: min(3vw, 14px);
  }

  .archive-note__author-line {
    left: -12px;
  }

  .archive-note--right .archive-note__author-line {
    right: -12px;
  }

  .concept:before {
    display: none;
  }

  .store__inner {
    width: min(100% - 24px, 640px);
  }

  .store h2 {
    font-size: clamp(32px, 8.4vw, 64px);
  }
}

/* ティザーページ（クラウドファンディング告知：公式LINE→Makuake→通常販売） */
.teaser-detail {
  width: var(--content);
  max-width: 920px;
  margin-inline: auto;
  padding: 150px 0 140px;
}

.teaser-hero {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.teaser-hero h1 {
  font-family: var(--serif);
  letter-spacing: -.05em;
  text-wrap: balance;
  margin-top: 20px;
  font-size: clamp(32px, 7vw, 52px);
  font-weight: 400;
  line-height: 1.4;
}

.teaser-hero__lead {
  font-family: var(--serif);
  margin-top: 26px;
  font-size: 15px;
  line-height: 2.1;
}

.teaser-detail__gallery {
  max-width: 680px;
  margin: 60px auto 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.teaser-detail__gallery-item img {
  width: 100%;
  display: block;
}

.teaser-detail__body {
  max-width: 650px;
  font-family: var(--serif);
  margin: 60px auto 0;
  font-size: 16px;
  line-height: 2.4;
}

.teaser-detail__body p + p {
  margin-top: 28px;
}

.teaser-detail__body img {
  margin-top: 24px;
}

.teaser-cta {
  text-align: center;
  margin-top: 80px;
}

.teaser-cta__button {
  border: 1px solid var(--ink);
  letter-spacing: .1em;
  gap: 12px;
  padding: 18px 40px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  transition: color .3s ease, background .3s ease;
}

.teaser-cta__button b {
  font-style: normal;
}

.teaser-cta__button:hover {
  color: var(--paper);
  background: var(--ink);
}

.teaser-cta--makuake .teaser-cta__button {
  border-color: var(--bengara);
  color: var(--bengara-dark);
}

.teaser-cta--makuake .teaser-cta__button:hover {
  color: var(--paper);
  background: var(--bengara);
}

/* Archive pages: back to TOP */
.archive-wrap>.back-link {
  margin-bottom: 20px;
}

/* Dark full-bleed heroes (STORE / products): back to TOP */
.hero-back {
  z-index: 3;
  color: var(--white);
  margin-bottom: 0;
  position: absolute;
  top: 96px;
  left: calc((100% - var(--content)) / 2);
}

.teaser-detail>.back-link {
  margin-bottom: 40px;
}

/* Legal pages (privacy policy etc.) */
.legal-detail {
  width: var(--content);
  max-width: 820px;
  margin-inline: auto;
  padding: 130px 0 140px;
}

.legal-detail .back-link {
  margin-bottom: 40px;
}

.legal-detail h1 {
  font-family: var(--serif);
  letter-spacing: -.04em;
  margin-top: 24px;
  font-size: clamp(32px,7vw,52px);
  font-weight: 400;
  line-height: 1.4;
}

.legal-detail__lead {
  font-family: var(--serif);
  margin-top: 36px;
  font-size: 15px;
  line-height: 2.2;
}

.legal-detail__section {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding-top: 32px;
}

.legal-detail__section h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
}

.legal-detail__section p,
.legal-detail__section li {
  font-family: var(--serif);
  margin-top: 16px;
  font-size: 14px;
  line-height: 2.1;
}

.legal-detail__section ul {
  margin: 0;
  padding-left: 1.4em;
  list-style: disc;
}

.legal-detail__section li {
  margin-top: 6px;
}

.legal-detail__contact {
  margin: 20px 0 0;
}

.legal-detail__contact>div {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  font-size: 14px;
  display: grid;
}

.legal-detail__contact dt {
  letter-spacing: .08em;
  font-size: 12px;
}

.legal-detail__contact dd {
  margin: 0;
}

.legal-detail__contact a {
  border-bottom: 1px solid;
}

.legal-detail__date {
  font-size: 12px;
  letter-spacing: .08em;
  margin-top: 56px;
}

/* Footer: PC = catchphrase left / © centered / privacy right */
.site-footer__legal {
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
}

.site-footer__legal small {
  text-align: center;
  margin-top: 24px;
}

.site-footer__legal a:hover {
  color: var(--paper);
}

@media (min-width: 761px) {
  .site-footer__bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .site-footer__legal {
    display: contents;
  }

  .site-footer__legal small {
    grid-column: 2;
    margin-top: 0;
  }

  .site-footer__legal a {
    grid-column: 3;
    justify-self: end;
  }
}
