/*
 * ガイド記事（/guide/、/guide/<slug>/）の見た目。2026-11-26
 * ページは scripts/build_guide.py が作る。クラス名はすべて g26- で始め、既存の CSS とぶつからないようにしている。
 * 記事のカード（.g26-cards）は、トップページの「寿司職人を目指す前に読む」でも使う。
 */
.g26, .g26-cards, .g26-spbar {
  --g26-navy: #1b2861;
  --g26-deep: #0e1430;
  --g26-ink: #1d1d1f;
  --g26-muted: #5b5f6b;
  --g26-line: #e3ddd3;
  --g26-paper: #faf7f2;
  --g26-red: #c8102e;
  --g26-gold: #b8955a;
  --g26-green: #06c755;
}
.g26 *, .g26 *::before, .g26 *::after, .g26-cards *, .g26-spbar * { box-sizing: border-box; }

/* ---- ページの枠 ---- */
.g26 { display: block; padding: 118px 0 96px; color: var(--g26-ink); background: #fff; font-size: 17px; line-height: 1.95; letter-spacing: .03em; }
.g26 p, .g26 li, .g26 h1, .g26 h2, .g26 h3, .g26 td, .g26 th, .g26 a { letter-spacing: .03em; }
.g26 a { color: var(--g26-navy); text-decoration: underline; text-underline-offset: 3px; }
.g26 a:hover { text-decoration-thickness: 2px; }
/* 本文の中のリンクは下線つき（サイト共通の CSS の a{text-decoration:none!important} に消されていたので、ここで付け直す。色だけでは見分けにくい） */
.g26-body p a:not(.g26-btn), .g26-body li a:not(.g26-btn), .g26-body td a:not(.g26-btn) { text-decoration: underline !important; }
.g26 a:focus-visible, .g26-spbar a:focus-visible { outline: 3px solid var(--g26-gold); outline-offset: 2px; }
.g26 [id] { scroll-margin-top: 108px; }
.g26-crumb, .g26-article { width: 100%; max-width: 800px; margin: 0 auto; padding: 0 20px; }
.g26--index .g26-crumb, .g26-head--index, .g26--index .g26-cards, .g26--index .g26-cta, .g26-related { width: 100%; max-width: 1120px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }

/* パンくず */
.g26-crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 28px; padding: 0; font-size: 13px; line-height: 1.6; color: var(--g26-muted); }
.g26-crumb li { margin: 0; }
.g26-crumb li + li::before { content: "›"; margin: 0 8px; color: var(--g26-muted); }
.g26-crumb a { color: var(--g26-muted); }

