/*
Theme Name: Flow Golf Academy
Description: Custom WordPress theme for Flow Golf Academy
Author: Antigravity
Version: 1.0.0
Text Domain: flow-golf-academy
*/
/* CSS Variables */
:root {
    --color-navy: #0A192F;
    --color-navy-light: #112240;
    --color-gold: #C5A059;
    --color-gold-hover: #D6B26A;
    --color-white: #FFFFFF;
    --color-gray-light: #F4F4F4;
    --color-text: #333333;
    --color-text-light: #8892b0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-white { color: var(--color-white) !important; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-navy);
    border: 2px solid var(--color-gold);
}

.btn-primary:hover {
    background-color: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-navy);
    border: 2px solid var(--color-navy);
}

.btn-outline.text-white {
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.btn-outline.text-white:hover {
    background-color: var(--color-white);
    color: var(--color-navy);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background: rgba(10, 25, 47, 0.95);
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-white); /* Always white on Transparent/Dark Header */
}

.logo-sub {
    font-size: 0.8rem;
    font-weight: 400;
    margin-left: 10px;
    opacity: 0.8;
}

header.scrolled .logo {
    color: var(--color-gold);
}

header.scrolled .logo-sub {
    color: var(--color-white);
}
/* Always keep logo accessible/visible */
header .logo { color: var(--color-white); }
header.scrolled .logo { color: var(--color-gold); }


#nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

#nav a {
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 500;
}

header.scrolled #nav a {
    color: var(--color-gray-light);
}

header.scrolled #nav a:hover {
    color: var(--color-gold);
}

#nav .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Mobile Menu Button */
#mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

#mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    margin-bottom: 6px;
    transition: var(--transition);
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--color-white);
    background-color: var(--color-navy); /* Fallback */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(10, 25, 47, 0.7), rgba(10, 25, 47, 0.5)), url('https://placehold.co/1920x1080/0A192F/FFFFFF?text=FGA+Founders+Cup'); /* Placeholder */
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

#hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

#hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    opacity: 0.9;
}

.badges {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge-label {
    background-color: var(--color-gold);
    color: var(--color-navy);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Induction Section */
#induction {
    padding: 100px 0;
    background-color: var(--color-white);
}

#induction h2 {
    font-size: 2.5rem;
    color: var(--color-navy);
    margin-bottom: 40px;
}

.induction-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 2;
    color: #555;
}

.induction-content p {
    margin-bottom: 20px;
}

/* Achievements Section */
#achievements {
    padding: 100px 0;
    background-color: var(--color-gray-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-navy);
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-gold);
    margin: 20px auto 0;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.story-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.story-img {
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.story-body {
    padding: 25px;
}

.story-body h3 {
    font-size: 1.25rem;
    color: var(--color-navy);
    margin-bottom: 15px;
}

.story-body p {
    font-size: 0.95rem;
    color: #666;
}

/* Philosophy Section */
#philosophy {
    padding: 120px 0;
    background-color: var(--color-navy);
    color: var(--color-white);
    position: relative;
}

#philosophy blockquote {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-gold);
    margin-bottom: 30px;
}

#philosophy blockquote footer {
    font-size: 1rem;
    margin-top: 15px;
    font-style: normal;
    color: rgba(255,255,255,0.6);
}

.philosophy-text {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Solution Section */
#solution {
    padding: 100px 0;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.solution-item {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition);
}

.solution-item:hover {
    background-color: var(--color-gray-light);
}

.solution-item .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.solution-item h3 {
    font-size: 1.5rem;
    color: var(--color-navy);
    margin-bottom: 15px;
}

/* Membership Section */
#membership {
    padding: 100px 0;
    background-color: var(--color-gray-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: flex-start;
}

.pricing-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--color-gold);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--color-navy);
    margin-bottom: 10px;
}

.pricing-card h3 .en {
    font-size: 0.9rem;
    color: #999;
    font-weight: 400;
    display: block;
    margin-top: 5px;
}

.pricing-card .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-gold);
    margin: 20px 0;
}

.pricing-card .condition {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-navy);
    margin: 20px 0;
    background-color: #eef2f7;
    padding: 10px;
    border-radius: 4px;
}

.pricing-card ul {
    margin-bottom: 30px;
    text-align: left;
}

.pricing-card ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
    color: #555;
}

