/*
Theme Name: SouthCity Theme
Author: South City
Description: Official Theme for South City
Version: 1.0.22
*/

/* ==========================================================================
   Reset & Variables
   ========================================================================== */
:root {
    --c-black: #111111;
    --c-dark: #222222;
    --c-gray: #f4f4f4;
    --c-white: #ffffff;
    --c-accent: #f8b62d; /* South City Yellow */
    --c-line: #06C755;   /* LINE Green */
    
    --f-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    --f-en: "Oswald", "DIN 2014", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--f-jp);
    color: var(--c-black);
    background-color: var(--c-white);
    line-height: 1.8;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 80px; /* Footer Space */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
/* PC: Fixed Banner Space */
@media (min-width: 769px) { body { padding-bottom: 100px; } }

a { text-decoration: none; color: inherit; transition: all 0.3s; }
img { max-width: 100%; height: auto; vertical-align: bottom; }
li { list-style: none; }

/* Utilities */
.pc-only { display: block; }
.sp-only { display: none; }
.tb-only { display: none; }

/* Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .pc-only { display: none; }
    .tb-only { display: block; }
    .sp-only { display: none; }
}

/* Mobile ( - 768px) */
@media (max-width: 768px) {
    .pc-only { display: none; }
    .tb-only { display: none; }
    .sp-only { display: block; }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 100px 0; }
@media (max-width: 768px) { .section { padding: 60px 0; } }

/* Typography & Components */
.sec-header { text-align: center; margin-bottom: 60px; }

/* 英語タイトル: イエロー */
.sec-title-en {
    display: block;
    font-family: var(--f-en);
    font-size: 4rem;
    color: var(--c-accent); 
    line-height: 1;
    /* ★修正: マイナスを解除して余白を空ける */
    margin-bottom: 10px; 
    text-transform: uppercase;
}

/* 日本語タイトル: アンダーバー */
.sec-title-jp {
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 900;
    position: relative;
    z-index: 1;
}
.sec-title-jp::after {
    content: '';
    position: absolute;
    bottom: 5px; left: 0; width: 100%; height: 10px;
    background: var(--c-accent);
    z-index: -1;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .sec-title-en { font-size: 2.5rem; margin-bottom: 0px; } /* スマホも少し調整 */
    .sec-title-jp { font-size: 1.5rem; }
    .sec-header { margin-bottom: 40px; }
}

/* Buttons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--c-accent);
    color: var(--c-white);
    font-family: var(--f-jp);
    font-weight: 900;
    padding: 18px 50px;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(248, 182, 45, 0.4);
    border: 2px solid var(--c-accent);
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}
.btn:hover {
    background-color: #fff;
    color: var(--c-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(248, 182, 45, 0.6);
}
.btn-black {
    background-color: var(--c-black);
    color: var(--c-white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 2px solid var(--c-black);
}
.btn-black:hover {
    color: var(--c-accent); 
    background-color: var(--c-black);
    box-shadow: 0 8px 25px rgba(248, 182, 45, 0.2);
    transform: translateY(-3px);
}
.btn i { margin-left: 10px; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed; top: 0; left: 0; width: 100%; height: 80px;
    background: #000;
    z-index: 1000; display: flex; align-items: center; justify-content: space-between;
    padding: 0 40px; border-bottom: 1px solid #333;
}
.header-logo img { height: 40px; width: auto; display: block; }
.header-nav ul { display: flex; gap: 30px; align-items: center; }

/* メニューフォント: Oswald */
.header-nav li a { 
    font-family: var(--f-en); 
    font-weight: 700; font-size: 1rem; white-space: nowrap; 
    color: #fff; position: relative; padding-bottom: 5px;
    letter-spacing: 0.05em;
}
.header-nav li a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--c-accent); transition: width 0.3s;
}
.header-nav li a:hover::after { width: 100%; }

.header-nav li a.nav-contact {
    color: #fff;
    border-bottom: 3px solid var(--c-accent);
    font-family: var(--f-en);
    padding-bottom: 3px;
}
.header-nav li a.nav-contact::after { display: none; }
.header-nav li a.nav-contact:hover { opacity: 0.8; }

.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: #fff; z-index: 1002; }

@media (max-width: 1100px) {
    .header { padding: 0 20px; height: 60px; }
    .header-logo img { height: 30px; }
    .header-nav { display: none; }
    .hamburger { display: block; }
}

