/* 06「少しずつ、生きたまま。」つくり手のフォトエッセイ  refs #1379 */
:root {
  --paper: #EDEFEC;      /* ステンレスと白衣の白。ページの地 */
  --ink: #22282B;        /* 本文・見出し */
  --steel: #5B6367;      /* キャプション・補足 */
  --mist: #D6DAD8;       /* 写真の台・区切り */
  --amber: #D89A3A;      /* ひとつだけの温かい色（面） */
  --amber-deep: #8C5307; /* 同じ色の、文字に使える濃さ */
  --night: #262C2F;      /* 「使いません」の章とフッター */
  --night-text: #E9ECEA;
  --night-sub: #AEB5B3;

  --mincho: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --gut: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mincho);
  font-size: 17px;
  line-height: 2;
  font-feature-settings: "palt" 0;
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
figure { margin: 0; }
figcaption, .cap {
  margin-top: 10px;
  font-family: var(--gothic);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--steel);
}
:focus-visible { outline: 3px solid var(--amber-deep); outline-offset: 3px; }
.nw { white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 12px; font-family: var(--gothic); z-index: 20; }
.skip:focus { top: 8px; }

/* 写真は彩度を落として静かに（商品写真には掛けない） */
.hero__photo img, .step img, .makers img, .why img, .people img, .contact img { filter: saturate(.6) contrast(1.02); }

.h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.5; letter-spacing: .04em; margin-bottom: .9em; }
.h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.5; letter-spacing: .04em; margin-bottom: .8em; }

/* ---------- ヘッダー ---------- */
.site-head {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gut);
  background: var(--paper);
}
.mark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.mark__ja { font-family: var(--mincho); font-weight: 900; font-size: 24px; letter-spacing: .12em; line-height: 1.4; }
.mark__en { font-family: var(--gothic); font-size: 13px; color: var(--steel); letter-spacing: .06em; }
.site-nav { display: flex; gap: clamp(14px, 3vw, 36px); font-family: var(--gothic); font-size: 14px; }
.site-nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--amber); }

/* ---------- ヒーロー ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  height: min(84vh, 780px);
  min-height: 520px;
}
.hero__photo { overflow: hidden; background: var(--mist); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.hero__words {
  display: flex; flex-direction: row-reverse; align-items: flex-start; gap: clamp(10px, 1.6vw, 24px);
  padding: clamp(28px, 4vw, 56px) clamp(16px, 4vw, 64px) 28px clamp(14px, 3vw, 48px);
}
.hero__title {
  writing-mode: vertical-rl;
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .14em;
  animation: unveil 2.6s cubic-bezier(.4, 0, .2, 1) .3s both;
}
.hero__sub {
  writing-mode: vertical-rl;
  margin: 0;
  padding-top: 7.5em;
  font-family: var(--gothic);
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: .22em;
  color: var(--steel);
  animation: fade 1.2s ease 2.4s both;
}
@keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero__cap { margin: 0; padding: 10px var(--gut); }
.hero__cap { font-family: var(--gothic); font-size: 12px; color: var(--steel); letter-spacing: .04em; line-height: 1.7; }

.lead { padding: clamp(72px, 11vw, 160px) var(--gut); }
.lead__text {
  max-width: 24em; margin: 0 auto;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 2.1;
  letter-spacing: .04em;
}

/* ---------- つくり手 ---------- */
.makers {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px;
  padding: 0 var(--gut) clamp(96px, 12vw, 180px);
  max-width: 1360px; margin: 0 auto;
}
.makers__photo { grid-column: 2 / 8; }
.makers__photo img { width: 100%; max-width: 600px; }
.makers__text { grid-column: 8 / 13; align-self: end; max-width: 26em; }

/* ---------- 工程 ---------- */
.process { padding: 0 var(--gut); max-width: 1440px; margin: 0 auto; }
.process__head { max-width: 1240px; margin: 0 auto clamp(56px, 8vw, 120px); padding-left: calc((100% - 0px) / 12); }
.process__head p { color: var(--steel); }
.step {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 28px;
  margin-bottom: clamp(104px, 15vw, 220px);
}
.step__photo img { width: 100%; }
.step__text { max-width: 22em; }
.step__text p:last-child { margin-bottom: 0; }
.step__no {
  margin: 0 0 .15em;
  font-size: clamp(60px, 7vw, 100px);
  font-weight: 900;
  line-height: 1;
  color: var(--amber-deep);
}
.step__inset { margin-top: 32px; max-width: 280px; }
.step__inset img { width: 100%; }

