/* =========================================================
   合同会社ちいプロ — 白基調 × 黄色マーカー × 丸ゴシック
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-2: #faf8f1;
  --panel: #f3f1e9;
  --line: #e6e2d6;
  --line-strong: #d3cec0;
  --text: #1c1b18;
  --text-2: #45423b;
  --muted: #6b675d;
  --yellow: #ffe14d;
  --yellow-deep: #e8bb00;
  --accent: #8a6500; /* 白背景で読める黄色系の文字色（黄色は塗り専用） */
  --ink: #1c1b18;
  --danger: #d0362a;

  --font: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'ヒラギノ丸ゴ ProN', 'BIZ UDPGothic', 'Meiryo', sans-serif;
  --en: 'Quicksand', 'Zen Maru Gothic', sans-serif;

  --header-h: 76px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::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; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.95;
  letter-spacing: 0.04em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4 { line-height: 1.45; margin: 0; font-weight: 900; letter-spacing: 0.06em; }
p { margin: 0; }
p + p { margin-top: 1.2em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--yellow); color: var(--ink); padding: 8px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.pc { display: initial; }
.sp { display: none; }
@media (max-width: 767px) { .pc { display: none; } .sp { display: initial; } }

/* ---------- 強調：黒太文字 × 黄色背景 ---------- */
.marker {
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  padding: 0.06em 0.32em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
strong, b { font-weight: 900; }
.prose strong, .story strong { background: var(--yellow); color: var(--ink); padding: 0.04em 0.24em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* 傍点：text-emphasis は iOS Safari などで表示されないことがあるため、1文字ずつ擬似要素で打つ */
.dots > span { position: relative; }
.dots > span::before { content: ''; position: absolute; left: 50%; top: -0.32em; width: 0.2em; height: 0.2em; margin-left: -0.1em; border-radius: 50%; background: var(--ink); }

/* ---------- レイアウト ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section--tight { padding-top: clamp(40px, 6vw, 80px); }
.center { text-align: center; }
.mt-s { margin-top: 12px; }
.mt-m { margin-top: clamp(28px, 4vw, 48px); }
.mt-l { margin-top: clamp(48px, 7vw, 88px); }
.text-soft { color: var(--muted); }
.note { color: var(--muted); font-size: 13px; }

.eyebrow { font-family: var(--en); font-weight: 700; color: var(--accent); letter-spacing: 0.24em; font-size: 13px; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 28px; height: 3px; background: var(--yellow-deep); border-radius: 2px; }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { font-size: clamp(28px, 4.2vw, 46px); margin-top: 12px; }
.sec-head p:not(.eyebrow) { margin-top: 18px; color: var(--muted); }
.sec-head--center { text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- ボタン ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 30px;
  border-radius: 999px; border: 2px solid var(--text);
  background: var(--btn-bg); color: var(--text);
  font-weight: 900; font-size: 15px; letter-spacing: 0.08em; text-decoration: none; cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.btn::after { content: '→'; font-family: var(--en); transition: transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(4px); }
.btn--primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); box-shadow: 0 6px 0 var(--yellow-deep); }
.btn--primary:hover { box-shadow: 0 8px 0 var(--yellow-deep); }
.btn--primary:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--yellow-deep); }
.btn--ghost:hover { background: var(--text); color: var(--bg); }
.btn--sm { min-height: 40px; padding: 6px 20px; font-size: 13px; }
.btn--lg { min-height: 62px; padding: 14px 44px; font-size: 16px; }
/* 「↗」は iOS で絵文字になるため、文字色で塗った SVG で描く */
.btn--ext::after { content: ''; width: 1.05em; height: 1.05em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M9 7h8v8' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M9 7h8v8' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.btn--ext:hover::after { transform: translate(3px, -3px); }
.btn:disabled { opacity: 0.55; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- ロゴ ---------- */
.logo { display: block; width: auto; }
.logo--sm { height: 48px; }
.logo--lg { height: 72px; }
@media (max-width: 1023px) { .logo--sm { height: 42px; } }

/* ---------- ヘッダー ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); transition: background-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s; }
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.site-header__inner { height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { text-decoration: none; display: inline-flex; }
.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: clamp(14px, 2.2vw, 34px); }
.gnav a { display: flex; flex-direction: column; align-items: center; text-decoration: none; position: relative; padding: 6px 2px; }
.nav-ja { font-size: 14px; font-weight: 700; }
.gnav .nav-en { font-family: var(--en); font-size: 10px; letter-spacing: 0.2em; color: var(--muted); line-height: 1.2; }
.gnav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px; background: var(--yellow-deep); transform: scaleX(0); transition: transform 0.35s var(--ease); }
.gnav a:hover::after, .gnav a[aria-current]::after { transform: scaleX(1); }
.header-cta { min-height: 44px; padding: 8px 22px; font-size: 14px; box-shadow: 0 4px 0 var(--yellow-deep); }
.header-cta::after { display: none; }
.menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--yellow); cursor: pointer; position: relative; }
.menu-toggle span:not(.sr) { position: absolute; left: 14px; right: 14px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform 0.35s var(--ease); }
.menu-toggle span:nth-child(1) { top: 19px; }
.menu-toggle span:nth-child(2) { top: 27px; }
.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(255, 255, 255, 0.97); display: grid; place-items: center; opacity: 0; transition: opacity 0.4s; }
/* hidden 属性より display: grid が優先されるため明示的に消す（閉じた状態でページ全体のクリックを塞がないように） */
.drawer[hidden] { display: none; }
.drawer:not(.is-open) { pointer-events: none; }
.drawer.is-open { opacity: 1; }
.drawer ul { display: grid; gap: 8px; text-align: center; }
.drawer a { display: block; text-decoration: none; font-size: 22px; font-weight: 900; padding: 10px 24px; }
.drawer .nav-en { display: block; font-family: var(--en); font-size: 11px; letter-spacing: 0.24em; color: var(--accent); font-weight: 700; }

@media (max-width: 1023px) {
  :root { --header-h: 68px; }
  .gnav, .header-cta { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- トップ：スライダー（作品カルーセル） ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(16px, 3vw, 40px)); position: relative; overflow: hidden; }
.hero__viewport { position: relative; --slide-w: min(74vw, 1080px); --gap: clamp(14px, 2vw, 28px); height: calc(var(--slide-w) * 9 / 16); touch-action: pan-y; }
.hero-slide {
  position: absolute; top: 0; left: 50%; width: var(--slide-w); height: 100%;
  margin-left: calc(var(--slide-w) / -2);
  border-radius: var(--radius); overflow: hidden; background: #fff; text-decoration: none; color: var(--text);
  transform: translateX(calc(var(--offset, 0) * (var(--slide-w) + var(--gap))));
  transition: transform 0.9s var(--ease), opacity 0.6s, filter 0.6s;
  opacity: 0; pointer-events: none;
}
.hero-slide.is-visible { opacity: 1; pointer-events: auto; }
.hero-slide:not(.is-active) { filter: saturate(0.5) opacity(0.45); cursor: pointer; }
.hero-slide.no-anim { transition: none; }
.hero-slide__img { position: absolute; inset: 0; }
.hero-slide__img img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide__bar {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 16px;
  padding: clamp(10px, 1.6vw, 18px) clamp(16px, 2.4vw, 28px);
  background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-slide__name { font-weight: 900; font-size: clamp(15px, 1.9vw, 22px); margin-right: auto; }
.hero-slide__cat { font-weight: 700; font-size: clamp(11px, 1.2vw, 14px); background: var(--yellow); color: var(--ink); padding: 2px 12px; border-radius: 999px; white-space: nowrap; }
.hero-slide__year { font-family: var(--en); font-weight: 700; font-size: clamp(12px, 1.3vw, 15px); color: var(--muted); }
/* 説明文はPCのみ（ホバーで表示） */
.hero-slide__desc {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(32px, 6vw, 96px); background: rgba(255, 255, 255, 0.9);
  opacity: 0; transition: opacity 0.45s;
}
.hero-slide__desc h3 { font-size: clamp(24px, 2.8vw, 36px); }
.hero-slide__desc p { margin-top: 16px; max-width: 34em; font-size: clamp(14px, 1.3vw, 17px); line-height: 2; }
.hero-slide__desc .hero-slide__more { margin-top: 24px; font-family: var(--en); font-weight: 700; color: var(--accent); letter-spacing: 0.16em; font-size: 13px; }
@media (hover: hover) and (min-width: 768px) {
  .hero-slide.is-active:hover .hero-slide__desc, .hero-slide.is-active:focus-visible .hero-slide__desc { opacity: 1; }
}
@media (max-width: 767px) {
  .hero__viewport { --slide-w: 84vw; --gap: 10px; height: calc(var(--slide-w) * 10 / 16); }
  .hero-slide__desc { display: none; }
  .hero-slide__year { display: none; }
}
.hero__arrow {
  position: absolute; top: 50%; z-index: 5; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%;
  border: 0; background: var(--yellow); color: var(--ink); cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 4px 0 var(--yellow-deep); transition: transform 0.25s var(--ease);
}
.hero__arrow:hover { transform: scale(1.08); }
.hero__arrow--prev { left: calc(50% - var(--slide-w) / 2 - 27px); }
.hero__arrow--next { right: calc(50% - var(--slide-w) / 2 - 27px); }
@media (max-width: 767px) { .hero__arrow { width: 42px; height: 42px; margin-top: -21px; } .hero__arrow--prev { left: 4px; } .hero__arrow--next { right: 4px; } }
.hero__foot { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.hero__dots { display: flex; gap: 10px; }
.hero__dots button { width: 44px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hero__dots button::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: var(--line-strong); }
.hero__dots button::after { content: ''; position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: var(--yellow-deep); width: 0; }
.hero__dots button[aria-current='true']::after { width: 100%; transition: width var(--autoplay, 6s) linear; }
.hero.is-paused .hero__dots button[aria-current='true']::after { transition: none; width: 100%; }

/* ---------- トップ：メッセージ ---------- */
.message { text-align: center; }
.message__lines { font-size: clamp(19px, 2.7vw, 32px); font-weight: 900; line-height: 2.1; letter-spacing: 0.08em; }
.message__lines > span { display: block; }
.message__sub { margin-top: clamp(28px, 4vw, 44px); color: var(--muted); font-size: clamp(14px, 1.6vw, 17px); line-height: 2.2; }
@media (max-width: 600px) {
  .message__lines { text-align: left; font-size: 16px; letter-spacing: 0.02em; }
  .message__sub { text-align: left; }
  .message .eyebrow { justify-content: flex-start !important; }
  .message .btn-row { justify-content: flex-start !important; }
}

/* ---------- トップ：事業カード ---------- */
.biz-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.biz-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform 0.4s var(--ease); }
.biz-card:hover { transform: translateY(-6px); }
.biz-card__img { aspect-ratio: 16 / 10; background: #fff; overflow: hidden; }
.biz-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.biz-card:hover .biz-card__img img { transform: scale(1.05); }
.biz-card__body { padding: 22px 24px 26px; display: grid; gap: 8px; }
.biz-card__cat { justify-self: start; }
.biz-card__title { font-size: 20px; }
.biz-card__body p { color: var(--muted); font-size: 14px; line-height: 1.9; }
@media (max-width: 860px) { .biz-cards { grid-template-columns: 1fr; } }

/* ---------- 下層ページヒーロー ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(48px, 8vw, 110px)) 0 0; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; }
.page-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), var(--bg)); }
.page-hero__inner { position: relative; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 6vw, 72px); }
.page-hero__en { font-family: var(--en); font-weight: 700; font-size: clamp(48px, 10vw, 128px); line-height: 1; letter-spacing: 0.04em; color: var(--yellow); }
.page-hero__title { margin-top: clamp(12px, 2vw, 22px); font-size: clamp(24px, 3.6vw, 40px); }
.page-hero__lead { margin-top: 20px; color: var(--muted); max-width: 40em; }
.breadcrumb { position: relative; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 14px var(--gutter); font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 10px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: '/'; margin-right: 10px; color: var(--line-strong); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb--article { border: 0; max-width: calc(820px + var(--gutter) * 2); }

/* ---------- ちいプロについて ---------- */
.about-top { padding-top: var(--header-h); }
.photo-marquee { overflow: hidden; padding: clamp(16px, 3vw, 32px) 0; }
.photo-marquee__track { display: flex; gap: clamp(12px, 1.6vw, 20px); width: max-content; animation: marquee 60s linear infinite; }
.photo-marquee:hover .photo-marquee__track { animation-play-state: paused; }
.photo-marquee figure { margin: 0; }
.photo-marquee img { width: clamp(260px, 34vw, 480px); aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.photo-marquee__track > :nth-child(even) img { transform: translateY(clamp(12px, 2vw, 28px)); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .photo-marquee { overflow-x: auto; }
  .photo-marquee__track { animation: none; }
}
.about-top .page-hero { padding-top: clamp(32px, 5vw, 64px); }

.catch { font-size: clamp(26px, 5vw, 60px); line-height: 1.6; letter-spacing: 0.06em; }
.catch .marker { padding: 0.1em 0.3em; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: clamp(40px, 6vw, 72px); }
.story { font-size: clamp(15px, 1.5vw, 17px); line-height: 2.2; }
.story p + p { margin-top: 1.6em; }
.story__invite { font-weight: 900; font-size: clamp(17px, 1.9vw, 21px); line-height: 2; }
.rep { position: sticky; top: calc(var(--header-h) + 24px); }
.rep__photo { background: var(--yellow); border-radius: 28px; padding: 28px 18px 0; overflow: hidden; }
.rep__photo img { margin: 0 auto; width: 100%; max-width: 420px; }
.rep__name { margin-top: 18px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.rep__name small { color: var(--muted); font-size: 13px; }
.rep__name strong { font-size: 24px; letter-spacing: 0.14em; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .rep { position: static; order: -1; max-width: 420px; }
}

.profile { display: grid; grid-template-columns: 180px 1fr; border-top: 1px solid var(--line); }
.profile dt, .profile dd { margin: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
.profile dt { font-weight: 900; color: var(--accent); }
.profile dd a { text-decoration: none; border-bottom: 1px solid var(--muted); }
.profile dd a:hover { color: var(--accent); border-color: var(--accent); }
.biz-tree { display: grid; gap: 18px; }
.biz-tree > li > strong { display: inline-block; font-size: 16px; }
.biz-tree ul { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; }
.biz-tree ul li { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 14px; }
.biz-tree .note { margin-top: 8px; line-height: 1.9; }
@media (max-width: 640px) {
  .profile { grid-template-columns: 1fr; }
  .profile dt { padding-bottom: 0; border-bottom: 0; }
  .profile dd { padding-top: 6px; }
}
.media-list { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.media-list li { background: var(--panel); border-radius: 999px; padding: 8px 20px; font-weight: 700; font-size: 14px; }

/* ---------- 事業内容（ジグザグ） ---------- */
.anchor-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.anchor-nav a { text-decoration: none; border: 2px solid var(--line); border-radius: 999px; padding: 8px 22px; font-weight: 900; font-size: 14px; transition: border-color 0.3s, color 0.3s; }
.anchor-nav a:hover { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }
.biz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; scroll-margin-top: calc(var(--header-h) + 24px); }
.biz + .biz { margin-top: clamp(96px, 14vw, 180px); }
.biz:nth-of-type(even) .biz__media { order: 2; }
.biz__num { font-family: var(--en); font-weight: 700; font-size: clamp(56px, 8vw, 104px); line-height: 1; color: var(--yellow); }
.biz__label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; }
.biz__label .marker { font-size: 15px; }
.tags { display: flex; gap: 8px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 1px 12px; line-height: 1.8; text-decoration: none; }
.biz__title { font-size: clamp(26px, 3.4vw, 40px); margin-top: 18px; }
.biz__text { margin-top: 20px; color: var(--text-2); line-height: 2.1; }
.biz__text small { display: block; margin-top: 12px; color: var(--muted); }
.biz .btn { margin-top: 30px; }
.biz__media { position: relative; }
.biz__frame { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 18px 18px 0 var(--yellow); }
.biz:nth-of-type(even) .biz__frame { box-shadow: -18px 18px 0 var(--yellow); }
.biz__frame img { width: 100%; }
.biz__frame--pad { padding: clamp(16px, 3vw, 32px); }
.phones { display: flex; justify-content: center; gap: clamp(12px, 3vw, 32px); }
.phones figure { margin: 0; width: min(46%, 240px); }
.phones figure:nth-child(2) { margin-top: clamp(40px, 6vw, 80px); }
.phones figcaption { margin-top: 12px; text-align: center; font-size: 13px; font-weight: 700; }
.sns-item + .sns-item { margin-top: 36px; padding-top: 32px; border-top: 1px dashed var(--line); }
.sns-item h3 { font-size: clamp(19px, 2.2vw, 24px); }
.sns-item h3 small { display: block; font-size: 13px; color: var(--muted); font-weight: 700; margin-top: 4px; }
.sns-item p { margin-top: 14px; color: var(--text-2); line-height: 2.1; }
.insta-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; text-decoration: none; font-weight: 900; font-size: 14px; padding: 8px 20px 8px 10px; border-radius: 999px; background: var(--panel); transition: background-color 0.3s, color 0.3s; }
.insta-link svg { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); color: #fff; }
.insta-link:hover { background: var(--yellow); color: var(--ink); }
@media (max-width: 860px) {
  .biz { grid-template-columns: 1fr; }
  .biz .biz__media, .biz:nth-of-type(even) .biz__media { order: -1; }
  .biz__frame, .biz:nth-of-type(even) .biz__frame { box-shadow: 10px 10px 0 var(--yellow); }
}

/* ---------- お知らせ（カード・一覧） ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.list-layout .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-card { display: flex; flex-direction: column; text-decoration: none; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.4s var(--ease); }
.post-card:hover { transform: translateY(-6px); }
.post-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__noimg { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--en); font-weight: 700; letter-spacing: 0.3em; color: var(--ink); background: var(--yellow); }
.post-card__body { padding: 20px 22px 26px; display: grid; gap: 10px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13px; color: var(--muted); }
.post-meta time { font-family: var(--en); font-weight: 700; letter-spacing: 0.08em; }
.post-card__title { font-size: 17px; line-height: 1.7; letter-spacing: 0.04em; }
.post-card:hover .post-card__title { text-decoration: underline; text-decoration-color: var(--yellow-deep); text-underline-offset: 5px; text-decoration-thickness: 3px; }
.post-card__excerpt { font-size: 13px; color: var(--muted); line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty { color: var(--muted); padding: 32px 0; }
/* 実績紹介 */
.project-card__sub { font-size: 14px; color: var(--text-2); line-height: 1.8; font-weight: 700; }
.tag-filter a[aria-current] { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }
.article__sub { margin-top: 12px; font-size: clamp(15px, 1.8vw, 18px); font-weight: 700; color: var(--text-2); line-height: 1.8; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .post-grid, .list-layout .post-grid { grid-template-columns: 1fr; } }

.list-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.sidebar { display: grid; gap: 36px; position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar h2 { font-family: var(--en); font-weight: 700; font-size: 13px; letter-spacing: 0.24em; color: var(--accent); margin-bottom: 12px; }
.sidebar ul { display: grid; }
.sidebar li a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 14px; line-height: 1.7; }
.sidebar li a:hover, .sidebar li a[aria-current] { color: var(--accent); }
.count { font-family: var(--en); color: var(--muted); font-size: 12px; }
@media (max-width: 960px) { .list-layout { grid-template-columns: 1fr; } .sidebar { position: static; } }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 56px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; text-decoration: none; font-family: var(--en); font-weight: 700; padding: 0 8px; }
.pagination a { background: var(--panel); }
.pagination a:hover { background: var(--text); color: var(--bg); }
.pagination [aria-current] { background: var(--yellow); color: var(--ink); }

/* ---------- 記事 ---------- */
.article { max-width: calc(820px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.article__head { margin-top: 24px; }
.article__title { font-size: clamp(24px, 3.6vw, 36px); margin-top: 14px; line-height: 1.6; }
.article__cover { margin: 36px 0 0; border-radius: var(--radius); overflow: hidden; }
.prose { margin-top: 40px; font-size: 16px; line-height: 2.1; }
.prose > * + * { margin-top: 1.5em; }
.prose h2 { font-size: clamp(20px, 2.6vw, 26px); margin-top: 2.6em; padding-left: 16px; border-left: 6px solid var(--yellow); }
.prose h3 { font-size: clamp(18px, 2.2vw, 21px); margin-top: 2.2em; }
.prose a { color: var(--accent); text-underline-offset: 4px; }
.prose img { border-radius: 12px; margin: 0 auto; }
/* 画像だけを改行で続けた段落はギャラリー（2列）にする */
.prose p:has(> img + br + img) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 16px); }
.prose p:has(> img + br + img) br { display: none; }
.prose p:has(> img + br + img) img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.prose figure { margin: 2em 0; }
.prose figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 2em 0; padding: 20px 24px; background: var(--panel); border-radius: 12px; border-left: 4px solid var(--yellow); }
.prose hr { border: 0; border-top: 1px dashed var(--line); margin: 3em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; }
.prose iframe { max-width: 100%; }
.article__foot { margin-top: 72px; }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 32px; border-radius: var(--radius); background: var(--yellow); color: var(--ink); }
.callout h3 { font-size: 22px; }
.callout p { font-size: 14px; margin-top: 6px; }
.callout .btn--primary { background: var(--ink); color: var(--yellow); border-color: var(--ink); box-shadow: none; }
.pager-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.pager-nav a { display: block; padding: 18px 20px; border-radius: 14px; background: var(--panel); text-decoration: none; font-size: 14px; line-height: 1.7; }
.pager-nav a:hover { background: var(--line); }
.pager-nav small { display: block; font-family: var(--en); font-weight: 700; color: var(--accent); letter-spacing: 0.2em; }
.pager-nav .next { grid-column: 2; text-align: right; }
@media (max-width: 600px) { .pager-nav { grid-template-columns: 1fr; } .pager-nav .next { grid-column: auto; } }

/* ---------- お問い合わせ ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__intro h2 { font-size: clamp(28px, 4.2vw, 46px); margin-top: 12px; }
.contact__intro p:not(.eyebrow) { margin-top: 20px; color: var(--text-2); }
.contact__direct { margin-top: 32px; display: grid; gap: 12px; }
.contact__direct a { display: flex; align-items: center; gap: 14px; text-decoration: none; font-weight: 700; font-family: var(--en); font-size: 17px; letter-spacing: 0.06em; }
.contact__direct a span { font-family: var(--font); font-size: 12px; width: 52px; text-align: center; border-radius: 999px; background: var(--bg); padding: 2px 0; color: var(--muted); }
.contact__direct a:hover { color: var(--accent); }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }

.panel { background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(60, 50, 20, 0.06); border-radius: 24px; padding: clamp(24px, 4vw, 48px); }
.form { display: grid; gap: 26px; }
.field { display: grid; gap: 8px; }
.field > label, .label { font-weight: 900; font-size: 15px; display: flex; align-items: center; gap: 10px; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.req, .opt { font-size: 11px; font-weight: 700; border-radius: 4px; padding: 0 8px; line-height: 1.8; }
.req { background: var(--yellow); color: var(--ink); }
.opt { background: var(--line); color: var(--muted); }
.input, .select, .textarea {
  width: 100%; border: 2px solid var(--line-strong); background: var(--bg); border-radius: 12px; padding: 12px 16px;
  font-size: 16px; line-height: 1.6; transition: border-color 0.25s, box-shadow 0.25s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--yellow-deep); box-shadow: 0 0 0 4px rgba(255, 225, 77, 0.45); }
.textarea { min-height: 200px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; display: inline-flex; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--line-strong); border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 14px; line-height: 1.6; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.choice span::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); flex-shrink: 0; transition: border 0.2s, background 0.2s; }
.choice input:checked + span { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.choice input:checked + span::before { border: 4px solid var(--ink); background: var(--yellow); }
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.choice.agree span { border: 0; padding: 0; }
.choice.agree span::before { border-radius: 4px; }
.choice.agree input:checked + span { background: none; color: var(--text); }
.choice.agree input:checked + span::before { border: 0; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23111' stroke-width='2.4'/%3E%3C/svg%3E") center/12px no-repeat; }
.choice.agree a { color: var(--accent); }
.hint { font-size: 12px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.has-error .input, .has-error .textarea, .has-error .select { border-color: var(--danger); }
.error-text { color: var(--danger); font-size: 13px; font-weight: 700; }
.form-status:empty { display: none; }
.form-status { padding: 14px 18px; border-radius: 12px; font-weight: 700; }
.form-status.is-error { background: rgba(208, 54, 42, 0.08); color: var(--danger); }
.form-done { text-align: center; padding: 32px 0; }
.form-done h2 { margin-top: 12px; font-size: clamp(22px, 3vw, 30px); }
.form-done p:not(.eyebrow) { margin-top: 16px; }
.form-done .eyebrow { justify-content: center; }

/* ---------- 簡単お見積もり ---------- */
.est-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); counter-reset: flow; }
.est-flow li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 26px 16px 22px; background: var(--bg-2); border-radius: 24px; }
.est-flow li + li::before { content: ''; position: absolute; left: calc(clamp(12px, 2vw, 24px) / -2 - 7px); top: 50%; width: 14px; height: 14px; margin-top: -7px; border-top: 3px solid var(--yellow-deep); border-right: 3px solid var(--yellow-deep); border-radius: 2px; transform: rotate(45deg); }
.est-flow__num { font-family: var(--en); font-weight: 700; font-size: 12px; letter-spacing: 0.2em; color: var(--accent); }
.est-flow__icon { width: 60px; height: 60px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; }
.est-flow__icon svg { width: 28px; height: 28px; }
.est-flow strong { font-size: 16px; margin-top: 4px; }
.est-flow small { font-size: 12px; color: var(--muted); line-height: 1.7; }
@media (max-width: 640px) {
  .est-flow { grid-template-columns: 1fr; gap: 14px; }
  .est-flow li { grid-template-columns: 52px 1fr; justify-items: start; text-align: left; column-gap: 16px; row-gap: 0; padding: 16px 20px; }
  .est-flow li + li::before { left: 50%; top: -12px; margin: 0 0 0 -6px; width: 10px; height: 10px; transform: rotate(135deg); }
  .est-flow__num { grid-column: 2; }
  .est-flow__icon { grid-row: 1 / 4; width: 52px; height: 52px; align-self: center; }
  .est-flow strong, .est-flow small { grid-column: 2; margin: 0; }
}
.est-notes { margin-top: clamp(24px, 3vw, 36px); padding: 18px 24px; border-radius: 16px; border: 2px dashed var(--line-strong); display: grid; gap: 6px; font-size: 14px; color: var(--text-2); line-height: 1.9; }
.est-notes li { padding-left: 1.2em; text-indent: -1.2em; }
.est-notes li::before { content: '※'; display: inline-block; width: 1.2em; text-indent: 0; color: var(--accent); }
.est-notes a { color: var(--accent); text-underline-offset: 3px; }

.est-form { display: grid; gap: clamp(48px, 7vw, 80px); }
.est-step__head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 22px; }
.est-step__num { font-family: var(--en); font-weight: 700; font-size: clamp(40px, 5vw, 56px); line-height: 1; color: var(--yellow); }
.est-step__head h2 { font-size: clamp(22px, 3vw, 30px); }
.est-step__hint { flex-basis: 100%; color: var(--muted); font-size: 14px; }
.est-form .panel.form { gap: 22px; }

