/* =========================================================
   KOYOMI Lab — style.css
   和紙の地色、墨の文字、ミントの差し色（KOYOMI Lab のメインカラー #B7DDD1）。
   ========================================================= */

/* ---------- 色・書体・寸法 ---------- */
:root {
  --washi: #EDE8DF;
  --washi-light: #F5F1EA;
  --washi-deep: #E2DACD;
  --sumi: #2A2724;
  --sumi-soft: #57514A;
  --sumi-mute: #847D72;
  --line: rgba(42, 39, 36, .14);
  --line-strong: rgba(42, 39, 36, .28);
  --mint: #B7DDD1;       /* メインカラー。面（ボタン・バッジ・帯の上の差し色）に使う */
  --mint-deep: #2F6A57;  /* 同じ色相の濃いミント。和紙色の上の文字・細い線に使う（5.2:1） */

  --serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --brand: "Zen Old Mincho", Georgia, serif;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 8px;          /* 画像・表・カードの角丸 */
  --radius-ui: 4px;       /* ボタン・カテゴリ・ラベル・言語メニューの角丸（--radius の半分） */
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--washi);
  color: var(--sumi);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html:lang(ja) body { letter-spacing: .04em; line-height: 1.95; }

/* 和紙のような細かい粒子 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .15 0 0 0 0 .14 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; transition: color .2s; }
a:hover { color: var(--mint-deep); }
:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 3px; }
::selection { background: var(--mint); color: var(--sumi); }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .03em;
  text-wrap: balance;
}
html:lang(en) :is(h1, h2, h3, h4) { letter-spacing: 0; }
p { margin: 0; }
/* 英語だけ、最後の行に1語だけ残らないようにする。
   日本語は iPhone の Safari で行の長さをそろえようとして右側が空いてしまうため、ふつうの折り返しのまま */
html:lang(en) p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
small { font-size: inherit; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.about-privacy > * { max-width: 46em; }  /* 左端はほかの段と揃え、文の幅だけ読みやすく */
.muted { color: var(--sumi-soft); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 8px 16px; background: var(--sumi); color: var(--washi);
}
.skip-link:focus { top: 12px; color: var(--washi); }

.icon { width: 1em; height: 1em; flex: none; }
.icon--external { width: .7em; height: .7em; margin-left: .45em; }
.icon--arrow { width: .9em; height: .9em; margin-left: .55em; transition: transform .25s var(--ease); }

/* ---------- 見出しの小さなラベル ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .8em;
  margin-bottom: 1.1rem;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--mint-deep);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .7em 1.6em;
  border: 1px solid var(--sumi);
  border-radius: var(--radius-ui);
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--primary { background: var(--sumi); color: var(--washi); }
.btn--primary:hover { background: var(--mint); border-color: var(--mint); color: var(--sumi); }
.btn--ghost { background: transparent; color: var(--sumi); }
.btn--ghost:hover { background: var(--sumi); color: var(--washi); }
.btn--light { background: var(--washi); border-color: var(--washi); color: var(--sumi); }
.btn--light:hover { background: var(--mint); border-color: var(--mint); color: var(--sumi); }
.btn--small { min-height: 36px; padding: .4em 1em; font-size: .78rem; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(237, 232, 223, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }

.wordmark {
  font-family: var(--brand);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--sumi);
}
.wordmark:hover { color: var(--sumi); }
.wordmark { display: inline-flex; align-items: center; }
.wordmark__img { display: block; width: auto; height: 40px; max-width: 240px; object-fit: contain; }
@media (min-width: 900px) { .wordmark__img { height: 46px; } }

.gnav { display: none; gap: 32px; margin-left: 40px; }
.gnav a {
  position: relative;
  padding-block: 6px;
  font-size: .88rem;
  white-space: nowrap;
  color: var(--sumi-soft);
  text-decoration: none;
}
.gnav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--mint-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.gnav a:hover,
.gnav a[aria-current="page"] { color: var(--sumi); }
.gnav a:hover::after,
.gnav a[aria-current="page"]::after { transform: scaleX(1); }

.site-header__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-cta { display: none; }

@media (min-width: 560px) { .header-cta { display: inline-flex; } }
@media (min-width: 900px) {
  .gnav { display: flex; }
  .menu { display: none; }
}

/* ドロップダウン（言語・メニュー） */
.dropdown { position: relative; }
.dropdown > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-ui);
  font-size: .82rem;
  color: var(--sumi-soft);
  list-style: none;
  cursor: pointer;
  user-select: none;
  justify-content: center;
}
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown > summary:hover,
.dropdown[open] > summary { border-color: var(--line-strong); color: var(--sumi); }
.dropdown > summary .icon { width: 1.15em; height: 1.15em; }
.dropdown > summary .icon--chevron { width: .75em; height: .75em; transition: transform .2s; }
.dropdown[open] > summary .icon--chevron { transform: rotate(180deg); }
.lang-switch__current { font-weight: 500; letter-spacing: .08em; }