@media (min-width: 900px) {
  .step--1 .step__photo { grid-column: 1 / 9; margin-left: calc(-1 * var(--gut)); }
  .step--1 .step__photo figcaption { padding-left: var(--gut); }
  .step--1 .step__text { grid-column: 9 / 13; align-self: end; padding-left: 16px; }

  .step--2 .step__text { grid-column: 2 / 6; grid-row: 1; align-self: end; }
  .step--2 .step__photo { grid-column: 6 / 13; grid-row: 1; margin-right: calc(-1 * var(--gut)); }
  .step--2 .step__photo figcaption { padding-right: var(--gut); text-align: right; }

  .step--3 .step__photo { grid-column: 3 / 11; }
  .step--3 .step__text { grid-column: 4 / 10; }

  .step--4 .step__text { grid-column: 7 / 12; grid-row: 2; }
  .step--4 .step__photo { grid-column: 1 / 13; grid-row: 1; margin-inline: calc(-1 * var(--gut)); }
  .step--4 .step__photo img { aspect-ratio: 16 / 8; object-fit: cover; object-position: 50% 45%; }
  .step--4 .step__photo figcaption { padding-left: var(--gut); }

  .step--5 .step__photo { grid-column: 2 / 8; }
  .step--5 .step__text { grid-column: 9 / 13; align-self: center; }

  .step--6 .step__photo { grid-column: 1 / 11; margin-left: calc(-1 * var(--gut)); }
  .step--6 .step__photo figcaption { padding-left: var(--gut); }
  .step--6 .step__text { grid-column: 3 / 8; }
}

/* ---------- 使わない理由 ---------- */
.why { background: var(--night); color: var(--night-text); padding: clamp(96px, 13vw, 180px) var(--gut); }
.why__inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 32px;
}
.why__title {
  grid-column: 1 / 8;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.5; letter-spacing: .05em;
}
.why__title::after {
  content: ""; display: block; width: 48px; height: 3px; margin-top: .7em; background: var(--amber);
}
.why__body { grid-column: 1 / 7; max-width: 24em; }
.why__body p { color: var(--night-text); }
.why__photo { grid-column: 8 / 13; grid-row: 1 / 3; align-self: end; }
.why__photo img { width: 100%; max-width: 530px; }
.why__photo figcaption { color: var(--night-sub); }
.why :focus-visible { outline-color: var(--amber); }

/* ---------- 代表 ---------- */
.people {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 32px;
  max-width: 1360px; margin: 0 auto;
  padding: clamp(96px, 13vw, 180px) var(--gut);
}
.people__photo { grid-column: 1 / 8; }
.people__photo img { width: 100%; max-width: 760px; }
.people__text { grid-column: 8 / 13; align-self: center; max-width: 24em; }
.people__note { font-family: var(--gothic); font-size: 13px; line-height: 1.9; color: var(--steel); }

/* ---------- 商品 ---------- */
.products {
  border-top: 1px solid var(--mist);
  padding: clamp(88px, 11vw, 160px) var(--gut) clamp(64px, 8vw, 120px);
  max-width: 1360px; margin: 0 auto;
}
.products__head { max-width: 40em; margin-bottom: 40px; }
.products__head p { color: var(--steel); font-size: 16px; }