.pricing-card ul li::before {
    content: '窶｢';
    color: var(--color-gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Benefits Section */
#benefits {
    padding: 100px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.benefit-col h3 {
    font-size: 2rem;
    color: var(--color-navy);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-gold);
    padding-bottom: 10px;
    display: inline-block;
}

.benefit-col p {
    font-size: 1.1rem;
    color: #555;
}

/* CTA Section */
#cta {
    padding: 120px 0;
    background-color: var(--color-navy);
    color: var(--color-white);
}

#cta h2 {
    font-size: 3rem;
    margin-bottom: 50px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Footer */
footer {
    background-color: var(--color-navy-light);
    color: var(--color-text-light);
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 10px;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-200 { transition-delay: 0.2s; }
.delay-400 { transition-delay: 0.4s; }
.delay-600 { transition-delay: 0.6s; }
/* Responsive */
@media (max-width: 768px) {
    #nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-navy);
        padding: 80px 40px;
        transition: 0.3s;
    }

    #nav.active {
        right: 0;
    }

    #nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    #mobile-menu-btn {
        display: block;
    }

    #hero h1 { font-size: 2.5rem; }
    #hero .subtitle { font-size: 1rem; }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ========== WordPress Generic Content Styles ========== */
.entry-content { line-height: 1.8; color: #333; font-size: 1.05rem; letter-spacing: 0.02em; }
.entry-content h1 { margin-top: 50px; margin-bottom: 25px; font-size: min(2rem, 6vw); color: var(--color-navy); line-height: 1.3; font-weight: 700; letter-spacing: 0.03em; border-bottom: 3px solid var(--color-gold); padding-bottom: 15px; }
.entry-content p { margin-bottom: 35px; }
.entry-content h2 { margin-top: 50px; margin-bottom: 20px; font-size: 1.6rem; color: var(--color-navy); border-bottom: 2px solid var(--color-gold); padding-bottom: 10px; line-height: 1.4; letter-spacing: 0.03em; }
.entry-content h3 { margin-top: 40px; margin-bottom: 15px; font-size: 1.35rem; color: var(--color-navy); border-left: 5px solid var(--color-gold); padding-left: 15px; line-height: 1.4; font-weight: 700; }
.entry-content ul, .entry-content ol { margin-bottom: 24px; padding-left: 20px; }
.entry-content li { margin-bottom: 8px; }
.entry-content a { color: var(--color-gold); text-decoration: underline; }
.entry-content strong { font-weight: 600; color: var(--color-navy); }
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; margin-bottom: 24px; }

/* ========== Subpage Styles ========== */
.page-main {
    background-color: var(--color-gray-light);
    min-height: 80vh;
    padding-top: 130px; /* Account for fixed header */
    padding-bottom: 60px;
}

.page-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 50px 40px; /* Consistent inner padding */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
}

.page-header {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--color-gold);
    padding-bottom: 15px;
}

.page-header-title {
    font-size: min(2rem, 6vw);
    color: var(--color-navy);
    margin: 0;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    word-break: break-word;
}

@media (max-width: 768px) {
    .page-main {
        padding-top: 90px !important; /* ヘッダーとの適度な余白を確保 */
        padding-bottom: 40px !important;
    }
    
    .page-container {
        padding: 25px 16px 30px 16px !important; /* ヘッダー（上端）との余白を大きく取る */
        width: 100% !important;
    }

    .page-header {
        margin-bottom: 5px !important; /* タイトル下の本文との余白を極限まで減らす */
        padding-bottom: 5px !important;
    }
    
    .page-header-title {
        font-size: 1.15rem !important; /* さらにフォントを小さく */
        color: #444 !important;
        line-height: 1.3 !important;
    }
}

/* ========== Top Page (Front Page) Updates ========== */
.mobile-only { display: none; }

.voice-card, .pillar-box, .entrance-col, .story-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.voice-card:hover, .pillar-box:hover, .entrance-col:hover, .story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
}

@media screen and (max-width: 768px) {
    .mobile-only { display: block; }
    br.mobile-only { display: inline; }
    
    .cta-buttons-hero {
        flex-direction: column !important;
        align-items: stretch;
    }
    
    .cta-buttons-hero .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}