/* SP Nav Overlay */
.sp-nav-overlay {
    position: fixed; top: 0; right: 0; width: 100%; height: 100vh;
    background: rgba(0,0,0,0.95); z-index: 1001;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: all 0.3s ease;
}
.sp-nav-overlay.active { opacity: 1; pointer-events: auto; }
.sp-nav-overlay ul { text-align: center; }
.sp-nav-overlay li { margin-bottom: 30px; }
.sp-nav-overlay a { font-size: 1.5rem; font-weight: 700; color: #fff; font-family: var(--f-en); }
.sp-nav-overlay .sp-nav-contact { color: var(--c-accent); border-bottom: 2px solid var(--c-accent); }

/* Nav Close Button */
.sp-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1002;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
   FV
   ========================================================================== */
.fv {
    height: 85vh; min-height: 600px; margin-top: 80px;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--c-white);
    position: relative;
}
@media (max-width: 768px) { .fv { margin-top: 60px; height: 70vh; } }

/* サブコピー */
.fv-copy-sub { 
    font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 15px; 
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    background: transparent; display: inline-block; padding: 0;
}

/* メインコピー：発光イエロー */
.fv-copy-main { 
    font-size: 3.8rem; font-weight: 900; line-height: 1.1; margin-bottom: 30px; 
    color: var(--c-accent); 
    text-shadow: 0 0 15px rgba(248, 182, 45, 0.6), 0 2px 10px rgba(0,0,0,0.8);
}