.dropdown__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  background: var(--washi-light);
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px -16px rgba(42, 39, 36, .3);
  list-style: none;
}
.dropdown__panel a {
  display: block;
  padding: 10px 14px;
  font-size: .9rem;
  text-decoration: none;
}
.dropdown__panel a:hover { background: var(--washi); color: var(--sumi); }
.dropdown__panel a[aria-current] { color: var(--mint-deep); }

.menu__panel {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  padding: 8px var(--gutter) 28px;
  border-width: 0 0 1px;
}
.menu__panel ul { list-style: none; margin-bottom: 20px; }
.menu__panel li + li { border-top: 1px solid var(--line); }
.menu__panel li a {
  padding: 16px 0;
  font-family: var(--serif);
  font-size: 1.15rem;
}
.menu__panel li a:hover { background: none; }
.menu__cta { width: 100%; }

/* ---------- 各ページの冒頭（モデル・商用ライセンス・KOYOMI Labとは・お知らせで共通） ---------- */
/* 並び：英字ラベル → 見出し → 説明文 →（ボタン・お知らせ欄）。商用ライセンス・Aboutに画像を置いたときだけ右に置く2段組み */
/* 下の余白は、続くセクションの上の余白に任せる（区切り線なし） */
.page-hero {
  padding-block: clamp(56px, 8vw, 104px) 0;
}
.page-hero__inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .page-hero--media .page-hero__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(48px, 6vw, 96px);
  }
}
.page-hero__copy { container-type: inline-size; }
.page-hero__title {
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.3;
}
/* 日本語は、1行（8文字前後）が途中で折り返さないよう、列の幅に合わせて文字の大きさを決める */
html:lang(ja) .page-hero__title {
  font-size: clamp(1.8rem, 1.1rem + 2.8vw, 3rem);
  font-size: clamp(1.5rem, 10.5cqi, 3rem);
  line-height: 1.5;
  letter-spacing: .08em;
}
.page-hero__title span { display: block; }
.page-hero__lead {
  display: grid;
  gap: 1em;
  margin-top: 1.5rem;
  color: var(--sumi-soft);
}
.page-hero__meta { margin-top: 1.5rem; font-size: .78rem; letter-spacing: .1em; color: var(--sumi-mute); }

.page-hero__media { margin: 0; }
.page-hero__frame { display: block; overflow: hidden; isolation: isolate; border-radius: var(--radius); background: var(--washi-deep); }
.page-hero__frame img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

