/**
Theme Name: Goûter
Theme URI: https://gouter.works/
Description: コミュニケーションデザイン事務所 Goûter 公式サイト。JIN:R の子テーマ。
Author: Goûter
Template: jinr
Version: 1.00
Text Domain: gouter
*/

/* ===== tokens ===== */
.gt {
  --navy: #34435A;
  --ink: #1B2230;
  --body: #4A5364;
  --sub: #5A6274;
  --mute: #7C8794;
  --faint: #9AA4B0;
  --pale: #F1F3F5;
  --pale2: #E7ECF1;
  --line: #E3E7EB;
  --line2: #DBE0E5;
  --sun: #F7C948;  /* アクセントはネイビーとこの黄の2色だけに絞る */
  --radius: 16px;
  --mincho: "Zen Old Mincho", serif;
  --gothic: "Zen Kaku Gothic New", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 56px);
  --sec: clamp(48px, 5.6vw, 84px);
  --blk: clamp(30px, 3.6vw, 54px);   /* ブロック間の標準の余白 */
  --blk-sm: clamp(24px, 2.8vw, 42px); /* 補助的な余白 */
  --wrap: 1200px;
}
/* overflow-x:clip は hidden と違いスクロールコンテナを作らないので、
   .gt-band--bleed の 100vw がスクロールバー分はみ出しても
   sticky ヘッダーを壊さずに切り取れる */
.gt { font-family: var(--gothic); color: var(--ink); background: #fff; text-wrap: pretty; overflow-x: clip; }
.gt *, .gt *::before, .gt *::after { box-sizing: border-box; }
/* 日本語の折り返し。親テーマの word-break:break-word を打ち消し、禁則を厳格化 */
.gt, .gt * { word-break: normal; line-break: strict; overflow-wrap: break-word; }
/* 対応ブラウザでは文節単位で折り返す（非対応ブラウザはこの宣言ごと無視され上段が残る） */
.gt, .gt * { word-break: auto-phrase; }
/* リセットは :where() で包んで詳細度を 0 にする。
   これを `.gt p { margin:0 }` のように書くと詳細度(0,1,1)が
   後から書いた `.gt-pull { margin-top: … }`(0,1,0)に勝ってしまい、
   p / ul / ol / h3 で組んだブロックの余白が全部 0 になる。
   実際そうなっていて、div のブロックだけ余白が付き、
   ページ全体の上下の間隔がバラバラになっていた。 */
.gt :where(h1, h2, h3) { margin: 0; font-weight: 700; font-family: var(--gothic); color: var(--ink); }
.gt :where(p) { margin: 0; }
.gt :where(ul, ol, dl) { margin: 0; padding: 0; list-style: none; }
.gt a { color: var(--navy); text-decoration: none; }
.gt a:hover { color: var(--ink); }
.gt img { max-width: 100%; height: auto; display: block; }
.gt :focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.gt__wrap { max-width: var(--wrap); margin: 0 auto; padding: var(--sec) var(--pad); }

/* ===== header ===== */
.gt-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.gt-header__inner { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--pad); display: flex; align-items: center; gap: clamp(16px,4vw,48px); flex-wrap: wrap; }
.gt-logo { font-family: var(--gothic); font-weight: 400; font-size: 26px; letter-spacing: .40em; color: var(--navy); line-height: 1; }
/* ロゴ画像を設定したとき。文字の Goûter と同じ高さに揃える。
   幅を auto にしたまま max-width を効かせると横に潰れるので object-fit で防ぐ */