@media (max-width: 768px) {
    body:not(.home) .site-main {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
/* ========== Top Page Mobile Padding Fixes ========== */
@media screen and (max-width: 768px) {
    /* ⑤ トップページ全体コンテナの幅と余白を最適化 */
    .front-page-main .container,
    .front-page-main .section-padding .container {
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box;
    }
    
    /* ① 岩男プロの実績カード */
    .achievements-card {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    /* ② FGAの3つの柱 */
    .pillar-box {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    /* ③ FGAへの入口 */
    .entrance-col {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    /* ④ FGA Stories */
    .story-card {
        padding: 16px !important;
        margin-bottom: 0 !important;
    }
    .stories-grid {
        gap: 16px !important;
    }

    /* 追加補足：会員の声も同様に圧縮しておきます */
    .voice-card {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* ========== 選手の声サブページ用カスタムデザイン ========== */

/* 
パターンA: グループブロックを使用する場合 
使い方: 「グループ」ブロックを追加し、追加CSSクラスに fga-member-voice と入力。
順番ルール: ①画像ブロック、②名前(段落など)、③属性(段落など)、④本文... と配置してください。
*/
.fga-member-voice {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eeeeeeb3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 40px;
    display: grid !important;
    grid-template-columns: 90px 1fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
    row-gap: 5px;
}

/* WordPress特有のインナーラッパーが存在する場合の調整 */
.fga-member-voice > .wp-block-group__inner-container {
    display: contents !important;
}

/* 1番目: 画像 */
.fga-member-voice figure.wp-block-image,
.fga-member-voice div.wp-block-image {
    grid-column: 1 / 2 !important;
    grid-row: 1 / 3 !important;
    margin: 0 !important;
    align-self: center;
}

.fga-member-voice figure.wp-block-image img,
.fga-member-voice div.wp-block-image img {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: top center !important;
    border: none !important;
    padding: 0 !important;
}

/* 2番目: 名前 */
.fga-member-voice > *:nth-child(2),
.fga-member-voice > .wp-block-group__inner-container > *:nth-child(2) {
    grid-column: 2 / 3 !important;
    grid-row: 1 / 2 !important;
    align-self: end !important;
    margin: 0 !important;
    font-size: 1.25rem !important;
    font-weight: bold !important;
    color: var(--color-navy) !important;
}

/* 3番目: 属性 */
.fga-member-voice > *:nth-child(3),
.fga-member-voice > .wp-block-group__inner-container > *:nth-child(3) {
    grid-column: 2 / 3 !important;
    grid-row: 2 / 3 !important;
    align-self: start !important;
    margin: 0 0 20px 0 !important;
    font-size: 0.95rem !important;
    color: #666 !important;
}

/* 4番目以降: 本文（画像の下に回り込みフル幅で表示） */
.fga-member-voice > *:nth-child(n+4),
.fga-member-voice > .wp-block-group__inner-container > *:nth-child(n+4) {
    grid-column: 1 / 3 !important;
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
    color: #444 !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
}

@media (max-width: 768px) {
    .fga-member-voice {
        grid-template-columns: 80px 1fr !important;
        padding: 20px 12px !important; /* スマホ時の枠内余白をさらに狭く */
        column-gap: 15px !important; /* 画像とテキストの隙間も微調整 */
    }
    .fga-member-voice figure.wp-block-image img,
    .fga-member-voice div.wp-block-image img {
        width: 80px !important;
        height: 80px !important;
    }
}

/* ========== 簡易FAQリスト（全体を1つのグループにし、追加CSSクラスに fga-faq-list を入力） ========== */
.fga-faq-list {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #eeeeeeb3;
    margin-bottom: 40px;
}

/* 質問 (h4など) */
.fga-faq-list h4, .fga-faq-list h3 {
    position: relative;
    padding-left: 55px !important;
    margin-top: 40px !important;
    margin-bottom: 15px !important;
    font-size: 1.15rem !important;
    color: var(--color-navy) !important;
    border: none !important;
    line-height: 1.5 !important;
}
.fga-faq-list h4:first-child, .fga-faq-list h3:first-child {
    margin-top: 0 !important;
}

/* 質問と質問の間の区切り線 */
.fga-faq-list h4:not(:first-child), .fga-faq-list h3:not(:first-child) {
    padding-top: 40px !important;
    border-top: 1px dashed #ddd !important;
}

/* Qのアイコン */
.fga-faq-list h4::before, .fga-faq-list h3::before {
    content: "Q";
    position: absolute;
    left: 0;
    top: 0;
    width: 38px;
    height: 38px;
    background: var(--color-navy);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 38px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

/* 区切り線がある場合のQアイコンの位置補正 */
.fga-faq-list h4:not(:first-child)::before, .fga-faq-list h3:not(:first-child)::before {
    top: 40px; 
}

/* 回答 (p) */
.fga-faq-list p {
    position: relative;
    padding-left: 55px;
    margin-bottom: 15px !important; 
    color: #444;
    line-height: 1.8;
}

/* Aのアイコン（見出しの直後の段落のみに表示） */
.fga-faq-list h4 + p::before, .fga-faq-list h3 + p::before {
    content: "A";
    position: absolute;
    left: 0;
    top: 0;
    width: 38px;
    height: 38px;
    background: var(--color-gold);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 38px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

/* スマホ表示 */
@media (max-width: 768px) {
    .fga-faq-list {
        padding: 30px 20px;
    }
    .fga-faq-list h4, .fga-faq-list h3 {
        padding-left: 45px !important;
        font-size: 1.1rem !important;
    }
    .fga-faq-list p {
        padding-left: 45px;
    }
    .fga-faq-list h4::before, .fga-faq-list h4 + p::before,
    .fga-faq-list h3::before, .fga-faq-list h3 + p::before {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 1rem;
    }
    .fga-faq-list h4:not(:first-child)::before, .fga-faq-list h3:not(:first-child)::before {
        top: 36px;
    }
}
/* ========== 超強力：サブページのスマホ余白＆見出しサイズ強制上書き ========== */
@media (max-width: 768px) {
    /* どんなテンプレートでも、フロントページ以外なら全体に強制的に余白を追加 */
    body:not(.home) .site-main {
        padding-top: 110px !important; /* ヘッダーの下敷きになるのを防ぐ */
        padding-left: 0 !important; /* スマホでの左の余白 */
        padding-right: 0 !important; /* スマホでの右の余白 */
        padding-bottom: 50px !important;
    }
    
    /* 記事タイトルの強制縮小（テンプレートの違いを全てカバーして小さくする） */
    body:not(.home) h1,
    body:not(.home) .wp-block-heading,
    body:not(.home) .entry-title,
    body:not(.home) .page-header-title {
        font-size: 1.4rem !important; /* 最も大きい見出しでもスマホ幅に収める */
        line-height: 1.4 !important;
        margin-top: 10px !important;
        margin-bottom: 20px !important;
        word-break: break-all !important;
    }

    /* h1と記事タイトル下に装飾の下線をつける */
    body:not(.home) h1,
    body:not(.home) .entry-title,
    body:not(.home) .page-header-title {
        border-bottom: 2px solid var(--color-gold) !important; 
        padding-bottom: 15px !important;
    }
}
/* ========== コンテンツ内リスト修正 ========== */
.entry-content ul {
    list-style: disc !important;
    padding-left: 1.5em !important;
}
.entry-content ol {
    list-style: decimal !important;
    padding-left: 1.5em !important;
}

/* ========== 見出しサイズ修正 ========== */
.entry-content h1 {
    font-size: 1.8rem !important;
}
.entry-content h2 {
    font-size: 1.3rem !important;
}

/* ========== サービスカード ========== */
.fga-service-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.fga-service-card h3 {
    color: var(--color-navy) !important;
    border-left: 4px solid var(--color-gold) !important;
    padding-left: 12px !important;
    margin-bottom: 15px !important;
}
/* ========== トップへ戻るボタン ========== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: var(--color-gold);
    color: var(--color-navy);
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-3px);
    background-color: var(--color-gold-hover);
}

@media (max-width: 768px) {
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
}
/* ========== FGA ニュースカード ========== */
.fga-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.fga-news-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border-top: 4px solid var(--color-gold);
    display: flex;
    flex-direction: column;
}

.fga-news-card img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
}

.fga-news-card h3 {
    font-size: 1.2rem !important;
    color: var(--color-navy) !important;
    margin-bottom: 15px !important;
    line-height: 1.4 !important;
    border: none !important;
    padding: 0 !important;
}

.fga-news-card p {
    font-size: 0.95rem !important;
    color: #555 !important;
    line-height: 1.7 !important;
    margin-bottom: 20px !important;
    flex: 1;
}

.fga-news-card a {
    font-size: 0.9rem !important;
    color: var(--color-gold) !important;
    font-weight: bold !important;
    text-decoration: underline !important;
    margin-top: auto;
}

@media (max-width: 768px) {
    .fga-news-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}
/* ========== トップページ上部の白い隙間を修正 ========== */
body.home #primary.site-main,
body.blog #primary.site-main {
    padding-top: 0 !important;
}
/* お問い合わせフォーム */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"] {
    height: 36px;
    padding: 6px 12px;
    width: 100%;
    border: 1px solid #D8E4EF;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
}

.wpcf7-form textarea {
    padding: 10px 12px;
    width: 100%;
    border: 1px solid #D8E4EF;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
}