@charset "UTF-8";
/* Theme Name: Sake Academy LP Theme
Description: Stylesheet for Sake Academy LP (Final Fixed Version 3.7.0 - Minimal SNS View)
*/

/* ==========================================================================
   1. Base Variables & Reset
   ========================================================================== */
:root {
    --primary-color: #965036;
    --primary-light: #bcaaa4;
    --secondary-color: #17184b;
    --accent-color: #f39800;
    --text-color: #3e2e28;
    --text-light: #70655f;
    --text-white: #ffffff;
    --bg-color: #fbfaf5;
    --bg-white: #ffffff;
    --bg-light: #f9f9f9;
    --font-serif: 'Shippori Mincho', 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
    --container-width: 1000px;
    --radius: 4px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    transition: background-color 1.5s ease;
    margin: 0;
    padding-top: 70px;
    font-family: var(--font-sans);
    color: var(--text-color);
    line-height: 2.0;
    letter-spacing: 0.03em;
    -webkit-font-smoothing: antialiased;
}

/* Seasonal Backgrounds */
body.season-spring { background-color: #fef4f4; }
body.season-summer { background-color: #f3f3f2; }
body.season-autumn { background-color: #fbfaf5; }
body.season-winter { background-color: #fffffc; }

a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
a:hover { opacity: 0.8; }

img { max-width: 100%; height: auto; vertical-align: bottom; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    letter-spacing: 0.05em;
    margin-top: 0;
    font-feature-settings: "palt";
}

/* Utilities */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 25px; }
.section { padding: 100px 0; border-bottom: 1px solid rgba(0,0,0,0.03); position: relative; }
.ib { display: inline-block; }
.sp-only { display: none; }
.pc-only { display: block; }

/* ==========================================================================
   2. Components
   ========================================================================== */
.section-header {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; margin: 0 auto 70px; max-width: 700px;
}
.section-label {
    display: inline-block; font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--primary-color); border: 1px solid var(--primary-color);
    background: rgba(255,255,255,0.8); padding: 6px 18px;
    margin-bottom: 25px; font-family: var(--font-sans); border-radius: 20px;
}
.section-title {
    font-size: 2.2rem; color: var(--text-color); margin-bottom: 25px;
    position: relative; display: inline-block;
}
.section-title::after {
    content: ''; display: block; width: 30px; height: 2px;
    background: var(--accent-color); margin: 20px auto 0;
}
.btn {
    display: inline-block; padding: 14px 40px; border-radius: 2px;
    font-weight: bold; text-align: center; cursor: pointer; border: none;
    font-family: var(--font-serif); letter-spacing: 0.05em; transition: all 0.3s ease;
}
.btn-primary {
    background: var(--primary-color); color: white;
    box-shadow: 0 4px 10px rgba(150, 80, 54, 0.2); border-bottom: 2px solid #6b3926;
}
.btn-primary:hover {
    background: #7a412c; transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(150, 80, 54, 0.3);
}
.btn-accent {
    background: var(--secondary-color); color: white; border-bottom: 2px solid #0b0c26;
}
.btn-accent:hover {
    background: #262873; transform: translateY(-2px);
}

/* ==========================================================================
   3. Navigation (Fixed for Mobile)
   ========================================================================== */
.sticky-nav {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(0,0,0,0.05); z-index: 1000;
    height: 70px; display: flex; align-items: center;
}
/* Admin Bar Fix */
body.admin-bar .sticky-nav { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .sticky-nav { top: 46px; } }

.nav-inner {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
}
.nav-logo {
    font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700;
    color: var(--text-color); letter-spacing: 0.1em;
}
.nav-links {
    display: flex; gap: 35px; align-items: center;
}
.nav-links a {
    font-size: 0.9rem; font-weight: 500;
    font-family: var(--font-serif); color: var(--text-color);
}
.nav-links a:hover { color: var(--primary-color); }
.nav-links .btn { padding: 10px 20px; font-size: 0.85rem; }

/* Hamburger Button */
.hamburger {
    display: none; cursor: pointer; background: none; border: none;
    width: 44px; height: 44px; position: relative; padding: 0; z-index: 1001;
}
.hamburger-bar {
    display: block; width: 24px; height: 2px; background: var(--text-color);
    margin: 6px auto; transition: 0.3s; position: relative;
}

/* Hamburger Animation */
.hamburger.active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   4. Sections
   ========================================================================== */
.hero {
    position: relative;
    background: linear-gradient(rgba(94, 75, 64, 0.85), rgba(62, 46, 40, 0.9)), url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.4'/%3E%3C/svg%3E");
    background-size: cover; color: white; padding: 120px 0 140px; text-align: center;
}
.hero-content h1 {
    font-size: 2.8rem; margin-bottom: 30px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5); line-height: 1.5; font-weight: 500;
}
.hero-tagline { font-size: 1.1rem; letter-spacing: 0.1em; opacity: 0.9; }

/* AI Summary Card */
.ai-summary-card {
    background: #fff; max-width: 900px; margin: 40px auto 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); text-align: left;
    position: relative; border: 1px solid #e5e5e5; border-radius: var(--radius);
}
.ai-summary-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: var(--primary-color); border-radius: 4px 0 0 4px;
}
.ai-summary-header {
    background: #fdfdfd; padding: 25px 40px; border-bottom: 1px solid #f0f0f0;
}
.ai-summary-header h2 { font-size: 1.2rem; margin: 0; color: var(--text-color); font-weight: 600; }
.ai-summary-body {
    padding: 45px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; color: var(--text-color);
}
.summary-desc p { font-size: 0.95rem; margin-bottom: 20px; color: var(--text-light); }
.entity-list {
    display: grid; grid-template-columns: auto 1fr; gap: 15px 25px;
    font-size: 0.9rem; border-left: 1px solid #eee; padding-left: 30px;
}
.entity-list dt { font-weight: bold; color: var(--primary-color); font-family: var(--font-serif); }
.entity-list dd { margin: 0; color: var(--text-light); }