/* ---------- セクション共通 ---------- */
.section { padding-block: var(--section); }
.section--alt { background: rgba(245, 241, 234, .7); border-block: 1px solid var(--line); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.small-title { font-size: 1.1rem; margin-bottom: .75rem; }

/* ---------- トップ：カテゴリとモデル ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-ui);
  font-size: .86rem;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { background: var(--sumi); border-color: var(--sumi); color: var(--washi); }
.chip__count { font-size: .72rem; color: var(--sumi-mute); }
.chip:hover .chip__count { color: inherit; }

.category { padding-top: clamp(56px, 8vw, 96px); }
.category__head {
  display: grid;
  gap: 8px;
  margin-bottom: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--sumi);
}
.category__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem);
}
.category__index {
  font-family: var(--brand);
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--mint-deep);
}
.category__desc { color: var(--sumi-soft); }   /* 説明文はいつも見出しの下。幅は区切り線いっぱいまで使う */
.category__note { margin-top: .5em; font-size: .85rem; color: var(--sumi-mute); }

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(32px, 3.5vw, 48px) clamp(16px, 2.4vw, 32px);
}
.model-card { display: flex; flex-direction: column; }
/* MakerWorldへのリンクは名前に付け、文字の部分（名前・説明文・「MakerWorldで見る」）全体を押せるようにする。写真は押してもリンクしない */
.model-card__link { color: inherit; text-decoration: none; }
.model-card__link::after { content: ""; position: absolute; inset: 0; }
.model-card__link:focus-visible { outline: none; }
.model-card__body:has(.model-card__link:focus-visible) { outline: 2px solid var(--mint-deep); outline-offset: 4px; border-radius: var(--radius-ui); }
.model-card__media { overflow: hidden; isolation: isolate; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--washi-deep); } /* MakerWorldのサムネイルと同じ4:3 */
.model-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.model-card__body { position: relative; display: flex; flex: 1; flex-direction: column; gap: 8px; padding-top: 18px; }
.model-card__title { font-size: 1.05rem; line-height: 1.5; text-wrap: wrap; transition: color .2s; }
.model-card__text { font-size: .88rem; color: var(--sumi-soft); text-wrap: wrap; } /* 細い列でも端まで使う */
.model-card__cta {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .1em;
  transition: color .2s;
}
.model-card__body:hover :is(.model-card__title, .model-card__cta) { color: var(--mint-deep); }

/* モデルの写真が2枚以上あるとき：スワイプ（スマホ）・矢印（パソコン）で切り替え */
.gallery { position: relative; }
.gallery__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: start; }

/* 写真を押すと拡大表示 */
.model-card__zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.model-card__zoom:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: -2px; border-radius: var(--radius); }
.gallery__btn {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(245, 241, 234, .92);
  color: var(--sumi);
  box-shadow: 0 1px 4px rgba(42, 39, 36, .15);
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s;
}
.gallery__btn--prev { left: 10px; }
.gallery__btn--next { right: 10px; }
.gallery__btn .icon { width: 14px; height: 14px; }
.gallery__btn--prev .icon { transform: rotate(90deg); }
.gallery__btn--next .icon { transform: rotate(-90deg); }
.gallery:hover .gallery__btn:not([disabled]), .gallery__btn:focus-visible { opacity: 1; }
.gallery__btn[disabled] { opacity: 0; pointer-events: none; }
@media (hover: none) { .gallery__btn { display: none; } }   /* スマホはスワイプで切り替える */
.gallery__dots { position: absolute; right: 0; bottom: 10px; left: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gallery__dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(42, 39, 36, .25); box-shadow: 0 0 0 1px rgba(255, 255, 255, .6); transition: background-color .2s; }
.gallery__dots .is-active { background: rgba(42, 39, 36, .75); }

/* 写真の拡大表示（画面いっぱい。スワイプ・矢印・←→キーで切り替え、×・外側・Escで閉じる） */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(28, 26, 24, .95);
  color: var(--washi);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(28, 26, 24, .6); }
html.is-lightbox { overflow: hidden; }
.lightbox__track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overscroll-behavior: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__slide { display: grid; flex: 0 0 100%; height: 100%; place-items: center; padding: 64px 16px; scroll-snap-align: start; }
.lightbox__slide img { width: auto; max-width: calc(100vw - 32px); height: auto; max-height: calc(100vh - 128px); border-radius: var(--radius); }
@supports (height: 100dvh) { .lightbox__slide img { max-height: calc(100dvh - 128px); } }
.lightbox__close, .lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(245, 241, 234, .12);
  color: var(--washi);
  cursor: pointer;
  transition: background-color .2s;
}
.lightbox__close:hover, .lightbox__btn:hover { background: rgba(245, 241, 234, .24); }
.lightbox__close { top: 14px; right: 14px; width: 44px; height: 44px; }
.lightbox__close .icon { width: 18px; height: 18px; }
.lightbox__btn { top: 50%; width: 48px; height: 48px; margin-top: -24px; }
.lightbox__btn--prev { left: 16px; }
.lightbox__btn--next { right: 16px; }
.lightbox__btn .icon { width: 18px; height: 18px; }
.lightbox__btn--prev .icon { transform: rotate(90deg); }
.lightbox__btn--next .icon { transform: rotate(-90deg); }
.lightbox__btn[disabled] { opacity: 0; pointer-events: none; }
.lightbox__count { position: absolute; right: 0; bottom: 18px; left: 0; font-size: .8rem; letter-spacing: .12em; text-align: center; color: rgba(237, 232, 223, .75); }
.lightbox:not(.is-many) :is(.lightbox__btn, .lightbox__count) { display: none; }
@media (hover: none) { .lightbox__btn { display: none; } }   /* スマホはスワイプで切り替える */

