/* ============================================================
   soukyu.com 全ページ共通CSS
   :root トークン・reset・製図グリッド・ヘッダー・フッター・ボタン/CTA など、
   ほぼ全ページでバイト単位で同一だったブロックを統合したもの。
   各ページの固有CSSは css/pages/<name>.css 側にある。
   ============================================================ */
:root {
  /* 固定ヘッダーの高さ。ページ内の追従ナビ（.case-toc等）はこの値を top に使う。
     内訳＝ロゴ画像54 + サブタイトル約21 + 上下padding28 + 下線1。
     ロゴのサイズを変えたら、この値も必ず合わせること。 */
  --header-h: 104px;
  --bg: #ffffff;
  --cream: #f3f2f0;
  --sumi: #1f1f1f;
  --sumi-deep: #1c1b19;
  --shu: #cf3a2b;
  --shu-bright: #ea6a55;
  --hairline: rgba(31, 31, 31, 0.05);
  /* 関連ページへ進む白いリンクカードの共通枠線 */
  --link-card-border: #e8e2d6;
  --link-card-border-hover: #d4c8b6;
  --ink-body: #4a4a46;
  --line-green: #06c755;
}
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ---------- 製図グリッド（v5共通） ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--hairline), var(--hairline)),
    linear-gradient(var(--hairline), var(--hairline)),
    linear-gradient(var(--hairline), var(--hairline)),
    linear-gradient(var(--hairline), var(--hairline));
  background-size: 1px 100%;
  background-repeat: no-repeat;
  background-position:
    calc(50% - 560px) 0,
    calc(50% - 187px) 0,
    calc(50% + 187px) 0,
    calc(50% + 560px) 0;
}
@media (max-width: 920px) {
  body::before { display: none; }
}