/* Benefits */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.benefit-card {
    background: rgba(255,255,255,0.7); padding: 40px 30px;
    border-radius: var(--radius); text-align: center;
    border-top: 3px solid var(--accent-color); transition: 0.3s;
}
.benefit-card:hover { background: #fff; box-shadow: var(--shadow-sm); transform: translateY(-5px); }
.benefit-icon { font-size: 2.5rem; display: block; margin-bottom: 20px; }
.benefit-title { font-weight: bold; font-family: var(--font-serif); font-size: 1.2rem; margin: 0 0 15px 0; color: var(--secondary-color); }
.benefit-text { font-size: 0.95rem; line-height: 1.8; text-align: left; color: var(--text-light); }

/* Solution */
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.solution-card {
    background: #fff; padding: 40px 30px; border-radius: var(--radius);
    border: 1px solid #eee; transition: 0.3s;
}
.solution-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.solution-icon { font-size: 2rem; display: block; margin-bottom: 20px; }
.solution-title { font-size: 1.2rem; font-weight: bold; margin: 0 0 15px 0; font-family: var(--font-serif); color: var(--text-color); }

/* Knowledge */
.knowledge-section { background-color: #f4f4f4; padding: 100px 0; }
.knowledge-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
    margin-bottom: 60px; align-items: start; border-bottom: 1px solid #e0e0e0; padding-bottom: 60px;
}
.knowledge-row:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.basic-col { padding-right: 20px; }
.basic-title {
    font-size: 1.3rem; font-weight: bold; color: var(--primary-color);
    margin-bottom: 20px; font-family: var(--font-serif); display: flex; align-items: center; gap: 12px;
}
.basic-badge {
    background: var(--primary-color); color: white; font-size: 0.7rem;
    padding: 3px 10px; border-radius: 50px; font-family: var(--font-sans); letter-spacing: 0.05em;
}
.basic-content h3, .basic-content h4 {
    font-size: 1.1rem; margin: 0 0 15px 0; color: var(--text-color);
    border-left: 4px solid var(--accent-color); padding-left: 15px; line-height: 1.4;
}
.advanced-col {
    background: #fff; padding: 40px; border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); border-top: 3px solid var(--secondary-color); position: relative;
}
.advanced-col::before {
    content: "ACADEMIC TOPIC"; position: absolute; top: -10px; left: 30px;
    background: var(--secondary-color); color: white; font-size: 0.65rem;
    padding: 3px 12px; border-radius: 50px; letter-spacing: 0.1em; font-weight: bold;
}
.advanced-title {
    font-size: 1.1rem; font-weight: bold; color: var(--secondary-color);
    margin: 0 0 15px 0; font-family: var(--font-serif);
}
.source-link {
    font-size: 0.8rem; color: #999; text-align: right; display: block;
    font-style: italic; border-top: 1px dashed #eee; padding-top: 15px; margin-top: 15px;
}

/* Course */
.course-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; align-items: start; }
.course-features {
    background: #fff; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.course-features h3 {
    border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; margin-bottom: 25px; color: var(--primary-color);
}
.course-features ul { list-style: none; padding: 0; margin: 0; }
.course-features li {
    position: relative; padding-left: 25px; margin-bottom: 15px; font-size: 1rem; color: var(--text-color);
}
.course-features li::before {
    content: "◆"; position: absolute; left: 0; color: var(--primary-color); font-size: 0.8rem; top: 0.6em;
}
.course-info-box { position: sticky; top: 90px; }
.price-tag {
    background: #fff; border: 1px solid var(--accent-color);
    border-top: 5px solid var(--accent-color); padding: 35px 30px;
    text-align: center; box-shadow: var(--shadow-sm);
}
.price-amount {
    font-size: 2.2rem; font-weight: bold; font-family: var(--font-serif);
    letter-spacing: 0.05em; color: var(--primary-color);
}
.visitor-box {
    margin-top: 30px; padding: 25px 30px; background: #fff;
    border: 1px solid #e0e0e0; border-left: 5px solid var(--accent-color);
    border-radius: 2px; box-shadow: var(--shadow-sm); text-align: left;
}
.visitor-header {
    display: flex; align-items: center; gap: 15px; margin-bottom: 15px;
    border-bottom: 1px solid #eee; padding-bottom: 10px;
}
.visitor-label {
    font-size: 0.7rem; font-weight: bold; color: var(--accent-color);
    border: 1px solid var(--accent-color); padding: 2px 8px; border-radius: 2px; letter-spacing: 0.1em;
}
.visitor-title {
    margin: 0; font-size: 1.1rem; font-family: var(--font-serif);
    color: var(--text-color); font-weight: bold;
}
.visitor-price {
    text-align: right; font-weight: bold; font-size: 1rem;
    color: var(--secondary-color); font-family: var(--font-serif); margin-top: 10px;
}
#shugakudo .section-label, #shugakudo .visitor-label, #shugakudo .price-tag {
    border-color: var(--secondary-color); color: var(--secondary-color);
}
#shugakudo .price-amount, #shugakudo .visitor-price { color: var(--secondary-color); }