/* スマホ・小さめのタブレットでは2列にする（説明文はすべて表示） */
@media (max-width: 699px) {
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(12px, 3vw, 20px); }
}
@media (max-width: 599px) {
  .model-card__body { gap: 6px; padding-top: 10px; }
  .model-card__title { font-size: .86rem; line-height: 1.45; }
  .model-card__text { font-size: .74rem; line-height: 1.7; }
  .model-card__cta { padding-top: 8px; font-size: .66rem; letter-spacing: .04em; }
  .gallery__dots { bottom: 6px; gap: 5px; }
  .gallery__dots span { width: 5px; height: 5px; }
}

/* ---------- 黒帯の案内 ---------- */
.cta-band { padding-block: clamp(56px, 8vw, 96px); background: var(--sumi); color: var(--washi); }
.cta-band__inner { display: grid; gap: 28px; align-items: end; }
.cta-band .eyebrow { color: var(--mint); }
.cta-band h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); word-break: keep-all; overflow-wrap: anywhere; }
.cta-band p:not(.eyebrow) { max-width: 36em; margin-top: .75rem; color: rgba(237, 232, 223, .72); }
.cta-band .btn { justify-self: start; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; } }

/* ---------- License：料金 ---------- */
.plan-grid { display: grid; gap: 24px; align-items: stretch; }
.plan-grid--single { max-width: 540px; }  /* 商用ライセンスの受付前（個人利用のカード1枚だけ） */
@media (min-width: 760px) { .plan-grid { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.plan-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(24px, 3.4vw, 44px);
  background: var(--washi-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.plan-card--featured { border-color: var(--sumi); box-shadow: 10px 10px 0 -1px var(--mint); }
.plan-card__name { font-size: 1.35rem; }
.plan-card__summary { margin-top: -10px; font-size: .92rem; color: var(--sumi-soft); }
.plan-card__button { margin-top: auto; }
.price-list { display: grid; gap: 6px; padding-block: 18px; border-block: 1px solid var(--line); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.price__amount {
  font-family: var(--brand);
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}
.price__period { font-size: .9rem; color: var(--sumi-mute); }
.price--soon .price__amount { font-family: var(--serif); font-size: 1.5rem; color: var(--sumi-mute); }
.fineprint { margin-top: 20px; font-size: .8rem; color: var(--sumi-mute); }

.checklist { display: grid; gap: 10px; font-size: .92rem; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.checklist li::before { font-weight: 700; line-height: inherit; }
.checklist .is-yes::before { content: "✓"; color: var(--mint-deep); }
.checklist .is-no::before { content: "✕"; color: var(--sumi-mute); }
.checklist .is-no { color: var(--sumi-mute); }
.checklist .is-no.is-strong { color: var(--sumi); }
html:lang(ja) .checklist .is-yes::before { content: "○"; }
html:lang(ja) .checklist .is-no::before { content: "×"; }

/* ---------- License：範囲 ---------- */
.rules { display: grid; gap: 24px; }
@media (min-width: 760px) { .rules { grid-template-columns: 1fr 1fr; } }
.rules__col { padding: clamp(24px, 3vw, 36px); background: var(--washi); border: 1px solid var(--line); border-radius: var(--radius); }
.rules__col h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 1.15rem; }
.rules__mark { width: 14px; height: 14px; border-radius: 50%; }
.rules__mark--yes { border: 2px solid var(--mint-deep); }
.rules__mark--no { background: var(--sumi-mute); border-radius: 0; transform: rotate(45deg) scale(.8); }

/* ---------- License：加入方法 ---------- */
.steps { display: grid; counter-reset: step; }
.steps li { counter-increment: step; padding: 24px 0 28px; border-top: 1px solid var(--line-strong); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 16px;
  font-family: var(--brand);
  font-size: 2rem;
  line-height: 1;
  color: var(--mint-deep);
}
.steps h3 { margin-bottom: 8px; font-size: 1.05rem; }
.steps p { font-size: .9rem; color: var(--sumi-soft); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; }
  .steps li { padding-right: 8px; }
}

/* ---------- License：FAQ ---------- */
@media (min-width: 900px) {
  .faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
}
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--mint-deep);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--mint-deep); }
.faq__answer { max-width: 44em; padding-bottom: 22px; color: var(--sumi-soft); }

