/*
Theme Name: G Force マイページ
Template: cubetheme
Version: 1.0.0
Text Domain: gforce-mypage
*/

/*
  方針：cubetheme の既存クラスをそのまま使う。
  マイページ固有のもの（stats, timeline, alert 等）だけ追加。
*/

/* テキスト折り返しのベースルール */
.ly_content,
.bl_chapter_text,
.gf_item,
.gf_form {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* チェックボックス・ラジオボタンのリセット */
input[type="checkbox"],
input[type="radio"] {
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #043E80;
}

/* 外部リンクメニュー項目 */
.gf_link_external::after { display: none !important; }

.gf_icon_external {
    position: absolute;
    right: 8px;
    top: 7px;
    width: 12px;
    height: 12px;
}

/* 左サイドバーロゴ */
.bl_leftLogo img {
    width: 407px;
    height: auto;
}

/* 親テーマの固定SNSボタンを非表示 */
.bl_menuSnsList { display: none !important; }

/* パンくずリスト — PC表示でも常に表示 */
.el_breadcrumb_wrapper {
    display: block !important;
}



/* ========================================
   Identity Bar（マイページ最上部）
   ======================================== */
.gf_identity {
    background: #043E80;
    padding: 24px 28px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gf_identity_left { flex: 1; }

.gf_identity_type {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gf_identity .gf_badge--navy {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.gf_identity_label {
    display: block;
    font-size: 1.0rem;
    font-weight: 400;
    opacity: 0.6;
    letter-spacing: 0.05em;
    margin-bottom: 0;
    padding-top: 4px;
}

.gf_identity_name {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.gf_identity_right {
    text-align: right;
    flex-shrink: 0;
}

.gf_identity_exp_label {
    font-size: 1.0rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    margin: 0 0 2px;
    letter-spacing: 0.05em;
}

.gf_identity_exp_value {
    font-family: "Roboto", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px;
    letter-spacing: 0.03em;
}

.gf_identity_exp_days {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.gf_identity_exp_days strong {
    color: #fff;
    font-family: "Roboto", sans-serif;
}

/* 会員カード画像 */
.gf_membership_card {
    margin-bottom: 32px;
    text-align: center;
}

.gf_membership_card img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.gf_membership_card_label {
    font-size: 1.0rem;
    color: #999;
    margin: 12px 0 0;
    text-align: center;
    letter-spacing: 0.05em;
}

.gf_membership_card_name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #043E80;
    margin: 2px 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gf_membership_card_exp {
    font-size: 1.2rem;
    color: #666;
    margin: 10px 0 0;
    font-family: "Roboto", "Noto Sans JP", sans-serif;
}

.gf_identity_exp_days_inline { display: none; }

@media (max-width: 480px) {
    .gf_identity { flex-direction: column; align-items: flex-start; gap: 16px; }
    .gf_identity_right { text-align: left; }
    .gf_identity_exp_days { display: none; }
    .gf_identity_exp_days_inline {
        display: inline;
        font-size: 1.2rem;
        color: rgba(255,255,255,0.6);
        font-weight: 400;
    }
}

/* ========================================
   Alert（マイページ固有）
   ======================================== */
.gf_alert {
    padding: 20px 24px;
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

.gf_alert strong { display: block; margin-bottom: 4px; }
.gf_alert--info    { background: #E5EBF3; color: #043E80; }
.gf_alert--warning { background: #FFF8E1; color: #6B5900; border: 1px solid #F5D882; }
.gf_alert a { color: #043E80; font-weight: 700; }

/* ========================================
   Badge
   ======================================== */
.gf_badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.gf_badge--navy   { background: #E8EDF3; color: #043E80; }
.gf_badge--green  { background: #EDF7ED; color: #2E7D32; }
.gf_badge--yellow { background: #FFF8E1; color: #8B6914; }

/* ========================================
   Button
   ======================================== */
.gf_btn {
    display: inline-block;
    padding: 14px 36px;
    border: none;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    line-height: 1;
    transition: opacity 0.2s;
}

.gf_btn:hover { opacity: 0.7; }
.gf_btn--primary { background: #043E80; color: #fff; }
.gf_btn--gold    { background: #F5B500; color: #000; }
.gf_btn--outline { background: #fff; border: 1px solid #CCC; color: #333; }
.gf_btn--danger  { background: #B71C1C; color: #fff; }
.gf_btn--sm      { padding: 10px 20px; font-size: 1.2rem; }
.gf_btn--block   { display: block; width: 100%; }

/* ========================================
   Nav Grid — アプリ風のメニューグリッド
   ======================================== */
.gf_nav_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gf_nav_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    aspect-ratio: 1;
    padding: 8px 4px;
    font-size: 1.0rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-align: center;
    background: #043E80;
    transition: opacity 0.2s;
    line-height: 1.3;
}

.gf_nav_item:hover { opacity: 0.85; }

.gf_nav_item--gold {
    background: #F5B500 !important;
    color: #000 !important;
}

.gf_nav_icon {
    width: 22px;
    height: 22px;
}

/* nav grid は常に4カラム */

/* ========================================
   Stats — 色付きカード
   ======================================== */
.gf_stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gf_stat {
    padding: 20px 24px;
    background: #E5EBF3;
}

.gf_stat_value {
    font-family: "Roboto", sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #043E80;
    margin: 0 0 4px;
    line-height: 1;
}

.gf_stat_label { font-size: 1.2rem; color: #4A6A8A; margin: 0; }

.gf_stat--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.gf_stat--link:hover { background: #D8E2EE; }

/* 展開パネル共通（内訳・フォーム等） */
.gf_expand_panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.gf_expand_panel.is-open {
    overflow: visible;
}

.gf_stat_breakdown {
    background: #F5F7FA;
    padding: 12px 16px;
    margin-top: 10px;
}

.gf_stat_breakdown_row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #E8E8E8;
    font-size: 1.3rem;
}

.gf_stat_breakdown_row:last-child { border-bottom: none; }
.gf_stat_breakdown_label { color: #666; }
.gf_stat_breakdown_value { font-weight: 700; color: #043E80; }

/* お問い合わせページ件数サマリー */
.gf_case_summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.gf_case_summary_heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #043E80;
    margin: 0 0 8px;
    letter-spacing: 0.03em;
}

.gf_case_summary_row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #F0F0F0;
    font-size: 1.3rem;
}

.gf_case_summary_row:last-child { border-bottom: none; }
.gf_case_summary_label { color: #666; }
.gf_case_summary_value { font-weight: 700; color: #043E80; }

/* カテゴリ・種別一覧（2カラム：左カテゴリ名 / 右種別リスト） */
.gf_type_list_row {
    display: flex;
    border-bottom: 1px solid #E8E8E8;
}

.gf_type_list_row:first-child {
    border-top: 1px solid #E8E8E8;
}

.gf_type_list_cat {
    width: 100px;
    flex-shrink: 0;
    padding: 14px 16px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #043E80;
    background: #F5F7FA;
    display: flex;
    align-items: flex-start;
}

@media (max-width: 480px) {
    .gf_type_list_row {
        flex-direction: column;
    }

    .gf_type_list_cat {
        width: 100%;
        padding: 10px 16px;
    }
}

.gf_type_list_items {
    flex: 1;
    padding: 6px 0;
}

.gf_type_list_item {
    padding: 3px 16px 3px 28px;
    font-size: 1.3rem;
    color: #333;
    line-height: 1.6;
    position: relative;
    overflow-wrap: break-word;
    word-break: break-word;
}

.gf_type_list_item::before {
    content: '・';
    position: absolute;
    left: 14px;
    color: #999;
}

/* 件数一覧（履歴ページ用） */
.gf_count_list_item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 16px;
    font-size: 1.3rem;
    color: #333;
    line-height: 1.6;
    border-bottom: 1px solid #F0F0F0;
}

.gf_count_list_item:last-child { border-bottom: none; }

.gf_count_list_label { flex: 1; min-width: 0; overflow-wrap: break-word; word-break: break-word; }

.gf_count_list_value {
    flex-shrink: 0;
    font-weight: 700;
    color: #043E80;
    margin-left: 16px;
}

/* （お問い合わせステータスは gf_badge で統一） */

/* ========================================
   Active Case — 目立つカード
   ======================================== */
.gf_active_case {
    padding: 20px 24px;
    background: #FFF8E1;
    border: 1px solid #F5D882;
}

.gf_active_case_title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 6px;
}

.gf_active_case_meta {
    font-size: 1.3rem;
    color: #8B6914;
    margin: 0 0 12px;
}

/* ========================================
   Dashboard — Upcoming
   ======================================== */
.gf_upcoming {
    padding: 24px 28px;
    background: #F5F7FA;
    margin-bottom: 48px;
}

.gf_upcoming_label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #999;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.gf_upcoming_title { font-size: 1.6rem; font-weight: 700; color: #000; margin: 0 0 4px; }
.gf_upcoming_meta  { font-size: 1.3rem; color: #666; margin: 0; }

/* ========================================
   Dashboard — Timeline
   ======================================== */
.gf_timeline_item {
    padding: 14px 0;
    border-bottom: 1px solid #F0F0F0;
    display: flex;
    gap: 20px;
    align-items: baseline;
    font-size: 1.4rem;
}

.gf_timeline_item:first-child { padding-top: 0; }

.gf_timeline_date {
    font-family: "Roboto", sans-serif;
    font-size: 1.2rem;
    color: #BBB;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    width: 90px;
}

.gf_timeline_text { color: #333; line-height: 1.6; }

/* リンク矢印（一覧を見る等） */
.gf_link_arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #043E80;
    text-decoration: none;
    transition: opacity 0.2s;
}

.gf_link_arrow:hover { opacity: 0.7; }

.gf_link_arrow::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 2px solid #043E80;
    border-bottom: 2px solid #043E80;
    transform: rotate(-45deg);
}

/* (nav grid moved to top) */

/* ========================================
   Item（リスト行 — 集会・ケース・履歴等）
   ======================================== */
.gf_item {
    padding: 20px 24px;
    margin-bottom: 12px;
    border: 1px solid #E8E8E8;
    background: #fff;
}

/* bl_chapter_titleの直後のgf_itemに上余白を確保 */
.bl_chapter_title + .gf_item,
.bl_chapter_title + .bl_chapter_text > .gf_item:first-child {
    margin-top: 20px;
}

.gf_item--clickable {
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    padding: 20px 44px 20px 24px;
    position: relative;
}

.gf_item--clickable::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 24px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #CCC;
    border-bottom: 2px solid #CCC;
    transform: rotate(45deg);
    transition: transform 0.25s ease, border-color 0.15s;
}

.gf_item--clickable.is-expanded::after {
    transform: rotate(-135deg);
    top: 28px;
}

.gf_item--clickable:hover { background: #FAFAFA; border-color: #CCC; }
.gf_item--clickable:hover::after { border-color: #043E80; }

.gf_item_top { display: flex; gap: 8px; margin-bottom: 6px; }
.gf_item_title { font-size: 1.5rem; font-weight: 600; color: #000; line-height: 1.5; }
.gf_item_meta { font-size: 1.3rem; color: #999; line-height: 1.6; }
.gf_item_actions { margin-top: 14px; }

/* 日付付きアイテム — 日付を上に大きく */
/* 日付+バッジ横並び行 */
.gf_item_dateline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.gf_item_date {
    font-family: "Roboto", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #043E80;
    letter-spacing: 0.03em;
}

.gf_item_detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, margin 0.25s ease, padding 0.25s ease;
}

.gf_item--clickable.is-expanded .gf_item_detail {
    max-height: 500px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #EBEBEB;
    overflow: visible;
}

.gf_detail_row { margin-bottom: 10px; }
.gf_detail_row:last-child { margin-bottom: 0; }
.gf_detail_label { font-size: 1.1rem; font-weight: 600; color: #999; margin-bottom: 2px; }
.gf_detail_value { font-size: 1.4rem; color: #000; line-height: 1.7; overflow-wrap: break-word; word-break: break-word; }

/* 動画埋め込み */
.gf_video_embed {
    margin-top: 16px;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.gf_video_embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ========================================
   Form
   ======================================== */
.gf_form_group { margin-bottom: 24px; }

.gf_form_label {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.gf_form_label span {
    white-space: nowrap;
}

.gf_form_input,
.gf_form_select,
.gf_form_textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #DDD;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.5rem;
    color: #000;
    background: #fff;
    transition: border-color 0.2s;
}

.gf_form_input:focus,
.gf_form_select:focus,
.gf_form_textarea:focus { outline: none; border-color: #043E80; box-shadow: 0 0 0 3px rgba(4, 62, 128, 0.1); }

.gf_form_textarea { min-height: 140px; resize: vertical; }
.gf_form_row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gf_form_actions { display: flex; gap: 12px; margin-top: 24px; }

.gf_form_panel {
    border: 1px solid #043E80;
    padding: 32px;
    margin-bottom: 40px;
}

/* ========================================
   Accordion
   ======================================== */
.gf_accordion_trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 20px;
    background: #F8F8F8;
    border: 1px solid #E8E8E8;
    border-bottom: none;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    text-align: left;
}

.gf_accordion_trigger:first-of-type { border-top: 1px solid #E8E8E8; }
.gf_accordion_trigger:last-of-type,
.gf_accordion_trigger.is-open { border-bottom: 1px solid #E8E8E8; }

.gf_accordion_trigger::after { content: '+'; font-size: 1.6rem; color: #999; }
.gf_accordion_trigger.is-open::after { content: '\2212'; }

/* 受付窓口トリガー */
.gf_desk_trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #E8E8E8;
    border-bottom: none;
    font-family: "Noto Sans JP", sans-serif;
    cursor: pointer;
    text-align: left;
}

.gf_desk_trigger:first-of-type { border-top: 1px solid #E8E8E8; }
.gf_desk_trigger:last-of-type,
.gf_desk_trigger.is-open { border-bottom: 1px solid #E8E8E8; }

.gf_desk_trigger strong {
    font-size: 1.4rem;
    color: #043E80;
}

.gf_desk_trigger_sub {
    font-size: 1.2rem;
    font-weight: 400;
    color: #666;
    margin-left: 2px;
}

.gf_desk_trigger_arrow {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid #043E80;
    border-bottom: 2px solid #043E80;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

.gf_desk_trigger.is-open .gf_desk_trigger_arrow {
    transform: rotate(-135deg);
}

.gf_desk_trigger > span:first-child {
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.gf_desk_trigger:hover { background: #FAFAFA; }

.gf_accordion_body {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    border: 1px solid #E8E8E8;
    border-top: none;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.gf_accordion_body.is-open { padding: 24px 20px; overflow: visible; }

/* ========================================
   Plan（党員・サポーター選択）
   ======================================== */
.gf_plans {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gf_plan {
    border: 2px solid #E8E8E8;
    display: flex;
    overflow: hidden;
}

.gf_plan_header {
    flex-shrink: 0;
    width: 160px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.gf_plan_header--dark { background: #043E80; color: #fff; }
.gf_plan_header--gold { background: #F5B500; color: #000; }

.gf_plan_name  { font-size: 2.0rem; font-weight: 700; margin: 0 0 6px; }
.gf_plan_price { font-size: 1.2rem; margin: 0; opacity: 0.85; }

.gf_plan_content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gf_plan_body {
    font-size: 1.3rem;
    color: #666;
    line-height: 1.8;
    margin: 0 0 20px;
}

.gf_plan_features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.gf_plan_features li {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.6;
    padding: 4px 0 4px 20px;
    position: relative;
}

.gf_plan_features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #043E80;
    font-weight: 700;
}

.gf_plan_action { padding: 0; }

@media (max-width: 480px) {
    .gf_plan { flex-direction: column; }
    .gf_plan_header { width: 100%; padding: 20px; }
}

/* ========================================
   Settings — Auth Cards
   ======================================== */
.gf_auth_cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gf_auth_card {
    border: 1px solid #E8E8E8;
    overflow: hidden;
}

.gf_auth_card--active {
    border-color: #043E80;
    background: #043E80;
    color: #fff;
}

.gf_auth_card--inactive {
    border-color: #E8E8E8;
    background: #FAFAFA;
}

.gf_auth_card_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    font-size: 1.4rem;
    font-weight: 700;
}

.gf_auth_card--active .gf_auth_card_header { color: #fff; }
.gf_auth_card--inactive .gf_auth_card_header { color: #666; }

.gf_auth_card_status {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 4px 14px;
    letter-spacing: 0.03em;
}

.gf_auth_card--active .gf_auth_card_status {
    background: #fff;
    color: #043E80;
}

.gf_auth_card--inactive .gf_auth_card_status {
    background: #CCC;
    color: #fff;
}

.gf_auth_card_body { padding: 20px; }

.gf_auth_card--active .gf_auth_card_body { background: #E5EBF3; }

.gf_auth_card_desc {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.gf_auth_card--inactive .gf_auth_card_desc { color: #999; }

.gf_auth_card_value {
    font-size: 1.4rem;
    color: #043E80;
    font-weight: 700;
    font-family: "Roboto", "Noto Sans JP", sans-serif;
    margin-bottom: 14px;
}

.gf_auth_card--inactive .gf_auth_card_value { color: #999; }

/* 電話番号 3分割入力 */
.gf_phone_inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gf_phone_part {
    flex: 1;
    text-align: center;
    font-family: "Roboto", sans-serif;
    letter-spacing: 0.1em;
}

.gf_phone_sep {
    font-size: 1.6rem;
    color: #CCC;
    flex-shrink: 0;
}


/* ========================================
   Settings — Matching Info Grid
   ======================================== */
.gf_matching_grid {
    display: flex;
    flex-direction: column;
}

.gf_matching_item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #F0F0F0;
}

.gf_matching_item:first-child { border-top: 1px solid #F0F0F0; }

.gf_matching_item_label {
    width: 110px;
    flex-shrink: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #999;
}

.gf_matching_item_value {
    flex: 1;
    font-size: 1.4rem;
    font-weight: 600;
    color: #000;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.gf_matching_item_action {
    flex-shrink: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #043E80;
    text-decoration: none;
}

.gf_matching_item_action:hover { text-decoration: underline; }

.gf_matching_item_action--disabled {
    color: #CCC;
    cursor: default;
}

.gf_matching_item_action--disabled:hover { text-decoration: none; }

@media (max-width: 480px) {
    .gf_matching_item {
        flex-wrap: wrap;
        gap: 4px;
    }
    .gf_matching_item_label { width: 100%; }
    .gf_matching_item_action { margin-left: auto; }
}

/* Matching Pattern Diagram */
.gf_matching_pattern {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gf_matching_pattern_item {
    border: 1px solid #E8E8E8;
    padding: 20px;
}

.gf_matching_pattern_head {
    font-size: 1.2rem;
    font-weight: 700;
    color: #043E80;
    margin-bottom: 12px;
}

.gf_matching_pattern_body {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.gf_matching_tag {
    display: inline-block;
    padding: 6px 14px;
    background: #E5EBF3;
    color: #043E80;
    font-size: 1.3rem;
    font-weight: 600;
}

.gf_matching_tag_plus {
    font-size: 1.4rem;
    font-weight: 700;
    color: #CCC;
}

.gf_matching_pattern_note {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #8B6914;
    background: #FFF8E1;
    display: inline-block;
    padding: 4px 12px;
}

.gf_matching_pattern_note--ok {
    color: #2E7D32;
    background: #EDF7ED;
}

/* ========================================
   Settings — Withdrawal
   ======================================== */
.gf_withdrawal_confirm {
    border: 1px solid #E8E8E8;
    overflow: hidden;
}

.gf_withdrawal_confirm_head {
    background: #F5F7FA;
    padding: 12px 20px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #666;
    letter-spacing: 0.03em;
}

.gf_withdrawal_confirm_body { padding: 20px; }

.gf_withdrawal_confirm_row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #F5F5F5;
}

.gf_withdrawal_confirm_row:last-child { border-bottom: none; }

.gf_withdrawal_confirm_label {
    width: 100px;
    flex-shrink: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #999;
}

.gf_withdrawal_confirm_value {
    font-size: 1.4rem;
    font-weight: 600;
    color: #000;
}

.gf_withdrawal_confirm_action {
    padding: 20px;
    border-top: 1px solid #F0F0F0;
}

/* ========================================
   Member Card（プロフィール最上部）
   ======================================== */
.gf_member_card {
    border: 1px solid #043E80;
    overflow: hidden;
}

.gf_member_card_header {
    background: #043E80;
    color: #fff;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gf_member_card_type {
    font-size: 2.0rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.gf_member_card_number {
    font-family: "Roboto", sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    opacity: 0.8;
    letter-spacing: 0.05em;
}

.gf_member_card_body {
    background: #E5EBF3;
    padding: 16px 24px;
}

.gf_member_card_row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(4, 62, 128, 0.1);
    font-size: 1.3rem;
}

.gf_member_card_row:last-child { border-bottom: none; }

.gf_member_card_label {
    color: #4A6A8A;
    flex-shrink: 0;
}

.gf_member_card_value {
    font-weight: 600;
    color: #043E80;
    text-align: right;
}

.gf_member_card_footer {
    padding: 12px 24px;
    font-size: 1.2rem;
    color: #999;
    background: #F5F7FA;
    line-height: 1.6;
}

/* ========================================
   Donate Card
   ======================================== */
.gf_donate_card {
    border: 1px solid #E8E8E8;
    overflow: hidden;
}

.gf_donate_card--personal,
.gf_donate_card--corporate { border-color: #043E80; }

.gf_donate_card_header {
    padding: 14px 24px;
    font-size: 1.4rem;
    font-weight: 700;
}

.gf_donate_card_header--navy { background: #043E80; color: #fff; }
.gf_donate_card_header--gray { background: #F0F0F0; color: #666; }

.gf_donate_card_body { padding: 28px 24px; }

/* チェックボックスラベル */
.gf_form_check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1.4rem;
    color: #000;
    cursor: pointer;
    line-height: 1.5;
}

.gf_form_check input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* ========================================
   Side Nav Toggle
   ======================================== */
.bl_menuPageList_link--parent {
    cursor: pointer;
    position: relative;
    padding-right: 40px !important;
}

.bl_menuPageList_link--parent::after {
    content: '+' !important;
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-family: "Roboto", sans-serif !important;
    font-size: 1.8rem !important;
    font-weight: 300 !important;
    color: #043E80 !important;
    line-height: 1 !important;
    display: inline !important;
    width: auto !important; height: auto !important;
    background: none !important; border: none !important;
}

.bl_menuPageList_link--parent.is-open::after { content: '\2212' !important; }

.bl_menuPageList > .bl_menuPageList_item > ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.bl_menuPageList > .bl_menuPageList_item > ul.is-open { overflow: visible; }

/* ========================================
   Restricted
   ======================================== */
.gf_restricted { opacity: 0.35; pointer-events: none; }

.gf_restricted_notice {
    padding: 16px 20px;
    background: #F5F7FA;
    border-left: 3px solid #043E80;
    font-size: 1.4rem;
    color: #043E80;
    margin-bottom: 32px;
}

/* ========================================
   Login Flow
   ======================================== */
.gf_login_wrap { max-width: 440px; margin: 0 auto; padding: 56px 24px; }
.gf_login_logo { text-align: center; margin-bottom: 48px; }
.gf_login_logo img { height: 48px; }
.gf_login_title { font-size: 2.0rem; font-weight: 700; color: #043E80; text-align: center; margin: 0 0 8px; }
.gf_login_sub { font-size: 1.3rem; color: #999; text-align: center; margin-bottom: 40px; line-height: 1.7; }
.gf_login_method { border: 1px solid #E8E8E8; padding: 28px; margin-bottom: 16px; }
.gf_login_method_title { font-size: 1.4rem; font-weight: 700; color: #000; margin: 0 0 4px; }
.gf_login_method_desc { font-size: 1.2rem; color: #999; margin: 0 0 20px; }
.gf_login_or { display: flex; align-items: center; gap: 12px; margin: 24px 0; font-size: 1.2rem; color: #999; }
.gf_login_or::before, .gf_login_or::after { content: ''; flex: 1; height: 1px; background: #E8E8E8; }
.gf_login_links { margin-top: 40px; }
.gf_login_links a { display: block; padding: 12px 0; font-size: 1.3rem; color: #043E80; text-decoration: none; border-bottom: 1px solid #F5F5F5; }
.gf_login_register_banner {
    margin-bottom: 32px;
}

.gf_login_register_banner a {
    display: block;
    padding: 20px 24px;
    background: #F5B500;
    color: #000;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.2s;
    border: 2px solid #F5B500;
}

.gf_login_register_banner a:hover { opacity: 0.85; }

.gf_login_register_banner strong {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.gf_login_register_banner span {
    font-size: 1.2rem;
    opacity: 0.6;
}

.gf_login_register_banner a::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: rotate(-45deg);
    margin-left: 8px;
    vertical-align: middle;
}

/* セクション注釈 */
.gf_section_note {
    font-size: 1.4rem;
    color: #999;
    line-height: 1.7;
    margin: 20px 0;
}

/* Ghost ボタン */
.gf_btn--ghost {
    background: transparent;
    border: 1px solid #CCC;
    color: #666;
}

.gf_btn--ghost:hover { opacity: 0.7; border-color: #999; }

/* カード（ログインフロー用） */
.gf_card {
    border: 1px solid #E8E8E8;
    margin-bottom: 20px;
}

.gf_card_title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #043E80;
    padding: 16px 20px;
    border-bottom: 1px solid #E8E8E8;
}

.gf_card_body {
    padding: 20px;
}

.gf_login_passive { font-size: 1.1rem; color: #999; text-align: center; margin-top: 24px; line-height: 1.7; }
.gf_login_passive a { color: #043E80; }
.gf_login_back { display: block; text-align: center; font-size: 1.3rem; color: #043E80; margin-top: 32px; text-decoration: none; }
.gf_type_select { display: flex; border: 1px solid #E8E8E8; margin-bottom: 32px; }
.gf_type_select_item { flex: 1; padding: 16px; text-align: center; font-size: 1.4rem; font-weight: 600; cursor: pointer; color: #999; background: #FAFAFA; border-right: 1px solid #E8E8E8; transition: all 0.15s; }
.gf_type_select_item:last-child { border-right: none; }
.gf_type_select_item.is-active { background: #043E80; color: #fff; }
.gf_checklist { margin-bottom: 32px; }
.gf_checklist_item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; font-size: 1.4rem; line-height: 1.6; border-bottom: 1px solid #F8F8F8; }
.gf_checklist_item span { flex: 1; min-width: 0; }

.gf_checklist_item input[type="checkbox"],
.gf_checklist_item input[type="radio"] { margin-top: 3px; }

/* ラジオオプション（ログイン完了等） */
.gf_radio_option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    cursor: pointer;
}

.gf_radio_option:last-child { margin-bottom: 0; }

.gf_radio_option input[type="radio"] { margin-top: 3px; }

.gf_radio_option_title {
    font-size: 1.4rem;
    font-weight: 600;
    display: block;
    color: #000;
}

.gf_radio_option_desc {
    font-size: 1.2rem;
    color: #999;
    display: block;
    margin-top: 2px;
}

/* ラジオ横並びグループ */
.gf_radio_group {
    display: flex;
    gap: 24px;
    margin: 0 0 12px;
}

.gf_radio_inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    cursor: pointer;
}
.gf_loading { text-align: center; padding: 100px 0; }
.gf_loading_spinner { width: 28px; height: 28px; border: 3px solid #E8E8E8; border-top-color: #043E80; border-radius: 50%; margin: 0 auto 24px; animation: gf_spin 0.7s linear infinite; }
@keyframes gf_spin { to { transform: rotate(360deg); } }
.gf_loading_text { font-size: 1.6rem; font-weight: 700; color: #043E80; }
.gf_loading_sub { font-size: 1.3rem; color: #999; margin-top: 8px; }
.gf_complete { text-align: center; padding: 56px 0; }
.gf_complete_icon { width: 48px; height: 48px; border-radius: 50%; background: #EDF7ED; color: #2E7D32; font-size: 2.0rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.gf_complete_title { font-size: 1.8rem; font-weight: 700; color: #000; margin-bottom: 8px; }
.gf_complete_sub { font-size: 1.3rem; color: #999; line-height: 1.7; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .gf_stats { grid-template-columns: 1fr 1fr; }
    .gf_stat:nth-child(2) { border-right: none; }
    .gf_stat:nth-child(n+3) { border-top: 1px solid #E8E8E8; }
    /* nav grid handled above */
    /* plans already 1col */
    .gf_form_row { grid-template-columns: 1fr; }
}