/* Voices */
.voice-marquee-container { overflow: hidden; width: 100%; position: relative; padding: 20px 0; }
.voice-card-auto {
    background: #fff; padding: 30px; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); border-top: 3px solid var(--primary-color);
}
.voice-quote {
    font-size: 1.1rem; font-weight: bold; color: var(--primary-color);
    margin: 0 0 15px 0; font-family: var(--font-serif); line-height: 1.5;
}
.voice-meta {
    font-size: 0.8rem; color: #888; border-top: 1px dashed #eee;
    padding-top: 10px; margin-top: auto;
}

/* Instructor */
.instructor-card {
    display: flex; gap: 50px; background: white; padding: 50px;
    border: 1px solid #e0e0e0; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); align-items: flex-start; margin-bottom: 40px;
}
.instructor-photo-wrapper { flex-shrink: 0; }
.instructor-photo {
    width: 180px; height: 180px; object-fit: cover; border-radius: 50%; border: 5px solid #f9f9f9;
}
.instructor-name {
    font-size: 1.8rem; border-bottom: 2px solid #eee; padding-bottom: 15px; margin-top: 0; margin-bottom: 20px;
}
.instructor-role {
    color: var(--primary-color); font-weight: bold; margin-bottom: 5px; font-size: 0.9rem;
}