/* ---------- ヘッダー（共通） ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  width: 100vw;
  max-width: none;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px clamp(20px, 4vw, 56px);
  /* ページ側のbodyのline-heightを継承させない。継承するとロゴ・ナビ・CTAの高さが
     ページごとに変わる（web.css=1.95 / online-exhibition.css=1.9 / 他23ページ=既定）。 */
  line-height: normal;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31, 31, 31, 0.06);
}
.site-header .h-logo { font-family: 'Noto Serif JP', serif; font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: 0.14em; color: var(--sumi); text-decoration: none; white-space: nowrap; }
.site-header .h-logo img { display: block; height: 54px; width: auto; max-width: 220px; }
.site-header .h-logo small { display: block; font-family: 'Noto Sans JP', sans-serif; font-size: 12px; line-height: 1.4; letter-spacing: 0.06em; color: #57534c; font-weight: 400; margin-top: 4px; }
.h-nav { display: flex; align-items: center; gap: 22px; font-family: 'Noto Sans JP', sans-serif; }
.h-nav a { font-size: 13.5px; color: #3a382f; text-decoration: none; letter-spacing: 0.04em; padding-bottom: 3px; background-image: linear-gradient(var(--sumi), var(--sumi)); background-repeat: no-repeat; background-size: 0 1px; background-position: 0 100%; transition: color 0.2s, background-size 0.3s ease; }
.h-nav a:hover { color: var(--sumi); background-size: 100% 1px; }
.h-nav .h-cta { background: var(--sumi); color: #fff; padding: 9px 20px; border-radius: 999px; font-weight: 700; }
.h-nav .h-cta:hover { background: var(--shu); color: #fff; }

/* ---------- 教室ヘッダー（/web/配下で共通。ページ側CSSに複製しない） ----------
   色はページごとの :root 変数（--gold-dark / --red / --accent-red 等、ファイルにより
   名前も値も異なる）に依存させず、確定値で書く。 */
.school-header .h-logo small { color: #8b6a32; }
.school-header .h-nav .school-nav-current {
  color: #3a382f;
  background-size: 100% 1px;
  background-image: linear-gradient(#c8a96e, #c8a96e);
}
.school-header .h-nav .school-mail { color: #3a382f; }
.school-header .h-nav .h-cta { background: #e74b3c; }
.school-header .h-nav .h-cta:hover { background: #c0392b; }

.h-burger { display: none; position: relative; z-index: 2; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.h-burger span { width: 24px; height: 2px; background: var(--sumi); transition: 0.3s; }

@media (max-width: 920px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  :root { --header-h: 94px; }  /* ロゴ画像が46pxに縮むぶん低くなる */
  .site-header .h-logo img { height: 46px; }
  .site-header .h-logo small { font-size: 11px; letter-spacing: 0.04em; }
  .h-burger { display: flex; }
  .h-nav { position: fixed; z-index: 1; inset: 0 0 0 auto; width: min(78vw, 300px); flex-direction: column; align-items: flex-start; gap: 4px; background: #fff; padding: 80px 28px 28px; overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1); box-shadow: -8px 0 30px rgba(31, 31, 31, 0.12); }
  .h-nav.open { transform: translateX(0); }
  .h-nav a { font-size: 16px; padding: 12px 0; width: 100%; border-bottom: 1px solid #efeeeb; }
  .h-nav .h-cta { margin-top: 16px; border-bottom: 0; text-align: center; }
  .h-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .h-burger.open span:nth-child(2) { opacity: 0; }
  .h-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- フッター（共通） ---------- */
.site-footer {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: none;
  margin-right: -50vw;
  margin-left: -50vw;
  background: #1c1b19;
  color: #b7b1a4;
  padding: 56px clamp(24px, 5vw, 72px) 36px;
  font-family: 'Noto Sans JP', sans-serif;
}
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.footer-brand .f-logo { display: block; font-family: 'Noto Serif JP', serif; font-size: 20px; font-weight: 700; letter-spacing: 0.12em; color: #fff; text-decoration: none; margin-bottom: 8px; }
.footer-brand .f-logo:hover { color: #cfcabf; }
.footer-brand p { font-size: 12.5px; line-height: 1.9; color: #8d877b; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col .f-head { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: #fff; margin-bottom: 4px; }
.footer-col a { color: #cfcabf; text-decoration: none; font-size: 13.5px; }
.footer-col a:hover { color: #fff; }
.footer-sub { width: 100%; border-top: 1px solid #34322e; margin-top: 16px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 14px 22px; justify-content: space-between; align-items: center; }
.footer-sub .sns { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-sub a { color: #b7b1a4; text-decoration: none; font-size: 12.5px; }
.footer-sub .legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-copy { width: 100%; text-align: center; font-size: 11.5px; color: #6f6a60; margin-top: 22px; }
@media (max-width: 700px) {
  .footer-inner { flex-direction: column; gap: 22px; }
}

/* ---------- ボタン・CTA（共通） ---------- */
.btn { display: inline-block; padding: 16px 34px; border-radius: 999px; font-size: 16px; font-weight: 700; text-decoration: none; letter-spacing: 0.04em; transition: transform 0.2s, background 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn-line { background: var(--line-green); color: #fff; box-shadow: 0 6px 18px rgba(6, 199, 85, 0.3); }
.btn-line:hover { background: #05b34c; }
.btn-form { background: #fff; color: var(--sumi); border: 2px solid var(--sumi); }
.btn-form:hover { background: var(--sumi); color: #fff; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-family: 'Noto Sans JP', sans-serif; }
.common-contact-cta {
  margin-top: clamp(56px, 8vw, 88px);
  padding: clamp(36px, 5vw, 56px) 24px;
  background: var(--cream);
  border-radius: 14px;
  text-align: center;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.common-contact-cta h2 { margin-bottom: 16px; }
.common-contact-cta p { font-family: 'Noto Sans JP', sans-serif; font-size: clamp(15px, 1.3vw, 16.5px); line-height: 2; color: var(--ink-body); margin-bottom: 26px; }
.works-cta { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- パンくず（共通） ---------- */
.breadcrumb {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12.5px;
  color: #9a937f;
  padding-top: 24px;
  margin-bottom: 24px;
}
.breadcrumb a { color: #9a937f; text-decoration: none; }
.breadcrumb a:hover { color: var(--shu); }
.breadcrumb .sep { margin: 0 6px; color: #c9c2b3; }
.ds-wrap.breadcrumb-page-shell,
.sample-wrap.breadcrumb-page-shell { padding-top: 0; }
.ds-wrap.breadcrumb-page-shell > .breadcrumb,
.sample-wrap.breadcrumb-page-shell > .breadcrumb,
.page-online-lesson .page-breadcrumb-wrap > .breadcrumb { margin-bottom: 0; }
.page-breadcrumb-wrap { width: 100%; margin: 0; padding: 0 clamp(24px, 5vw, 72px); }
.page-works .page-breadcrumb-wrap,
.page-web .page-breadcrumb-wrap,
.page-review .page-breadcrumb-wrap,
.page-online-lesson .page-breadcrumb-wrap { padding-top: 0; }
/* 通常ページも制作実績と同じ縦のリズムに統一する。
   親側の上余白をなくし、パンくずはヘッダー寄り、見出しはゆとりを持たせる。 */
.soukyu-page:has(> .breadcrumb) { padding-top: 0; }
.soukyu-page:has(> .breadcrumb) > .breadcrumb { margin-bottom: clamp(72px, 7vw, 88px); }
.case-wrap:has(> .breadcrumb) { padding-top: 0; }
.case-wrap:has(> .breadcrumb) > .breadcrumb { margin-bottom: clamp(72px, 7vw, 88px); }

@media (max-width: 700px) {
  .ds-wrap.breadcrumb-page-shell,
  .sample-wrap.breadcrumb-page-shell { padding-top: 0; }
  .page-breadcrumb-wrap { padding-top: 0; }
  .soukyu-page:has(> .breadcrumb) > .breadcrumb,
  .case-wrap:has(> .breadcrumb) > .breadcrumb { margin-bottom: 48px; }
}

/* ---------- 関連ページへの横型導線 ---------- */
.related-guide-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  padding: 23px 0;
  border-top: 1px solid #cfc8bb;
  border-bottom: 1px solid #cfc8bb;
}
.related-guide-strip .related-guide-eyebrow {
  margin: 0 0 10px;
  color: var(--shu);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.2em;
}
.related-guide-strip .related-guide-title {
  margin: 0 0 9px;
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: 0.04em;
}
.related-guide-strip .related-guide-description {
  margin: 0;
  color: var(--ink-body);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 1.85;
}
.related-guide-strip .related-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  color: var(--sumi);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.related-guide-strip .related-guide-link::after {
  display: block;
  width: 0;
  height: 1px;
  background: var(--shu);
  content: '';
  transition: width 0.2s;
}
.related-guide-strip .related-guide-link:hover { color: var(--shu); }
.related-guide-strip .related-guide-link:hover::after { width: 22px; }
.plan-price .plan-price-yen { font-size: 0.55em; margin-left: 0.08em; }

@media (max-width: 700px) {
  .related-guide-strip {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 2px;
  }
  .related-guide-strip .related-guide-link {
    justify-content: space-between;
    width: 100%;
    white-space: normal;
  }
}