.pick { display: flex; flex-wrap: wrap; gap: clamp(8px, 2.4vw, 32px); margin: 0 0 12px; }
.pick__btn {
  appearance: none; border: 0; background: none; cursor: pointer;
  display: grid; justify-items: center; gap: 6px;
  padding: 6px 4px; min-width: 64px;
  font-family: var(--gothic); color: var(--ink);
}
.pick__btn img, .pick__btn::before {
  width: clamp(56px, 8vw, 96px); height: clamp(56px, 8vw, 96px);
  border-radius: 50%; object-fit: cover;
  filter: saturate(.5);
  box-shadow: 0 0 0 3px transparent;
  transition: box-shadow .2s, filter .2s;
}
.pick__btn[data-animal="all"]::before {
  content: "31"; display: grid; place-items: center;
  background: var(--mist);
  font-family: var(--mincho); font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); color: var(--ink);
}
.pick__name { font-size: 15px; line-height: 1.4; font-weight: 500; }
.pick__count { font-size: 12px; line-height: 1.4; color: var(--steel); }
.pick__btn[aria-pressed="true"] img, .pick__btn[aria-pressed="true"]::before { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--amber); filter: none; }
.pick__btn[aria-pressed="true"] .pick__name { font-weight: 700; }
.pick__btn:hover img { filter: none; }
.products__status { font-family: var(--gothic); font-size: 13px; color: var(--steel); margin: 8px 0 48px; min-height: 1.6em; }

.series {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 24px;
  padding: 40px 0 56px;
  border-top: 1px solid var(--mist);
}
.series__head { grid-column: 1 / 4; }
.series__head > div { position: sticky; top: 84px; }
.series__name { font-size: clamp(20px, 2vw, 24px); line-height: 1.5; letter-spacing: .04em; margin-bottom: .5em; }
.series__lead { font-family: var(--gothic); font-size: 13px; line-height: 1.9; color: var(--steel); margin: 0; max-width: 18em; }
.series__items { grid-column: 4 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 24px; }

.item { display: flex; flex-direction: column; }
.item__img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: #E8E8E6; }
.item__form { margin: 12px 0 2px; font-family: var(--gothic); font-size: 12px; line-height: 1.6; color: var(--steel); }
.item__name { font-size: 16px; line-height: 1.6; font-weight: 700; letter-spacing: .02em; margin-bottom: 6px; }
.item__price { font-family: var(--gothic); font-size: 16px; font-weight: 500; line-height: 1.6; margin: auto 0 12px; }
.item__price small { font-size: 12px; font-weight: 400; color: var(--steel); }
.item__acts { display: grid; gap: 6px; }
.buy, .ask {
  display: block; text-align: center; text-decoration: none;
  font-family: var(--gothic); font-size: 14px; font-weight: 700; line-height: 1.5;
  padding: 10px 8px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink); border-radius: 2px;
  transition: background-color .15s;
}
.buy:hover { background: var(--amber); }
.ask { border-color: var(--steel); font-weight: 500; }
.ask:hover { background: var(--mist); }
.item__price--ask { font-size: 13px; font-weight: 400; color: var(--steel); }
.detail .buy { background: var(--amber); border-color: var(--amber); }
.detail .buy:hover { background: #E2AA55; }
.more {
  appearance: none; background: none; border: 0; cursor: pointer;
  font-family: var(--gothic); font-size: 13px; line-height: 1.5; color: var(--ink);
  padding: 8px 4px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--steel);
}
.more:hover { text-decoration-color: var(--amber-deep); }
.products__note { font-family: var(--gothic); font-size: 13px; color: var(--steel); margin-top: 32px; }

/* ---------- 詳細ダイアログ ---------- */
.detail {
  width: min(760px, calc(100% - 24px)); max-height: calc(100% - 32px);
  padding: 0; border: 0; border-radius: 2px;
  background: var(--paper); color: var(--ink);
}
.detail::backdrop { background: rgba(38, 44, 47, .72); }
.detail__inner { padding: clamp(20px, 4vw, 40px); }
.detail__bar { position: sticky; top: 0; height: 0; z-index: 2; margin: 0; }
.detail__close {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--gothic); font-size: 13px; padding: 6px 12px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--steel); border-radius: 2px; cursor: pointer;
}
.detail__imgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 28px 0 20px; }
.detail__imgs img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: #E8E8E6; }
.detail h2 { font-size: clamp(20px, 2.6vw, 26px); line-height: 1.5; margin: 8px 0 4px; padding-right: 72px; }
.detail h3 { font-size: 17px; margin: 28px 0 8px; }
.detail__series { font-family: var(--gothic); font-size: 13px; color: var(--steel); margin: 0; padding-right: 72px; }
.detail__price { font-family: var(--gothic); font-size: 17px; font-weight: 500; }
.detail p, .detail dd { font-size: 15px; line-height: 1.95; }
.detail dl { margin: 0; }
.detail dt { font-family: var(--gothic); font-size: 13px; font-weight: 700; margin-top: 8px; }
.detail dd { margin: 0 0 8px; }
.detail__buy { margin: 12px 0 8px; max-width: 320px; }