/* Comparison */
.comparison-table {
    width: 100%; border-collapse: collapse; margin-top: 20px;
    background: white; box-shadow: var(--shadow-sm); border: 1px solid #eee;
}
.comparison-table th, .comparison-table td {
    padding: 20px 25px; text-align: left; border-bottom: 1px solid #eee;
}
.comparison-table th {
    background: var(--secondary-color); color: white;
    font-weight: normal; font-family: var(--font-serif);
}

/* Social Wrapper */
.social-wrapper {
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start;
}
.social-col-header {
    display: flex; align-items: center; gap: 12px; margin-bottom: 25px;
    border-bottom: 1px solid #eee; padding-bottom: 12px;
}
.social-col-header h3 {
    margin: 0; font-size: 1.2rem; font-family: var(--font-serif);
}

/* Contact & Footer */
#contact {
    background-color: var(--primary-color);
    background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1));
    color: #fff; padding: 100px 0;
}
#contact .section-title { color: #fff; }
#contact .section-title::after { background: #fff; }
.form-container {
    background: #fff; padding: 60px; border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2); max-width: 800px;
    margin: 0 auto; color: var(--text-color); text-align: left;
}
.contact-info-sub {
    margin-top: 30px; text-align: center; color: #fff;
    font-size: 1rem; font-style: normal;
}
.contact-info-sub a {
    color: #fff; text-decoration: underline; font-weight: bold;
}
.footer {
    background: #222; color: #999; padding: 70px 0 30px;
    border-top: 4px solid var(--primary-color); text-align: center;
}
.footer-policy-links a { color: #ccc; margin: 0 10px; font-size: 0.8rem; }
.aio-badge {
    background: #fff; padding: 8px 20px; border-radius: 50px;
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
}

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content {
    background: #fff; width: 90%; max-width: 800px; max-height: 90vh;
    overflow-y: auto; border-radius: var(--radius); position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
.modal-tabs {
    position: sticky; top: 0; background: #f9f9f9; z-index: 10;
    display: flex; border-bottom: 1px solid #eee;
}
.modal-tab {
    flex: 1; padding: 15px; cursor: pointer; text-align: center;
    font-weight: bold; border: none; background: none; font-size: 0.9rem; color: #666;
}
.modal-tab[aria-selected="true"] {
    background: #fff; color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}
.modal-body { padding: 40px; }

/* ==========================================================================
   5. SNS Feed Customization
   ========================================================================== */
#sb_instagram { padding: 10px 0 !important; width: 100% !important; }
#sb_instagram .sb_instagram_header { display: none !important; }
#sb_instagram .sbi_btn {
    background: #f9f9f9 !important; color: #333 !important;
    border: 1px solid #ccc !important; border-radius: 4px !important;
}
#sb_instagram #sbi_images { padding: 0 !important; }
#sb_instagram .sbi_item { padding: 5px !important; }
#sb_instagram .sbi_photo {
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease; height: 100% !important; object-fit: cover !important;
}
#sb_instagram .sbi_photo:hover {
    transform: translateY(-5px); box-shadow: 0 10px 15px rgba(0,0,0,0.15); opacity: 0.9;
}
#cff { width: 100% !important; padding: 0 !important; }
#cff .cff-item {
    background: #ffffff !important; border: 1px solid #eef2f6 !important;
    border-radius: 12px !important; padding: 20px !important; margin-bottom: 20px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}
#cff .cff-author a {
    font-weight: bold !important; font-size: 1.05rem !important; color: #17184b !important;
}
#cff .cff-date { font-size: 0.85rem !important; color: #888 !important; }
#cff .cff-text {
    font-size: 0.95rem !important; line-height: 1.8 !important;
    color: #333 !important; margin-top: 10px !important;
}
#cff .cff-more, #cff .cff-photo { margin-top: 10px !important; }

/* ==========================================================================
   6. Responsive Rules (Mobile)
   ========================================================================== */
