/* ==========================================================================
   なごむ工房 — 和モダン スタイルシート
   モバイルファースト。ブレークポイント: 768px（タブレット） / 1080px（PC）
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --washi: #F7F5F0;      /* 生成り・和紙白 */
  --usunezu: #EDEAE2;    /* 淡鼠 */
  --sumi: #222222;       /* 墨色 */
  --nibi: #5A5A5A;       /* 鈍色 */
  --aitetsu: #2B3A42;    /* 藍鉄 */
  --aitetsu-deep: #1F2B31;
  --shu: #B85D3B;        /* 朱 */
  --shu-deep: #9C4A2B;
  --kincha: #A6894A;     /* 金茶 */
  --line: rgba(34, 34, 34, 0.14);
  --line-strong: rgba(34, 34, 34, 0.28);
  --white: #FFFFFF;
  --line-green: #06C755;

  --font-mincho: "Shippori Mincho", "Noto Serif JP", "Yu Mincho", "YuMincho", serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --font-en: "Cormorant Garamond", "Times New Roman", serif;

  --gutter: 20px;
  --container: 1120px;
  --narrow: 760px;
  --header-h: 64px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--washi);
  color: var(--sumi);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* hidden 属性は、要素側の display 指定より常に優先する */
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--aitetsu); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--shu); }
h1, h2, h3, h4 { font-family: var(--font-mincho); font-weight: 600; line-height: 1.5; letter-spacing: 0.08em; margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
small { font-size: 0.8125em; }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; }
.num { font-family: var(--font-en); font-weight: 600; letter-spacing: 0.02em; font-feature-settings: "lnum"; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--aitetsu); color: var(--white); padding: 8px 16px; }
.skip-link:focus { top: 8px; }
.pc-only { display: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: var(--narrow); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 12px; color: var(--sumi); text-decoration: none; }
.logo:hover { color: var(--sumi); }
.logo__mark { position: relative; width: 28px; height: 28px; background: var(--aitetsu); border-radius: 3px; flex: none; }
.logo__mark::before { content: ""; position: absolute; left: 6px; right: 6px; top: 16px; height: 1px; background: var(--kincha); }
.logo__mark::after { content: ""; position: absolute; width: 6px; height: 6px; right: 7px; top: 7px; border-radius: 50%; background: var(--shu); }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__ja { font-family: var(--font-mincho); font-weight: 600; font-size: 1.125rem; letter-spacing: 0.14em; }
.logo__en { font-family: var(--font-en); font-size: 0.6875rem; letter-spacing: 0.24em; color: var(--nibi); }