.gt-logo__img { display: block; height: 26px; width: auto; max-width: min(220px, 46vw); object-fit: contain; object-position: left center; }
.gt-nav { flex: 0 1 auto; }
.gt-nav ul { display: flex; flex-wrap: wrap; gap: 6px clamp(14px,2.4vw,28px); font-size: 13px; letter-spacing: .08em; }
.gt-nav a { color: var(--body); }
.gt-btn, .gt-btn--ghost, .gt-btn--light { display: inline-block; font-size: 15px; font-weight: 700; letter-spacing: .04em; padding: 19px 38px; border-radius: 100px; }
/* .gt a (0,1,1) が .gt-btn (0,1,0) に勝って文字が背景と同色になるため .gt で包む */
.gt .gt-btn { background: var(--navy); color: #fff; }
.gt .gt-btn:hover { background: var(--ink); color: #fff; }
.gt .gt-btn--ghost { border: 2px solid var(--navy); color: var(--navy); padding: 17px 36px; }
.gt .gt-btn--ghost:hover { border-color: var(--navy); }
.gt .gt-btn--sm { font-size: 13px; font-weight: 700; padding: 12px 26px; border-radius: 100px; background: var(--navy); color: #fff; white-space: nowrap; }
.gt-header__inner .gt-btn--sm { margin-left: auto; }
.gt .gt-btn--sm:hover { background: var(--ink); color: #fff; }
.gt-link { display: inline-block; border-bottom: 1px solid var(--navy); font-size: 14px; letter-spacing: .08em; padding-bottom: 6px; }

/* ===== section head ===== */
/* 番号とENラベルを1行目に、見出しと導入文は罫線と同じ左端から始める */
.gt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.gt-head > div { display: contents; }
.gt-head h1, .gt-head h2 { flex: 1 1 100%; margin-top: 34px; }
.gt-head--rule { border-top: 1px solid var(--line2); padding-top: 34px; }
.gt-head--rule-light { border-top: 1px solid var(--line); padding-top: 34px; }
.gt-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line2); font-family: var(--gothic); font-weight: 700; font-size: 11px; letter-spacing: 0; color: var(--mute); }
.gt-en { display: inline-block; font-family: var(--gothic); font-weight: 700; font-size: 11px; letter-spacing: .16em; color: #fff; background: var(--navy); padding: 7px 15px; border-radius: 100px; margin-bottom: 0; }
.gt-h2 { font-size: clamp(26px,3vw,40px); line-height: 1.5; letter-spacing: .005em; font-weight: 900; }
.gt-h2--lg { font-size: clamp(27px,3.2vw,42px); line-height: 1.5; letter-spacing: .005em; font-weight: 900; }
.gt-lead { flex: 1 1 100%; margin-top: 22px; font-size: 16px; line-height: 2.15; color: var(--body); max-width: 36em; }

/* ===== hero ===== */
.gt-hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px,8vw,112px) var(--pad) clamp(48px,7vw,96px); display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: clamp(36px,5vw,72px); align-items: center; animation: gt-fade .9s ease both; }
@media (min-width: 1000px) { .gt-hero { grid-template-columns: 1.3fr .7fr; } }
@keyframes gt-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.gt-eyebrow { display: inline-block; font-family: var(--gothic); font-weight: 700; font-size: 12px; letter-spacing: .1em; color: var(--ink); background: var(--sun); padding: 8px 16px; border-radius: 100px; margin-bottom: 26px; }
.gt-h1 { font-size: clamp(32px,4vw,54px); line-height: 1.45; letter-spacing: .005em; font-weight: 900; }
/* 見出しの一部に黄色のマーカーを敷く */
.gt-mark { background: linear-gradient(transparent 62%, var(--sun) 62%); }
.gt-hero__sub { margin-top: 26px; font-size: clamp(15px,1.2vw,17px); line-height: 2.25; color: var(--body); max-width: 32em; }
.gt-hero__note { margin-top: 20px; font-size: 14px; line-height: 2.1; color: #6B7382; max-width: 34em; }
.gt-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.gt-area { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; line-height: 2; letter-spacing: .06em; color: var(--mute); }
.gt-hero__fig { position: relative; }
.gt-hero__fig::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; background: var(--sun); border-radius: var(--radius); }
.gt-hero__card { position: relative; }
.gt-hero__cap { margin-top: 14px; font-family: var(--gothic); font-weight: 700; font-size: 11px; letter-spacing: .12em; color: var(--ink); }
.gt-ph { background: var(--pale); display: grid; place-items: center; font-family: ui-monospace, monospace; font-size: 11px; color: var(--faint); text-align: center; padding: 12px; }
.gt-ratio-45 { aspect-ratio: 4/5; }
.gt-ratio-1610 { aspect-ratio: 16/10; }
.gt-ratio-169 { aspect-ratio: 16/9; }
.gt-ratio-34 { aspect-ratio: 3/4; }
/* 素材の縦横比と指定比が違っても歪ませない */
/* height は auto。100% にするとグリッド行の高さまで伸びて比率が崩れる */
.gt img.gt-ratio-45, .gt img.gt-ratio-1610, .gt img.gt-ratio-169, .gt img.gt-ratio-34 { width: 100%; height: auto; object-fit: cover; }
.gt-hero__card img { border-radius: var(--radius); }

/* ===== セクションを横断する帯状の画像 ===== */
.gt-band { margin: var(--blk) 0 0; border-radius: var(--radius); overflow: hidden; }
.gt-band img, .gt-band .gt-ph { width: 100%; }
/* コンテナ幅を突き抜けて画面いっぱいに使う */
.gt-band--bleed { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-radius: 0; }
/* 全幅で 16:10 のままだと高さ900pxになり大きすぎるので、横長に切る */
/* 帯は情報量が無いので低く抑える。目的を持って来た人の邪魔をしない */
.gt-band--bleed img { aspect-ratio: 38/10; }
@media (max-width: 700px) { .gt-band--bleed img { aspect-ratio: 16/10; } }

/* サムネイルのホバー */
.gt-thumb { overflow: hidden; border-radius: var(--radius); }
/* サムネは内容の識別が目的。大きく見せる必要はない */
.gt-svc .gt-thumb img { aspect-ratio: 3/1; }
.gt-thumb img { transition: transform .8s cubic-bezier(.2,.6,.2,1); }
.gt-svc:hover .gt-thumb img { transform: scale(1.04); }
.gt-post > a { display: block; overflow: hidden; }
.gt-post > a img { transition: transform .8s cubic-bezier(.2,.6,.2,1); }
.gt-post:hover > a img { transform: scale(1.04); }

/* ===== problem ===== */
.gt-pale { background: var(--pale); }
.gt-grid6 { margin-top: var(--blk); display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: clamp(20px,2.2vw,28px); background: none; }
@media (min-width: 900px) { .gt-grid6 { grid-template-columns: repeat(3, 1fr); } }
.gt-cell { background: #fff; padding: clamp(24px,2.6vw,32px); border-radius: var(--radius); }
.gt-cell__num { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; }
.gt-cell h3 { margin-top: 18px; font-size: 20px; line-height: 1.65; font-weight: 700; }
.gt-cell p { margin-top: 16px; font-size: 15px; line-height: 2.15; color: var(--sub); }
.gt-pull { margin-top: clamp(32px,3.6vw,58px); font-family: var(--gothic); font-weight: 700; font-size: clamp(20px,2.2vw,29px); line-height: 1.9; letter-spacing: .01em; }

/* ===== think first ===== */
.gt-two { display: grid; grid-template-columns: 1fr; gap: clamp(24px,3vw,44px); }
.gt-prose { display: flex; flex-direction: column; gap: 26px; max-width: 44em; }
.gt-prose p { font-size: 16px; line-height: 2.25; color: var(--body); }
.gt-prose .gt-mincho { font-family: var(--gothic); font-weight: 700; font-size: clamp(19px,1.7vw,24px); line-height: 1.95; letter-spacing: .01em; color: var(--ink); }

/* ===== 4つの障害（読ませるためにカード化して階層をつける） ===== */
.gt-why { margin-top: clamp(36px,4vw,56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: clamp(18px,2vw,24px); }
@media (min-width: 900px) { .gt-why { grid-template-columns: repeat(4, 1fr); } }
.gt-why > li { background: var(--pale); border-radius: var(--radius); padding: clamp(26px,2.6vw,32px); border-top: 4px solid var(--sun); }
.gt-why__n { display: block; font-weight: 900; font-size: 13px; letter-spacing: .1em; color: var(--navy); }
.gt-why h3 { margin-top: 14px; font-size: clamp(17px,1.6vw,19px); line-height: 1.65; font-weight: 700; }
.gt-why p { margin-top: 14px; font-size: 15px; line-height: 1.95; color: var(--sub); }

/* ===== 或るべき姿の言い切り＋補足（3カラムは配置が不安定だった） ===== */
.gt-stmt { margin-top: clamp(44px,5vw,76px); }
.gt-stmt__lead { font-size: clamp(21px,2.4vw,30px); line-height: 1.75; font-weight: 700; color: #fff; }
.gt-stmt__cols { margin-top: clamp(32px,3.6vw,52px); display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: clamp(28px,3vw,56px); }
@media (min-width: 900px) { .gt-stmt__cols { grid-template-columns: repeat(2, 1fr); } }
.gt-stmt__cols p { font-size: 15px; line-height: 2.1; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.32); }

/* ===== what we do =====
.gt-cards4 { margin-top: var(--blk); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: clamp(28px,3vw,44px); }
@media (min-width: 900px) { .gt-cards4 { grid-template-columns: repeat(4, 1fr); } }
.gt-card { border-top: 1px solid var(--navy); padding-top: 26px; }
.gt-card__en { font-family: var(--gothic); font-weight: 700; font-size: 12px; letter-spacing: .12em; color: var(--navy); }
.gt-card h3 { margin-top: 14px; font-size: 21px; }
.gt-card p { margin-top: 16px; font-size: 14px; line-height: 2; color: var(--sub); }

/* ===== navy planes ===== */
.gt-navy { background: var(--navy); color: #fff; }
.gt-navy .gt__wrap { padding-top: clamp(84px,10vw,168px); padding-bottom: clamp(84px,10vw,168px); }
.gt-navy h2, .gt-navy h3 { color: #fff; }
.gt-navy .gt-num { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.35); }
.gt-navy .gt-en { background: var(--sun); color: var(--ink); }
.gt-navy .gt-head--rule { border-top-color: rgba(255,255,255,.28); }
.gt-navy p { color: rgba(255,255,255,.8); }
/* ネイビー面のリンク（reCAPTCHAの規約リンク等）が背景と同色になるのを防ぐ */
.gt-navy a { color: #fff; }
.gt-phil { margin-top: var(--blk); display: grid; grid-template-columns: 1fr; gap: clamp(24px,3vw,40px); align-items: start; }
.gt-phil h2 { font-size: clamp(26px,3vw,40px); line-height: 1.5; letter-spacing: .005em; font-weight: 900; }
.gt-phil p { font-size: 15px; line-height: 2.2; max-width: 44em; }
.gt-cols3 { margin-top: var(--blk); display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: clamp(28px,3vw,48px); }
.gt-cols3 > div { border-top: 1px solid rgba(255,255,255,.28); padding-top: 24px; }
.gt-cols3 h3 { font-size: 18px; line-height: 1.8; }
.gt-cols3 p { margin-top: 14px; font-size: 14px; line-height: 2.05; }
.gt-navy .gt-link { color: #fff; border-bottom-color: rgba(255,255,255,.5); font-size: 13px; }

/* ===== 3カラム（白背景用。.gt-cols3 はネイビー面専用） ===== */
.gt-tri { margin-top: var(--blk); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: clamp(28px,3vw,48px); }
@media (min-width: 900px) { .gt-tri { grid-template-columns: repeat(3, 1fr); } }
.gt-tri > li { border-top: 3px solid var(--sun); padding-top: 24px; }
.gt-tri__n { font-family: var(--gothic); font-weight: 700; font-size: 12px; letter-spacing: .12em; color: var(--navy); }
/* セクション内の中見出し */
.gt-subhead { margin-top: clamp(36px,4.2vw,64px); font-size: clamp(21px,2.2vw,28px); line-height: 1.6; font-weight: 900; padding-bottom: 14px; border-bottom: 3px solid var(--sun); display: inline-block; }
.gt-tri h3 { margin-top: 14px; font-size: clamp(18px,1.8vw,21px); line-height: 1.8; font-weight: 700; }

/* ===== works / knowledge cards ===== */
.gt-cards3 { margin-top: clamp(40px,5vw,72px); display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: clamp(24px,3vw,40px); }
.gt-case__label { margin-top: 20px; font-family: var(--gothic); font-weight: 700; font-size: 12px; letter-spacing: .12em; color: var(--navy); }
.gt-case h3 { margin-top: 12px; font-size: 19px; line-height: 1.7; }
.gt-case p { margin-top: 12px; font-size: 13px; line-height: 2; color: #6B7382; }
.gt-posts { margin-top: var(--blk); display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: clamp(20px,2.2vw,28px); background: none; }
.gt-post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 0 0 26px; }
.gt-post__meta { display: flex; gap: 14px; align-items: center; margin: 20px 24px 0; font-size: 12px; color: var(--faint); }
.gt-post__cat { background: var(--sun); color: var(--ink); font-weight: 700; font-size: 11px; padding: 5px 13px; border-radius: 100px; }
.gt-post h3 { margin: 12px 24px 0; font-size: 18px; line-height: 1.7; font-weight: 700; }
.gt-post p { margin: 12px 24px 0; font-size: 13.5px; line-height: 1.95; color: #6B7382; }
.gt-more { margin-top: var(--blk-sm); }

/* ===== service ===== */
.gt-cards2 { margin-top: var(--blk); display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: clamp(32px,4vw,56px); }
@media (min-width: 900px) { .gt-cards2 { grid-template-columns: repeat(2, 1fr); } }
.gt-svc__en { margin-top: 22px; font-family: var(--gothic); font-weight: 700; font-size: 12px; letter-spacing: .12em; color: var(--navy); }
.gt-svc h3 { margin-top: 12px; font-size: clamp(20px,2.1vw,25px); line-height: 1.6; font-weight: 700; }
.gt-svc > p:last-child { margin-top: 16px; font-size: 15px; line-height: 2.15; color: var(--sub); }

.gt-service { margin-top: var(--blk-sm); display: flex; flex-direction: column; }
.gt-service li { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: clamp(12px,3vw,48px); padding: clamp(26px,3vw,36px) 0; border-bottom: 1px solid var(--line2); }
.gt-service__title { display: flex; gap: 20px; align-items: baseline; }
.gt-service__title span { font-family: var(--gothic); font-weight: 700; font-size: 13px; color: var(--navy); }
.gt-service h3 { font-size: 21px; line-height: 1.6; font-weight: 700; }
.gt-service p { font-size: 14px; line-height: 2.05; color: var(--sub); }
.gt-service__foot { margin-top: var(--blk-sm); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.gt-service__foot p { font-family: var(--gothic); font-weight: 700; font-size: 17px; }

/* ===== about ===== */
.gt-about { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: clamp(36px,5vw,80px); align-items: start; }
@media (min-width: 1000px) {
  .gt-about { grid-template-columns: 1.35fr .65fr; }
  .gt-about > div:last-child { position: sticky; top: 96px; }
}
.gt-about h2 { line-height: 1.7; font-size: clamp(22px,2.4vw,32px); }
.gt-dl { margin-top: var(--blk-sm); display: flex; flex-direction: column; }
.gt-dl > div { display: flex; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.gt-dl > div:last-child { border-bottom: 1px solid var(--line); }
.gt-dl dt { width: 7em; flex: none; font-size: 12px; letter-spacing: .1em; color: var(--mute); }
.gt-dl dd { margin: 0; font-size: 14px; line-height: 1.9; color: #333B4A; }

/* ===== contact ===== */
.gt-contact { margin-top: var(--blk); display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: clamp(36px,5vw,80px); }
@media (min-width: 1000px) { .gt-contact { grid-template-columns: 1fr 1fr; } }
.gt-contact h2 { font-size: clamp(24px,2.8vw,38px); line-height: 1.6; }
.gt-contact__lead { margin-top: 28px; font-size: 15px; line-height: 2.15; max-width: 30em; }
.gt-contact__pull { margin-top: 20px; font-family: var(--gothic); font-weight: 700; font-size: 19px; line-height: 1.9; color: #fff !important; }
.gt-form .wpcf7 { color: #fff; }
.gt-form label { display: block; font-size: 12px; letter-spacing: .1em; color: rgba(255,255,255,.72); margin-bottom: 10px; }
.gt-form input[type="text"], .gt-form input[type="email"], .gt-form input[type="tel"] { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.4); color: #fff; font-family: inherit; font-size: 15px; padding: 12px 2px; min-height: 48px; }
.gt-form textarea { width: 100%; background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; font-family: inherit; font-size: 15px; line-height: 1.9; padding: 14px; }
.gt-form input[type="submit"] { background: #fff; color: var(--navy); border: 0; font-family: inherit; font-size: 14px; letter-spacing: .1em; padding: 16px 36px; min-height: 48px; cursor: pointer; }
.gt-form input[type="submit"]:hover { background: var(--pale); }
.gt-form .wpcf7-form > p { margin-bottom: 22px; }

/* ===== 事業一覧 =====
   ポケット文庫・ツキヌケ・Digne などは別サイトなので、
   ここは名前とリンクだけの薄い一覧にして、送り出すことに徹する */
.gt-biz { margin-top: var(--blk); border-top: 1px solid var(--line2); }
.gt-biz > li { display: flex; flex-wrap: wrap; gap: 0 clamp(14px,3vw,40px); padding: clamp(28px,3.4vw,44px) 0; border-bottom: 1px solid var(--line2); }
.gt-biz__no { min-width: 2em; padding-top: 5px; font-family: var(--gothic); font-weight: 700; font-size: 12px; letter-spacing: .1em; color: var(--faint); }
.gt-biz__body { flex: 1 1 min(100%, 520px); }
.gt-biz__en { font-family: var(--gothic); font-weight: 700; font-size: 11px; letter-spacing: .14em; color: var(--navy); }
.gt-biz__body h3 { margin-top: 10px; font-size: clamp(21px,2.3vw,28px); line-height: 1.55; font-weight: 700; }
.gt-biz__desc { margin-top: 14px; font-size: 15px; line-height: 2.15; color: var(--sub); }
/* リンクが複数並ぶので、gt-link の下線が詰まらないよう行間を空ける */
.gt-biz__links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 14px 28px; }

/* 目には見せず、読み上げにだけ渡す文言 */
.gt-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ===== 記事一覧（カテゴリ・タグ・検索） =====
   記事を主役にする面なので、トップの読みもの欄より広く取る */
.gt-archivecount { margin-top: 20px; font-family: var(--gothic); font-weight: 700; font-size: 12px; letter-spacing: .12em; color: var(--mute); }
.gt-archivewrap .gt__wrap { padding-top: clamp(40px,5vw,72px); padding-bottom: clamp(40px,5vw,72px); }
.gt-archivewrap .gt-posts { margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); }

/* ページ送り。paginate_links() は a.page-numbers / span.current / span.dots を出す */
.gt-pager { margin-top: clamp(40px,4.4vw,64px); }
.gt-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gt-pager a, .gt-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 100px; border: 1px solid var(--line2); font-family: var(--gothic); font-weight: 700; font-size: 14px; letter-spacing: .04em; color: var(--navy); }
.gt-pager a:hover { background: var(--pale); }
.gt-pager .current { background: var(--navy); border-color: var(--navy); color: #fff; }
.gt-pager .dots { border-color: transparent; color: var(--faint); }

.gt-empty { padding: clamp(48px,6vw,88px) 0; text-align: center; }
.gt-empty p { font-size: 17px; line-height: 1.9; }
.gt-empty__sub { margin-top: 10px; font-size: 14px; color: var(--mute); }
.gt-empty .gt-btn--ghost { margin-top: 30px; }

/* ===== 記事の2カラム =====
   本文の幅(46em)は変えずに、右に320pxのサイドバーを足す。
   1000px未満では1カラムに落ちて、サイドバーは本文の下にまわる */
/* 幅は カスタマイズ画面（記事詳細のレイアウト）から CSS 変数で入ってくる。
   ここの値は、設定が無いときの既定 */
.gt-single { display: grid; gap: clamp(32px,3.4vw,56px); align-items: start; --gt-side-w: 320px; --gt-article-w: 46em; }
.gt-single__main { min-width: 0; }
.gt-single .gt-article { max-width: var(--gt-article-w); }
.gt-side { display: grid; gap: 26px; align-content: start; }

@media (min-width: 1000px) {
  .gt-single { grid-template-columns: minmax(0,1fr) var(--gt-side-w); }
  .gt-single--full { grid-template-columns: minmax(0,1fr); }
  .gt-single--left { grid-template-columns: var(--gt-side-w) minmax(0,1fr); }
  /* 左に置くときだけ順番を入れ替える。1カラムに落ちる幅では、
     サイドバーが本文より先に来ると読み始めるまでが遠くなるので入れ替えない */
  .gt-single--left .gt-side { order: -1; }
  /* ヘッダーが sticky なので、その分だけ下げないと頭が隠れる。
     中身が画面より高いときに下端が読めなくならないよう、はみ出しは中でスクロールさせる */
  .gt-side { position: sticky; top: 88px; max-height: calc(100vh - 112px); overflow-y: auto; }
  .gt-single--nostick .gt-side { position: static; max-height: none; overflow: visible; }
}

/* 相談への導線。ウィジェットの設定に関係なく必ず出る */
.gt-sidecta { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 26px 24px; }
.gt-sidecta__en { font-family: var(--gothic); font-weight: 700; font-size: 11px; letter-spacing: .14em; color: var(--sun); }
.gt-sidecta__lead { margin-top: 12px; font-size: 14px; line-height: 1.95; color: rgba(255,255,255,.86); }
.gt .gt-sidecta .gt-btn--sm { margin-top: 18px; display: block; text-align: center; background: var(--sun); color: var(--ink); }

/* JIN:R のウィジェットは親テーマのCSS前提で出てくる。
   そのままだとサイトから浮くので、枠と見出しだけ最低限そろえる */
.gt-side__widgets { display: grid; gap: 26px; }
.gt-side__widgets > * { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.gt-side__widgets h2, .gt-side__widgets h3, .gt-side__widgets h4, .gt-side__widgets .widget-title {
  font-family: var(--gothic); font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--navy);
  padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.gt-side__widgets li { font-size: 13.5px; line-height: 1.9; margin-top: 10px; }
.gt-side__widgets a { color: var(--body); }
.gt-side__widgets a:hover { color: var(--navy); }
.gt-side__widgets img { max-width: 100%; height: auto; }

/* ===== footer ===== */
.gt-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(48px,6vw,84px) var(--pad) 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: clamp(28px,4vw,56px); border-top: 1px solid var(--line); }
.gt-footer__navlabel { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--faint); margin-bottom: 14px; }
.gt-footer__logo { font-family: var(--gothic); font-weight: 400; font-size: 24px; letter-spacing: .40em; color: var(--navy); }
.gt-footer__logo .gt-logo__img { height: 24px; }
.gt-footer__meta { margin-top: 14px; font-size: 12px; line-height: 2; letter-spacing: .06em; color: var(--mute); }
.gt-footer nav ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 12px 24px; font-size: 13px; }
.gt-footer nav a { color: var(--body); }
.gt-footer__area { font-size: 12px; line-height: 2; color: var(--mute); align-self: end; }

/* ===== 下層ページ（/service など） ===== */
.gt-pagehead { background: var(--pale); }
.gt-pagehead .gt__wrap { padding-top: clamp(40px,5vw,72px); padding-bottom: clamp(40px,5vw,72px); }
.gt-crumb { font-size: 12px; color: var(--mute); margin-bottom: 26px; }
.gt-crumb a { color: var(--navy); }
.gt-pagehead .gt-h1 { margin-top: 20px; }
.gt-pagehead .gt-lead { margin-top: 22px; }

/* WordPress 側の本文。JIN:R のブロックがそのまま入ってくる */
.gt-article { max-width: 46em; }
/* JIN:R は本文を .theContentWrap-ccc という div で包んで出すため、
   直下の子だけを見る `> * + *` では中の段落に届かず、
   段落と段落が margin 0 でくっついていた。
   包みを1枚跨いだ孫にも効くようにする（入れ子の一覧や目次には
   触れないよう、孫の階層までに限定する）。 */
.gt-article > * + *,
.gt-article > * > :where(p, ul, ol, blockquote, figure, table, pre, dl, section, div)
  + :where(p, ul, ol, blockquote, figure, table, pre, dl, section, div) { margin-top: 1.9em; }
.gt-article p { font-size: 17px; line-height: 2.15; color: var(--body); }
.gt-article h2 { margin-top: 2.2em; font-size: clamp(23px,2.4vw,31px); line-height: 1.55; font-weight: 900; padding-bottom: 14px; border-bottom: 3px solid var(--sun); }
.gt-article h3 { margin-top: 2em; font-size: clamp(19px,1.9vw,23px); line-height: 1.65; font-weight: 700; color: var(--navy); }
.gt-article h4 { margin-top: 1.8em; font-size: 18px; line-height: 1.7; font-weight: 700; }
.gt-article ul, .gt-article ol { padding-left: 1.4em; }
.gt-article ul li { list-style: disc; }
.gt-article ol li { list-style: decimal; }
.gt-article li { font-size: 16px; line-height: 2.05; color: var(--body); margin-top: .5em; }
.gt-article strong { font-weight: 700; color: var(--ink); }
.gt-article img { border-radius: var(--radius); }
.gt-article a { border-bottom: 1px solid var(--navy); }
/* JIN:R のボックス類が浮かないように最低限だけ整える */
.gt-article .b--jinr-box, .gt-article .wp-block-jinr-blocks-simplebox { background: var(--pale); border-radius: var(--radius); padding: clamp(22px,2.4vw,30px); }
.gt-article .b--jinr-box p:first-child { margin-top: 0; }
.gt-articlewrap .gt-service__foot { margin-top: clamp(52px,6vw,88px); }

/* ===== 768〜999px の崩れ対策 =====
   ヒーローは 1000px 未満だと auto-fit で2カラムのまま残り、
   画像が文章と同じ幅になって文章が窮屈になっていた。
   ヘッダーもボタンだけが2段目に落ちて間延びしていた。 */
@media (max-width: 999px) {
  .gt-hero { grid-template-columns: 1fr; gap: clamp(28px,4vw,44px); }
  /* 1カラムで 4:5 のままだと画像が縦に長すぎるので横長にする */
  .gt-hero__card img { aspect-ratio: 16/10; }
  .gt-hero__fig::before { inset: 16px -16px -16px 16px; }
  .gt-hero__sub, .gt-hero__note { max-width: none; }
}
@media (max-width: 900px) {
  /* 1段目にロゴとボタン、2段目にナビを回す */
  .gt-header__inner { row-gap: 14px; }
  .gt-header__inner .gt-btn--sm { order: 2; margin-left: auto; }
  .gt-nav { order: 3; flex: 1 1 100%; }
  .gt-nav ul { gap: 8px 20px; }
}
@media (max-width: 560px) {
  .gt-eyebrow { font-size: 11px; letter-spacing: .04em; padding: 7px 14px; }
  .gt-cta .gt-btn, .gt-cta .gt-btn--ghost { flex: 1 1 100%; text-align: center; }
}

/* ===== 中間CTA帯 =====
   フォームまで1万px以上スクロールしないと辿り着けなかったので、
   本文の切れ目に短い帯を挟んで申込みへの導線を増やす */
.gt-ctaband { background: var(--navy); color: #fff; }
.gt-ctaband__inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(26px,3vw,38px) var(--pad);
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px,2.4vw,32px); }
.gt-ctaband p { font-size: clamp(17px,1.9vw,23px); font-weight: 700; line-height: 1.7; }
.gt-ctaband p span { font-weight: 400; color: rgba(255,255,255,.8); }
.gt .gt-btn--light { margin-left: auto; background: var(--sun); color: var(--ink); }
.gt .gt-btn--light:hover { background: #fff; color: var(--ink); }
@media (max-width: 700px) { .gt .gt-btn--light { margin-left: 0; width: 100%; text-align: center; } }

/* ===== 相談の流れ ===== */
.gt-flow { margin-top: var(--blk); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: clamp(22px,2.6vw,32px); }
@media (min-width: 900px) { .gt-flow { grid-template-columns: repeat(3, 1fr); } }
.gt-flow > li { background: #fff; border-radius: var(--radius); padding: clamp(24px,2.6vw,32px); position: relative; }
.gt-flow > li::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--navy); border-radius: var(--radius) var(--radius) 0 0; }
.gt-flow__n { font-weight: 900; font-size: 12px; letter-spacing: .14em; color: var(--navy); }
.gt-flow h3 { margin-top: 14px; font-size: clamp(19px,1.9vw,22px); line-height: 1.6; font-weight: 700; }
.gt-flow > li > p:last-child { margin-top: 14px; font-size: 15px; line-height: 2.05; color: var(--sub); }

/* ===== モバイルの固定CTA =====
   スマホはページが長く、申込みまでの距離があるため下部に常時出す */
.gt-sticky { display: none; }
@media (max-width: 767px) {
  .gt-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
  .gt-sticky .gt-btn { display: block; text-align: center; width: 100%; padding: 16px 20px; }
  .gt-footer { padding-bottom: 96px; }
}


/* =========================================================
   雰囲気の刷新
   これまで全セクションが「細い罫線 → 丸番号 → ピル → 見出し」の
   同じ型の繰り返しで、ヒーローも「左に文字・右に小さな画像」という
   ありふれた構図だった。以下でその2つを壊す。
   ========================================================= */

/* ---- 1. セクションの見出しを大きな英字に重ねる ---- */
.gt-head { display: block; position: relative; }
.gt-head > div { display: contents; }
.gt-head--rule, .gt-head--rule-light { border-top: none; padding-top: 0; }
.gt-en {
  display: block; background: none; border-radius: 0; padding: 0;
  font-size: clamp(34px, 4.6vw, 68px); font-weight: 900; line-height: .92;
  letter-spacing: -.01em; color: #E9EDF1; white-space: nowrap;
}
.gt-pale .gt-en { color: #E1E6EB; }
.gt-navy .gt-en { background: none; color: rgba(255,255,255,.13); }
.gt-head h1, .gt-head h2 { position: relative; margin-top: -.30em; }
.gt-num {
  position: absolute; top: .1em; right: 0; width: auto; height: auto;
  border: 0; border-radius: 0; font-size: 12px; letter-spacing: .22em; color: var(--faint);
}
.gt-navy .gt-num { color: rgba(255,255,255,.5); }
.gt-lead { margin-top: 26px; }

/* ---- 2. ヒーローを画面いっぱいの構図に ---- */
@media (min-width: 1000px) {
  .gt-hero {
    max-width: none; min-height: clamp(420px, 58vh, 600px); align-items: center;
    grid-template-columns: 1fr minmax(34vw, 40vw);
    gap: clamp(40px, 5vw, 88px);
    padding: 0 0 0 max(var(--pad), calc(50vw - (var(--wrap) / 2) + var(--pad)));
  }
  .gt-hero > div:first-child { padding: clamp(28px,3.4vw,52px) 0; }
  .gt-hero__fig { height: clamp(420px, 58vh, 600px); }
  .gt-hero__card { height: 100%; overflow: hidden; border-radius: var(--radius) 0 0 var(--radius); }
  /* .gt img.gt-ratio-45 (0,2,1) に負けて height:auto のままだったので詳細度を合わせる */
  .gt .gt-hero__card img { height: 100%; width: 100%; aspect-ratio: auto; object-fit: cover; }
  /* 黄色の敷き板はやめ、細い縦のアクセントに */
  .gt-hero__fig::before { inset: auto auto 0 -14px; width: 14px; height: 42%;
    background: var(--sun); border-radius: 0; }
  .gt-hero__cap { position: absolute; left: 24px; bottom: 20px; color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,.5); margin: 0; z-index: 2; }
}

/* ---- 3. 文字の大きさの落差を広げる ---- */
.gt-h1 { font-size: clamp(34px, 5.2vw, 72px); line-height: 1.4; }
/* ヒーローの決めゼリフは改行位置を <br> で決めている。
   ところが左カラムは grid の 1fr で、幅が中身に追随して決まるため、
   放っておくと「何でも」だけが行に取り残されるなど勝手な位置で折り返す。
   2カラムになる 1000px 以上では折り返しを禁止し、指定した改行だけを使う。
   （1000px 未満はヒーローが1カラムで横幅に余裕があるので不要。
   むしろ禁止すると狭い端末で横にはみ出す） */
@media (min-width: 1000px) {
  .gt-hero .gt-h1 { white-space: nowrap; }
}
/* 320px 幅では 34px だと1行目(9文字)が入りきらず割れるので少し落とす */
@media (max-width: 359px) {
  .gt-h1 { font-size: 30px; }
}
.gt-h2 { font-size: clamp(28px, 3.6vw, 50px); line-height: 1.45; }
.gt-h2--lg { font-size: clamp(29px, 3.8vw, 52px); line-height: 1.45; }
.gt-phil h2 { font-size: clamp(28px, 3.6vw, 50px); line-height: 1.45; }

/* ---- 4. スクロールで現れる ---- */
.gt-reveal { opacity: 0; transform: translateY(20px); }
.gt-reveal.is-in { opacity: 1; transform: none;
  transition: opacity .75s ease, transform .75s cubic-bezier(.2,.6,.2,1); }
@media (prefers-reduced-motion: reduce) {
  .gt-reveal, .gt-reveal.is-in { opacity: 1; transform: none; transition: none; }
}

/* 下層ページの見出しも同じ扱いに */
.gt-pagehead .gt-en { color: #E1E6EB; }
.gt-pagehead .gt-h1 { margin-top: -.30em; position: relative; }

/* =========================================================
   記事詳細（single.php）
   記事だけが JIN:R 標準のままでサイトから浮いていたため、
   トップ・下層ページと同じ言葉づかいに揃える。
   本文は読むためのものなので、装飾は足さず余白と行間で作る。
   ========================================================= */

/* ---- 記事の冒頭 ---- */
.gt-posthead { background: var(--pale); }
.gt-posthead .gt__wrap { padding-top: clamp(34px,4.2vw,60px); padding-bottom: clamp(30px,3.6vw,50px); }
.gt-posthead .gt-crumb { margin-bottom: 22px; }
/* 記事名は長いので、パンくずの最後は折り返さず省略する */
.gt-crumb span { color: var(--mute); }
.gt-posthead .gt-en { color: #E1E6EB; font-size: clamp(30px,3.8vw,54px); }
/* 記事の見出しは文章なので、トップのH1ほど大きくすると読みづらい */
.gt-posttitle {
  position: relative; margin-top: -.24em;
  font-size: clamp(25px, 3.1vw, 42px); line-height: 1.55; letter-spacing: .005em; font-weight: 900;
}
.gt-postinfo { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12.5px; color: var(--mute); }
.gt-postinfo time { letter-spacing: .06em; }

/* ---- アイキャッチ ---- */
/* 本文と同じ幅に収める。全幅にすると高さを食うだけで内容が増えない */
.gt-postthumb { max-width: 46em; margin: 0 0 clamp(30px,3.4vw,46px); border-radius: var(--radius); overflow: hidden; }
.gt-postthumb img { width: 100%; }

/* ---- 本文（.gt-article の記事向けの追加分） ---- */
.gt-article blockquote {
  margin-left: 0; margin-right: 0; padding: 4px 0 4px clamp(18px,2vw,26px);
  border-left: 3px solid var(--line2); color: var(--sub);
}
.gt-article blockquote p { font-size: 16px; }
.gt-article figure { margin-left: 0; margin-right: 0; }
.gt-article figcaption { margin-top: 12px; font-size: 13px; line-height: 1.9; color: var(--mute); }
.gt-article hr { border: 0; border-top: 1px solid var(--line); margin: clamp(38px,4vw,58px) 0; }
.gt-article table { width: 100%; border-collapse: collapse; font-size: 15px; }
.gt-article th, .gt-article td { border: 1px solid var(--line); padding: 12px 14px; line-height: 1.9; text-align: left; vertical-align: top; }
.gt-article th { background: var(--pale); font-weight: 700; }
/* 表は幅が足りないと横に潰れるので、内側だけ横スクロールさせる */
.gt-article .wp-block-table { overflow-x: auto; }
.gt-article code { background: var(--pale); border-radius: 4px; padding: 2px 6px; font-size: .93em; }
.gt-article pre { background: var(--pale); border-radius: var(--radius); padding: clamp(16px,2vw,22px); overflow-x: auto; }
.gt-article pre code { background: none; padding: 0; }
.gt-article a:hover { color: var(--ink); border-bottom-color: var(--ink); }
/* JIN:R が本文に差し込む広告枠。AdSense が画面いっぱいに広げようとして
   スマホで width:375px / margin-left:-20px をインラインで書き込むため、
   本文(335px)から左に20pxずれてはみ出す。本文の柱に揃える。
   インラインの指定に勝つ必要があるので !important を使う */
.gt-article .o--ads-area { max-width: 100%; overflow: hidden; }
.gt-article .adsbygoogle {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* 本文中の見出しに ID が振られている（目次のリンク先）。
   ヘッダーが sticky なので、飛んだ先が隠れないよう余白を確保する */
.gt-article :where(h2, h3, h4)[id] { scroll-margin-top: 90px; }

/* ---- 本文に直接書かれている色を Goûter の2色に寄せる ----
   記事側の囲みが茶・金（#c8a96e 系）で書かれていて、ネイビーと衝突する。
   本文はデータベース側にあり書き換えると記事を壊しかねないので、
   表示の段階で上書きする。インラインの style に勝つため !important を使う */
.gt-article [style*="#c8a96e"] {
  background: var(--pale) !important;
  border-color: var(--navy) !important;
}
.gt-article [style*="#f7f3ee"],
.gt-article [style*="#fdf8f0"],
.gt-article [style*="#f8f4ee"],
.gt-article [style*="#f9f9f9"],
.gt-article [style*="#f0f4f8"] {
  background: var(--pale) !important;
}
.gt-article [style*="#e0e0e0"] { border-color: var(--line) !important; }
.gt-article [style*="#6a9ec0"] { border-color: var(--navy) !important; }
/* 囲みの角丸もそろえる。画像に当てると意図した切り抜きを壊すので div/p だけ */
.gt-article div[style*="border-radius"],
.gt-article p[style*="border-radius"] { border-radius: var(--radius) !important; }

/* ---- 目次（Rich Table of Content プラグイン） ---- */
/* プラグイン既定の見た目がサイトから浮くので、最低限だけ上書きする */
.gt-article #rtoc-mokuji-wrapper {
  background: var(--pale); border: 0; border-radius: var(--radius);
  padding: clamp(20px,2.4vw,28px); box-shadow: none; width: 100%; max-width: none;
}
.gt-article #rtoc-mokuji-title { font-family: var(--gothic); font-weight: 700; font-size: 15px; letter-spacing: .06em; color: var(--ink); }
.gt-article .rtoc-mokuji li { font-size: 15px; line-height: 1.95; }
/* リンクが inline-block なので、狭い画面で項目の枠より広がってはみ出す */
.gt-article .rtoc-mokuji a { border-bottom: 0; color: var(--body); max-width: 100%; }
.gt-article .rtoc-mokuji a:hover { color: var(--navy); border-bottom: 1px solid var(--navy); }

/* ---- 続けて読む ---- */
.gt-relwrap { border-top: 1px solid var(--line); background: #fff; }
.gt-relwrap .gt-posts { grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
.gt-relwrap .gt-post h3 { font-size: 16.5px; }

/* ---- 前後の記事 ---- */
.gt-pnwrap { border-top: 1px solid var(--line); background: var(--pale); }
.gt-pnwrap .gt__wrap { padding-top: clamp(28px,3vw,42px); padding-bottom: clamp(28px,3vw,42px); }
.gt-pn { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: clamp(16px,2vw,26px); }
.gt-pn > li { background: #fff; border-radius: var(--radius); }
.gt-pn a { display: block; padding: clamp(18px,2vw,24px); }
.gt-pn__label { display: block; font-size: 11px; letter-spacing: .16em; color: var(--faint); font-weight: 700; }
.gt-pn__title { display: block; margin-top: 10px; font-size: 15.5px; line-height: 1.85; font-weight: 700; color: var(--ink); }
.gt-pn a:hover .gt-pn__title { color: var(--navy); }
/* 次の記事は右寄せにして、前後の向きが見た目で分かるようにする */
.gt-pn__next { text-align: right; }

@media (max-width: 700px) {
  .gt-pn__next { text-align: left; }
  .gt-postthumb { margin-bottom: 26px; }
}

/* =========================================================
   目線の誘導：余白で「かたまり」を作る
   ここまでブロックの隙間がどこも46〜54pxで均等だった。均等だと
   どこで話が変わるのかが目に見えず、上から流し読みしても頭に入らない。
   ・語りの節目(.gt-pull)の前は大きく空けて、いったん目を止める
   ・その節の中身(直後の一覧・カード・小見出し)は近づけて、ひとつづきに見せる
   結果として「大 → 小 → 小」の繰り返しになり、かたまりが目に見える。
   この規則が最終的な権限を持つよう、意図してファイルの最後に置いている。
   ========================================================= */

/* 節目の前 = 大きく空ける */
.gt .gt-pull { margin-top: clamp(52px, 6.4vw, 96px); }

/* 節目の直後 = その節の中身なので近づける */
.gt .gt-pull + ul,
.gt .gt-pull + ol,
.gt .gt-pull + .gt-subhead,
.gt .gt-prose + ul,
.gt .gt-prose + ol,
.gt .gt-subhead + ul,
.gt .gt-subhead + ol { margin-top: clamp(20px, 2.4vw, 30px); }

/* 言い切りのすぐ下のリンクは、その言葉の続きとして置く。
   a 自身に margin/padding を書いても親テーマ(JIN:R)が !important で
   潰してくるので、包んだ div 側で余白を取る */
.gt .gt-pull + .gt-linkwrap { margin-top: 24px; }

/* 記事終わり・関連記事手前の広告枠。本文の柱に合わせ、上下に息をつかせる */
.gt-adfinish { margin: 40px 0 8px; }
.gt-adrelated { margin: 32px auto 0; }
.gt-adfinish:empty,
.gt-adrelated:empty { margin: 0; }
@media (max-width: 767px) {
  .gt-adfinish { margin: 28px 0 4px; }
}

/* 404の検索窓。行き止まりにしないための最小限 */
.gt-404search { margin-top: 24px; max-width: 520px; }
.gt-404search__label {
  display: block; font-size: 13px; letter-spacing: .04em;
  opacity: .7; margin-bottom: 8px;
}
.gt-404search__row { display: flex; gap: 8px; }
.gt-404search__row input[type="search"] {
  flex: 1 1 auto; min-width: 0;
  padding: 12px 14px; font-size: 16px;   /* 16px未満はスマホで拡大されるので下げない */
  border: 1px solid rgba(0,0,0,.2); border-radius: 6px; background: #fff;
}
.gt-404search__row button {
  flex: 0 0 auto; padding: 12px 20px; font-size: 15px; cursor: pointer;
  border: 0; border-radius: 6px; background: #1b2230; color: #fff;
}
.gt-404search__row button:hover { opacity: .85; }
@media (max-width: 480px) {
  .gt-404search__row { flex-wrap: wrap; }
  .gt-404search__row button { width: 100%; }
}

/* ============================================================
   記事の表（2026-09-04）
   Markdownの表がHTMLに変換されていなかったのを直したときに足した。
   3列以上はスマホで1セルが4行に折れて読めなくなるので、
   セルに最小幅を持たせて、収まらないときは表だけ横にスクロールさせる。
   2列は最小幅の合計が画面に収まるので、スクロールにならない。
   ============================================================ */
.gt-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gt-table table { width: 100%; border-collapse: collapse; }
.gt-table th,
.gt-table td {
  padding: 10px 12px; border: 1px solid rgba(0,0,0,.12);
  vertical-align: top; text-align: left;
}
.gt-table th { background: rgba(0,0,0,.04); font-weight: 700; }
@media (max-width: 600px) {
  /* 8.5em × 2列 なら収まる。3列以上になると溢れてスクロールする */
  .gt-table th,
  .gt-table td { min-width: 8.5em; }
}

/* 横に溢れているときだけ、端に影を出して「続きがある」と分かるようにする。
   スマホで6列の表が「原価」で切れて見え、右に3列あることが伝わらなかった。
   background-attachment: local の白い覆いが、端まで送ると影に重なって消える。
   溢れていない表では最初から影が隠れるので、2列の表には何も出ない。 */
.gt-table {
  background:
    linear-gradient(to right, #fff 30%, rgba(255,255,255,0)),
    linear-gradient(to right, rgba(255,255,255,0), #fff 70%) 100% 0,
    radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.16), rgba(0,0,0,0)),
    radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.16), rgba(0,0,0,0)) 100% 0;
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}
