/*!
 * Atelier KYM — Kintsugi Archive
 * main.css (optimized + responsive)
 *
 * Scope:
 * - Works/Archive pages using: .wrap, header, .hero, .block/.card, footer
 * - Optional unified "work list" layout: .works .work .media .body
 *
 * Notes:
 * - Removed duplicated <style> blocks and commented-out legacy hero full-screen CSS.
 * - Fixed invalid CSS: <style> tags inside @media were removed.
 * - Normalized image sizing: ONE rule controls hero images (no conflicting max-width/height).
 */

/* =========================
   0) Tokens / Design System
   ========================= */
:root{
  /* palette */
  --bg: #F2EFEA;     
  --paper: #ffffff;
  --ink: #1f1f1f;
  --muted: #231F20; 
  --line: rgba(0,0,0,.08);

  /* layout */
  --max: 1080px;
  --radius: 18px;

  /* golden ratio rhythm */
  --phi: 1.618;
  --s0: 8px;
  --s1: 13px;
  --s2: 21px;
  --s3: 34px;
  --s4: 55px;

  /* layout tuning */
  --hero-gap: 20px;
  --hero-cols: 1.05fr .95fr;
  --hero-figure-shadow: 0 16px 40px rgba(0,0,0,.06);

  /* Consistent media frame for galleries (黄金比 横長) */
  --frame-ar: 1.618 / 1;               
  --frame-w: clamp(320px, 44vw, 520px); 
}

/* Dark theme overrides */
:root[data-theme="dark"] {
  --bg: #1f1f1f;
  --paper: #2a2a2a;
  --ink: #ffffff;
  --muted: #cccccc;
  --line: rgba(255,255,255,.1);
}

/* =========================
   1) Reset / Base
   ========================= */
*,
*::before,
*::after{ box-sizing: border-box; }

html, body{ height: 100%; }

body{
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg), var(--paper) 60%);
  font-family: ui-serif, "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  line-height: 1.7;
}

a{ color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover{ opacity: .85; }

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

/* =========================
   2) Layout Containers
   ========================= */
.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--s3) var(--s2) calc(var(--s4) + var(--s2));
}

/* =========================
   3) Header
   ========================= */
header{
  padding: var(--s2) 0 var(--s1);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s3);
}

.brand{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .08em;
  font-size: 12px;
  color: var(--muted);
}

h1{
  margin: 10px 0 6px;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.15;
}

h2{
  font-size: 18px;
  margin: 0 0 14px;
  letter-spacing: .04em;
}

.sub{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.note{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

/* =========================
   4) Hero (image + copy)
   ========================= */

.hero{
  display: grid;
  grid-template-columns: var(--hero-cols);
  gap: var(--hero-gap);
  align-items: end;
  margin: var(--s2) 0 var(--s2);
  height: 100vh;
  background-size: cover;
  background-position: center 62%;
  position: relative;
  overflow: hidden;
}

.hero figure{
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--hero-figure-shadow);
}
.hero_top {
  height: 74vh;
  min-height: 74vh;
  align-items: center;
  background-color: #15110d;
  background-image: none;
  position: relative;
  overflow: hidden;
}

.hero_top::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.32);
  pointer-events: none;
}

.hero_top-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  z-index: 2;
  color: #fff;
  text-align: center;
}

.hero h1 {
  font-weight: 200;  
  letter-spacing: 0.3em; 
  opacity: 0.9; 
}

.hero p {
  margin-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ONE sizing rule for hero images (default respects original aspect) */
.hero figure img{
  width: 100%;
  height: auto;
}


.hero--framed figure{
  aspect-ratio: 3 / 4;
}
.hero--framed figure img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero .copy{
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius, 24px);
  padding: var(--s3, 24px);
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  backdrop-filter: blur(2px);
}

/* Philosophy */
.philosophy {
  background: #f4f4f4;
  color: #111;
  text-align: center;
}
.kintugi-page .kintugi-coming-soon-header {
  text-align: center;
  padding: 16vh 20px 8vh;
}

.kintugi-page .kintugi-back-home {
  margin-top: 28px;
}