.nav-toggle {
  position: relative; width: 44px; height: 44px; margin-right: -10px;
  border: 0; background: transparent; cursor: pointer; color: var(--sumi);
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  position: absolute; left: 11px; width: 22px; height: 1px; background: currentColor; transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle__bar { top: 50%; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; left: 0; }
.nav-toggle__bar::before { transform: translateY(-7px); }
.nav-toggle__bar::after { transform: translateY(7px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: rotate(45deg); background: var(--sumi); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: rotate(-45deg); background: var(--sumi); }

.global-nav {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--washi);
  padding: 24px var(--gutter) 40px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.global-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.global-nav__list { list-style: none; }
.global-nav__list a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
  color: var(--sumi); text-decoration: none;
}
.global-nav__ja { font-family: var(--font-mincho); font-size: 1.125rem; font-weight: 600; letter-spacing: 0.12em; }
.global-nav__en { font-family: var(--font-en); font-size: 0.875rem; letter-spacing: 0.2em; color: var(--kincha); }
.global-nav__list a[aria-current="page"] .global-nav__ja { color: var(--shu); }
.global-nav__cta { margin-top: 28px; }
.global-nav__cta a {
  justify-content: center; border: 1px solid var(--aitetsu); background: var(--aitetsu); color: var(--white);
  font-weight: 500; letter-spacing: 0.12em;
}
.global-nav__cta a:hover, .global-nav__cta a[aria-current="page"] { background: var(--aitetsu-deep); color: var(--white); }
body.nav-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 28px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.1em;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--shu { background: var(--shu); color: var(--white); }
.btn--shu:hover { background: var(--shu-deep); color: var(--white); }
.btn--ai { background: var(--aitetsu); color: var(--white); }
.btn--ai:hover { background: var(--aitetsu-deep); color: var(--white); }
.btn--ghost { border-color: var(--aitetsu); color: var(--aitetsu); background: transparent; }
.btn--ghost:hover { background: var(--aitetsu); color: var(--white); }
.btn--ghost-light { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--aitetsu); }
.btn--line { background: var(--line-green); color: var(--white); }
.btn--line:hover { background: #05A847; color: var(--white); }
.btn__icon { font-family: var(--font-sans); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; padding: 2px 6px; border: 1px solid rgba(255,255,255,.8); border-radius: 3px; line-height: 1.2; }
.btn--small { min-height: 40px; padding: 8px 18px; font-size: 0.8125rem; border-color: var(--aitetsu); color: var(--aitetsu); }
.btn--small:hover { background: var(--aitetsu); color: var(--white); }
.btn.is-disabled { border-color: var(--line-strong); color: var(--nibi); cursor: default; }
.btn.is-disabled:hover { background: transparent; color: var(--nibi); }
@media (max-width: 479px) { .btn-row > .btn { flex: 1 1 100%; } }

/* LINEボタン + QRコード（QRはスマホでは非表示） */
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.line-qr { display: none; margin: 0; text-align: center; }
.line-qr img { width: 120px; height: 120px; padding: 6px; background: var(--white); border: 1px solid var(--line); }
.line-qr figcaption { margin-top: 6px; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--nibi); }
@media (min-width: 768px) { .line-qr { display: block; } }
.cta-band .contact-actions, .booking__line .contact-actions { justify-content: center; }
.cta-band .line-qr figcaption { color: rgba(255,255,255,.72); }
.booking__line .contact-actions { margin-top: 24px; }
.booking__line .contact-actions .btn-row { margin-top: 0; }

/* ---------- Section ---------- */
.section { padding: 72px 0; }
.section--sub { background: var(--usunezu); }
.sec-head { margin-bottom: 40px; }
.sec-head__en {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-en); font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.24em; color: var(--kincha);
  margin-bottom: 8px;
}
.sec-head__en::before { content: ""; width: 32px; height: 1px; background: var(--kincha); }
.sec-head__ja { font-size: 1.5rem; }
.sec-head__lead { margin-top: 16px; color: var(--nibi); font-size: 0.9375rem; }
.sub-title {
  font-size: 1.125rem; margin: 56px 0 20px; padding-left: 14px; border-left: 2px solid var(--shu); line-height: 1.4;
}
.more-link { margin-top: 24px; text-align: right; font-size: 0.875rem; }
.more-link a::after, .pillar__more::after { content: "→"; margin-left: 8px; font-family: var(--font-en); }

/* ---------- Hero (TOP) ---------- */
.hero { padding: 40px 0 64px; overflow: hidden; }
.hero__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; gap: 28px;
}
.hero__title {
  font-size: clamp(1.75rem, 7.4vw, 2.25rem); letter-spacing: 0.16em; line-height: 1.6;
}
.hero__title span { display: block; }
.hero__title span:nth-child(2) { padding-left: 1em; }
.hero__title span:nth-child(3) { padding-left: 2em; color: var(--aitetsu); }
.hero__visual { position: relative; margin: 0 0 0 calc(var(--gutter) * 1); }
.hero__visual::before {
  content: ""; position: absolute; inset: -12px 12px 12px -12px;
  border: 1px solid var(--kincha); pointer-events: none;
}
.hero__visual img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__lead { color: var(--nibi); margin-bottom: 24px; }

/* ---------- Pillars ---------- */
.pillars { list-style: none; display: grid; gap: 20px; }
.pillar__link {
  position: relative; display: block; height: 100%;
  padding: 36px 28px 32px; background: var(--white); border: 1px solid var(--line);
  color: var(--sumi); text-decoration: none;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pillar__link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--shu); transition: width .4s var(--ease); }