/* ---------- About ---------- */
.about-story { display: grid; gap: 8px; }
/* デザイナー名（THE NAME の下） */
.about-designer { margin-top: clamp(56px, 7vw, 96px); }
.about-designer .section-head:last-child { margin-bottom: 0; } /* 説明文がないときだけ */
.about-designer__sub {
  display: block;
  margin-top: .5rem;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 400;
  letter-spacing: .14em;
  color: var(--sumi-mute);
}
@media (min-width: 900px) { .about-story { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; } }
.statement {
  display: grid;
  gap: 1.6em;
  max-width: 38em;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem);
  line-height: 2.05;
}
html:lang(en) .statement { line-height: 1.85; }

.principles { display: grid; gap: 36px; }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.principles li { padding-top: 20px; border-top: 1px solid var(--sumi); }
.principles__num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--brand);
  font-size: .9rem;
  letter-spacing: .1em;
  color: var(--mint-deep);
}
.principles h3 { margin-bottom: 10px; font-size: 1.2rem; }
.principles p { font-size: .94rem; color: var(--sumi-soft); }

.link-list { display: grid; border-top: 1px solid var(--line-strong); }
/* 横に並べる数は、SNSの数に合わせる（最大3つ） */
@media (min-width: 900px) { .link-list { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); column-gap: 40px; } }
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
}
.link-list__name { display: inline-flex; align-items: center; gap: 12px; font-family: var(--brand); font-size: 1.15rem; }
.link-list__name .sns-icon { width: 22px; height: 22px; }
.link-list__handle { display: inline-flex; align-items: center; font-size: .85rem; color: var(--sumi-mute); transition: color .2s; }
.link-list a:hover .link-list__handle { color: var(--mint-deep); }

/* ---------- お知らせ ---------- */
/* カテゴリの切り替え。今いるカテゴリは塗りつぶし */
.news-filter { margin-bottom: clamp(28px, 4vw, 40px); }
.chip[aria-current="page"] { background: var(--sumi); border-color: var(--sumi); color: var(--washi); }

/* カテゴリのラベル。「重要なお知らせ」だけ塗りつぶして目立たせる */
.news-tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-ui);
  font-size: .72rem;
  line-height: 1.6;
  letter-spacing: .04em;
  white-space: nowrap;
  color: var(--sumi-soft);
  text-decoration: none;
}
.news-tag--important { border-color: var(--sumi); background: var(--sumi); color: var(--washi); }
a.news-tag:hover { border-color: var(--mint-deep); color: var(--mint-deep); }
a.news-tag--important:hover { background: var(--mint-deep); color: var(--washi); }