@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .hero { padding: 100px 0 60px; }
    .hero-content h1 { font-size: 2rem; }
    
    .nav-links { display: none; } /* Default hidden on mobile */
    .hamburger { display: block; }
    
    /* Mobile Menu Active State */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 999;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
    .nav-links.active .nav-item {
        display: block; padding: 15px 0; text-align: center;
        border-bottom: 1px solid #eee; font-size: 1.1rem; width: 100%;
    }
    .nav-links.active .nav-btn {
        margin: 30px auto; display: block; width: 80%;
    }

    /* Grids to Single Column */
    .ai-summary-body, .benefit-grid, .solution-grid, .knowledge-row,
    .course-grid, .sake-company-grid {
        grid-template-columns: 1fr; gap: 30px;
    }
    .entity-list { padding-left: 0; border-left: none; }
    .knowledge-row { display: flex; flex-direction: column; gap: 0; }
    .advanced-col { margin-top: -10px; border-radius: 0 0 4px 4px; padding: 30px; }
    .basic-col { border-radius: 4px 4px 0 0; padding-bottom: 30px; }
    .instructor-card { flex-direction: column; text-align: center; align-items: center; gap: 30px; padding: 30px; }
    .instructor-name { font-size: 1.5rem; }
    .course-info-box { position: static; }
    .comparison-table { display: block; overflow-x: auto; white-space: nowrap; }
    .form-container { padding: 30px; }
    .modal-tabs { flex-wrap: wrap; }
    .modal-tab { width: 50%; padding: 10px; font-size: 0.8rem; }

    /* SNS Mobile Layout */
    .social-wrapper {
        grid-template-columns: 1fr; display: grid; gap: 50px;
    }
    .social-col { width: 100% !important; }

    /* Instagram Forced 2 Columns -> Now Disabled by Global 1-Item Rule below */
    #sb_instagram #sbi_images {
        display: flex !important; flex-wrap: wrap !important; margin: 0 -5px !important;
    }
    #sb_instagram .sbi_item {
        width: 50% !important; padding: 5px !important;
        box-sizing: border-box !important; display: block !important;
    }
    #sb_instagram .sbi_photo {
        height: 160px !important; width: 100% !important; object-fit: cover !important;
    }
}

/* ==========================================================================
   7. Social Media Feed Control (Final Logic)
   Description: PC/スマホ問わず「最新の1件のみ」にし、ヘッダー等の不要要素を全消去。
   ========================================================================== */

/* --- Instagram (#sb_instagram) --- */

/* 1. 2つ目以降の記事を非表示 */
#sb_instagram .sbi_item:nth-child(n+2) {
    display: none !important;
}

/* 2. 1つ目の記事のレイアウト調整 */
#sb_instagram .sbi_item:first-child {
    width: 100% !important;
    max-width: 500px; /* PCでの最大幅 */
    margin: 0 auto !important;
    float: none !important;
    padding: 0 !important; /* 余計な隙間を削除 */
}

/* 3. 画像を強制的に「正方形」にする */
#sb_instagram .sbi_photo {
    height: auto !important;
    aspect-ratio: 1 / 1 !important; /* 縦横比を1:1(正方形)に固定 */
    object-fit: cover !important; /* 枠に合わせてトリミング */
    width: 100% !important;
}

/* 4. 「さらに読み込む」ボタン等を消す */
#sb_instagram #sbi_load,
#sb_instagram .sbi_btn,
#sb_instagram .sb_instagram_header,
#sb_instagram .sbi_follow_btn {
    display: none !important;
}


/* --- Facebook (#cff) --- */

/* 1. 2つ目以降の記事を非表示 */
#cff .cff-item:nth-child(n+2) {
    display: none !important;
}

/* 2. 不要なパーツ（ヘッダー、アカウント名、紹介文、管理者通知等）を全消去 */
/* .cff-header, .cff-header-bio, .cff-header-text などをターゲットにします */
#cff .cff-header, 
#cff .cff-header-bio, 
#cff .cff-header-text, 
#cff .cff-admin-notice,
#cff .cff-gdpr-notice,
#cff .cff-notice,
#cff .cff-load-more,
.cff-load-more {
    display: none !important;
}