.pillar__link:hover { color: var(--sumi); border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 12px 32px -20px rgba(43, 58, 66, .4); }
.pillar__link:hover::after { width: 100%; }
.pillar__num { position: absolute; top: 20px; right: 24px; font-family: var(--font-mincho); font-size: 2.5rem; line-height: 1; color: var(--usunezu); font-weight: 600; }
.pillar__icon svg { width: 48px; height: 48px; fill: none; stroke: var(--kincha); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.pillar__title { font-size: 1.375rem; margin-top: 20px; }
.pillar__en { font-family: var(--font-en); font-size: 0.875rem; letter-spacing: 0.2em; color: var(--kincha); margin: 0 0 16px; }
.pillar__text { font-size: 0.9375rem; color: var(--nibi); }
.pillar__more { display: inline-block; margin-top: 20px; font-size: 0.875rem; color: var(--aitetsu); font-weight: 500; border-bottom: 1px solid currentColor; }

/* ---------- Profile ---------- */
.profile__name { font-family: var(--font-mincho); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.2em; margin-bottom: 20px; }
.profile__body > p { color: var(--sumi); }
.profile__facts { margin: 32px 0 0; border-top: 1px solid var(--line-strong); }
.profile__facts div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.profile__facts dt { font-family: var(--font-mincho); font-weight: 600; color: var(--aitetsu); }
.profile__facts dd { margin: 0; font-size: 0.9375rem; }

/* ---------- News ---------- */
.news-list { list-style: none; border-top: 1px solid var(--line-strong); }
.news-list li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-list time { font-family: var(--font-en); font-size: 0.9375rem; letter-spacing: 0.08em; color: var(--kincha); }
.news-list a { color: var(--sumi); text-decoration: none; }
.news-list a:hover { color: var(--shu); text-decoration: underline; }
.news-empty { color: var(--nibi); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--aitetsu); color: var(--white); padding: 64px 0; text-align: center; }
.cta-band__title { font-size: 1.375rem; margin-bottom: 16px; }
.cta-band__text { color: rgba(255,255,255,.78); font-size: 0.9375rem; margin-bottom: 28px; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn--ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.cta-band .btn--ghost:hover { background: var(--white); color: var(--aitetsu); }

/* ---------- ものづくり ---------- */
.page-head--make { position: relative; overflow: hidden; }
.page-head--make::before {
  /* 方眼紙の目 */
  content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: 55%;
  background-image:
    linear-gradient(rgba(43, 58, 66, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 58, 66, .09) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  pointer-events: none;
}
.page-head--make .page-head__inner { position: relative; }
.services { display: grid; gap: 20px; }
.service { position: relative; display: flex; flex-direction: column; padding: 32px 24px; background: var(--white); border: 1px solid var(--line); }
.service--featured { border-color: var(--aitetsu); }
.service__icon svg { width: 48px; height: 48px; fill: none; stroke: var(--kincha); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.service__en { margin: 16px 0 2px; font-family: var(--font-en); font-size: 0.875rem; letter-spacing: 0.2em; color: var(--kincha); }
.service__title { font-size: 1.25rem; margin-bottom: 12px; }
.service__text { font-size: 0.9375rem; color: var(--nibi); }
.service .spec { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.service__price { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.service__price .num { font-size: 2.25rem; line-height: 1; color: var(--aitetsu); margin-right: 2px; }
.service__price small { display: block; margin-top: 4px; color: var(--nibi); }
.formula { margin: 0 0 16px; padding: 16px 20px; background: var(--white); border: 1px solid var(--line); border-left: 2px solid var(--kincha); font-size: 0.9375rem; }
.formula strong { color: var(--aitetsu); }
.price-notes { list-style: none; margin: 16px 0 40px; }
.price-notes li { position: relative; padding-left: 1.2em; margin-bottom: 6px; font-size: 0.875rem; color: var(--nibi); }
.price-notes li::before { content: "・"; position: absolute; left: 0; }
.price-notes strong { color: var(--sumi); }
.callout--plain { margin-top: 0; margin-bottom: 32px; background: var(--white); }
.sub-title--first { margin-top: 0; }
.check-list { list-style: none; margin-bottom: 32px; border-top: 1px solid var(--line-strong); }
.check-list li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 10px; height: 6px; border-left: 1.5px solid var(--shu); border-bottom: 1.5px solid var(--shu); transform: rotate(-45deg); }

/* ---------- Support (Amazon ほしい物リスト) ---------- */
.support { padding: 56px 0; border-top: 1px solid var(--line); }
.support__inner { max-width: 640px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.support__en { font-family: var(--font-en); letter-spacing: 0.24em; color: var(--kincha); margin-bottom: 4px; }
.support__title { font-size: 1.25rem; margin-bottom: 16px; }
.support__text { font-size: 0.9375rem; color: var(--nibi); text-align: left; margin-bottom: 24px; }
.support__note { margin-top: 16px; font-size: 0.75rem; color: var(--nibi); }
@media (min-width: 768px) { .support { padding: 72px 0; } .support__text { text-align: center; } }

/* ---------- Page head (sub pages) ---------- */
.page-head { padding: 48px 0 56px; border-bottom: 1px solid var(--line); }
.page-head__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 32px; }
.page-head__en { font-family: var(--font-en); font-size: 1rem; letter-spacing: 0.24em; color: var(--kincha); margin-bottom: 8px; }
.page-head__title { font-size: clamp(1.625rem, 6.4vw, 2.25rem); letter-spacing: 0.12em; }
.page-head__brand { display: inline-block; margin: 16px 0 0; padding: 2px 14px; border: 1px solid var(--shu); color: var(--shu); font-family: var(--font-mincho); font-weight: 600; letter-spacing: 0.2em; font-size: 0.9375rem; }
.page-head__lead { margin-top: 24px; color: var(--nibi); }
.page-head__visual { margin: 0; position: relative; isolation: isolate; }
.page-head__visual::after { content: ""; position: absolute; inset: 10px -10px -10px 10px; border: 1px solid var(--kincha); pointer-events: none; z-index: -1; }
.page-head__visual img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.page-head--compact { padding: 40px 0 44px; background: var(--usunezu); border-bottom: 0; }
.page-head__date { margin-top: 12px; font-family: var(--font-en); color: var(--nibi); letter-spacing: 0.08em; }

.price-badge {
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 18px 28px; border: 1px solid var(--aitetsu); background: var(--white);
}
.price-badge__label { font-family: var(--font-mincho); font-weight: 600; letter-spacing: 0.12em; }
.price-badge .num { font-size: 3rem; line-height: 1; color: var(--shu); }
.price-badge__unit { font-size: 0.875rem; color: var(--nibi); }
.page-head--knife { position: relative; overflow: hidden; }
.page-head--knife::before {
  /* 砥石の目を思わせる細い横線 */
  content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: 55%;
  background: repeating-linear-gradient(180deg, transparent 0 13px, rgba(166, 137, 74, .22) 13px 14px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  pointer-events: none;
}
.page-head--knife .page-head__inner { position: relative; }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 0.8125rem; color: var(--nibi); margin-bottom: 24px; }
.breadcrumb li:not(:last-child)::after { content: "／"; margin: 0 8px; color: var(--line-strong); }
.breadcrumb a { color: var(--nibi); }

/* ---------- In-page TOC ---------- */
.toc { position: sticky; top: var(--header-h); z-index: 40; background: rgba(247, 245, 240, .95); border-bottom: 1px solid var(--line); }
.toc ul { list-style: none; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 4px; padding-bottom: 4px; }
.toc ul::-webkit-scrollbar { display: none; }
.toc a { display: block; white-space: nowrap; padding: 10px 14px; font-size: 0.8125rem; letter-spacing: 0.08em; color: var(--nibi); text-decoration: none; }
.toc a:hover { color: var(--shu); }

/* ---------- Chips (filters) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  min-height: 40px; padding: 6px 18px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--nibi); font: inherit; font-size: 0.8125rem; letter-spacing: 0.08em; cursor: pointer;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--aitetsu); color: var(--aitetsu); }
.chip[aria-pressed="true"] { background: var(--aitetsu); border-color: var(--aitetsu); color: var(--white); }

/* ---------- Gallery ---------- */
/* 写真は切り抜かず、元の縦横比のまま石垣状に並べる */
.gallery { list-style: none; columns: 2; column-gap: 8px; }
.gallery__item { break-inside: avoid; margin-bottom: 8px; }
.gallery__item[hidden] { display: none; }
.gallery__btn { display: block; width: 100%; padding: 0; border: 0; background: var(--usunezu); cursor: zoom-in; overflow: hidden; }
.gallery__btn img { width: 100%; transition: transform .6s var(--ease), opacity .3s; }
.gallery__btn:hover img { transform: scale(1.04); }

.lightbox { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: rgba(20, 24, 27, .94); color: var(--white); }
.lightbox::backdrop { background: rgba(20, 24, 27, .94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__figure { margin: 0; max-width: min(92vw, 1200px); text-align: center; }
.lightbox__img { max-width: 100%; max-height: 82vh; margin: 0 auto; object-fit: contain; }
.lightbox__cap { margin-top: 12px; font-size: 0.8125rem; color: rgba(255,255,255,.7); }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; background: transparent; color: var(--white); cursor: pointer; font-size: 2rem; line-height: 1; width: 52px; height: 52px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-family: var(--font-en); font-size: 3rem; }
.lightbox__prev { left: 4px; }
.lightbox__next { right: 4px; }
.lightbox__close:hover, .lightbox__nav:hover { color: var(--kincha); }

/* ---------- Plans ---------- */
.plans { display: grid; gap: 20px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 24px; background: var(--white); border: 1px solid var(--line); }
.plan--featured { border-color: var(--aitetsu); }
.plan--featured::before { content: "人気"; position: absolute; top: -1px; right: 20px; padding: 2px 12px; background: var(--shu); color: var(--white); font-size: 0.75rem; letter-spacing: 0.16em; }
.plan__en { font-family: var(--font-en); font-size: 0.875rem; letter-spacing: 0.24em; color: var(--kincha); margin-bottom: 4px; }
.plan__name { font-size: 1.25rem; }
.plan__desc { margin-top: 6px; font-size: 0.8125rem; color: var(--nibi); }
.plan__price { margin: 24px 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.plan__price .num { font-size: 2.5rem; line-height: 1; margin-right: 2px; color: var(--aitetsu); }
.plan__price small { display: block; margin-top: 6px; color: var(--nibi); }
.plan__note { margin-top: 20px; font-size: 0.8125rem; color: var(--nibi); }
.plan__text { margin: 0; font-size: 0.875rem; color: var(--nibi); }
.spec { margin: 0; }
.spec div { display: grid; grid-template-columns: 4.5em 1fr; gap: 8px; padding: 6px 0; font-size: 0.9375rem; }
.spec dt { color: var(--nibi); font-size: 0.8125rem; padding-top: 2px; }
.spec dd { margin: 0; }
.spec .num { font-size: 1.125rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 0.9375rem; }
.table th, .table td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { background: var(--aitetsu); color: var(--white); font-family: var(--font-sans); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.12em; white-space: nowrap; }
.table tbody th { font-family: var(--font-mincho); font-weight: 600; white-space: nowrap; }
.table .num-cell { white-space: nowrap; font-weight: 500; }
.table .num-cell small { display: block; font-weight: 400; color: var(--nibi); }
.table .mark { text-align: center; white-space: nowrap; font-weight: 500; }
.table .mark small { display: block; color: var(--nibi); font-weight: 400; }
.table--area tbody th { white-space: normal; font-family: var(--font-sans); font-weight: 400; }
.table--area .num-cell { text-align: right; }
.table--area strong { color: var(--shu); }
.table--info tbody th { width: 8em; background: var(--usunezu); }
.table--legal tbody th { width: 11em; white-space: normal; }
.table--legal small { color: var(--nibi); }
.table--legal .plain-list li { margin-bottom: 6px; }
.legal-links { margin-top: 6px; }
.table-note { margin-top: 16px; font-size: 0.8125rem; color: var(--nibi); }
.plain-list { list-style: none; }
@media (max-width: 599px) {
  /* 3列の表はスマホでは縦積みにする */
  .table:not(.table--area):not(.table--info) thead { display: none; }
  .table:not(.table--area):not(.table--info) tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table:not(.table--area):not(.table--info) th,
  .table:not(.table--area):not(.table--info) td { display: block; padding: 2px 0; border: 0; text-align: left; white-space: normal; }
  .table:not(.table--area):not(.table--info) tbody th { font-size: 1rem; margin-bottom: 4px; }
  .table:not(.table--area):not(.table--info) .num-cell { color: var(--shu); }
  .table .mark small { display: inline; margin-left: 8px; }
  .table--info tbody th { width: 6em; }
}

/* ---------- Callout ---------- */
.callout { margin-top: 48px; padding: 28px 24px; background: var(--washi); border: 1px solid var(--line); border-top: 2px solid var(--kincha); }
.callout__title { font-size: 1.125rem; margin-bottom: 16px; }
.callout p { font-size: 0.9375rem; }
.callout__list { margin: 0 0 16px; padding-left: 1.4em; font-size: 0.9375rem; }
.callout__list li { margin-bottom: 8px; }
.callout__list strong { color: var(--aitetsu); }
.callout__note { color: var(--nibi); font-size: 0.8125rem !important; }

/* ---------- Flow ---------- */
.flow { list-style: none; counter-reset: flow; display: grid; gap: 0; }
.flow__step { position: relative; counter-increment: flow; padding: 0 0 36px 64px; }
.flow__step::before {
  content: counter(flow, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--aitetsu); border-radius: 50%; background: var(--washi);
  font-family: var(--font-en); font-size: 1.125rem; font-weight: 600; color: var(--aitetsu);
}
.flow__step:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 44px; bottom: 0; width: 1px; background: var(--line-strong); }
.flow__title { font-size: 1.125rem; margin: 6px 0 8px; }
.flow__step p { font-size: 0.9375rem; color: var(--nibi); }

/* ---------- Notes (dl) ---------- */
.notes { margin: 0; border-top: 1px solid var(--line-strong); }
.notes div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.notes dt { font-family: var(--font-mincho); font-weight: 600; color: var(--aitetsu); margin-bottom: 6px; }
.notes dd { margin: 0; font-size: 0.9375rem; }

/* ---------- Knife: how-to & packing ---------- */
.howto { display: grid; gap: 20px; }
.howto__card { padding: 32px 24px; background: var(--white); border: 1px solid var(--line); }
.howto__label { display: inline-block; margin-bottom: 12px; padding: 2px 12px; background: var(--aitetsu); color: var(--white); font-size: 0.8125rem; letter-spacing: 0.16em; }
.howto__title { font-size: 1.125rem; margin-bottom: 20px; }
.steps { list-style: none; counter-reset: step; }
.steps li { position: relative; counter-increment: step; padding: 10px 0 10px 36px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 10px; font-family: var(--font-en); font-size: 1.25rem; font-weight: 600; line-height: 1.5; color: var(--kincha); }

.packing { list-style: none; display: grid; gap: 12px; }
.packing li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 20px; background: var(--white); border: 1px solid var(--line); }
.packing__num { font-family: var(--font-mincho); font-size: 1.75rem; font-weight: 600; line-height: 1.2; color: var(--shu); text-align: center; border-right: 1px solid var(--line); }
.packing p { margin: 0; font-size: 0.9375rem; padding-top: 2px; }

/* ---------- Booking ---------- */
.booking__frame { background: var(--white); border: 1px solid var(--line); }
.booking__frame iframe { display: block; width: 100%; height: 680px; border: 0; }
.booking__alt { margin-top: 12px; font-size: 0.8125rem; color: var(--nibi); text-align: right; }
.booking__line { padding: 40px 24px; background: var(--white); border: 1px solid var(--line); text-align: center; }
.booking__line-title { font-family: var(--font-mincho); font-weight: 600; font-size: 1.125rem; letter-spacing: 0.1em; color: var(--aitetsu); }
.booking__line p { font-size: 0.9375rem; color: var(--nibi); }
.booking__line .btn-row { justify-content: center; margin-top: 24px; }

/* ---------- Apps ---------- */
.app-grid { list-style: none; display: grid; gap: 20px; }
.app-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); }
.app-card[hidden] { display: none; }
.app-card__visual { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--usunezu); border-bottom: 1px solid var(--line); overflow: hidden; }
.app-card__visual img { width: 100%; height: 100%; object-fit: cover; }
.app-card__visual { position: relative; }
.app-card__credit { position: absolute; right: 0; bottom: 0; padding: 1px 6px; background: rgba(255,255,255,.85); font-size: 0.625rem; color: var(--nibi); }
.app-card__visual svg { width: 64px; height: 64px; fill: none; stroke: var(--kincha); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.app-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.app-card__platform { font-family: var(--font-en); font-size: 0.875rem; letter-spacing: 0.2em; color: var(--kincha); margin-bottom: 4px; }
.app-card__name { font-size: 1.125rem; margin-bottom: 12px; }
.app-card__summary { font-size: 0.875rem; color: var(--nibi); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 20px; }
.tags li { padding: 2px 10px; background: var(--washi); border: 1px solid var(--line); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--nibi); }
.app-card__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Contact ---------- */
.contact-box { padding: 36px 24px; background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--shu); }
.contact-box__title { font-size: 1.125rem; margin-bottom: 16px; }
.contact-box p { font-size: 0.9375rem; color: var(--nibi); margin-bottom: 24px; }
.link-cards { list-style: none; display: grid; gap: 12px; }
.link-cards a {
  position: relative; display: block; padding: 20px 48px 20px 24px; background: var(--white); border: 1px solid var(--line);
  color: var(--sumi); text-decoration: none; font-family: var(--font-mincho); font-weight: 600; letter-spacing: 0.1em;
}
.link-cards a::after { content: "→"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-family: var(--font-en); color: var(--kincha); }
.link-cards a:hover { border-color: var(--aitetsu); color: var(--aitetsu); }
.link-cards__en { display: block; font-family: var(--font-en); font-size: 0.8125rem; letter-spacing: 0.2em; color: var(--kincha); font-weight: 500; }