.news-list { max-width: 880px; border-top: 1px solid var(--line-strong); }
.news-list a {
  display: grid;
  grid-template-columns: 10em minmax(0, 1fr) auto;
  gap: 6px 28px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
}
.news-list__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.news-list time { font-size: .85rem; letter-spacing: .04em; color: var(--sumi-mute); }
.news-list__title { font-family: var(--serif); font-size: 1.1rem; line-height: 1.6; transition: color .2s; }
.news-list .icon--arrow { align-self: center; color: var(--sumi-mute); }
.news-list a:hover .news-list__title { color: var(--mint-deep); }
.news-list a:hover .icon--arrow { transform: translateX(3px); color: var(--mint-deep); }
@media (max-width: 599px) {
  .news-list a { grid-template-columns: minmax(0, 1fr) auto; }
  .news-list__meta { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
}

/* 本文は読みやすい幅に。左端はほかのページと同じ位置にそろえる */
.post { max-width: calc(46em + var(--gutter) * 2); margin-inline: max(0px, calc((100% - var(--container)) / 2)) auto; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: .6rem; }
.post__date { display: block; font-size: .9rem; letter-spacing: .04em; color: var(--sumi-mute); }
.page-hero .post__title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.5; }
.prose { display: grid; gap: 1.4em; font-size: 1.02rem; }
.prose ul { display: grid; gap: .4em; padding-left: 1.4em; }
.prose a { color: var(--mint-deep); text-decoration: underline; overflow-wrap: anywhere; }
.post-figure { margin: .4em 0; }
.post-figure img { width: 100%; height: auto; border-radius: var(--radius); background: var(--washi-deep); }
.post-figure figcaption { margin-top: .7em; font-size: .85rem; color: var(--sumi-mute); }
.post__back { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.post__back a { color: var(--sumi-soft); text-decoration: none; font-size: .92rem; }
.post__back a:hover { color: var(--mint-deep); }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(80px, 14vw, 160px); text-align: center; }
.notfound__code { font-family: var(--brand); font-size: clamp(4rem, 3rem + 6vw, 7rem); line-height: 1; color: var(--mint-deep); }
.notfound h1 { margin: 16px 0 12px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.notfound .btn { margin-top: 32px; }

/* ---------- フッター ---------- */
/* 背景 #666767 の上で読める濃さにしている（リンク白 5.7:1、見出しと © は和紙色 4.7:1） */
.site-footer {
  --footer-bg: #666767;
  padding-block: 56px 28px;
  background: var(--footer-bg);
  color: var(--washi);
  font-size: .88rem;
}
.site-footer a { color: #fff; text-decoration: none; text-underline-offset: .35em; }
.site-footer a:hover span,
.site-footer a:hover:not(.sns-link) { text-decoration: underline; text-decoration-thickness: 1px; }
/* 今いるページ・言語は、ミントの下線で示す */
.site-footer a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--mint);
  text-decoration-thickness: 2px;
}
.site-footer__inner { display: grid; gap: 36px; }
@media (min-width: 560px) { .site-footer__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.site-footer h2 {
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--washi);
}
.site-footer ul { display: grid; gap: 10px; }
.site-footer__bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(237, 232, 223, .35);
  font-size: .75rem;
  color: var(--washi);
}

/* SNSのリンク（アイコン画像があれば名前の左に並ぶ） */
.sns-link { display: inline-flex; align-items: center; gap: 10px; }
.sns-icon { flex: none; width: 20px; height: 20px; object-fit: contain; }

/* ---------- 動きを減らす設定 ---------- */
/* ---------- Cookieの同意（画面の下に出る案内。選ぶと消え、次からは出ない） ---------- */
.consent {
  position: fixed;
  z-index: 60;
  right: var(--gutter);
  bottom: max(16px, env(safe-area-inset-bottom));
  left: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  max-width: 720px;
  margin-inline: auto;
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--washi-light);
  box-shadow: 0 8px 32px rgba(42, 39, 36, .12);
}
.consent[hidden] { display: none; }
.consent__text { flex: 1 1 260px; margin: 0; font-size: .85rem; line-height: 1.7; color: var(--sumi-soft); }
.consent__text a { color: var(--sumi); }
.consent__actions { display: flex; flex-shrink: 0; gap: 8px; }
.consent__actions .btn { min-width: 7em; }
@media (max-width: 599px) {
  .consent__actions { width: 100%; }
  .consent__actions .btn { flex: 1; }
}
.about-privacy__change { margin-top: 1rem; }
.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .9rem;
  color: var(--sumi);
  text-decoration: underline;
  text-underline-offset: .25em;
  cursor: pointer;
}
.link-button:hover { color: var(--mint-deep); }

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