/* 3. iframe版の高さ制限（保険） */
.facebook-iframe-wrapper,
#cff iframe {
    max-height: 600px !important;
    overflow: hidden !important;
}
/* ==========================================================================
   8. Voice Submission Form Style
   Description: 受講生の声投稿フォーム専用のデザイン
   ========================================================================== */

/* フォーム全体の枠組み */
.voice-submission-form {
    background: #fff;
    padding: 50px;
    border-radius: 4px; /* var(--radius) */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 5px solid #965036; /* var(--primary-color) */
    max-width: 800px;
    margin: 40px auto;
}

/* タイトルと説明 */
.voice-form-title {
    text-align: center;
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif; /* var(--font-serif) */
    color: #965036; /* var(--primary-color) */
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.voice-form-desc {
    text-align: center;
    font-size: 0.95rem;
    color: #70655f; /* var(--text-light) */
    margin-bottom: 40px;
    line-height: 1.8;
}

/* 各入力欄のグループ */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #3e2e28; /* var(--text-color) */
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
}

/* 入力フィールドの装飾 */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: #fbfaf5; /* var(--bg-color) */
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #965036; /* var(--primary-color) */
    background: #fff;
    box-shadow: 0 0 0 3px rgba(150, 80, 54, 0.1);
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

/* ファイルアップロード周り */
.form-note {
    font-size: 0.8rem;
    color: #888;
    margin-top: -5px;
    margin-bottom: 10px;
}

/* 送信ボタンエリア */
.submit-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* CF7のデフォルトローダー位置調整 */
.wpcf7-spinner {
    margin: 0 auto;
    display: block;
    margin-top: 10px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .voice-submission-form {
        padding: 30px 20px;
    }
    .voice-form-title {
        font-size: 1.5rem;
    }
}
/* =========================================
   Instagram強制補正（安定版）
   ========================================= */

/* 1. 全体のリセット（Flexboxなどを解除） */
#sb_instagram, 
#sb_instagram #sbi_images {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 2. 個々のアイテムの幅を強制的に広げる */
/* width: 25% などの指定を解除し、親枠いっぱいにします */
#sb_instagram .sbi_item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: block !important;
}

/* 3. 画像のサイズを「数値」で強制指定する */
/* これなら絶対に計算ミスで消えたりしません */
#sb_instagram .sbi_photo {
    width: 100% !important;
    
    /* PCでの高さを指定（ここをいじれば正方形に近づけられます） */
    height: 400px !important; 
    
    object-fit: cover !important; /* 枠に合わせてトリミング */
    display: block !important;
    position: static !important; /* 絶対配置をやめる */
}

/* 4. 親エリアの幅調整 */
.instagram-feed-wrapper {
    width: 100%;
    /* ここの幅(400px)と、上の画像の高さ(400px)を
       同じ数字にすれば「正方形」になります 
    */
    max-width: 400px; 
    margin: 0 auto;
}

/* 5. スマホ用の調整 */
@media (max-width: 768px) {
    .instagram-feed-wrapper {
        max-width: 100%; /* スマホでは幅いっぱい */
        padding: 0 20px;
    }
    #sb_instagram .sbi_photo {
        /* スマホでの高さ（スマホの画面幅はおよそ350-400pxなのでこれくらいで正方形になります） */
        height: 350px !important; 
    }
}

/* ==========================================================================
   9. Voice Marquee Card Width Adjustment (PC & Mobile)
   ========================================================================== */
.voice-card-auto {
    /* PCでの横幅を適切なサイズ（380px）に固定し、長くなりすぎるのを防ぐ */
    width: 380px !important;
    flex: 0 0 380px !important;
    
    /* テキストの折り返しを強制し、文章が枠を突き抜けるのを防ぐ */
    white-space: normal !important;
    word-break: break-word !important;
    
    /* 高さを自動調整 */
    height: auto !important;
    min-height: 200px;
}

/* スマホ表示時の横幅調整 */
@media (max-width: 768px) {
    .voice-card-auto {
        /* スマホ画面の85%の幅にする（隣のカードがチラッと見えてスワイプを促す） */
        width: 85vw !important;
        flex: 0 0 85vw !important;
        
        /* スマホではカード内の余白を少しだけ狭めてスッキリさせる */
        padding: 20px !important; 
    }
}