/* 下の日本語との間隔 */
.fv-copy-main span { 
    display: block; font-size: 1.8rem; 
    margin-top: 30px; 
    font-weight: 700; 
    color: #fff; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.fv-text { 
    font-size: 1rem; margin-bottom: 40px; font-weight: 500; opacity: 1; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* スクロール誘導矢印 */
.scroll-down {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: #fff; font-family: var(--f-en); font-size: 0.8rem; letter-spacing: 0.2em;
    animation: scrollBlink 2s infinite; opacity: 0.8;
}
.scroll-down::after {
    content: ''; display: block; width: 2px; height: 40px; background: #fff;
    margin: 10px auto 0;
}
@keyframes scrollBlink {
    0% { transform: translate(-50%, 0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(-50%, 10px); opacity: 0; }
}

@media (max-width: 768px) {
    .fv-copy-main { font-size: 2.2rem; }
    .fv-copy-main span { font-size: 1.2rem; margin-top: 20px; }
}

/* ==========================================================================
   Sections (PROBLEM)
   ========================================================================== */
.trouble {
    background-color: #000;
    color: var(--c-white);
    position: relative;
    overflow: hidden;
    background-image: repeating-linear-gradient(
        45deg,
        #050505,
        #050505 10px,
        #080808 10px,
        #080808 20px
    );
}

.trouble .sec-title-en {
    color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5);
}
.trouble .sec-title-jp {
    color: var(--c-accent); 
    text-shadow: 0 0 15px rgba(248, 182, 45, 0.6);
}
.trouble .sec-title-jp::after { display: none; }

.trouble-list {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
    margin-bottom: 60px;
}

.trouble-item {
    background: rgba(20, 20, 20, 0.6); 
    padding: 60px 30px 40px;
    border: 1px solid #333;
    position: relative;
    text-align: center;
    transition: 0.3s;
    width: 100%;
}

.trouble-item::before, .trouble-item::after {
    content: ''; position: absolute; width: 20px; height: 20px;
    border: 3px solid var(--c-accent); transition: 0.3s; pointer-events: none;
}
.trouble-item::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.trouble-item::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.trouble-item:hover {
    background: rgba(248, 182, 45, 0.05);
    border-color: #555;
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(248, 182, 45, 0.1);
}

.trouble-icon {
    position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
    width: 80px; height: 80px;
    background: #000;
    border: 2px solid var(--c-accent);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 2rem;
    color: var(--c-accent);
    box-shadow: 0 0 20px rgba(248, 182, 45, 0.4); 
    z-index: 1;
}

.trouble-text {
    font-size: 1.1rem; font-weight: 700; line-height: 1.8; margin-top: 10px;
}

.trouble-solution {
    text-align: center; margin-top: 60px;
    border: 1px solid var(--c-accent);
    padding: 40px; position: relative;
    background: rgba(248, 182, 45, 0.05);
}
.trouble-solution::before, .trouble-solution::after {
    content: ''; position: absolute; width: 30px; height: 30px;
    border: 4px solid var(--c-accent);
}
.trouble-solution::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.trouble-solution::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

.trouble-solution h3 { font-size: 2rem; font-weight: 900; color: #fff; margin-bottom: 20px; }
.trouble-solution h3 span { color: var(--c-accent); font-size: 2.5rem; text-shadow: 0 0 10px rgba(248,182,45,0.5); }
.trouble-solution p { font-size: 1rem; color: #ccc; line-height: 2; }

@media (max-width: 768px) {
    .trouble-list { grid-template-columns: 1fr; gap: 50px; }
    .trouble-item { margin-top: 20px; }
    .trouble-solution { padding: 30px 20px; }
    .trouble-solution h3 { font-size: 1.5rem; }
    .trouble-solution h3 span { font-size: 1.8rem; }
}

/* ==========================================================================
   Sections (ABOUT)
   ========================================================================== */
.about-grid { display: flex; align-items: center; gap: 50px; }
.about-img { flex: 1; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.about-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }

.about-content { flex: 1; text-align: center; }
.about-head { font-size: 1.8rem; font-weight: 900; margin-bottom: 20px; line-height: 1.4; }
.about-head span { background: linear-gradient(transparent 70%, rgba(248, 182, 45, 0.4) 70%); }

.marker-highlight {
    background: linear-gradient(transparent 60%, rgba(248, 182, 45, 0.6) 60%);
    font-weight: 900;
}

.about-check { margin-top: 30px; display: inline-block; text-align: left; }
.about-check li { margin-bottom: 10px; font-weight: 700; display: flex; align-items: center; }
.about-check li i { color: var(--c-accent); margin-right: 10px; font-size: 1.2rem; }
@media (max-width: 768px) { .about-grid { flex-direction: column; } .about-head { font-size: 1.4rem; } }

/* ==========================================================================
   WORKS Section
   ========================================================================== */
.works-section {
    padding: 100px 0; background-color: var(--c-black);
    position: relative; overflow: hidden; color: var(--c-white);
}
.works-bg-text {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-family: var(--f-en); font-size: 15vw; font-weight: 700;
    color: rgba(255, 255, 255, 0.03); white-space: nowrap; pointer-events: none;
}
.works-section .sec-title-jp { color: #fff; }

.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 60px; position: relative; z-index: 1; }

.work-card {
    display: block; position: relative; border-radius: 4px; overflow: hidden;
    background: #000; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.work-img-wrap { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; }
.work-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.work-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); transition: background 0.4s;
    display: flex; flex-direction: column; justify-content: flex-end; padding: 30px;
}

.work-card:hover .work-img-wrap img { transform: scale(1.1); }
.work-card:hover .work-overlay { background: rgba(0,0,0,0.7); }

.work-cat {
    font-family: var(--f-en); font-size: 0.8rem; color: var(--c-accent);
    font-weight: 700; letter-spacing: 0.1em; margin-bottom: 5px;
    display: inline-block; background: rgba(0,0,0,0.8); padding: 4px 10px;
    border: 1px solid var(--c-accent);
    transform: translateY(10px); transition: transform 0.4s ease;
}
.work-card:hover .work-cat { transform: translateY(0); }

.work-title {
    font-size: 1.1rem; font-weight: 700; color: #fff; line-height: 1.4;
    margin-top: 10px; transform: translateY(10px); transition: transform 0.4s ease;
}
.work-card:hover .work-title { transform: translateY(0); }

.work-arrow {
    position: absolute; top: 20px; right: 20px; width: 40px; height: 40px;
    background: var(--c-accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #000; font-size: 1.2rem;
    transform: scale(0) rotate(-45deg); transition: all 0.4s; opacity: 0;
}
.work-card:hover .work-arrow { transform: scale(1) rotate(0); opacity: 1; }

.view-more-btn {
    display: inline-block; border: 1px solid rgba(255,255,255,0.3);
    padding: 15px 60px; color: #fff; font-family: var(--f-en);
    font-size: 1rem; letter-spacing: 0.1em; position: relative;
    overflow: hidden; background: transparent; cursor: pointer; z-index: 1;
}
.view-more-btn::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%;
    background: var(--c-accent); transition: width 0.3s ease; z-index: -1;
}
.view-more-btn:hover { color: var(--c-black); border-color: var(--c-accent); }
.view-more-btn:hover::before { width: 100%; }

@media (max-width: 768px) {
    .works-bg-text { font-size: 20vw; top: 10%; }
    .works-section { padding: 60px 0; }
    .works-grid { grid-template-columns: 1fr; gap: 20px; }
    .work-overlay { background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); padding: 20px; }
    .work-arrow { transform: scale(1); opacity: 1; background: rgba(255,255,255,0.2); color: #fff; width: 30px; height: 30px; font-size: 1rem; }
    .work-cat, .work-title { transform: translateY(0); }
}

/* ==========================================================================
   GROWTH Section (Dark Mode & Brackets)
   ========================================================================== */
.growth-section {
    padding: 120px 0;
    position: relative; overflow: hidden;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    color: #fff;
}
.bg-deco-text {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-family: var(--f-en); font-size: 20vw; font-weight: 700;
    color: rgba(255, 255, 255, 0.02); white-space: nowrap; pointer-events: none;
}
.growth-section .sec-header { margin-bottom: 80px; position: relative; z-index: 2; }
.growth-section .sec-title-jp { color: #fff; }

.growth-lead {
    text-align: center; max-width: 800px; margin: 0 auto 60px;
    font-weight: 500; color: #ccc; line-height: 2; position: relative; z-index: 2;
}
.growth-lead strong {
    color: var(--c-accent); background: rgba(248, 182, 45, 0.1); padding: 0 5px;
}

.process-wrapper {
    display: flex; justify-content: center; gap: 20px;
    perspective: 1000px; position: relative; z-index: 2;
}

.process-card {
    flex: 1; background: #151515;
    border: 1px solid #333; padding: 40px 30px;
    position: relative; transition: 0.4s;
}

.process-card::before, .process-card::after {
    content: ''; position: absolute; width: 15px; height: 15px;
    border: 3px solid var(--c-accent); transition: 0.3s;
}
.process-card::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.process-card::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.process-card:hover {
    transform: translateY(-10px);
    border-color: #555;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    background: rgba(255,255,255,0.02);
}

.step-num {
    font-family: var(--f-en); font-size: 4rem; color: #222;
    line-height: 1; font-weight: 700;
    position: absolute; top: 10px; right: 20px; transition: 0.4s;
}
.process-card:hover .step-num { color: rgba(248, 182, 45, 0.2); }

.icon-area {
    font-size: 2.5rem; color: var(--c-accent); margin-bottom: 20px; display: inline-block;
}
.process-card h3 {
    font-size: 1.4rem; font-weight: 900; margin-bottom: 15px; letter-spacing: 0.05em;
}
.process-card p {
    font-size: 0.9rem; color: #999; line-height: 1.8;
}

.connect-arrow {
    display: flex; align-items: center; justify-content: center;
    color: #444; font-size: 1.5rem; width: 40px;
}

@media (max-width: 768px) {
    .bg-deco-text { display: none; }
    .process-wrapper { flex-direction: column; gap: 30px; }
    .connect-arrow { width: 100%; height: 30px; transform: rotate(90deg); }
    .process-card { text-align: center; }
    .step-num { position: static; display: block; margin-bottom: 10px; font-size: 2rem; color: var(--c-accent); }
}

/* ==========================================================================
   Sections (LOGIC, MEMBER)
   ========================================================================== */
.logic { background-color: var(--c-gray); }
.logic-intro { text-align: center; max-width: 800px; margin: 0 auto 50px; font-weight: 500; }
.logic-flow { display: flex; justify-content: space-between; align-items: stretch; max-width: 1000px; margin: 0 auto; position: relative; }

.logic-step {
    background: #fff; padding: 30px 20px; 
    width: 28%; border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center; position: relative;
    border-bottom: 4px solid var(--c-accent);
}
.logic-step:not(:last-child)::after {
    content: '\f054'; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; right: -18%; top: 50%; transform: translateY(-50%); color: #ccc; font-size: 1.5rem;
}
.logic-icon { font-size: 2.5rem; color: var(--c-black); margin-bottom: 15px; }
.logic-name { font-size: 1.2rem; font-weight: 900; margin-bottom: 10px; }
.logic-desc { font-size: 0.9rem; text-align: left; color: #555; }

@media (max-width: 768px) {
    .logic-flow { flex-direction: column; gap: 80px; }
    .logic-step { width: 100%; }
    .logic-step:not(:last-child)::after { 
        content: '\f078'; right: auto; left: 50%; top: auto; bottom: -60px; 
        transform: translateX(-50%); 
    }
    .logic-desc { text-align: center; }
}

.member-bg { background-color: #f9f9f9; }
.member-grid { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.member-card {
    background: #fff; padding: 30px; border-radius: 8px; border: 1px solid #eee;
    width: 48%; min-width: 320px; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.member-img {
    width: 150px; height: 150px; object-fit: cover; border-radius: 50%;
    background: #ccc; margin-bottom: 20px;
}
.member-role { font-family: var(--f-en); color: var(--c-accent); font-weight: 700; margin-bottom: 5px; display: block; font-size: 0.9rem;}
.member-name { font-size: 1.3rem; font-weight: 900; margin-bottom: 15px; }
.member-desc { font-size: 0.9rem; text-align: left; line-height: 1.8; width: 100%; }
@media (max-width: 768px) { .member-card { width: 100%; } }

/* ==========================================================================
   COMPARISON Section
   ========================================================================== */
.comparison {
    background-color: #000;
    color: #fff;
    padding: 100px 0;
}
.comparison .sec-title-jp { color: #fff; }
.comparison .sec-title-jp::after { background: var(--c-accent); }

/* 表のラッパー: 余白は親のContainer(20px)に従う */
.comparison-wrapper { margin-top: 40px; width: 100%; }

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #111;
    table-layout: fixed; /* 均等幅レスポンシブ */
}

/* 共通セル設定 */
.comparison-table th, .comparison-table td {
    padding: 30px 10px; 
    border: 1px solid #333;
    text-align: center;
    vertical-align: middle;
    width: 25%;
    word-wrap: break-word;
}

/* ヘッダー */
.comparison-table th {
    background: #222;
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
}

/* 1列目（項目名） */
.comparison-table td:first-child {
    font-weight: 700;
    background: #181818;
    font-size: 1rem;
}

/* 評価セル（データ部分） */
.comparison-table td:not(:first-child) {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}

/* 記号（◎◯△×）の強調 */
.mark {
    display: block;
    font-size: 2rem; 
    line-height: 1;
    margin-bottom: 5px;
}

/* South City Column */
.comparison-table .col-sc {
    background: #1a1a1a;
    border: 2px solid var(--c-accent);
    position: relative; z-index: 1;
}
.comparison-table th.col-sc {
    color: var(--c-accent);
    font-size: 1.3rem;
}
.comparison-table td.col-sc {
    color: #fff;
    background: rgba(248, 182, 45, 0.05);
}
.comparison-table td.col-sc .mark {
    color: var(--c-accent);
    text-shadow: 0 0 10px rgba(248, 182, 45, 0.6); 
}

/* 他社カラム */
.comparison-table td:not(.col-sc):not(:first-child) {
    color: #bbb;
}
.comparison-table td:not(.col-sc):not(:first-child) .mark {
    color: #888;
}

/* タブレット (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .comparison-table th, .comparison-table td {
        padding: 25px 5px;
    }
    .comparison-table th { font-size: 1rem; }
    .comparison-table td:not(:first-child) { font-size: 1.1rem; }
    .mark { font-size: 1.8rem; }
}

/* 横幅1000px以下（スマホ）向け調整 */
@media (max-width: 768px) {
    /* コンテナの余白は20pxに戻す */
    .container { padding: 0 20px; } 

    /* 表だけネガティブマージンで左右に広げる */
    .comparison-wrapper {
        margin-left: -10px; 
        margin-right: -10px;
        width: calc(100% + 20px);
    }

    .comparison-table th, .comparison-table td {
        padding: 25px 2px; /* 左右余白を詰める */
    }

    /* ヘッダー改行なし（強制） */
    .comparison-table th {
        white-space: nowrap;
        font-size: 10px;
        letter-spacing: -0.05em;
    }
    
    .comparison-table td:first-child {
        font-size: 10px;
        letter-spacing: -0.05em;
    }

    /* 評価文字サイズ調整 */
    .comparison-table td:not(:first-child) {
        font-size: 11px;
    }

    /* 記号は大きく維持 */
    .mark {
        font-size: 24px;
        margin-bottom: 3px;
    }

    /* SCカラム調整 */
    .comparison-table th.col-sc { font-size: 11px; }
    .comparison-table td.col-sc { font-size: 12px; }

    /* 補足テキスト */
    .comparison-table span {
        font-size: 9px !important;
        display: block;
        transform: scale(0.85);
        white-space: normal;
    }
}

/* ==========================================================================
   PLAN Section
   ========================================================================== */
.plan-wrapper {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch;
}
.plan-card {
    background: #fff; border: 1px solid #eee;
    border-radius: 8px; overflow: hidden; position: relative; transition: 0.3s;
    display: flex; flex-direction: column; width: 100%;
}
.plan-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.plan-badge { font-size: 0.8rem; margin-bottom: 5px; color: var(--c-accent); font-weight: 700; display: block; }

.plan-card.rec { border: 4px solid var(--c-accent); z-index: 2; }
/* 文言: オススメ */
.plan-card.rec::before {
    content: 'オススメ';
    position: absolute; top: 12px; left: -25px;
    background: #e60012; color: #fff; font-weight: 700; font-size: 0.8rem;
    padding: 5px 30px; transform: rotate(-45deg); z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.plan-card.rec .plan-head { background: var(--c-accent); color: var(--c-black); }
.plan-card.rec .plan-badge { color: var(--c-black); }
.plan-head { background: var(--c-black); color: #fff; padding: 25px 20px; text-align: center; }
.plan-name { font-size: 1.4rem; font-weight: 900; margin-bottom: 5px; }
.plan-price { font-family: var(--f-en); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.plan-price span { font-size: 1rem; font-weight: 400; }
.plan-body { padding: 30px 20px; flex-grow: 1; display: flex; flex-direction: column;}
.plan-desc { text-align: center; font-weight: 700; margin-bottom: 20px; font-size: 0.95rem; color: #666; }
.plan-card.rec .plan-desc { color: #d49612; }
.plan-list { margin-bottom: auto; }
.plan-list li {
    margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed #eee;
    font-size: 0.9rem; position: relative; padding-left: 1.2em;
}
.plan-list li::before { content: '✔'; position: absolute; left: 0; color: var(--c-accent); font-weight: 700; }
.plan-list li.strong { font-weight: 700; background: #fffcf0; }
@media (max-width: 768px) {
    .plan-wrapper { grid-template-columns: 1fr; gap: 20px; }
    .plan-card { width: 100%; max-width: none; margin-bottom: 20px; }
    .plan-card.rec { margin-bottom: 30px; } 
}

.faq-item { background: #fff; margin-bottom: 10px; border: 1px solid #eee; border-radius: 4px; }
.faq-q { padding: 20px; font-weight: 700; cursor: pointer; position: relative; padding-left: 50px; }
.faq-q::before { content: 'Q'; position: absolute; left: 20px; color: var(--c-accent); font-family: var(--f-en); font-weight: 700; }
.faq-a { padding: 20px; border-top: 1px solid #eee; display: none; font-size: 0.95rem; background: #fdfdfd; }
.faq-item.open .faq-a { display: block; }

.cta {
    background-size: cover; background-position: center;
    border-top: 5px solid var(--c-accent); border-bottom: 5px solid var(--c-accent);
    color: #fff; text-align: center; padding: 120px 0; position: relative; overflow: hidden;
}
.cta .container { position: relative; z-index: 1; }
.cta-title { 
    font-size: 2.5rem; font-weight: 900; margin-bottom: 20px; text-shadow: 0 5px 15px rgba(0,0,0,0.5); 
    display: inline-block; position: relative; z-index: 1;
}
/* CTAタイトル: アンダーバー */
.cta-title::after {
    content: '';
    position: absolute;
    bottom: 5px; left: 0; width: 100%; height: 10px;
    background: var(--c-accent);
    z-index: -1;
    opacity: 0.8;
}
.cta p { margin-bottom: 40px; font-weight: 700; font-size: 1.1rem; }

/* ==========================================================================
   Page: Contact & Privacy Policy
   ========================================================================== */
.page-header {
    background-color: var(--c-black); color: var(--c-white); padding: 180px 0 100px;
    text-align: center; background-size: cover; background-position: center;
}
.page-title-en {
    font-family: var(--f-en); font-size: 3.5rem; font-weight: 700; display: block;
    color: var(--c-accent); line-height: 1; margin-bottom: 15px; text-transform: uppercase;
}
.page-title-jp { font-size: 1.2rem; font-weight: 700; letter-spacing: 0.1em; }

.contact-section { padding: 100px 0; background-color: var(--c-gray); }
.form-wrapper {
    max-width: 800px; margin: 0 auto; background: #fff; padding: 60px;
    border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.form-group { margin-bottom: 35px; }
.form-label { display: flex; align-items: center; font-weight: 700; margin-bottom: 10px; font-size: 1rem; flex-wrap: wrap; }
.label-badge { font-size: 0.7rem; padding: 3px 8px; border-radius: 4px; margin-left: 10px; color: #fff; font-weight: 700; }
.label-badge.required { background-color: #ff4d4d; }
.label-badge.optional { background-color: #999; }
.form-control {
    width: 100%; padding: 16px; border: 1px solid #ddd; border-radius: 6px;
    font-size: 1rem; font-family: inherit; background: #fdfdfd; transition: 0.3s;
}
.form-control:focus { outline: none; border-color: var(--c-accent); background: #fff; box-shadow: 0 0 0 3px rgba(248, 182, 45, 0.2); }
textarea.form-control { height: 200px; resize: vertical; }

.radio-group { display: flex; flex-wrap: wrap; gap: 20px; }
.radio-label {
    display: flex; align-items: center; cursor: pointer; font-weight: 500;
    padding: 10px 20px; border: 1px solid #ddd; border-radius: 4px; background: #fff; transition: 0.2s;
}
.radio-label:hover { border-color: var(--c-accent); background: #fffbf0; }
.radio-label input { margin-right: 8px; accent-color: var(--c-accent); transform: scale(1.2); }
.privacy-check {
    text-align: center; margin: 40px 0; padding: 30px; background: #f9f9f9; border-radius: 8px;
}
.privacy-check label { cursor: pointer; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; }
.privacy-check input { transform: scale(1.3); accent-color: var(--c-accent); }
.submit-area { text-align: center; }

/* スマホ用スタイル調整 */
@media (max-width: 768px) {
    .page-title-en { font-size: 2.5rem; }
    .contact-section { padding: 60px 0; }
    .form-wrapper { padding: 30px 20px; }
    .radio-group { flex-direction: column; gap: 10px; }
    .radio-label { width: 100%; }
    
    .btn { 
        width: 100%; 
        max-width: none; 
        padding: 15px 10px; /* 余白削減 */
        font-size: 0.9rem;  /* 文字サイズ縮小 */
    }
    
    .cta-title { font-size: 2.0rem; }
}

/* ==========================================================================
   Footer & Sponsors (PC:6 cols / SP:3 cols / Aspect Ratio 32:9)
   ========================================================================== */
.footer { background: #000; color: #888; padding: 60px 0 20px; text-align: center; font-size: 0.8rem; margin-top: auto; }

/* ★修正: フッターロゴのサイズを大きくする */
.footer-logo img { height: 80px; margin: 0 auto 30px; display: block; }

.footer-link-btn {
    display: inline-block; border: 1px solid #444; padding: 12px 35px;
    color: #ccc; margin-bottom: 60px; transition: 0.3s;
    font-weight: 900; letter-spacing: 0.05em;
}
.footer-link-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }

.footer-sponsors {
    max-width: 1000px; margin: 0 auto 40px; padding: 40px 0 0; border-top: 1px solid #222;
}
.footer-sponsors-title {
    font-family: var(--f-en); color: #555; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 20px;
}

/* ----------------------------------------------------------
   SC BUSINESS & SPONSORS・PARTNERS
   (共通仕様: PC6列, SP3列, 比率32:9, 画像フル表示)
---------------------------------------------------------- */
.sc-business-list,
.partners-list {
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 10px;
}

.sc-business-list li,
.partners-list li {
    /* PC: 6列 */
    width: calc((100% - 50px) / 6);
    
    /* アスペクト比 32:9 強制固定 */
    aspect-ratio: 32 / 9 !important;
    
    /* 高さ自動・画像フル表示(contain) */
    height: auto !important;
    background: #000;
    border-radius: 4px; 
    overflow: hidden;
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.sc-business-list li img,
.partners-list li img {
    width: 100% !important;
    height: 100% !important;
    
    /* 画像をトリミングせずフルで表示 */
    object-fit: contain !important; 
}

/* ----------------------------------------------------------
   Policy & Copyright
---------------------------------------------------------- */
.footer-policy { margin-bottom: 20px; }
.footer-policy a { 
    color: #666; 
    font-size: 0.8rem; 
    transition: 0.3s; 
    font-family: var(--f-en); 
    letter-spacing: 0.05em;
    display: inline-block;
    border: 1px solid #666;
    padding: 10px 30px;
    background: transparent;
}
.footer-policy a:hover { 
    color: var(--c-accent); 
    border-color: var(--c-accent);
}

.copyright { font-family: var(--f-en); letter-spacing: 0.05em; }

/* ==========================================================================
   Responsive (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* スマホ時は3列にしつつ 32:9 を維持 */
    .sc-business-list li,
    .partners-list li {
        /* スマホ: 3列 */
        width: calc((100% - 20px) / 3) !important;
        
        /* スマホでも比率を絶対死守 */
        aspect-ratio: 32 / 9 !important;
    }
}

/* Fixed Elements (SP Footer & Banner) */
.sp-fixed-footer {
    display: none; position: fixed; bottom: 0; left: 0; width: 100%; height: 70px;
    z-index: 9999; background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
.sp-footer-btn {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    width: 50%; height: 100%; font-weight: 900; font-size: 0.9rem; color: #fff;
    animation: pulseBtn 3s infinite;
}
.line-btn { background-color: #06C755; }
.contact-btn { background-color: var(--c-accent); color: var(--c-black); }
.sp-footer-btn i { font-size: 1.4rem; margin-bottom: 4px; }

@keyframes pulseBtn {
    0%, 90% { transform: scale(1); }
    93% { transform: scale(1.05); }
    96% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) { .sp-fixed-footer { display: flex; } }

.pc-fixed-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: rgba(0,0,0,0.9); padding: 15px 0;
    z-index: 999; display: flex; justify-content: center; align-items: center; gap: 20px;
    border-top: 3px solid var(--c-accent);
}
.pc-banner-btn-wrap { display: flex; gap: 15px; }
.pc-banner-btn {
    display: flex; align-items: center; justify-content: center;
    padding: 12px 30px; border-radius: 50px; font-weight: 900; font-size: 0.95rem;
    transition: 0.3s; width: 220px;
}
.pc-banner-btn.line { background: #06C755; color: #fff; }
.pc-banner-btn.line:hover { background: #05b54d; }
.pc-banner-btn.contact { background: var(--c-accent); color: #fff; }
.pc-banner-btn.contact:hover { background: #fff; color: var(--c-accent); }
.pc-banner-btn i { margin-right: 8px; font-size: 1.2rem; }

/* Contact Form 7 Overrides */
.wpcf7-spinner { display: none; }

/* Pagination (一覧ページ用) */
.pagination { text-align: center; margin-top: 50px; }
.nav-links { display: inline-flex; gap: 10px; }
.nav-links a, .nav-links span {
    display: flex; justify-content: center; align-items: center;
    width: 40px; height: 40px; border: 1px solid #444; color: #fff;
    text-decoration: none; transition: 0.3s;
}
.nav-links a:hover, .nav-links span.current {
    background: var(--c-accent); color: var(--c-black); border-color: var(--c-accent);
}

/* ==========================================================================
   Single Works Page (詳細ページ)
   ========================================================================== */
.single-work-section {
    background: #fff; /* 本文は読みやすく白背景 */
    color: var(--c-black);
}

.single-article {
    max-width: 840px;
    margin: 0 auto;
}

/* アイキャッチ画像 */
.single-thumb {
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}
.single-thumb img { width: 100%; height: auto; display: block; }

/* メタ情報 */
.single-meta {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    display: flex; gap: 20px; align-items: center;
    font-family: var(--f-en);
}
.work-date { color: #888; font-weight: 500; }
.work-label {
    background: var(--c-black); color: #fff;
    padding: 2px 10px; font-size: 0.8rem; border-radius: 2px;
}

/* 本文エリア（ブロックエディタ用スタイル） */
.single-content {
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 80px;
}
.single-content h2 {
    font-size: 1.8rem; margin: 50px 0 30px;
    font-weight: 900; position: relative; padding-bottom: 10px;
}
.single-content h2::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 60px; height: 3px; background: var(--c-accent);
}
.single-content h3 {
    font-size: 1.4rem; margin: 40px 0 20px;
    border-left: 5px solid var(--c-accent); padding-left: 15px; font-weight: 700;
}
.single-content p { margin-bottom: 30px; }
.single-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 20px 0; }
.single-content ul { margin-bottom: 30px; padding-left: 20px; list-style: disc; }
.single-content li { margin-bottom: 10px; list-style: disc; }

/* 一覧へ戻るボタンエリア */
.single-footer-nav { text-align: center; margin-top: 60px; }

/* スマホ調整 */
@media (max-width: 768px) {
    .single-content h2 { font-size: 1.5rem; }
    .single-content h3 { font-size: 1.2rem; }
}