.philosophy h2 {
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  margin-bottom: 36px;
  text-transform: uppercase;
}

.philosophy p {
  max-width: 720px;
  margin: 0 auto;
  line-height: 2.1;
  font-size: 1rem;
}
.cta {
  margin-top: 48px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid #111;
  color: #fff;
  background: #111;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.btn.ghost {
  background: transparent;
  color: #111;
}

/* CSP-safe white button variant for the Contact page TOP link */
.btn.top-white {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}
.catch{
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: .02em;
}

.lead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.meta{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.meta span{ white-space: nowrap; }

/* =========================
   5) Sections / Gallery Blocks
   ========================= */
section{ margin: var(--s4) 0; padding: clamp(84px, 9vw, 120px) 0; }

.block{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.block.one{ grid-template-columns: 1fr; }

.card{
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.card img{ width: 100%; height: auto; }

.works, .Series, .contact {
  background: #fff;
  color: #111;
}

.works h2, .Series h2, .contact h2 {
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.muted {
  line-height: 1.68;
}

figcaption{
  padding: 10px 12px 10px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .02em;
}

.quote{
  background: rgba(255,255,255,.65);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  font-size: 16px;
  line-height: 1.9;
}

/* =========================
   6) Optional: Unified “Work List” (完全統一枠)
   ========================= */
.works{
  display: grid;
  gap: var(--s4);
  margin-top: var(--s4);
}

.work{
  display: grid;
  grid-template-columns: var(--frame-w) 1fr;
  gap: var(--s3);
  align-items: start;
  padding: var(--s3);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.7);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.media{
  width: var(--frame-w);
  aspect-ratio: var(--frame-ar);
  border-radius: var(--radius);
  overflow: hidden;
  background: #f3f1ec;
}

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

.body{ padding-top: var(--s1); }

.body .catch{
  font-size: clamp(18px, 1.2vw, 22px);
  letter-spacing: 0.02em;
  margin: 0 0 var(--s1) 0;
}

.body .lead{
  font-size: 15.5px;
  line-height: 1.75;
  margin: 0 0 var(--s2) 0;
  opacity: 0.9;
}

.body .meta{
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s2);
  font-size: 12.5px;
  opacity: 0.75;
  border-top: 1px solid var(--line);
  padding-top: var(--s2);
}

/* =========================
   7) Footer
   ========================= */
footer{
  margin-top: var(--s4);
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================
   8) Responsive (Mobile / iPad / PC)
   ========================= */
@media (max-width: 860px){
  :where(body) .hero{
    grid-template-columns: 1fr;
    align-items: start;
  }
  h1{ font-size: clamp(24px, 7vw, 30px); }
  .block{ grid-template-columns: 1fr; }

  .work{ grid-template-columns: 1fr; }
  .media{ width: 100%; }
}

@media (min-width: 861px) and (max-width: 1180px){
  .wrap{ padding-left: var(--s2); padding-right: var(--s2); }
  :where(body) .hero{ align-items: center; }
  .meta span{ white-space: normal; }
}

@media (min-width: 1280px){
  .wrap{ padding-left: var(--s3); padding-right: var(--s3); }
}

/* =========================
   Before / Archive Record
   ========================= */

.before-section{
  max-width: var(--container, 1120px);
  margin: 12px auto 56px;
  padding: 0 12px;
}


@keyframes fadeIn{
  from{opacity:0; transform:translateY(6px);}
  to{opacity:1; transform:translateY(0);}
}

/* =========================================================
   Fix: 右側テキスト背景の“フェード差”をなくして統一
   （bodyの縦グラデーションの影響を受けないように、copy側に面を持たせる）
   ========================================================= */

/* テキストの読みやすさ微調整（必要なら） */
.hero .lead{ color: rgba(0,0,0,.62); }
.hero .meta{ color: rgba(0,0,0,.55); }

/* Archive page: align catch/lead text color with meta */
body.archive-page .hero .catch,
body.archive-page .hero .lead,
body.archive-page .hero .catch a {
  color: rgba(0,0,0,.55);
}


/* =========================================================
   Before（時間の痕跡を見る）: details を安定して見せる
   ========================================================= */

.before-box{
  margin-top: var(--s3, 24px);
  border-radius: var(--radius, 24px);
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.60);
  overflow: hidden;
}

.before-box > summary{
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-size: 14px;
  letter-spacing: .06em;
  color: rgba(0,0,0,.62);
}

.before-box > summary::-webkit-details-marker{ display:none; }

.before-box > summary::after{
  content: "+";
  float: right;
  color: rgba(0,0,0,.45);
}

.before-box[open] > summary::after{ content: "-"; }

.before-inner{
  padding: 16px 18px 20px;
  border-top: 1px solid rgba(0,0,0,.06);
}

.before-inner img{
  width: 100%;
  max-width: 360px;
  height: auto;
  max-height: 68vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
}

.before-note{
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(0,0,0,.58);
}
/* =========================================================
   Responsive add-on (Mobile + iPad)
   末尾に追記してください
   ========================================================= */

/* 1) Base: images & text safety */
.inner{
  width: min(1000px, 92vw);
  margin: 0 auto;
}

/* 2) Hero top (cover + overlay + text) */

/* hero_top の中で <img> を使っている場合の “背景化” */
.hero_top > img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* オーバーレイ */

/* 文字レイヤー */

.hero_top-text h1{
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  letter-spacing: clamp(.22em, .5vw, .28em);
  font-weight: 300;
  margin: 0;
}

.hero_top-text p{
  font-size: clamp(0.92rem, 1.4vw, 0.95rem);
  margin-top: clamp(14px, 2vw, 18px);
  opacity: .85;
}

/* 言語スイッチ */
.lang-switch{
  position:absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
}
.lang-switch a{
  text-decoration:none;
  color:#fff;
  letter-spacing:.18em;
  font-size: 12px;
  opacity:.85;
}
.lang-switch a:hover{ opacity:1; }

/* Index hero navigation */
.hero-nav{
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  width: min(1100px, 92vw);
  margin-inline: auto;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #fff;
}

.hero-logo{
  color: #fff;
  text-decoration: none;
  letter-spacing: .2em;
  font-size: 14px;
  white-space: nowrap;
}

.hero-nav-links{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(17px, 2.3vw, 32px);
  row-gap: 8px;
  flex-wrap: wrap;
}

.hero-nav-links a{
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .16em;
  opacity: .94;
}

.hero-nav-lang a{
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .14em;
  opacity: .94;
}

.hero-nav-links a:hover,
.hero-nav-lang a:hover{
  opacity: 1;
}

.hero-nav-lang{
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.hero-nav-lang a + a::before{
  content: "/";
  color: rgba(255,255,255,.72);
  margin-right: 12px;
}

.hero-nav-lang a[aria-current="page"]{
  opacity: 1;
}

/* Shared top nav for non-hero pages */
.site-top-nav{
  width: min(1100px, 92vw);
  margin: 18px auto 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #1f1f1f;
}

.site-top-nav .hero-logo{
  color: #1f1f1f;
}

.site-top-nav .hero-nav-links{
  flex: 1;
  min-width: 0;
  gap: clamp(17px, 2.3vw, 32px);
  row-gap: 8px;
}

.site-top-nav .hero-nav-links a{
  color: #1f1f1f;
  opacity: .95;
}

.site-top-nav .hero-nav-lang a{
  color: #1f1f1f;
  opacity: .95;
}

.site-top-nav .hero-nav-lang a + a::before{
  color: rgba(20,20,20,.5);
}

@media (min-width: 900px){
  .archive-page .site-top-nav{
    flex-wrap: nowrap;
    align-items: center;
  }

  .archive-page .site-top-nav .hero-nav-links{
    order: 0;
    width: auto;
    justify-content: center;
    gap: clamp(14px, 1.7vw, 24px);
    row-gap: 0;
    flex-wrap: nowrap;
  }

  .archive-page .site-top-nav .hero-nav-links a,
  .archive-page .site-top-nav .hero-nav-lang a{
    font-size: 12px;
    letter-spacing: .12em;
  }
}

/* 3) Sections spacing */
.philosophy h2,
.works h2,
.contact h2{
  letter-spacing: .28em;
}

/* Archive cards (if you adopted archive layout) */
.archive-inner{
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 80px 60px;
}
.archive-image{
  border-radius: 20px;
  overflow: hidden;
}

/* =========================================================
   iPad / Tablet (601px - 1024px)
   ========================================================= */
@media (min-width: 601px) and (max-width: 1024px){

  /* innerを少し広めに */
  :where(body) .inner{
    width: min(980px, 90vw);
  }

  /* Archive grid: 2列を狙う */
  .archive-page .archive-inner{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px 40px;
  }

  .home-page .hero_top nav.hero-nav,
  body:not(.home-page) .site-top-nav{
    width: auto;
    margin: 14px 16px 18px;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }

  .home-page .hero_top .hero-nav > .hero-nav-links,
  body:not(.home-page) .site-top-nav .hero-nav-links{
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    min-width: 100%;
    justify-content: center;
    gap: 14px;
    margin-top: 4px;
  }

  .home-page .hero_top .hero-nav > .hero-nav-links a,
  .home-page .hero_top .hero-nav > .hero-nav-lang a,
  body:not(.home-page) .site-top-nav .hero-nav-links a,
  body:not(.home-page) .site-top-nav .hero-nav-lang a{
    font-size: 12px;
    letter-spacing: .12em;
  }
}

/* =========================================================
   Mobile (<= 600px)
   ========================================================= */
@media (max-width: 600px){

  /* Hero */
  body.home-page .hero_top{
    height: 60vh;
    min-height: 60vh; /* 縮小したヒーロー（スマホ） */
  }
  body.home-page .hero_top-text{
    padding: 18px;
  }

  body :is(.philosophy h2, .works h2, .contact h2){
    font-size: 1.0rem;
    letter-spacing: .22em;
  }

  body :is(.philosophy p, .muted){
    font-size: 0.95rem;
    line-height: 2.0;
  }

  /* CTA: 縦積みでもきれいに */
  body .cta{
    gap: 12px;
  }
  .cta .btn{
    width: min(360px, 86vw);
    text-align: center;
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  /* Archive grid: 1列 */
  body.archive-page .archive-inner{
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .archive-meta h3{
    font-size: 0.95rem;
    letter-spacing: .18em;
  }
  .archive-meta p{
    font-size: 0.85rem;
  }

  /* 言語スイッチは押しやすく */
  body.home-page .lang-switch{
    top: 14px;
    right: 14px;
  }
  body.home-page .lang-switch a{
    font-size: 12px;
  }

  body.home-page nav.hero-nav{
    top: 12px;
    left: 14px;
    right: 14px;
  }

  body.home-page .hero-logo{
    font-size: 12px;
    letter-spacing: .16em;
  }

  body.home-page nav.hero-nav,
  :where(body:not(.home-page)) .site-top-nav{
    width: auto;
    margin: 12px 14px 16px;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }

  :where(body:not(.home-page)) .site-top-nav .hero-logo{
    font-size: 12px;
    letter-spacing: .16em;
  }

  body.home-page .hero-nav > .hero-nav-links,
  :where(body:not(.home-page)) .site-top-nav :is(.hero-nav-links){
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    min-width: 100%;
    justify-content: center;
    gap: 15px;
    margin-top: 6px;
  }

  body.home-page .hero-nav > .hero-nav-links a,
  body.home-page .hero-nav > .hero-nav-lang a,
  :where(body:not(.home-page)) .site-top-nav :is(.hero-nav-links) a,
  :where(body:not(.home-page)) .site-top-nav :is(.hero-nav-lang) a{
    font-size: 12px;
    letter-spacing: .12em;
  }
}

  /* =========================================
   Page header (Archive / Series etc.)
   ========================================= */
.page-head{
  padding: 80px 0 40px;
  background: #f6f5f3;
  color: #111;
  position: relative;
}

.page-title{
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  letter-spacing: .28em;
  font-size: 2rem;
  margin: 0 0 14px;
}

.page-sub{
  margin: 0;
  color: rgba(0,0,0,.55);
  line-height: 1.9;
  font-size: 0.95rem;
}
/* dark background */
body.dark .lang-switch .lang{
  color:#fff;
  border:1px solid rgba(255,255,255,0.6);
  background:rgba(0,0,0,0.25);
}

body.dark .lang-switch .lang:hover{
background:#fff;
color:#000;
border-color:#fff;
}

.about-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 140px 20px 180px;
  text-align: center;
  line-height: 2.1;
}
.about-page p:first-of-type {
  font-size: 1.18rem;
  letter-spacing: .02em;
  margin: 28px 0;
}
.about-page h1 {
  font-size: 2rem;
  line-height: 1.8;
  margin-bottom: 80px;
}
/* light background */

.about-page .lang-switch .lang{
color:#222;
border:1px solid rgba(0,0,0,0.35);
background:rgba(255,255,255,0.8);
}

.about-page .lang-switch .lang:hover{
background:#111;
color:#fff;
border-color:#111;
}
.about-page p {
  line-height: 2.1;
  margin: 40px 0;
}

.about-page p:nth-of-type(2) {
  margin: 60px 0;
}

.about-signature {
  margin-top: 100px;
  opacity: 0.6;
  letter-spacing: 0.08em;
}

.about-page p:last-child a {
  color: inherit;
  opacity: 0.6;
}

.about-page p:last-child a:hover {
  opacity: 0.8;
}

.about-page .sub {
  font-size: 0.85em;
  display: inline-block;
  margin-top: 10px;
}

.policy-page {
  width: min(820px, 92vw);
  margin: 0 auto 120px;
  padding-top: 24px;
}

.policy-page h1 {
  margin: 20px 0 36px;
  line-height: 1.45;
  letter-spacing: .06em;
}

.policy-page h2 {
  margin: 40px 0 14px;
  font-size: clamp(18px, 2.3vw, 21px);
  line-height: 1.5;
}

.policy-page p {
  margin: 0 0 18px;
  line-height: 2;
}

.policy-page ul {
  margin: 0 0 22px;
  padding-left: 1.35em;
}

.policy-page li + li {
  margin-top: 8px;
}

@media (max-width: 680px) {
  .policy-page {
    width: min(92vw, 620px);
    margin-bottom: 92px;
    padding-top: 18px;
  }

  .policy-page h1 {
    margin: 16px 0 28px;
  }
}
/* English series/mochite: tighten rhythm while keeping an elegant tone */
body.mochite-page .hero {
  gap: 18px;
  margin: 20px 0 24px;
}

body.mochite-page .hero .copy {
  padding: 6px 14px 8px;
}

body.mochite-page .hero .lead {
  margin: 0 0 14px;
  line-height: 1.72;
}

body.mochite-page .meta {
  gap: 10px;
  padding-top: 12px;
}

body.mochite-page .before-section {
  margin: 8px auto 40px;
}

@media (max-width: 860px) {
  body.mochite-page :where(.hero) {
    margin: 16px 0 20px;
  }

  body.mochite-page :where(.before-section) {
    margin: 6px auto 30px;
  }
}

/* Contact page: keep TOP button as white ghost style */
.contact-page .wrap > header {
  text-align: center;
}

.contact-page .wrap > footer {
  text-align: center;
}

.contact-main {
  display: flex;
  justify-content: center;
}

.contact-main .form-frame {
  width: min(100%, 760px);
  margin: 0 auto;
  text-align: center;
}

.contact-main .form-frame p {
  margin: 0 0 14px;
}

.contact-main .form-frame p:last-child {
  margin-bottom: 0;
}

.contact-main .contact-actions {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-main .contact-actions .btn {
  width: auto;
  min-width: 128px;
}

.contact-main .contact-actions .btn.btn-top {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}

.contact-main .contact-actions .btn.btn-top:hover {
  opacity: .9;
}

/* =========================================================
   Kintsugi page — 漆と金継ぎの歴史 タイムライン
   ========================================================= */
.kintugi-page .kh-section{ margin: var(--s3,34px) 0 var(--s4,55px); }
.kintugi-page .kh-h{
  font-size: clamp(20px,2.4vw,26px);
  letter-spacing: .04em;
  margin: 0 0 4px;
  border-bottom: 2px solid #C49A3D;
  padding-bottom: 10px;
}
.kintugi-page .kh-sub{ color: var(--muted); font-size: 14px; margin: 14px 0 6px; }
.kintugi-page .kh-intro{
  color: rgba(0,0,0,.66);
  font-size: 15px;
  line-height: 1.95;
  margin: 0 0 28px;
}

.kintugi-page .kh-timeline{
  list-style: none;
  margin: 0;
  padding: 0 0 0 30px;
  position: relative;
}
.kintugi-page .kh-timeline::before{
  content: "";
  position: absolute;
  left: 6px; top: 10px; bottom: 10px;
  width: 2px;
  background: #C49A3D;
  opacity: .5;
}

.kintugi-page .kh-item{
  position: relative;
  margin: 0 0 16px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(0,0,0,.06);
}
.kintugi-page .kh-item::before{
  content: "";
  position: absolute;
  left: -30px; top: 22px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #C49A3D;
  box-shadow: 0 0 0 4px #F4F1EC;
}

.kintugi-page .kh-head{
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.kintugi-page .kh-era{ font-size: 18px; font-weight: 600; letter-spacing: .03em; }
.kintugi-page .kh-period{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12.5px;
  color: var(--muted);
}
.kintugi-page .kh-star{ color: #B8862E; font-size: 13px; letter-spacing: .04em; }
.kintugi-page .kh-desc{ margin: 0; padding-left: 1.1em; }
.kintugi-page .kh-desc li{
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(0,0,0,.7);
  margin: 2px 0;
}

/* per-era soft tints（教材の色分けを淡く踏襲） */
.kintugi-page .kh-c1{ background: rgba(201,120,98,.07); }
.kintugi-page .kh-c2{ background: rgba(214,160,70,.08); }
.kintugi-page .kh-c3{ background: rgba(122,168,110,.08); }
.kintugi-page .kh-c4{ background: rgba(90,170,160,.08); }
.kintugi-page .kh-c5{ background: rgba(150,120,190,.09); }
.kintugi-page .kh-c6{ background: rgba(200,120,160,.08); }
.kintugi-page .kh-c7{ background: rgba(110,140,200,.08); }
.kintugi-page .kh-c8{ background: rgba(120,120,120,.06); }

.kintugi-page .kh-streams{
  margin-top: 30px;
  padding: 20px 22px;
  border-radius: 16px;
  background: #FBFAF8;
  border: 1px solid rgba(0,0,0,.08);
}
.kintugi-page .kh-streams h3{ margin: 0 0 10px; font-size: 16px; letter-spacing: .04em; }
.kintugi-page .kh-streams ol{ margin: 0; padding-left: 1.3em; }
.kintugi-page .kh-streams li{
  font-size: 14.5px;
  line-height: 1.9;
  color: rgba(0,0,0,.72);
  margin: 4px 0;
}

@media (max-width: 600px){
  .kintugi-page .kh-item{ padding: 14px 16px; }
  .kintugi-page .kh-timeline{ padding-left: 26px; }
  .kintugi-page .kh-item::before{ left: -26px; }
}

/* --- Kintsugi page: 目次・技法・号数・用語 --- */
.kintugi-page .kh-toc{
  display: flex; flex-wrap: wrap; gap: 8px 12px;
  list-style: none; padding: 0; margin: 4px 0 26px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
}
.kintugi-page .kh-toc a{
  color: #8a6a2e; text-decoration: none;
  border: 1px solid rgba(196,154,61,.45); border-radius: 999px; padding: 4px 12px;
}
.kintugi-page .kh-toc a:hover{ background: rgba(196,154,61,.1); }
.kintugi-page .kh-subh{ font-size: 15px; margin: 24px 0 4px; letter-spacing: .03em; }

.kintugi-page .kh-legend{
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12.5px; color: #5a5249; margin: 10px 0 18px;
}
.kintugi-page .kh-legend span{ display: inline-flex; align-items: center; gap: 6px; }
.kintugi-page .kh-sw{ width: 13px; height: 13px; border-radius: 3px; display: inline-block; border: 1px solid rgba(0,0,0,.1); }
.kintugi-page .kh-sw-gold{ background: #C9A227; }
.kintugi-page .kh-sw-mon{ background: #7a5a3a; }
.kintugi-page .kh-sw-clear{ background: #cdbfa8; }
.kintugi-page .kh-sw-base{ background: #4a4540; }

.kintugi-page .kh-tech-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.kintugi-page .kh-tech{
  background: rgba(255,255,255,.6); border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px; padding: 14px 14px 16px;
}
.kintugi-page .kh-tech h4{ margin: 0; font-size: 15px; letter-spacing: .03em; }
.kintugi-page .kh-tech .kh-yomi{ font-family: ui-sans-serif, system-ui, sans-serif; font-size: 11.5px; color: #8a7f70; font-weight: 400; }
.kintugi-page .kh-tech svg{ width: 100%; height: auto; display: block; margin: 10px 0 2px; }
.kintugi-page .kh-tech p{ font-size: 13px; line-height: 1.7; color: rgba(0,0,0,.7); margin: 6px 0 0; }

.kintugi-page .kh-callout{
  margin: 20px 0; padding: 14px 18px;
  border-left: 3px solid #C49A3D; background: rgba(196,154,61,.07);
  border-radius: 0 10px 10px 0; font-size: 13.5px; line-height: 1.85; color: rgba(0,0,0,.72);
}
.kintugi-page .kh-mini{ margin: 12px 0; padding-left: 1.1em; }
.kintugi-page .kh-mini li{ font-size: 14px; line-height: 1.8; color: rgba(0,0,0,.72); margin: 3px 0; }
.kintugi-page .kh-defs{ margin: 12px 0; padding: 0; list-style: none; }
.kintugi-page .kh-defs li{ font-size: 14px; line-height: 1.8; color: rgba(0,0,0,.72); margin: 6px 0; }
.kintugi-page .kh-defs b, .kintugi-page .kh-mini b{ color: #1f1f1f; }

.kintugi-page .kh-scroll{ overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 14px 0; }
.kintugi-page .kh-table{ width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
.kintugi-page .kh-table thead th{
  background: #6b5a2e; color: #fff; text-align: left; padding: 8px 10px;
  font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 600; letter-spacing: .03em; white-space: nowrap;
}
.kintugi-page .kh-table td{ padding: 7px 10px; border-bottom: 1px solid rgba(0,0,0,.08); vertical-align: top; line-height: 1.6; }
.kintugi-page .kh-table tbody tr:nth-child(odd){ background: rgba(0,0,0,.02); }
.kintugi-page .kh-table tr.kh-hl{ background: rgba(196,154,61,.16); }
.kintugi-page .kh-table tr.kh-hl td{ font-weight: 600; }
.kintugi-page .kh-note{ margin-top: 22px; font-size: 12px; color: var(--muted); line-height: 1.8; }

@media (max-width: 760px){
  .kintugi-page .kh-tech-grid{ grid-template-columns: 1fr; }
}

/* --- Kintsugi page: 出典・注記 --- */
.kintugi-page .kh-ref{ font-size: .78em; color: #8a6a2e; text-decoration: none; vertical-align: super; }
.kintugi-page .kh-ref:hover{ text-decoration: underline; }
.kintugi-page .kh-caveat{ font-size: 12.5px; color: var(--muted); }
.kintugi-page .kh-refs{ margin-top: 10px; }
.kintugi-page .kh-reflist{ margin: 8px 0; padding-left: 1.4em; }
.kintugi-page .kh-reflist li{ font-size: 13px; line-height: 1.85; color: rgba(0,0,0,.72); margin: 5px 0; }
.kintugi-page .kh-reflist a{ color: #8a6a2e; }


 