.est-cats { gap: 22px; }
.est-cats > .error-text { padding: 12px 18px; border-radius: 12px; background: rgba(208, 54, 42, 0.08); }
.est-cat { background: var(--bg-2); border-radius: 28px; padding: clamp(22px, 3.4vw, 36px); }
.est-cat__head { display: flex; gap: 16px; align-items: flex-start; }
.est-cat__num { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-family: var(--en); font-weight: 700; font-size: 15px; color: var(--accent); box-shadow: 0 0 0 2px var(--yellow); }
.est-cat__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 18px; }
.est-cat__sub { font-size: 14px; color: var(--muted); font-weight: 700; }
.est-cat__lead { margin-top: 8px; font-size: 14px; color: var(--text-2); line-height: 1.9; }
.est-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
@media (max-width: 720px) { .est-options { grid-template-columns: 1fr; } }
.est-opt { display: grid; align-content: start; background: var(--bg); border: 2px solid var(--line); border-radius: 18px; transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease); }
.est-opt:hover { border-color: var(--yellow-deep); transform: translateY(-2px); }
.est-opt.is-selected { border-color: var(--yellow); background: #fffbe0; box-shadow: 0 4px 0 var(--yellow-deep); }
.est-opt__btn { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; cursor: pointer; font-weight: 700; font-size: 15px; line-height: 1.75; }
.est-opt__btn input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.est-opt__check { flex-shrink: 0; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--bg); transition: background-color 0.2s, border-color 0.2s; }
.est-opt__btn input:checked + .est-opt__check { border-color: var(--ink); background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23ffe14d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.est-opt__btn input:focus-visible + .est-opt__check { outline: 3px solid var(--ink); outline-offset: 3px; }
.est-opt__soon { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; padding: 0 8px; border-radius: 4px; background: var(--line); color: var(--muted); vertical-align: 2px; }
.est-qty { display: flex; align-items: center; gap: 8px; margin: -4px 18px 16px 54px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.est-qty[hidden] { display: none; }
.est-qty__label { font-size: 13px; font-weight: 700; color: var(--text-2); margin-right: auto; }
.est-qty__label small { font-size: 11px; color: var(--muted); }
.est-qty__btn { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); background: var(--bg); font-weight: 900; font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.est-qty__btn:hover { background: var(--yellow); border-color: var(--yellow); }
.est-qty__input { width: 52px; height: 36px; text-align: center; border: 2px solid var(--line-strong); border-radius: 10px; background: var(--bg); font-family: var(--en); font-weight: 700; font-size: 16px; -moz-appearance: textfield; }
.est-qty__input::-webkit-outer-spin-button, .est-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.est-qty__input:focus { outline: none; border-color: var(--yellow-deep); }
.est-qty__unit { font-size: 13px; font-weight: 700; }

.est-submit__panel { display: grid; justify-items: center; gap: 22px; text-align: center; }
.est-count { display: flex; align-items: baseline; gap: 8px; font-weight: 700; color: var(--text-2); }
.est-count strong { font-family: var(--en); font-size: 40px; line-height: 1; color: var(--ink); background: var(--yellow); border-radius: 999px; min-width: 64px; padding: 6px 14px; text-align: center; }
.est-submit .btn--lg { padding-left: clamp(24px, 4vw, 44px); padding-right: clamp(24px, 4vw, 44px); }
.est-done { padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px); }
.est-done .btn-row { justify-content: center; }
.est-done__next { margin-top: clamp(32px, 4vw, 44px); padding-top: 28px; border-top: 1px dashed var(--line-strong); display: grid; justify-items: center; gap: 16px; color: var(--text-2); }

/* 見積書 */
.est-doc-page { padding-top: calc(var(--header-h) + clamp(32px, 5vw, 64px)); background: var(--bg-2); }
.est-doc-tools { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.est-doc-tools[hidden] { display: none; }
.est-doc-tools__hint { text-align: right; margin-top: 10px; }
.est-doc { margin-top: 20px; background: var(--bg); border-radius: 20px; box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(60, 50, 20, 0.06); padding: clamp(24px, 5vw, 56px); font-size: 14px; line-height: 1.8; }
.est-doc__error { text-align: center; padding: 24px 0; }
.est-doc__error .btn-row { justify-content: center; }
.est-doc__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; padding-bottom: 18px; border-bottom: 4px solid var(--yellow); }
.est-doc__title { font-size: clamp(24px, 3.4vw, 32px); letter-spacing: 0.4em; }
.est-doc__meta { display: grid; grid-template-columns: auto auto; gap: 0 16px; margin: 0; font-size: 13px; }
.est-doc__meta dt { color: var(--muted); }
.est-doc__meta dd { margin: 0; font-family: var(--en); font-weight: 700; text-align: right; }
.est-doc__parties { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; margin-top: 28px; align-items: start; }
.est-doc__name { font-size: 20px; font-weight: 900; border-bottom: 1px solid var(--text); padding-bottom: 4px; }
.est-doc__aff { margin-top: 6px; color: var(--text-2); }
.est-doc__greet { margin-top: 16px; }
.est-doc__total { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding: 14px 20px; border-radius: 14px; background: var(--yellow); color: var(--ink); }
.est-doc__total span { font-weight: 700; }
.est-doc__total strong { font-family: var(--en); font-size: clamp(26px, 3.6vw, 34px); line-height: 1.2; }
.est-doc__from { font-size: 13px; color: var(--text-2); line-height: 1.9; }
.est-doc__from img { height: 44px; width: auto; margin-bottom: 10px; }
.est-doc__table { width: 100%; margin-top: 32px; border-collapse: collapse; }
.est-doc__table th { font-size: 12px; font-weight: 700; text-align: left; padding: 10px 12px; background: var(--panel); }
.est-doc__table th:first-child { border-radius: 10px 0 0 10px; }
.est-doc__table th:last-child { border-radius: 0 10px 10px 0; }
.est-doc__table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.est-doc__num { text-align: right !important; white-space: nowrap; font-family: var(--en); font-weight: 700; }
.est-doc__item strong { display: block; font-size: 15px; }
.est-doc__item span { display: block; color: var(--text-2); font-size: 13px; }
.est-doc__item em { display: block; font-style: normal; color: var(--accent); font-size: 12px; font-weight: 700; margin-top: 2px; }
.est-doc__item .est-doc__calc { display: none; font-family: var(--en); font-weight: 700; color: var(--muted); }
.est-doc__sum { display: grid; grid-template-columns: auto auto; justify-content: end; gap: 6px 32px; margin: 20px 12px 0 0; }
.est-doc__sum dt { color: var(--text-2); }
.est-doc__sum dd { margin: 0; text-align: right; font-family: var(--en); font-weight: 700; }
.est-doc__sum .is-total { font-size: 18px; font-weight: 900; color: var(--ink); padding-top: 8px; border-top: 2px solid var(--text); }
.est-doc__notes { margin-top: 36px; padding: 18px 22px; border-radius: 14px; background: var(--bg-2); }
.est-doc__notes h2 { font-size: 14px; }
.est-doc__notes ul { margin-top: 6px; list-style: disc; padding-left: 1.3em; font-size: 12px; color: var(--text-2); }
@media (max-width: 640px) {
  .est-doc__parties { grid-template-columns: 1fr; }
  .est-doc__col { display: none; }
  .est-doc__item .est-doc__calc { display: block; }
  .est-doc-tools { flex-direction: column; }
  .est-doc__meta dd { text-align: left; }
  .est-doc-tools__hint { text-align: left; }
}
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header, .drawer, .site-footer, .to-top, .skip, .est-doc-tools, .est-doc-tools__hint { display: none !important; }
  .est-doc-page { padding: 0; background: #fff; }
  .est-doc-page .container { max-width: none; padding: 0; }
  .est-doc { margin: 0; padding: 0; box-shadow: none; border-radius: 0; font-size: 12px; }
  .est-doc__parties { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .est-doc__col { display: table-cell; }
  .est-doc__item .est-doc__calc { display: none; }
  .est-doc__table tr { break-inside: avoid; }
}

/* ---------- プライバシーポリシーなど ---------- */
.doc h2 { font-size: 20px; margin-top: 48px; padding-left: 14px; border-left: 5px solid var(--yellow); }
.doc p, .doc ul { margin-top: 14px; color: var(--text-2); }
.doc ul { list-style: disc; padding-left: 1.4em; }

/* ---------- 404 ---------- */
.notfound { min-height: 80svh; display: grid; place-content: center; justify-items: center; gap: 20px; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 80px; }
.notfound__code { font-family: var(--en); font-weight: 700; font-size: clamp(96px, 20vw, 220px); line-height: 1; color: var(--yellow); }
.notfound__title { font-size: clamp(18px, 3vw, 28px); }
.notfound .btn-row { justify-content: center; margin-top: 12px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) 0 0; }
.site-footer__inner { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; }
.site-footer__brand a { text-decoration: none; }
.site-footer__tagline { margin-top: 20px; font-size: 15px; }
.site-footer address { margin-top: 20px; font-style: normal; color: var(--muted); font-size: 14px; line-height: 2; }
.site-footer address a { text-decoration: none; }
.site-footer address a:hover { color: var(--accent); }
.site-footer__nav { display: grid; gap: 28px; align-content: start; }
.site-footer__nav > ul:first-child { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; }
.site-footer__nav a { text-decoration: none; font-size: 14px; font-weight: 700; }
.site-footer__nav a:hover { color: var(--accent); }
.sns-links { display: grid; gap: 10px; }
.sns-links a { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.copyright { text-align: center; padding: 48px var(--gutter) 32px; color: var(--muted); font-family: var(--en); letter-spacing: 0.1em; }
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr; } }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 0 var(--yellow-deep); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 0.4s, transform 0.4s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- スクロールで表示 ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal--left { transform: translateX(-56px); }
.js .reveal--right { transform: translateX(56px); }
.js .reveal--zoom { transform: scale(0.94); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: 0.1s; }
.js .reveal-d2 { transition-delay: 0.22s; }
.js .reveal-d3 { transition-delay: 0.34s; }
.js .reveal-d4 { transition-delay: 0.46s; }
.js .reveal-d5 { transition-delay: 0.58s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide { transition: opacity 0.3s; }
}