/* ---------- お問い合わせ ---------- */
.contact {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 32px;
  max-width: 1360px; margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--gut) clamp(96px, 12vw, 160px);
  border-top: 1px solid var(--mist);
}
.contact__photo { grid-column: 2 / 5; }
.contact__photo img { width: 100%; max-width: 300px; }
@media (max-width: 899px) { .contact__photo img { max-width: 220px; } }
.contact__text { grid-column: 6 / 12; }
.contact__tel { font-size: clamp(30px, 4vw, 44px); font-weight: 700; line-height: 1.3; letter-spacing: .04em; margin: .4em 0 .1em; }
.contact__tel a { text-decoration: none; }
.contact__hours { font-family: var(--gothic); font-size: 14px; color: var(--steel); }
.contact__links { list-style: none; padding: 0; margin: 28px 0; display: flex; flex-wrap: wrap; gap: 12px 32px; font-family: var(--gothic); font-size: 15px; }
.contact__links a { text-underline-offset: 5px; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.contact__addr { font-family: var(--gothic); font-size: 13px; color: var(--steel); }

/* ---------- フッター ---------- */
.site-foot {
  background: var(--night); color: var(--night-text);
  padding: 56px var(--gut) 64px;
  font-family: var(--gothic); font-size: 13px; line-height: 1.9;
}
.site-foot__logo { width: 220px; margin-bottom: 20px; }
.site-foot p { margin: 0; }
.site-foot small { font-size: 12px; color: var(--night-sub); }

/* ---------- SP ---------- */
@media (max-width: 899px) {
  .makers, .people, .contact, .why__inner { grid-template-columns: 1fr; }
  .makers__photo, .makers__text, .people__photo, .people__text, .contact__photo, .contact__text,
  .why__title, .why__body, .why__photo { grid-column: 1; grid-row: auto; }
  .process__head { padding-left: 0; }
  .step { grid-template-columns: 1fr; }
  .step > * { grid-column: 1; }
  .step__photo { order: 0; }
  .step__text { order: 1; }
  .step--1 .step__photo, .step--2 .step__photo, .step--4 .step__photo, .step--6 .step__photo { margin-inline: calc(-1 * var(--gut)); }
  .step--1 .step__photo figcaption, .step--2 .step__photo figcaption, .step--4 .step__photo figcaption, .step--6 .step__photo figcaption { padding-inline: var(--gut); }
  .series { grid-template-columns: 1fr; padding: 32px 0 40px; }
  .series__head, .series__items { grid-column: 1; }
  .series__head > div { position: static; }
  .series__items { grid-template-columns: repeat(2, 1fr); gap: 36px 14px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-head { padding-block: 10px; }
  .mark__ja { font-size: 21px; }
  .mark__en { font-size: 12px; }
  .site-nav { font-size: 13px; gap: 14px; }
  .hero { height: 76vh; min-height: 500px; max-height: 640px; }
  .hero__photo img { object-position: 30% 50%; }
  .hero__title { font-size: 34px; letter-spacing: .1em; }
  .hero__sub { font-size: 12px; padding-top: 6em; letter-spacing: .16em; }
  .hero__words { padding: 24px 14px 20px 10px; gap: 6px; }
  .pick { justify-content: space-between; gap: 4px; }
  .pick__btn { min-width: 0; padding: 4px 0; }
  .pick__name { font-size: 14px; }
  .item__name { font-size: 15px; }
  .item__price { font-size: 15px; }
  .buy, .ask { font-size: 13px; padding: 10px 4px; }
}
@media (max-width: 379px) {
  .nav-process { display: none; }
  .detail { width: calc(100% - 16px); }
  .detail__inner { padding: 20px 16px; }
  .detail p, .detail dd { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
