/* ============================================================
   ゴルフタイプ診断（SGPT / 4軸16タイプ）
   デザインは public/04_テキスト素材/MBTI企画(SG)/mbtisg.html に準拠。

   会員導線の main.css には手を入れず、このファイルだけで完結させる。
   既存のゴルフ診断(diagnosis.css)ともクラス名を分けてあるので、
   片方を直しても、もう片方の見た目は変わらない。
   ============================================================ */

.sg-gt-scope {
    --blue:    #0C3280;
    --blue-dk: #091E55;
    --blue-lt: rgba(12, 50, 128, 0.08);
    --blue-md: rgba(12, 50, 128, 0.16);
    --ink:     #3C3737;
    --ink-lt:  #7A7474;
    --white:   #FFFFFF;
    --border:  rgba(12, 50, 128, 0.14);
    --shadow:  0 2px 20px rgba(12, 50, 128, 0.10);

    background: #F5F7FC;
    color: var(--ink);
    min-height: 100vh;
}

/* ---------------- ヘッダー＋進捗バー（画面上部に固定） ---------------- */
/* 2段まとめて1つのstickyにする（別々にするとヘッダーの高さぶんズレる） */
.sg-gt-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
}

.sg-gt-header {
    background: var(--blue);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* ロゴ（logoA3.png）。紺一色の画像を紺の帯にのせるので、
   filter で白抜きにしている（白版の画像を別に用意しなくてよい）。 */
.sg-gt-header__logo {
    height: 20px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}
.sg-gt-header__back {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    display: none;
}
.sg-gt-header__back.is-visible { display: block; }

/* ---------------- 進捗バー ---------------- */
.sg-gt-progress {
    background: var(--white);
    padding: 12px 20px;
    display: none;
    border-bottom: 1px solid var(--border);
}
.sg-gt-progress.is-visible { display: block; }
.sg-gt-progress__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}
.sg-gt-progress__label {
    font-size: 11px;
    color: var(--ink-lt);
    font-weight: 600;
    letter-spacing: 0.5px;
}
.sg-gt-progress__frac {
    font-size: 17px;
    font-weight: 900;
    color: var(--blue);
}
.sg-gt-progress__frac span {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-lt);
}
.sg-gt-progress__track {
    height: 6px;
    background: var(--blue-lt);
    border-radius: 3px;
    overflow: hidden;
}
.sg-gt-progress__fill {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--blue);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* ---------------- 本体 ---------------- */
.sg-gt-body {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 20px 80px;
}
.sg-gt-screen { animation: sgGtFadeUp 0.3s ease; }
@keyframes sgGtFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------------- スタート画面 ---------------- */
.sg-gt-start__top {
    text-align: center;
    padding: 40px 24px 36px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}
.sg-gt-start__brand {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--ink-lt);
    text-transform: uppercase;
    margin-bottom: 18px;
}
.sg-gt-start__title {
    font-size: 54px;
    font-weight: 900;
    color: var(--blue);
    letter-spacing: 4px;
    line-height: 1;
    margin-bottom: 10px;
}
.sg-gt-start__sub {
    font-size: 13px;
    color: var(--ink-lt);
    line-height: 1.6;
    white-space: pre-line;
}
.sg-gt-start__figure {
    margin-top: 22px;
    border-radius: 14px;
    overflow: hidden;
}
.sg-gt-start__figure img { width: 100%; display: block; }
.sg-gt-start__lead {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--ink-lt);
    text-align: center;
}

.sg-gt-stats {
    background: var(--white);
    border-radius: 16px;
    padding: 22px 20px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}