/* ---------- Prose (news / policy) ---------- */
.prose { font-size: 1rem; }
.prose h2 { font-size: 1.25rem; margin: 48px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); }
.prose h3 { font-size: 1.0625rem; margin: 32px 0 12px; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.prose li { margin-bottom: 4px; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--kincha); color: var(--nibi); }
.prose pre { overflow-x: auto; padding: 16px; background: var(--aitetsu-deep); color: var(--washi); font-size: 0.875rem; }
.prose code { font-size: 0.9em; }
.prose :not(pre) > code { padding: 1px 6px; background: var(--usunezu); }
.prose img { margin: 1.5em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose__date { margin-top: 48px; text-align: right; font-size: 0.875rem; color: var(--nibi); }
.back-link { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.875rem; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 96px 0; }
.not-found__code { font-size: 5rem; line-height: 1; color: var(--kincha); margin-bottom: 16px; }
.not-found__title { font-size: 1.5rem; margin-bottom: 24px; }
.not-found p { color: var(--nibi); margin-bottom: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--aitetsu-deep); color: rgba(255,255,255,.82); }
.site-footer__inner { max-width: var(--container); margin: 0 auto; padding: 56px var(--gutter) 40px; display: grid; gap: 40px; }
.site-footer__name { font-family: var(--font-mincho); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.16em; color: var(--white); margin-bottom: 8px; }
.site-footer__name span { display: block; font-family: var(--font-en); font-size: 0.75rem; letter-spacing: 0.24em; color: var(--kincha); font-weight: 500; }
.site-footer__tagline { font-family: var(--font-mincho); letter-spacing: 0.12em; margin-bottom: 4px; }
.site-footer__area { font-size: 0.8125rem; color: rgba(255,255,255,.6); }
.site-footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.site-footer__heading { font-size: 0.75rem; letter-spacing: 0.2em; color: var(--kincha); margin-bottom: 12px; }
.site-footer__nav ul { list-style: none; }
.site-footer__nav li { margin-bottom: 8px; }
.site-footer__nav a { color: rgba(255,255,255,.82); text-decoration: none; font-size: 0.875rem; }
.site-footer__nav a:hover { color: var(--white); text-decoration: underline; }
.site-footer__copy { margin: 0; padding: 20px var(--gutter); border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-family: var(--font-en); letter-spacing: 0.12em; color: rgba(255,255,255,.5); }