/* 題名まわり */
.g26-kicker { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--g26-gold); }
.g26 .g26-kicker a { color: #856630; text-decoration: none; } /* 白地で読める濃さに */
.g26 h1 { margin: 0 0 14px; font-size: 32px; line-height: 1.5; font-weight: 700; color: var(--g26-navy); letter-spacing: .04em; }
.g26-meta { margin: 0 0 28px; font-size: 13px; color: var(--g26-muted); }
.g26-eye { margin: 0 0 36px; }
.g26-eye img { display: block; width: 100%; height: auto; border-radius: 12px; background: #eee; }
.g26-eye figcaption { margin-top: 6px; font-size: 12px; line-height: 1.6; color: var(--g26-muted); text-align: right; }

/* この記事の要点 */
.g26-points { margin: 0 0 32px; padding: 26px 28px 22px; background: var(--g26-paper); border: 1px solid var(--g26-line); border-top: 4px solid var(--g26-gold); border-radius: 0 0 12px 12px; }
.g26 .g26-points h2 { margin: 0 0 12px; padding: 0; border: 0; font-size: 18px; line-height: 1.6; color: var(--g26-navy); }
.g26 .g26-points ul { margin: 0; padding: 0; list-style: none; }
.g26 .g26-points li { position: relative; margin: 0; padding: 6px 0 6px 28px; font-size: 16px; line-height: 1.8; font-weight: 700; }
.g26-points li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 12px; height: 7px; border-left: 2px solid var(--g26-red); border-bottom: 2px solid var(--g26-red); transform: rotate(-45deg); }
.g26-intro { margin: 0 0 32px; }

/* 目次 */
.g26-toc { margin: 0 0 48px; padding: 22px 26px 20px; border: 1px solid var(--g26-line); border-radius: 12px; }
.g26 .g26-toc h2 { margin: 0 0 8px; padding: 0; border: 0; font-size: 15px; letter-spacing: .12em; color: var(--g26-muted); }
.g26 .g26-toc ol { margin: 0; padding: 0 0 0 1.5em; list-style: decimal; }
.g26 .g26-toc li { margin: 0; padding: 3px 0; font-size: 15px; line-height: 1.7; }
.g26 .g26-toc a { text-decoration: none; }
.g26 .g26-toc a:hover { text-decoration: underline; }

/* 本文 */
.g26-body section { margin: 0 0 56px; }
.g26-body h2, .g26-related h2 { margin: 0 0 20px; padding: 2px 0 2px 16px; border-left: 5px solid var(--g26-navy); font-size: 24px; line-height: 1.55; font-weight: 700; color: var(--g26-navy); }
.g26-body h3 { margin: 34px 0 10px; font-size: 19px; line-height: 1.6; font-weight: 700; color: var(--g26-ink); }
.g26-body p { margin: 0 0 18px; }
.g26-body ul, .g26-body ol { margin: 0 0 20px; padding: 0 0 0 1.5em; }
.g26-body ul { list-style: disc; }
.g26-body ol { list-style: decimal; }
.g26-body li { margin: 0 0 8px; }
.g26-body li::marker { color: var(--g26-gold); }
.g26-body strong { font-weight: 700; background: linear-gradient(transparent 68%, #fdf0c4 68%); }
.g26-body blockquote { margin: 0 0 22px; padding: 16px 20px; border-left: 4px solid var(--g26-gold); background: var(--g26-paper); border-radius: 0 8px 8px 0; }
.g26-body blockquote p { margin: 0; font-weight: 700; }
.g26-note { font-size: 13px; line-height: 1.8; color: var(--g26-muted); }

/* 表（スマホでは横に動かせる） */
.g26-table { margin: 0 0 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--g26-line); border-radius: 10px; }
.g26-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.7; background: #fff; }
.g26-table th, .g26-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--g26-line); border-right: 1px solid var(--g26-line); }
.g26-table tr > :last-child { border-right: 0; }
.g26-table tbody tr:last-child > * { border-bottom: 0; }
.g26-table thead th { background: var(--g26-navy); color: #fff; font-weight: 700; white-space: nowrap; }
.g26-table tbody th { background: #f6f4ef; font-weight: 700; color: var(--g26-navy); min-width: 7em; }

/* よくある質問・出典 */
.g26-faq h3 { position: relative; margin-top: 26px; padding-left: 38px; }
.g26-faq h3::before { content: "Q"; position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; background: var(--g26-navy); color: #fff; font-size: 14px; line-height: 28px; text-align: center; letter-spacing: 0; }
.g26-faq p { padding-left: 38px; }
.g26-sources ul { list-style: none; padding: 0; font-size: 14px; line-height: 1.8; }
.g26-sources li { padding-left: 1em; text-indent: -1em; overflow-wrap: anywhere; }
.g26-sources li::before { content: "・"; color: var(--g26-muted); }

/* 案内（体験入学＋LINE） */
.g26-cta { margin: 0 0 56px; padding: 30px 28px 26px; border-radius: 14px; background: var(--g26-deep); color: #fff; text-align: center; }
.g26-next .g26-cta { margin-bottom: 14px; }
.g26-cta__lead { margin: 0 0 20px; font-size: 16px; line-height: 1.85; color: #e9ebf5; text-align: left; }
.g26-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.g26 a.g26-btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60px; padding: 10px 28px; border-radius: 999px; font-size: 17px; font-weight: 700; line-height: 1.4; color: #fff; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.g26 a.g26-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.g26-btn small { display: block; font-size: 12px; font-weight: 400; opacity: .92; }
.g26-btn--primary { background: var(--g26-red); }
.g26 a.g26-btn--line { flex-direction: row; gap: 8px; background: var(--g26-green); }
.g26 .g26-cta__notes { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 16px 0 0; padding: 0; font-size: 13px; color: #c9cde0; }
.g26 .g26-cta__notes li { position: relative; margin: 0; padding-left: 18px; }
.g26-cta__notes li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 6px; border-left: 2px solid #e2c48f; border-bottom: 2px solid #e2c48f; transform: rotate(-45deg); }
.g26-next__video { margin: 0; text-align: center; font-size: 15px; }
.g26--index .g26-cta { margin-top: 64px; margin-bottom: 0; max-width: 800px; }
.g26--index .g26-cta__lead { text-align: center; }

/* 一覧 */
.g26-head--index { text-align: center; margin-bottom: 44px; }
.g26-indexlead { margin: 0 auto; max-width: 760px; font-size: 16px; color: var(--g26-muted); text-align: left; }

/* 記事のカード（一覧・あわせて読む・トップページ） */
.g26-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; margin: 0; padding: 0; }
.g26-card { margin: 0; }
.g26-card > a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--g26-line); border-radius: 12px; overflow: hidden; color: var(--g26-ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.g26-card > a:hover, .g26-card > a:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(17, 24, 39, .14); }
.g26-card__img { display: block; aspect-ratio: 16 / 9; background: #ece8e1; overflow: hidden; }
.g26-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.g26-card__img--none { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--g26-navy), var(--g26-deep)); }
.g26-card__img--none span { font-size: 14px; font-weight: 700; letter-spacing: .3em; color: #e2c48f; }
.g26-card__body { display: block; padding: 16px 18px 18px; }
.g26-card__title { display: block; margin: 0 0 8px; font-size: 17px; line-height: 1.6; font-weight: 700; color: var(--g26-navy); letter-spacing: .03em; }
.g26-card__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.75; color: var(--g26-muted); letter-spacing: .02em; }

/* あわせて読む */
.g26-related { margin-top: 24px; padding-top: 56px; border-top: 1px solid var(--g26-line); }
.g26-back { margin: 36px 0 0; text-align: center; font-size: 15px; font-weight: 700; }

/* スマホ下の固定バー（体験入学を主役に） */
.g26-spbar { display: none; }

/* 右の固定ボタン（全ページ共通）と重ならないように */
@media (min-width: 741px) and (max-width: 1040px) {
  .g26 { padding-right: 96px; }
}
@media (max-width: 960px) {
  .g26-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g26-cards--3 > .g26-card:nth-child(3):last-child { grid-column: 1 / -1; }
}
@media (max-width: 740px) {
  .g26 { padding: 108px 0 64px; font-size: 16px; line-height: 1.9; }
  .g26 [id] { scroll-margin-top: 16px; }
  .g26-crumb, .g26-article, .g26--index .g26-crumb, .g26-head--index, .g26--index .g26-cards, .g26--index .g26-cta, .g26-related { padding-left: 16px; padding-right: 16px; }
  .g26-crumb ol { margin-bottom: 20px; font-size: 12px; }
  .g26 h1 { font-size: 24px; line-height: 1.55; }
  .g26-meta { margin-bottom: 20px; }
  .g26-eye { margin-bottom: 28px; }
  .g26-eye img { border-radius: 8px; }
  .g26-points { padding: 20px 16px 16px; }
  .g26 .g26-points li { font-size: 15px; }
  .g26-toc { padding: 18px 16px 16px; margin-bottom: 40px; }
  .g26-body section { margin-bottom: 44px; }
  .g26-body h2, .g26-related h2 { font-size: 20px; padding-left: 12px; }
  .g26-body h3 { font-size: 17px; margin-top: 28px; }
  .g26-table table { font-size: 14px; }
  .g26-table th, .g26-table td { padding: 10px 11px; }
  .g26-faq h3 { padding-left: 34px; }
  .g26-faq p { padding-left: 0; }
  .g26-cta { margin-bottom: 44px; padding: 24px 16px 20px; border-radius: 12px; }
  .g26-cta__lead { font-size: 15px; }
  .g26-cta__btns { flex-direction: column; }
  .g26 a.g26-btn { width: 100%; min-height: 58px; font-size: 16px; }
  .g26-cards { grid-template-columns: 1fr; gap: 16px; }
  .g26-cards--3 > .g26-card:nth-child(3):last-child { grid-column: auto; }
  .g26-related { padding-top: 40px; }
  .g26-spbar {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); background: rgba(14, 20, 48, .96);
  }
  .g26-spbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border-radius: 10px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; letter-spacing: .02em; }
  .g26-spbar a, .g26-spbar a:visited { color: #fff; }
  .g26-spbar__trial { flex: 1.7; background: var(--g26-red); font-size: 16px; }
  .g26-spbar__trial small { display: block; font-size: 11px; font-weight: 400; opacity: .95; }
  .g26-spbar__line { flex: 1; background: var(--g26-green); font-size: 14px; }
  body.g26-page { padding-bottom: 72px; }
}
