/* =============================================================
   萬工房 白 / YOROZU KOBO HAKU — 全ページ共通スタイル
   internal pages（/service/ /contact/）で
   <link rel="stylesheet" href="../css/common.css"> として読み込む。
   ブランドカラー・フォントは site/index.html のインラインCSSに準拠。
   ============================================================= */

/* ---- design tokens（index.html と同一） ---- */
:root{
  --paper:#f8f6f1;
  --surface:#ffffff;
  --navy:#1a2744;
  --navy-2:#243456;
  --gold:#c8a96e;
  --gold-ink:#9a7a3c;
  --ink:#333333;
  --ink-soft:#5a5a5a;
  --line:#e4e0d5;
  --line-strong:#d3cec0;
  --placeholder:#e9e5da;
  --placeholder-ink:#b7ae99;

  --wrap:1100px;
  --measure:40rem;
  --radius:4px;
  --step--1:.82rem;

  --f-display:"Zen Maru Gothic","Hiragino Maru Gothic ProN","YuGothic","Yu Gothic",sans-serif;
  --f-sans:"Zen Kaku Gothic New","Hiragino Kaku Gothic ProN","YuGothic","Yu Gothic",-apple-system,BlinkMacSystemFont,sans-serif;
}

/* ---- reset / base ---- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:5rem;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--f-sans);
  font-size:1rem;
  line-height:1.8;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}

.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}

a{color:var(--gold-ink);text-underline-offset:3px;text-decoration-thickness:1px}
a:hover{text-decoration-color:var(--gold)}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:2px}
strong{font-weight:700;color:var(--ink)}
.gold{color:var(--gold-ink)}
.nb{white-space:nowrap}
.center{text-align:center}

h1,h2,h3,h4{font-family:var(--f-display);line-height:1.3;font-weight:700;color:var(--navy);word-break:keep-all;overflow-wrap:break-word}
h1{font-size:clamp(1.6rem,5vw,2.4rem);letter-spacing:.01em}
h2{font-size:clamp(1.4rem,4vw,1.9rem)}
h3{font-size:1.08rem}
p,li{overflow-wrap:break-word;line-break:strict}
.lead{font-size:clamp(1rem,1.6vw,1.12rem);color:var(--ink-soft);max-width:var(--measure);overflow-wrap:break-word}

.eyebrow{
  font-family:var(--f-sans);font-size:var(--step--1);font-weight:700;
  letter-spacing:.1em;color:var(--gold-ink);
  display:flex;align-items:center;flex-wrap:wrap;gap:.6rem;
}
.eyebrow::before{content:"";width:1.6rem;height:2px;background:var(--gold);flex:none;border-radius:2px}

.section{padding-block:clamp(3rem,7vw,5rem);border-bottom:1px solid var(--line)}
.section:last-of-type{border-bottom:0}
.sec-head{max-width:var(--measure);margin-bottom:.5rem}
.sec-head h2{margin:.9rem 0 .8rem}
.sec-head p{color:var(--ink-soft)}

/* ---- buttons（現行ブランド：navy 背景 + gold テキスト） ---- */
.btn{
  display:inline-flex;align-items:center;flex-wrap:wrap;gap:.5rem;justify-content:center;
  font-family:var(--f-sans);font-size:.95rem;font-weight:700;letter-spacing:.02em;
  background:var(--navy);color:var(--gold);
  padding:.8rem 1.5rem;border-radius:var(--radius);
  text-decoration:none;border:1.5px solid var(--navy);
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease,color .15s ease;
  white-space:nowrap;cursor:pointer;
}
.btn:hover{transform:translateY(-1px);box-shadow:0 10px 24px -12px rgba(26,39,68,.6);background:var(--navy-2);border-color:var(--navy-2);color:var(--gold)}
.btn .arw{transition:transform .15s ease}
.btn:hover .arw{transform:translateX(3px)}
/* dark 背景の上に置く CTA（コントラスト確保のため gold 塗り） */
.btn-gold{background:var(--gold);color:var(--navy);border-color:var(--gold)}
.btn-gold:hover{background:#d4b782;border-color:#d4b782;color:var(--navy)}
/* 明るい背景の控えめボタン */
.btn-ghost-navy{background:transparent;color:var(--navy);border-color:var(--line-strong)}
.btn-ghost-navy:hover{border-color:var(--navy);color:var(--navy);background:transparent}
/* LINE */
.btn-line{background:#06c755;color:#fff;border-color:#06c755}
.btn-line:hover{background:#05b34c;border-color:#05b34c;color:#fff}

/* ---- global nav（ロゴ左・メニュー中央・CTA右） ---- */
.site-header{position:sticky;top:0;z-index:50;background:var(--navy);border-bottom:1px solid rgba(255,255,255,.08)}
.nav{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.75rem 1.25rem;min-height:3.9rem;padding-block:.5rem}
.nav-brand{display:flex;align-items:baseline;flex-wrap:wrap;gap:.5rem;text-decoration:none}
.nav-brand:hover{text-decoration:none}
.nav-brand .bn{font-family:var(--f-display);font-weight:700;font-size:1.15rem;letter-spacing:.06em;color:var(--paper);line-height:1}
.nav-brand .bs{font-family:var(--f-sans);font-weight:500;font-size:.62rem;letter-spacing:.2em;color:var(--gold);line-height:1}
.nav-menu{display:flex;justify-content:center;flex-wrap:wrap;gap:.2rem 1.5rem;list-style:none}
.nav-menu a{font-size:.9rem;font-weight:700;color:rgba(255,255,255,.82);text-decoration:none;letter-spacing:.02em;padding:.35rem 0;border-bottom:2px solid transparent;white-space:nowrap}
.nav-menu a:hover{color:#fff}
.nav-menu a[aria-current="page"]{color:var(--gold);border-bottom-color:var(--gold)}
.nav-cta{justify-self:end}
.nav-cta .btn{padding:.5rem 1.1rem;font-size:.84rem}

@media (max-width:860px){
  .nav{
    grid-template-columns:1fr auto;
    grid-template-areas:"brand cta" "menu menu";
    row-gap:.45rem;
  }
  .nav-brand{grid-area:brand}
  .nav-cta{grid-area:cta;justify-self:end}
  .nav-menu{
    grid-area:menu;width:100%;justify-content:flex-start;
    gap:.15rem 1.15rem;padding-top:.35rem;border-top:1px solid rgba(255,255,255,.1);
  }
  .nav-menu a{font-size:.82rem}
}
@media (max-width:520px){
  .nav{gap:.5rem .6rem}
  .nav-brand .bs{display:none}
  .nav-cta .btn{padding:.48rem .8rem;font-size:.8rem}
}

/* ---- page header / breadcrumb ---- */
.page-head{background:var(--surface);border-bottom:1px solid var(--line)}
.page-head .wrap{padding-block:clamp(2.4rem,5.5vw,3.4rem)}
.crumb{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;font-size:.8rem;color:var(--ink-soft);list-style:none;margin-bottom:.7rem}
.crumb li{display:flex;align-items:center;gap:.4rem}
.crumb li+li::before{content:"›";color:var(--line-strong)}
.crumb a{color:var(--ink-soft);text-decoration:none}
.crumb a:hover{color:var(--gold-ink)}
.crumb [aria-current="page"]{color:var(--navy);font-weight:700}
.page-head h1{margin-top:.15rem}
.page-head .page-lead{margin-top:.7rem;color:var(--ink-soft);max-width:var(--measure);overflow-wrap:break-word}
.notice-dummy{
  margin-top:.9rem;display:inline-flex;align-items:center;gap:.4rem;
  font-size:.78rem;font-weight:700;color:var(--gold-ink);
  background:#faf6ec;border:1px solid var(--gold);border-radius:999px;
  padding:.3rem .9rem;letter-spacing:.02em;
}

/* ---- service rows（画像/テキスト 交互） ---- */
.svc-row{
  display:grid;grid-template-columns:1fr;gap:1.3rem;align-items:center;
  border:1px solid var(--line-strong);border-top:3px solid var(--gold);border-radius:var(--radius);
  background:var(--surface);padding:1.4rem;margin-top:1.7rem;
}
@media (min-width:800px){
  .svc-row{grid-template-columns:1fr 1fr;gap:2.4rem;padding:2rem 2.2rem}
  .svc-row.reverse .svc-row-media{order:2}
}
.svc-row-media{
  aspect-ratio:4/3;background:var(--placeholder);border-radius:var(--radius);
  display:flex;align-items:center;justify-content:center;
  color:var(--placeholder-ink);font-size:.8rem;letter-spacing:.1em;
}
.svc-row h2{font-size:1.35rem;margin-bottom:.5rem}
.svc-row .price{font-family:var(--f-display);font-weight:700;font-size:1.15rem;color:var(--gold-ink)}
.svc-row .term{font-size:.85rem;color:var(--ink-soft);margin-top:.15rem}
.svc-row p{font-size:.93rem;color:var(--ink-soft);margin-top:.6rem}
.svc-row ul{list-style:none;display:grid;gap:.45rem;margin-top:.7rem}
.svc-row li{font-size:.9rem;color:#4a4a4a;padding-left:1.4rem;position:relative}
.svc-row li::before{content:"✓";position:absolute;left:0;top:0;color:var(--gold-ink);font-weight:700}

/* ---- service: ワイヤーフレーム見本（HP スライダーが上・LP 単体が下） ---- */
.section.wf > .wrap{display:flex;flex-direction:column}
.section.wf .sec-head{order:0}
.section.wf .wf-group-title{order:1}
.section.wf .wf-slider{order:2}
.section.wf .wf-single{order:3}

.wf-group-title{
  margin:1.8rem auto .9rem;text-align:center;
  font-family:var(--f-display);font-weight:700;font-size:1rem;color:var(--navy);
}
.wf-single{
  margin:3.4rem auto 0;max-width:360px;
  display:flex;flex-direction:column;align-items:center;gap:.9rem;text-align:center;
}
.wf-single figcaption{font-family:var(--f-display);font-weight:700;font-size:1rem;color:var(--navy)}

/* ---- service: ワイヤーフレーム見本スライダー（素の JS + CSS・カルーセル） ---- */
.wf-slider{position:relative;max-width:680px;margin:2.2rem auto 0}
.wf-group-title + .wf-slider{margin-top:0}
.wf-viewport{overflow:hidden;transition:height .35s ease}
@media (prefers-reduced-motion:reduce){.wf-viewport{transition:none}}
.wf-track{display:flex;align-items:flex-start;transition:transform .35s ease}
@media (prefers-reduced-motion:reduce){.wf-track{transition:none}}
.wf-slide{
  margin:0;flex:0 0 100%;min-width:0;align-self:flex-start;
  display:flex;flex-direction:column;align-items:center;gap:.9rem;text-align:center;
  padding-inline:.4rem;
}
.wf-slide figcaption{font-family:var(--f-display);font-weight:700;font-size:1rem;color:var(--navy)}
.wf-canvas{width:100%;display:flex;justify-content:center}
.wf-canvas svg{height:auto;display:block}
/* 矢印はスライダー上端からの固定位置（1枚目 SVG の中央付近）。
   スライドごとに高さが変わってもボタン位置は動かさない。 */
.wf-arrow{
  position:absolute;top:270px;transform:none;z-index:2;
  width:2.6rem;height:2.6rem;border-radius:50%;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  background:var(--navy);color:var(--gold);border:1.5px solid var(--navy);
  font-size:1.1rem;line-height:1;
  transition:background .15s ease,transform .15s ease;
}
.wf-arrow:hover{background:var(--navy-2);transform:scale(1.05)}
.wf-prev{left:-24px}
.wf-next{right:-24px}
.wf-dots{display:flex;justify-content:center;gap:.55rem;margin-top:1.2rem}
.wf-dots button{
  width:.62rem;height:.62rem;border-radius:50%;padding:0;cursor:pointer;
  background:var(--line-strong);border:0;
  transition:background .15s ease,transform .15s ease;
}
.wf-dots button:hover{background:var(--placeholder-ink)}
.wf-dots button[aria-selected="true"]{background:var(--gold-ink);transform:scale(1.3)}
@media (max-width:520px){
  .wf-arrow{width:2.1rem;height:2.1rem;font-size:1rem;top:145px}
}

/* ---- works: filter / grid / pagination ---- */
.filter{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.5rem}
.filter button{
  font-family:var(--f-sans);font-size:.82rem;font-weight:700;letter-spacing:.02em;
  padding:.45rem 1.05rem;border-radius:999px;cursor:pointer;
  background:var(--surface);color:var(--ink-soft);border:1px solid var(--line-strong);
  transition:background .15s ease,color .15s ease,border-color .15s ease;
}
.filter button:hover{border-color:var(--navy);color:var(--navy)}
.filter button[aria-pressed="true"]{background:var(--navy);color:var(--gold);border-color:var(--navy)}

.works-grid{display:grid;grid-template-columns:1fr;gap:1.3rem;margin-top:1.8rem}
@media (min-width:600px){.works-grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:920px){.works-grid{grid-template-columns:repeat(3,1fr)}}
.work-item{
  border:1px solid var(--line-strong);border-radius:var(--radius);background:var(--surface);
  overflow:hidden;display:flex;flex-direction:column;
}
.work-item .thumb{
  aspect-ratio:16/10;background:var(--placeholder);
  display:flex;align-items:center;justify-content:center;
  color:var(--placeholder-ink);font-size:.78rem;letter-spacing:.12em;
}
@media (max-width:600px){
  .work-item .thumb{aspect-ratio:auto;height:190px}
}
.work-item .body{padding:1rem 1.1rem 1.2rem;display:flex;flex-direction:column;gap:.5rem;flex:1}
.work-item .cat{
  align-self:flex-start;font-size:.68rem;font-weight:700;letter-spacing:.06em;
  color:var(--gold-ink);background:var(--paper);border:1px solid var(--line-strong);
  border-radius:2px;padding:.12rem .55rem;
}
.work-item h3{font-size:1rem}
.work-item p{font-size:.85rem;color:var(--ink-soft)}
.work-item.is-hidden{display:none}

.pager{display:flex;flex-wrap:wrap;gap:.4rem;justify-content:center;margin-top:2.2rem}
.pager a,.pager span{
  min-width:2.3rem;height:2.3rem;padding:0 .5rem;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:.85rem;font-weight:700;border-radius:var(--radius);text-decoration:none;
  border:1px solid var(--line-strong);color:var(--ink-soft);background:var(--surface);
}
.pager a:hover{border-color:var(--navy);color:var(--navy)}
.pager [aria-current="page"]{background:var(--navy);color:var(--gold);border-color:var(--navy)}
.pager .is-disabled{opacity:.4;pointer-events:none}

/* ---- about: profile / info table ---- */
.profile{display:grid;grid-template-columns:1fr;gap:1.5rem;align-items:center;margin-top:1.8rem}
@media (min-width:640px){.profile{grid-template-columns:auto 1fr;gap:2.4rem}}
.profile .photo{
  width:clamp(120px,32vw,168px);aspect-ratio:1;border-radius:50%;object-fit:cover;
  border:3px solid var(--gold);background:var(--placeholder);
}
.profile .pname{font-size:1.3rem}
.profile .role{font-size:.9rem;color:var(--ink-soft);margin-top:.2rem}
.profile .bio{margin-top:.9rem;color:var(--ink-soft);font-size:.94rem;max-width:var(--measure)}

.info-table{width:100%;border-collapse:collapse;margin-top:1.9rem;font-size:.92rem}
.info-table th,.info-table td{text-align:left;padding:.85rem 1rem;vertical-align:top;border-bottom:1px solid var(--line)}
.info-table th{white-space:nowrap;color:var(--navy);font-weight:700;width:11rem}
.info-table tbody tr:nth-child(odd){background:var(--surface)}
@media (max-width:540px){
  .info-table,.info-table tbody,.info-table tr,.info-table th,.info-table td{display:block;width:auto}
  .info-table tr{border-bottom:1px solid var(--line);padding:.4rem 0}
  .info-table tr:nth-child(odd){background:var(--surface)}
  .info-table th{padding:.5rem 1rem 0;border-bottom:0}
  .info-table td{padding:.15rem 1rem .5rem;border-bottom:0}
}

/* ---- contact: 1 カラム（メールフォームのみ・中央寄せ・ゆったり） ---- */
.contact-head .wrap{max-width:600px}
.contact-head h1{line-height:1.65}
.contact-head .page-lead{line-height:1.95;max-width:34rem}

.contact-section{padding-block:clamp(3.5rem,9vw,6rem)}
.contact-section .wrap{max-width:600px}
.contact-body{margin:0 auto;line-height:1.9}
.contact-body > h2{font-size:1.3rem;margin-bottom:2rem}

.cform .form-field{display:grid;gap:.55rem;margin-bottom:2rem}
.form-field label{font-size:.9rem;font-weight:700;color:var(--navy);display:flex;flex-wrap:wrap;align-items:center}
.form-field .req{font-size:.68rem;font-weight:700;color:var(--navy);background:var(--gold);border-radius:2px;padding:.05rem .4rem;margin-left:.5rem}
.form-field input,.form-field select,.form-field textarea{
  font-family:var(--f-sans);font-size:1rem;color:var(--ink);background:#fff;
  border:1px solid var(--line-strong);border-radius:var(--radius);padding:.8rem .9rem;width:100%;
}
.form-field textarea{resize:vertical;min-height:9.5rem;line-height:1.8}
.form-field input:focus,.form-field select:focus,.form-field textarea:focus{outline:2px solid var(--gold);outline-offset:1px}
.cform .hp{position:absolute;left:-9999px}
.cform .cf-turnstile{margin:.4rem 0 .2rem;min-height:65px}
.cform button{margin-top:1.4rem;justify-self:start}

.cform-fallback{
  margin-top:2.6rem;font-size:.86rem;line-height:1.95;color:var(--ink-soft);max-width:34rem;
}
.cform-fallback a{word-break:break-all}

/* ---- CTA band（濃紺・全ページ共通） ---- */
.cta-band{background:linear-gradient(160deg,var(--navy) 0%,var(--navy-2) 100%);color:#fff;text-align:center}
.cta-band .wrap{padding-block:clamp(2.6rem,6vw,4rem)}
.cta-band .eyebrow{color:var(--gold);justify-content:center}
.cta-band .eyebrow::before{background:var(--gold)}
.cta-band h2{color:#fff;margin:.7rem 0 .8rem}
.cta-band p{color:rgba(255,255,255,.82);margin:0 auto 1.7rem;max-width:34rem}

/* ---- footer ---- */
.site-footer{background:var(--navy);color:rgba(255,255,255,.7);padding-block:2.6rem;font-size:.82rem}
.site-footer .wrap{display:grid;gap:1.4rem}
.foot-top{display:flex;flex-wrap:wrap;gap:1rem 2rem;justify-content:space-between;align-items:flex-start}
.foot-brand{font-family:var(--f-display);font-weight:700;color:var(--paper);letter-spacing:.04em;font-size:1rem}
.foot-brand span{display:block;color:var(--gold);font-family:var(--f-sans);font-weight:500;font-size:.68rem;letter-spacing:.18em;margin-top:.2rem}
.foot-nav{display:flex;flex-wrap:wrap;gap:.5rem 1.4rem;list-style:none}
.foot-nav a{color:rgba(255,255,255,.75);text-decoration:none;font-weight:700;font-size:.84rem}
.foot-nav a:hover{color:#fff}
.foot-copy{border-top:1px solid rgba(255,255,255,.12);padding-top:1.2rem;color:rgba(255,255,255,.55);font-size:.78rem}