.sg-gt-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 18px;
}
.sg-gt-stat {
    text-align: center;
    padding: 0 8px;
    position: relative;
}
.sg-gt-stat + .sg-gt-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: var(--border);
}
.sg-gt-stat__num {
    font-size: 26px;
    font-weight: 900;
    color: var(--blue);
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 5px;
}
.sg-gt-stat__label {
    font-size: 10px;
    font-weight: 700;
    color: var(--ink-lt);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.sg-gt-stat__unit { font-size: 14px; font-weight: 700; }
.sg-gt-stat__sub {
    font-size: 11px;
    color: var(--ink-lt);
    margin-top: 2px;
}
.sg-gt-stats__note {
    font-size: 12px;
    color: var(--ink-lt);
    line-height: 1.7;
    letter-spacing: 0.3px;
    text-align: center;
}
.sg-gt-stats__note span { color: var(--ink); font-weight: 600; }

.sg-gt-start__top .sg-gt-btn-primary { margin-top: 26px; }

.sg-gt-btn-primary {
    display: block;
    width: 100%;
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 800;
    padding: 18px;
    cursor: pointer;
    letter-spacing: 1px;
    font-family: inherit;
    text-align: center;
    box-shadow: 0 4px 18px rgba(12, 50, 128, 0.28);
    transition: background 0.2s, transform 0.1s;
}
.sg-gt-btn-primary:hover { background: var(--blue-dk); color: var(--white); }
.sg-gt-btn-primary:active { transform: scale(0.98); }

.sg-gt-start__note {
    margin-top: 12px;
    text-align: center;
    font-size: 12px;
    line-height: 1.7;
    color: var(--ink-lt);
}

/* ---------------- 質問 ---------------- */
.sg-gt-q__card {
    background: var(--white);
    border-radius: 20px;
    padding: 22px 20px 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}
.sg-gt-q__text {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.65;
    color: var(--ink);
    margin-bottom: 16px;
}

/* A / B の対比カード */
.sg-gt-opts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
}
.sg-gt-opt {
    background: var(--blue-lt);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
}
.sg-gt-opt__lbl {
    font-size: 10px;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.sg-gt-opt__txt {
    font-size: 12px;
    line-height: 1.5;
    color: var(--ink);
}

/* 4段階の回答ボタン */
.sg-gt-ans {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.sg-gt-ans__btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 18px 20px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    transition: all 0.15s;
    letter-spacing: 0.2px;
}
.sg-gt-ans__btn--sa { background: #2B65B0; color: #fff; }
.sg-gt-ans__btn--sa:hover,
.sg-gt-ans__btn--sa.is-sel { background: #1E54A0; box-shadow: 0 4px 14px rgba(12, 50, 128, 0.25); }

.sg-gt-ans__btn--a {
    background: rgba(12, 50, 128, 0.12);
    color: #0C3280;
    border: 2px solid rgba(12, 50, 128, 0.25);
}
.sg-gt-ans__btn--a:hover,
.sg-gt-ans__btn--a.is-sel { background: rgba(12, 50, 128, 0.22); border-color: #0C3280; box-shadow: 0 2px 10px rgba(12, 50, 128, 0.2); }

.sg-gt-ans__btn--b {
    background: rgba(60, 55, 55, 0.08);
    color: #3C3737;
    border: 2px solid rgba(60, 55, 55, 0.2);
}
.sg-gt-ans__btn--b:hover,
.sg-gt-ans__btn--b.is-sel { background: rgba(60, 55, 55, 0.16); border-color: #3C3737; box-shadow: 0 2px 10px rgba(60, 55, 55, 0.15); }

.sg-gt-ans__btn--sb { background: #6B6666; color: #fff; }
.sg-gt-ans__btn--sb:hover,
.sg-gt-ans__btn--sb.is-sel { background: #555151; box-shadow: 0 4px 14px rgba(60, 55, 55, 0.2); }

.sg-gt-ans__btn:active { transform: scale(0.98); }

/* 回答済みの位置インジケータ */
.sg-gt-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 4px 2px;
    opacity: 0;
    transition: opacity 0.3s;
}
.sg-gt-dots.is-visible { opacity: 1; }
.sg-gt-dots__dot {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--blue-md);
    transition: background 0.2s;
}
.sg-gt-dots__dot--sa { background: #2B65B0; }
.sg-gt-dots__dot--a  { background: rgba(12, 50, 128, 0.45); }
.sg-gt-dots__dot--b  { background: rgba(60, 55, 55, 0.35); }
.sg-gt-dots__dot--sb { background: #6B6666; }

.sg-gt-q__nav { display: flex; }
.sg-gt-btn-back {
    background: var(--white);
    color: var(--blue);
    border: 2px solid var(--border);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    padding: 13px 18px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.18s;
}
.sg-gt-btn-back:hover { border-color: var(--blue); background: var(--blue-lt); }
.sg-gt-btn-back:disabled { opacity: 0.3; pointer-events: none; }

/* ---------------- 判定中 ---------------- */
.sg-gt-calc {
    text-align: center;
    padding: 80px 24px;
}
.sg-gt-calc__dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 28px;
}
.sg-gt-calc__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
    opacity: 0.2;
    animation: sgGtBlink 1.2s ease-in-out infinite;
}
.sg-gt-calc__dot:nth-child(2) { animation-delay: 0.2s; }
.sg-gt-calc__dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes sgGtBlink {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.3); }
}
.sg-gt-calc__title {
    font-size: 20px;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 8px;
}
.sg-gt-calc__sub { color: var(--ink-lt); font-size: 13px; }

/* ---------------- 結果 ---------------- */
.sg-gt-hero {
    background: var(--blue);
    border-radius: 20px;
    padding: 34px 24px;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.sg-gt-hero__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* 結果画像は画面の左右端まで表示し、本文は読みやすい幅に保つ。 */
.sg-gt-scope[data-view="result"] .sg-gt-sticky,
.sg-gt-scope[data-view="result"] .sg-gt-header {
    display: none;
}
.sg-gt-scope[data-view="result"] .sg-gt-body {
    max-width: none;
    padding-top: 0;
}
.sg-gt-result > :not(.sg-gt-hero--landscape) {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.sg-gt-hero--landscape {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    padding: 0;
    background: var(--white);
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    margin-bottom: 12px;
}
.sg-gt-hero--landscape > img {
    display: block;
    width: 100%;
    height: auto;
}
.sg-gt-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.sg-gt-hero--figure { padding-top: 26px; }

.sg-gt-hero__figure {
    width: 100%;
    max-width: 260px;
    margin: 18px auto 0;
}
.sg-gt-hero__figure img {
    width: 100%;
    display: block;
    height: auto;
    /* 文字なしの透過キャラクターを全身表示する。 */
    max-height: 300px;
    object-fit: contain;
}

.sg-gt-hero__code {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}
/* 詳細レポートの透過キャラと見出しの間隔。 */
.sg-gt-hero--figure .sg-gt-hero__eyebrow { margin-bottom: 14px; }
.sg-gt-hero--figure .sg-gt-hero__code    { margin-bottom: 14px; }
.sg-gt-hero--figure .sg-gt-hero__letter  { width: 52px; height: 58px; font-size: 27px; }
.sg-gt-hero--figure .sg-gt-hero__name    { font-size: 20px; }
.sg-gt-hero__letter {
    width: 60px;
    height: 68px;
    border-radius: 13px;
    border: 2px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    color: var(--white);
    opacity: 0;
    animation: sgGtPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.sg-gt-hero__letter:nth-child(1) { animation-delay: 0.10s; }
.sg-gt-hero__letter:nth-child(2) { animation-delay: 0.28s; }
.sg-gt-hero__letter:nth-child(3) { animation-delay: 0.46s; }
.sg-gt-hero__letter:nth-child(4) { animation-delay: 0.64s; }
@keyframes sgGtPop {
    from { opacity: 0; transform: scale(0.6) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.sg-gt-hero__name {
    color: var(--white);
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 6px;
    line-height: 1.4;
}
.sg-gt-hero__catch { color: rgba(255, 255, 255, 0.6); font-size: 13px; }

/* ※「画像を保存する」ボタンは廃止（LINEの中ブラウザで動かないため）。
   シェア用のカード画像は事前に作ってLiny側から配信する。 */

.sg-gt-card {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
}
.sg-gt-card__title {
    font-size: 11px;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--blue-lt);
}
.sg-gt-card__figure {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
}
.sg-gt-card__figure img { width: 100%; display: block; }

.sg-gt-desc {
    font-size: 14px;
    line-height: 1.85;
    color: var(--ink);
    white-space: pre-wrap;
}

.sg-gt-favorite-club {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-left: 4px solid var(--blue);
    border-radius: 0 12px 12px 0;
    background: linear-gradient(135deg, var(--blue-lt), rgba(255, 255, 255, 0.72));
}
.sg-gt-favorite-club__label {
    margin-bottom: 3px;
    color: var(--blue);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.8px;
}
.sg-gt-favorite-club__name {
    color: var(--blue);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
}
.sg-gt-favorite-club__shot {
    margin-top: 3px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}
.sg-gt-favorite-club__reason {
    margin-top: 5px;
    color: var(--ink-lt);
    font-size: 12px;
    line-height: 1.65;
}

/* 4軸のバー */
.sg-gt-axis { margin-bottom: 16px; }
.sg-gt-axis:last-child { margin-bottom: 0; }
.sg-gt-axis__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}
.sg-gt-axis__lbl { font-size: 11px; font-weight: 700; color: var(--ink-lt); }
.sg-gt-axis__names {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}
.sg-gt-axis__name { font-size: 12px; font-weight: 700; color: var(--ink-lt); }
.sg-gt-axis__name.is-win   { font-weight: 900; color: var(--blue); }
.sg-gt-axis__name.is-win-b { font-weight: 900; color: var(--ink); }
.sg-gt-axis__track {
    height: 11px;
    background: var(--blue-lt);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
}
/* 勝った側だけ濃く塗る（負けた側は薄いグレー）— 原本の挙動 */
.sg-gt-axis__l { height: 100%; background: rgba(12, 50, 128, 0.15); transition: width 1s ease; }
.sg-gt-axis__r { height: 100%; background: rgba(60, 55, 55, 0.12); transition: width 1s ease; }
.sg-gt-axis__l.is-win { background: var(--blue); }
.sg-gt-axis__r.is-win { background: var(--ink); }
.sg-gt-axis__pcts {
    display: flex;
    justify-content: space-between;
    margin-top: 3px;
}
.sg-gt-axis__pct { font-size: 13px; font-weight: 900; color: var(--blue); }
.sg-gt-axis__pct.is-sec   { color: var(--ink-lt); font-weight: 600; }
.sg-gt-axis__pct.is-win-b { color: var(--ink); }

/* 数値を軸名と同じ行へ置き、4軸すべてを結果カード直下で見渡せる高さにする。 */
.sg-gt-balance { padding: 16px 18px; }
.sg-gt-balance .sg-gt-card__title {
    margin: 0 0 10px;
    padding-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
}
.sg-gt-balance .sg-gt-axis { margin-bottom: 12px; line-height: 1.4; }
.sg-gt-balance .sg-gt-axis:last-child { margin-bottom: 0; }
.sg-gt-balance .sg-gt-axis__top { margin-bottom: 4px; font-size: 12px; line-height: 1.4; }
.sg-gt-balance .sg-gt-axis__lbl { font-size: 12px; }
.sg-gt-balance .sg-gt-axis__names { margin-bottom: 5px; gap: 8px; }
.sg-gt-balance .sg-gt-axis__name { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 5px; row-gap: 2px; font-size: 14px; }
.sg-gt-balance .sg-gt-axis__name:last-child { text-align: right; }
.sg-gt-balance .sg-gt-axis__ja { grid-column: 1 / -1; font-size: 13px; font-weight: 600; }
.sg-gt-balance .sg-gt-axis__pct { font-size: 14px; }
.sg-gt-balance .sg-gt-axis__track { height: 10px; }

/* 強み・課題・おすすめ */
.sg-gt-trait {
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}
.sg-gt-trait:first-child { padding-top: 0; }
.sg-gt-trait:last-child { border-bottom: none; padding-bottom: 0; }
.sg-gt-trait__tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.sg-gt-trait__tag--s { background: var(--blue-lt); color: var(--blue); }
.sg-gt-trait__tag--w { background: rgba(60, 55, 55, 0.10); color: var(--ink); }
.sg-gt-trait__tag--t { background: var(--blue); color: var(--white); }
.sg-gt-trait__list { list-style: none; }
.sg-gt-trait__list li {
    font-size: 13px;
    line-height: 1.65;
    color: var(--ink);
    padding: 4px 0 4px 15px;
    position: relative;
}
/* 箇条書きの記号は ● */
.sg-gt-trait__list li::before {
    content: '●';
    position: absolute;
    left: 0;
    top: 4px;
    font-size: 9px;
    line-height: 1.9;
    color: var(--blue);
}
.sg-gt-trait__head {
    display: block;
    font-weight: 700;
}
/* 強みの本文。途中で切らずに最後まで出す */
.sg-gt-trait__body {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    line-height: 1.75;
    color: var(--ink-lt);
}

/* 結果画面のボタン */
.sg-gt-cta {
    display: block;
    width: 100%;
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    padding: 16px;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    margin-bottom: 10px;
    box-shadow: 0 4px 18px rgba(12, 50, 128, 0.28);
    transition: background 0.2s;
}
.sg-gt-cta:hover { background: var(--blue-dk); color: var(--white); }

.sg-gt-btn-outline {
    display: block;
    width: 100%;
    background: var(--white);
    color: var(--blue);
    border: 2.5px solid var(--blue);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    padding: 16px;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: all 0.2s;
    margin-bottom: 10px;
}
.sg-gt-btn-outline:hover { background: var(--blue); color: var(--white); }

/* スタート画面の「前回の結果を見る」。
   主役は「もう一度診断する」なので、一段控えめにして並べる */
.sg-gt-btn-last {
    margin-top: 10px;
    font-size: 14px;
    padding: 14px;
    border-width: 2px;
}

.sg-gt-btn-reset {
    display: block;
    width: 100%;
    background: var(--white);
    color: var(--blue);
    border: 2px solid var(--border);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    padding: 15px;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: all 0.2s;
}
.sg-gt-btn-reset:hover { border-color: var(--blue); background: var(--blue-lt); }

/* ---------------- 詳細レポート ---------------- */
.sg-gt-hero--detail { padding: 32px 24px; }
.sg-gt-hero__code--sm { gap: 7px; }
.sg-gt-hero__code--sm .sg-gt-hero__letter {
    width: 54px;
    height: 62px;
    border-radius: 12px;
    font-size: 28px;
    /* 詳細画面ではアニメーションさせない（原本どおり） */
    opacity: 1;
    animation: none;
}

.sg-gt-detail__body {
    font-size: 14px;
    line-height: 1.9;
    color: var(--ink);
    margin-bottom: 10px;
}
.sg-gt-detail__body:last-child { margin-bottom: 0; }

.sg-gt-ditem {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}
.sg-gt-ditem:first-child { padding-top: 0; }
.sg-gt-ditem:last-child { border-bottom: none; padding-bottom: 0; }
.sg-gt-ditem__title {
    font-size: 14px;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 5px;
}
.sg-gt-ditem__body {
    font-size: 13px;
    line-height: 1.75;
    color: var(--ink);
}
.sg-gt-ditem__body--strong {
    font-weight: 700;
    margin-bottom: 6px;
}
.sg-gt-dtag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.sg-gt-dtag--issue { background: rgba(60, 55, 55, 0.10); color: var(--ink); }
.sg-gt-dtag--fix   { background: var(--blue-lt); color: var(--blue); }

/* 無料体験CTA */
.sg-gt-trial {
    background: var(--blue);
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    margin-bottom: 14px;
}
.sg-gt-trial__eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 12px;
}
.sg-gt-trial__title {
    color: var(--white);
    font-size: 21px;
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1.4;
    white-space: pre-line;
}
.sg-gt-trial__sub {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 22px;
}
.sg-gt-trial__btn {
    display: block;
    background: var(--white);
    color: var(--blue);
    border-radius: 13px;
    font-size: 16px;
    font-weight: 900;
    padding: 17px;
    text-decoration: none;
    transition: opacity 0.2s;
    letter-spacing: 0.3px;
}
.sg-gt-trial__btn:hover { opacity: 0.9; color: var(--blue); }
.sg-gt-naming[hidden] { display: none; }
.sg-gt-naming .sg-gt-trial__btn { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.sg-gt-naming .sg-gt-trial__btn:disabled { opacity: .6; cursor: wait; }
.sg-gt-naming .sg-gt-trial__eyebrow { color: rgba(255, 255, 255, .8); font-size: 12px; }
.sg-gt-naming .sg-gt-trial__sub { color: rgba(255, 255, 255, .9); font-size: 14px; line-height: 1.8; }
.sg-gt-naming .sg-gt-trial__note { color: rgba(255, 255, 255, .8); font-size: 12px; line-height: 1.7; }
.sg-gt-trial__note {
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    margin-top: 10px;
}

.sg-gt-empty,
.sg-gt-noscript {
    background: var(--white);
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    font-size: 14px;
    line-height: 1.8;
    color: var(--ink-lt);
    box-shadow: var(--shadow);
}

.sg-gt-note {
    margin-top: 24px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--ink-lt);
}

.sg-gt-back {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
}
.sg-gt-back a { color: var(--blue); font-weight: 600; }

/* ---------------- 動作確認用（?sgdebug=1 のときだけ表示） ---------------- */
.sg-gt-debug {
    background: #1e1e2e;
    color: #d6f5d6;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.7;
    word-break: break-all;
}
.sg-gt-debug strong { display: block; color: #ffd479; margin-bottom: 6px; }

/* ============================================================
   もう一方の診断への相互リンクカード
   /diagnosis/（ゴルフパターン診断）と /golf-type/（SGPT診断）は
   それぞれ独立したベースページで、末尾にこのカードでお互いへ渡す。
   両方のページで読み込まれるので、色は変数に頼らず直接指定する。
   ============================================================ */
.sg-xlink {
    display: block;
    margin-top: 34px;
    padding: 22px 20px 20px;
    border: 2px solid rgba(12, 50, 128, 0.16);
    border-radius: 16px;
    background: #fff;
    color: #0C3280;
    text-align: center;
}
.sg-xlink:hover {
    color: #0C3280;
    border-color: rgba(12, 50, 128, 0.36);
}
.sg-xlink__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #7A7474;
}
.sg-xlink__title {
    display: block;
    margin-top: 8px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1.5px;
    line-height: 1.2;
}
.sg-xlink__desc {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.8;
    color: #7A7474;
}
.sg-xlink__cta {
    display: inline-block;
    margin-top: 16px;
    min-width: 170px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: #0C3280;
    padding: 11px 24px;
    border-radius: 999px;
}

/* ---------------- 画面が狭いとき ---------------- */
@media (max-width: 380px) {
    .sg-gt-start__title { font-size: 44px; }
    .sg-gt-hero__letter { width: 52px; height: 60px; font-size: 27px; }
    .sg-gt-ans__btn { padding: 16px; font-size: 13px; }

    /* 画像を載せた結果ヒーローは、4文字が2段に折れないところまで詰める */
    .sg-gt-hero--figure .sg-gt-hero__letter { width: 46px; height: 52px; font-size: 24px; }
    .sg-gt-hero__figure { max-width: 210px; }
    .sg-gt-hero__figure img { max-height: 240px; }
}

/* 背の低い端末では、画像で結果コードが押し出されないように抑える */
@media (max-height: 700px) {
    .sg-gt-hero__figure { max-width: 200px; }
    .sg-gt-hero__figure img { max-height: 210px; }
}

/* 社内の合言葉フォーム */
.sg-gt-gate h1 { color: var(--blue); font-size: clamp(22px, 5vw, 30px); line-height: 1.6; }
.sg-gt-gate p { line-height: 1.9; }
.sg-gt-gate label { display: block; font-weight: 700; margin: 24px 0 8px; }
.sg-gt-gate input { box-sizing: border-box; width: 100%; font-size: 18px; padding: 14px; border: 1px solid #bbc5d8; border-radius: 8px; margin-bottom: 20px; }
.sg-gt-gate button { width: 100%; }
.sg-gt-cta:disabled { opacity: .6; cursor: wait; }
.sg-gt-scope [hidden] { display: none !important; }