/* ==========================================================================
   Tablet 768px〜
   ========================================================================== */
@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 72px; }
  .section { padding: 104px 0; }
  .sec-head { margin-bottom: 56px; }
  .sec-head__ja { font-size: 1.875rem; }
  .gallery { columns: 3; column-gap: 12px; }
  .gallery__item { margin-bottom: 12px; }
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .services { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .services--4 { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .plans--2 { grid-template-columns: repeat(2, 1fr); max-width: 880px; }
  .howto { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .packing { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .link-cards { grid-template-columns: repeat(3, 1fr); }
  .news-list li { grid-template-columns: 8.5em 1fr; gap: 24px; }
  .callout { padding: 36px 40px; }
  .contact-box { padding: 48px; }
  .page-head { padding: 72px 0 80px; }
  .page-head--compact { padding: 56px 0 60px; }
  .site-footer__inner { grid-template-columns: 1.2fr 1fr; padding-top: 72px; }
  .booking__line { padding: 56px 40px; }
}

/* ==========================================================================
   PC 1080px〜
   ========================================================================== */
@media (min-width: 1080px) {
  .pc-only { display: inline; }

  /* header: 横並びナビ */
  .nav-toggle { display: none; }
  .global-nav { position: static; inset: auto; padding: 0; background: transparent; opacity: 1; visibility: visible; transform: none; overflow: visible; }
  .global-nav__list { display: flex; align-items: center; gap: 4px; }
  .global-nav__list a { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 8px 16px; border: 0; line-height: 1.4; }
  .global-nav__ja { font-size: 0.9375rem; font-family: var(--font-sans); font-weight: 500; letter-spacing: 0.1em; }
  .global-nav__en { font-size: 0.6875rem; letter-spacing: 0.24em; }
  .global-nav__list a:hover .global-nav__ja { color: var(--shu); }
  .global-nav__list a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--shu); }
  .global-nav__cta { margin: 0 0 0 16px; }
  .global-nav__cta a { padding: 12px 24px; font-size: 0.875rem; }
  .global-nav__cta a[aria-current="page"] { box-shadow: none; }

  /* hero: 縦書きタイトル + 写真 + リード文 */
  .hero { padding: 72px 0 40px; }
  .hero__inner {
    grid-template-columns: minmax(0, 0.9fr) auto minmax(0, 1.5fr);
    grid-template-rows: 1fr auto;
    column-gap: 56px; row-gap: 0;
    align-items: end;
  }
  .hero__title {
    grid-column: 2; grid-row: 1 / span 2; align-self: start;
    writing-mode: vertical-rl; text-orientation: mixed;
    font-size: 2.5rem; letter-spacing: 0.32em; line-height: 1.9;
    padding: 8px 28px 8px 0; border-right: 1px solid var(--kincha);
  }
  .hero__title span:nth-child(2) { padding: 1.5em 0 0 0; }
  .hero__title span:nth-child(3) { padding: 3em 0 0 0; }
  .hero__visual { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
  .hero__visual img { aspect-ratio: 5 / 4; }
  .hero__visual::before { inset: -20px 20px 20px -20px; }
  .hero__body { grid-column: 1; grid-row: 2; padding-bottom: 8px; }
  .hero__lead { font-size: 0.9375rem; line-height: 2.1; }
  .hero__body .btn-row { flex-direction: column; align-items: stretch; }

  .pillars { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .pillar__link { padding: 44px 28px 36px; }
  .service { padding: 40px 32px; }

  /* profile: 見出しと本文を横並び */
  .profile { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: start; }
  .profile .sec-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 40px); }

  /* page head with visual */
  .page-head--visual .page-head__inner { grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: center; }
  .page-head--knife .page-head__inner { grid-template-columns: 1fr auto; align-items: end; }
  .page-head__title { font-size: 2.5rem; }

  .app-grid { grid-template-columns: repeat(3, 1fr); }
  .plan { padding: 40px 32px; }
  .flow { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .flow__step { padding: 64px 0 0 0; }
  .flow__step::before { left: 0; top: 0; }
  .flow__step:not(:last-child)::after { left: 52px; right: -24px; top: 22px; bottom: auto; width: auto; height: 1px; }
  .packing { grid-template-columns: repeat(4, 1fr); }
  .packing li { grid-template-columns: 1fr; gap: 12px; padding: 28px 24px; }
  .packing__num { text-align: left; border-right: 0; }
  .cta-band { padding: 88px 0; }
  .cta-band__title { font-size: 1.75rem; }
}
