/* ---- 初心者ガイド専用（tg-プレフィックス）。配色はサイト標準（インク/ピンク/水色） ---- */
#main .tg-note {
    display: flex; gap: 10px; align-items: flex-start;
    background: #fff6e8; border: 1px solid #f2d8ab;
    border-radius: 12px; padding: 12px 14px; margin: 14px 0; line-height: 1.8;
}
#main .tg-note-icon { flex-shrink: 0; font-size: 1.2em; }
#main .tg-official { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
#main a.tg-obtn {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; border: 1px solid #dde3ea; border-radius: 999px;
    padding: 7px 16px; text-decoration: none; color: #1f2937; font-weight: 700; font-size: .9em;
    box-shadow: 0 1px 2px rgba(16,24,40,.05); transition: border-color .15s, box-shadow .15s;
}
#main a.tg-obtn:hover { border-color: #5fb4df; box-shadow: 0 4px 10px rgba(0,0,0,.1); }
#main a.tg-obtn::after { content: "↗"; color: #5fb4df; font-weight: 700; }

/* 本文の左右余白：スマホでは #main が全幅(左右余白0)になり、本文の余白は
   各コンテンツ側で持つ設計（他ページはカード/テーブルが持つ）。ガイドは素の
   <p> を直接置くため、本文全体を .tg-body で包んで他ページのカードと同じ約15px
   を確保する。見出しの帯だけは余白ぶん外へ広げて全幅表示を保つ。 */
#main > p { padding-left: 15px; padding-right: 15px; }
#main .tg-body { padding-left: 15px; padding-right: 15px; }

/* セクション見出し：AKBピンクの太い左バー＋淡ピンクの帯でしっかり目立たせる。
   他のカードと同じく左右15px内側で揃え、角丸で浮かせる（画面端に密着させない） */
#main .tg-h {
    display: flex; align-items: center; gap: 10px;
    margin: 42px 0 16px; padding: 9px 12px 9px 13px;
    font-size: 1.34em; font-weight: 800; color: #1f2937; letter-spacing: .01em;
    background: linear-gradient(90deg, #ffe1ee 0%, #fff2f7 55%, rgba(255,242,247,0) 100%);
    border-left: 5px solid #e0568f;
    border-radius: 0 8px 8px 0;
}

/* STEPフロー（縦タイムライン） */
#main .tg-flow { position: relative; margin: 14px 0 6px; padding-left: 4px; }
#main .tg-step { position: relative; display: flex; gap: 14px; padding: 0 0 22px 0; }
#main .tg-step:last-child { padding-bottom: 4px; }
#main .tg-step::before {
    content: ""; position: absolute; left: 21px; top: 44px; bottom: -2px; width: 2px;
    background: #f4c7db;
}
#main .tg-step:last-child::before { display: none; }
#main .tg-step-no {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex-shrink: 0;
    background: linear-gradient(135deg, #ff8fc0, #e0568f); color: #fff;
    border-radius: 50%; font-weight: 800; font-size: .82em; line-height: 1.1;
    box-shadow: 0 2px 6px rgba(224,86,143,.35); z-index: 1;
    flex-direction: column;
}
#main .tg-step-no small { font-size: .62em; font-weight: 700; letter-spacing: .08em; }
#main .tg-step-body {
    flex: 1; min-width: 0; background: #fff; border: 1px solid #e3e7ec; border-radius: 12px;
    padding: 11px 15px; box-shadow: 0 1px 2px rgba(16,24,40,.05);
}
#main .tg-step-title { font-weight: 800; color: #1f2937; margin-bottom: 3px; }
#main .tg-step-desc { font-size: .9em; color: #4b5563; line-height: 1.8; }
#main .tg-step-desc a { color: #b1487c; font-weight: 600; }
#main .tg-ul { margin: 6px 0 4px; padding-left: 1.2em; }
#main .tg-ul li { margin: 3px 0; line-height: 1.75; }

/* 応募枠リスト（STEP3内） */
#main .tg-slots { display: grid; gap: 6px; margin-top: 9px; }
#main .tg-slot {
    background: #f7f9fb; border: 1px solid #e6ebf1; border-left: 3px solid #5fb4df;
    border-radius: 0 8px 8px 0; padding: 7px 11px;
}
#main .tg-slot > b { display: block; font-size: .9em; color: #1f2937; margin-bottom: 1px; }
#main .tg-slot > span { display: block; font-size: .82em; color: #6b7484; line-height: 1.7; }
#main .tg-slot span b { color: #4b5563; }   /* 説明文内の強調はインラインのまま（改行しない） */
#main .tg-slot span a { color: #b1487c; font-weight: 600; }
#main .tg-slot-note {
    background: #f2f9fd; border: 1px solid #cfe6f4; border-radius: 8px;
    padding: 8px 12px; margin-top: 8px; font-size: .84em; color: #35617a; line-height: 1.7;
}
#main .tg-slot-note b { color: #23678c; }

/* 図解（SVG） */
#main .tg-figwrap {
    background: #fff; border: 1px solid #e3e7ec; border-radius: 12px;
    padding: 12px 14px 14px; margin: 12px 0; box-shadow: 0 1px 2px rgba(16,24,40,.05);
}
#main .tg-figcap { font-size: .82em; font-weight: 700; color: #5b6570; margin-bottom: 8px; }
#main .tg-figscroll { overflow-x: auto; }
#main .tg-fig { display: block; width: 100%; min-width: 480px; height: auto; }

/* 当日タイムライン（時刻バッジ） */
#main .tg-day { margin: 14px 0 6px; }
#main .tg-titem { display: flex; gap: 12px; align-items: stretch; }
#main .tg-time {
    flex-shrink: 0; width: 96px; display: flex; align-items: flex-start; justify-content: center;
}
#main .tg-time span {
    background: #e0f1fb; color: #23678c; border: 1px solid #b9dcf0;
    border-radius: 999px; padding: 3px 10px; font-size: .78em; font-weight: 700; white-space: nowrap;
}
#main .tg-tline { position: relative; flex-shrink: 0; width: 14px; }
#main .tg-tline::before {
    content: ""; position: absolute; left: 6px; top: 4px; bottom: -4px; width: 2px; background: #cfe4f2;
}
#main .tg-tline::after {
    content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 10px;
    border-radius: 50%; background: #5fb4df; box-shadow: 0 0 0 3px #e0f1fb;
}
#main .tg-titem:last-child .tg-tline::before { display: none; }
#main .tg-tbody { flex: 1; min-width: 0; padding: 0 0 18px 2px; }
#main .tg-tbody b { color: #1f2937; }
#main .tg-tbody p { margin: 2px 0 0; font-size: .9em; color: #4b5563; line-height: 1.8; }

/* アクセス（横ステップ→スマホ縦） */
#main .tg-access {
    display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px 16px; margin: 12px 0 8px;
}
#main .tg-acard {
    background: #fff; border: 1px solid #e3e7ec; border-radius: 12px; padding: 12px 10px;
    text-align: center; box-shadow: 0 1px 2px rgba(16,24,40,.05); position: relative;
}
#main .tg-acard:not(:last-child)::after {
    content: "→"; position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
    color: #c3ccd6; font-weight: 700; z-index: 1;
}
#main .tg-aicon { font-size: 1.7em; display: block; margin-bottom: 4px; }
#main .tg-alabel { font-weight: 700; font-size: .88em; color: #1f2937; line-height: 1.5; }
#main .tg-asub { font-size: .74em; color: #8a93a2; }

/* 持ち物チェックリスト */
#main .tg-checks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin: 12px 0; }
#main .tg-check {
    display: flex; gap: 9px; align-items: flex-start;
    background: #fff; border: 1px solid #e3e7ec; border-radius: 10px; padding: 10px 13px;
    box-shadow: 0 1px 2px rgba(16,24,40,.05);
}
#main .tg-check-icon { flex-shrink: 0; }
#main .tg-check > span > b { display: block; color: #1f2937; font-size: .95em; }  /* 見出しの太字だけブロック */
#main .tg-check p { margin: 1px 0 0; font-size: .8em; color: #6b7484; line-height: 1.6; }
#main .tg-check p b { color: #4b5563; }   /* 説明文内の強調はインライン（改行しない） */

/* 内部リンク（次の一歩） */
#main .tg-next { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin: 12px 0; }
#main a.tg-ncard {
    display: flex; align-items: baseline; background: #fff;
    border: 1px solid #e3e7ec; border-radius: 10px; padding: 10px 14px;
    text-decoration: none; color: #1f2937; font-weight: 600; font-size: .92em;
    box-shadow: 0 1px 2px rgba(16,24,40,.05); transition: border-color .15s, box-shadow .15s;
}
#main a.tg-ncard::after { content: "›"; margin-left: auto; padding-left: 8px; color: #c3ccd6; font-weight: 700; }
#main a.tg-ncard:hover { border-color: #5fb4df; box-shadow: 0 4px 10px rgba(0,0,0,.1); }

/* FAQ */
#main .tg-faq { margin: 12px 0; }
#main .tg-qa { background: #fff; border: 1px solid #e3e7ec; border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
#main .tg-q { font-weight: 800; color: #1f2937; display: flex; gap: 8px; }
#main .tg-q::before { content: "Q"; color: #e0568f; font-weight: 800; }
#main .tg-a { margin: 5px 0 0; font-size: .92em; color: #4b5563; line-height: 1.8; display: flex; gap: 8px; }
#main .tg-a::before { content: "A"; color: #5fb4df; font-weight: 800; }
#main .tg-a a { color: #b1487c; font-weight: 600; }

#main .tg-update { text-align: right; font-size: .78em; color: #99a2ae; margin: 4px 0 0; }

@media (max-width: 600px) {
    #main .tg-access { grid-template-columns: 1fr; }
    #main .tg-acard { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 13px; }
    #main .tg-acard:not(:last-child)::after { content: "↓"; right: auto; left: 24px; top: auto; bottom: -14px; transform: none; }
    #main .tg-aicon { margin-bottom: 0; }
    #main .tg-checks { grid-template-columns: 1fr; }
    #main .tg-next { grid-template-columns: 1fr; }
    #main .tg-time { width: 78px; }
}
