/*
Theme Name: Studio Ember
Description: 初期費用0円のサブスクWeb制作
Author: Studio Ember
Version: 1.0.0
*/

@charset "UTF-8";

/* --- 1. 定義 (Variables) --- */
:root {
    --primary: #2B2A2D;
    --accent: #D95E32;
    --bg-light: #F5F3F0;
    --bg-white: #FFFFFF;
    --text: #2B2A2D;
    --text-sub: #636C75;
    --border: #E0DED9;
    --radius: 2px;
    --shadow: 0 4px 20px rgba(43, 42, 45, 0.08);
    --font-en: "Montserrat", "Futura", sans-serif;
    --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

/* --- 2. Base --- */
body {
    font-family: var(--font-en), var(--font-jp);
    color: var(--text);
    background-color: var(--bg-light);
    margin: 0;
    line-height: 2;
    letter-spacing: 0.06em;
}

h1, h2, h3 {
    font-family: var(--font-jp);
    color: var(--primary);
    margin: 0;
    line-height: 1.4;
    font-weight: 700;
}

.section-title span, .hero-tagline, .logo-svg text, .price {
    font-family: var(--font-en);
}

a { text-decoration: none; transition: 0.3s; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 20px;
}

.bg-gray { background-color: var(--bg-white); }
.bg-dark { background-color: var(--primary); color: #fff; }

/* --- 3. Buttons --- */
.btn {
    display: inline-block;
    padding: 16px 45px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    box-shadow: 0 4px 15px rgba(217, 94, 50, 0.3);
}
.btn-primary:hover {
    background-color: #c04d25;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 94, 50, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}
.btn-secondary:hover {
    background-color: #fff;
    color: var(--primary);
}

.btn-outline {
    border: 1px solid var(--text);
    background: transparent;
    color: var(--text);
}
.btn-outline:hover {
    background: var(--text);
    color: #fff;
}

/* --- 4. Header --- */
header {
    background-color: rgba(43, 42, 45, 0.95);
    backdrop-filter: blur(5px);
    padding: 20px 0;
    position: sticky; /* スクロール追従（元の設定を維持） */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999; /* ★1000から9999に格上げ（フォーム被り完全防止） */
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-inner {
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.logo-svg {
    display: block;
    color: #fff;
    transition: opacity 0.3s;
}
.logo-svg:hover { opacity: 0.8; }
.logo-svg .symbol-base { fill: #fff; }

.nav-menu { margin-left: auto; }
.nav-menu ul { display: flex; gap: 40px; align-items: center; }

.nav-menu li:not(.cta-btn) a {
    font-size: 0.85rem;
    font-weight: 500;
    color: #ccc;
    letter-spacing: 0.05em;
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.nav-menu li:not(.cta-btn) a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgb(171, 46, 0), 0 0 20px rgba(220, 123, 88, 0.5);
}

.nav-menu .cta-btn a {
    background-color: var(--accent);
    color: #fff;
    padding: 12px 25px;
    border-radius: var(--radius);
    transition: 0.3s;
    text-shadow: none; 
}
.nav-menu .cta-btn a:hover {
    background-color: #fff;
    color: var(--accent);
}

/* --- 5. Hero --- */
.hero {
    height: 90vh;
    min-height: 600px;
    background-color: var(--primary);
    background-image: linear-gradient(rgba(43, 42, 45, 0.7), rgba(43, 42, 45, 0.85)), /* 暗いフィルター */
        url('./image/irina-iriser-H36GOz0SXI0-unsplash.webp'); /* 背景画像 */
    background-size: cover;   /* 画面いっぱいに広げる */
    background-position: center; /* 真ん中を表示 */
    background-repeat: no-repeat;
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    font-weight: 500;
    margin-bottom: 20px;
    display: block;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #fff;
    letter-spacing: 0.05em;
    text-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.hero-desc {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 50px;
    line-height: 2.2;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- 6. Section Titles --- */
.section-title {
    text-align: center;
    margin-bottom: 80px;
}
.section-title span {
    display: block;
    font-size: 1.3rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}
.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary);
    position: relative;
}
.section-title.white h2 { color: #fff; }

/* --- 7. Concept & Service --- */
.lead-text {
    font-size: 1.4rem;
    line-height: 2.2;
    text-align: center;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 40px;
}
.service-intro { max-width: 800px; margin: 0 auto; text-align: center; }
.service-intro p { color: var(--text-sub); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.feature-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: 0.3s;
    border-top: 3px solid transparent;
}
.feature-card:hover {
    transform: translateY(-5px);
    background: #fff;
    border-top-color: var(--accent);
    box-shadow: var(--shadow);
}
.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
    text-align: center;
    display: block;
    width: 100%;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 15px; font-family: var(--font-en); }
.feature-card p strong { color: var(--primary); display: block; margin-bottom: 5px; }

/* --- 8. Works (Inner Link Style) --- */
#works { 
    background-color: var(--bg-light); 
    padding-bottom: 120px; 
    overflow: hidden; 
}

.coverflow-container {
    width: 100%;
    display: flex;
    justify-content: center;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.coverflow-track {
    display: flex;
    gap: 30px; 
    overflow-x: auto; 
    padding: 60px 0;
    box-sizing: border-box;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}
.coverflow-track::-webkit-scrollbar { display: none; }

/* カード本体 */
.work-card {
    flex: 0 0 320px;
    height: auto;
    min-height: 100%;
    
    display: flex;
    flex-direction: column;

    background: #fff;
    border-radius: 4px;
    position: relative;
    border: 1px solid var(--border);
    opacity: 1;
    transform: none;
    filter: none;
    
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* アクティブ時の発光 */
.work-card.active {
    border-color: rgba(217, 94, 50, 0.5);
    box-shadow: 0 10px 30px -5px rgba(217, 94, 50, 0.3); 
    z-index: 10;
}

.work-img { 
    height: 240px; 
    width: 100%;
    overflow: hidden; 
    border-bottom: 1px solid var(--border);
    flex-shrink: 0; 
}
.work-img img { 
    width: 100%; height: 100%; object-fit: cover; 
    transition: transform 0.5s ease;
}
/* 画像のズーム演出は維持 */
.work-card:hover .work-img img {
    transform: scale(1.05);
}

.work-content { 
    padding: 25px; 
    text-align: left;
    flex-grow: 1;
    display: flex;       /* 中身を縦に並べる */
    flex-direction: column; 
}
.work-content h3 { 
    font-size: 1.1rem; 
    margin-bottom: 10px; 
    color: var(--primary);
    font-weight: 700;
}
.tags span { 
    font-size: 0.7rem; 
    color: var(--accent); 
    background: rgba(217, 94, 50, 0.1); 
    padding: 3px 10px; 
    border-radius: 4px;
    display: inline-block;
    font-weight: 500;
}

/* ★追加：サイトを見るリンクのデザイン */
.work-link {
    margin-top: auto; /* 一番下に配置 */
    padding-top: 20px;
}

.work-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s;
}

.work-link a:hover {
    opacity: 0.7;
    text-decoration: underline; /* リンクらしさを出す */
}

/* 矢印のアニメーション */
.work-link .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-family: var(--font-en); /* 矢印の形を綺麗に */
}

.work-link a:hover .arrow {
    transform: translateX(5px); /* 右に動く */
}

/* リンク無効時のデザイン */
.work-link.disabled span {
    font-size: 0.8rem;
    color: #ccc;
}

/* --- 9. Pricing --- */
.pricing-grid {
    display: grid;
    /* 1列あたり最大400pxまでに制限して、3列並べる */
    grid-template-columns: repeat(4, minmax(0, 300px)); 
    gap: 30px;
    align-items: stretch;
    justify-content: center; /* ★PCで3つのカードを中央に寄せる */
    margin-top: 50px;
}

#pricing .plan-card {
    background: #fff;
    color: var(--text);
    padding: 80px 20px; 
    border-radius: var(--radius);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    height: auto;
    min-height: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

#pricing .plan-card:hover {
    transform: translateY(-5px);
}


#pricing .plan-card h3 {
    margin-bottom: 20px;
}

#pricing .price-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#pricing .price-box .label {
    font-size: 0.9rem;
    color: var(--text-sub);
    font-weight: 500;
    margin-bottom: 5px;
}

#pricing .plan-list {
    margin: 30px 0; /* 上下の余白 */
    flex-grow: 1;   /* 余白があればリスト部分を伸ばす */
    text-align: left; /* リストは左揃えで見やすく */
    padding-left: 20px; /* 箇条書きのインデント */
}

#pricing .plan-list li {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-sub);
    list-style: disc; /* 中黒をつける */
}

#pricing .price { 
    color: var(--primary); 
    font-weight: 700; 
    margin: 0;
    display: flex;
    align-items: baseline; /* 数字と「円」の下のラインを揃える */
    white-space: nowrap; /* 途中で不自然に改行されるのを防ぐ */
}

#pricing .price .num {
    font-size: 2.5rem;
    margin: 0 5px;
    font-family: var(--font-en);
    line-height: 1;
}

#pricing .price .unit {
    font-size: 1rem;
}

#pricing .price span {
    font-size: 2.5rem;
    margin: 0 5px;
    font-family: var(--font-en);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.btn-outline-white:hover {
    background: #fff;
    color: var(--primary);
}

/* スタンダードプラン（おすすめ）のデザイン */
#pricing .plan-card.recommended {
    border: 3px solid var(--accent); /* オレンジの枠線 */
    position: relative;
    z-index: 1;
    /* 影をつけて少し目立たせる */
    box-shadow: 0 10px 30px rgba(217, 94, 50, 0.15);
}

#pricing .badge {
    background: var(--accent);
    color: #fff;
    position: absolute;
    top: 0; 
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 8px 20px;
    font-size: 0.85rem;
    font-family: var(--font-en);
    font-weight: 600;
    border-radius: 50px;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

/* --- 10. Staff --- */
.staff-card {
    background: #fff;
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 50px;
    border-left: 5px solid var(--primary);
    box-shadow: var(--shadow);
}
.staff-img {
    width: 150px; height: 150px;
    /* background: var(--primary); */
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
}
.staff-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ★重要：比率を保ったまま枠いっぱいにする */
}
.staff-info h3 { font-size: 0.9rem; color: var(--accent); margin-bottom: 10px; letter-spacing: 0.1em; }
.staff-info .name { font-size: 1.8rem; margin-bottom: 20px; }
.staff-info .bio { font-size: 0.95rem; line-height: 1.8; color: var(--text-sub); }

/* --- 11. FAQ --- */
#faq { background: var(--bg-light); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: #fff;
    margin-bottom: 15px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: 0.3s;
}
.faq-q {
    padding: 25px 60px 25px 30px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    color: var(--primary);
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
}
.faq-q:hover { background-color: #fafafa; }
.faq-q::before {
    content: "Q.";
    color: var(--accent);
    font-family: var(--font-en);
    font-weight: 700;
    margin-right: 15px;
    font-size: 1.1rem;
}
.faq-q::after {
    content: '+';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 300;
    transition: transform 0.3s ease;
    line-height: 1;
}
.faq-item.active .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-item.active .faq-q { color: var(--accent); }
.faq-a {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 30px;
    background: #fff;
    color: var(--text-sub);
    line-height: 1.8;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border-top: 1px solid transparent;
}
.faq-item.active .faq-a {
    max-height: 500px;
    opacity: 1;
    padding-top: 20px;
    padding-bottom: 35px;
    border-top: 1px solid var(--border);
}

/* --- 12. Footer --- */
footer {
    background: var(--primary);
    color: #fff;
    padding: 100px 20px;
    text-align: center;
    border-top: 3px solid var(--accent);
}
footer h2 { color: #fff; margin-bottom: 20px; font-weight: 400; }
footer .btn-primary { 
    background: var(--accent); 
    border-color: var(--accent);
    min-width: 300px;
}
footer .btn-primary:hover { background: #fff; color: var(--accent); }

/* --- Responsive --- */
.hamburger { display: none; }

/* --- News (新着情報) --- */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}
.news-item {
    display: flex;
    align-items: center;
    padding: 20px 20px;
    border-bottom: 1px solid var(--border);
    transition: 0.3s;
    border-radius: 4px;
}
.news-item:hover {
    background-color: rgba(255,255,255,0.5);
}
.news-date {
    font-family: var(--font-en);
    color: var(--accent);
    font-weight: 500;
    font-size: 0.95rem;
    width: 120px;
    flex-shrink: 0;
}
.news-cat {
    font-size: 0.75rem;
    background: var(--bg-white);
    padding: 4px 12px;
    border-radius: 50px;
    color: var(--text-sub);
    border: 1px solid var(--border);
    margin-right: 20px;
    white-space: nowrap;
}
.news-title {
    font-weight: 500;
    flex-grow: 1;
    text-decoration: none;
    color: var(--text);
    transition: color 0.3s;
}
.news-title:hover {
    color: var(--accent);
}

/* スマホ対応（縦並びにする） */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .news-date { width: auto; }
}

@media (max-width: 960px) {
    .header-inner { padding: 0 20px; }
    
    .hamburger {
        display: block;
        border: none;
        background: none;
        cursor: pointer;
        z-index: 1001;
    }
    .hamburger span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: #fff;
        margin: 6px 0;
        transition: 0.3s;
    }
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--accent);
    }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--accent);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(43, 42, 45, 0.98);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
        margin-left: 0;
    }
    .nav-menu.active { opacity: 1; pointer-events: auto; }
    .nav-menu ul { flex-direction: column; gap: 30px; }
    .nav-menu li:not(.cta-btn) a { font-size: 1.2rem; color: #fff; }
    .nav-menu .cta-btn a { padding: 15px 40px; font-size: 1rem; }

    .hero h1 { font-size: 2rem; }
    .features-grid { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }

    /* 制作事例カードのスマホ最適化 */
    /* ★修正：紹介文（pタグ）をピンポイントで非表示にする */
    .work-content p {
        display: none !important;
    }

    /* ついでにカード全体の高さを抑える微調整 */
    .work-card {
        min-height: auto; /* 高さを内容に合わせる */
    }

    .work-img {
        height: 180px; /* 画像の高さを少し低くしてスクロールしやすく */
    }

    .work-content {
        padding: 15px; /* 余白を詰める */
    }

    /* ★Pricing（料金表）だけ横スクロール（スワイプ）仕様に変更 */
    .pricing-grid {
        display: flex !important;   /* 強制的にFlexへ */
        flex-wrap: nowrap !important; /* 絶対に折り返さない */
        overflow-x: auto !important;  /* 横スクロールを有効に */
        gap: 20px;
        padding: 40px 20px;
        margin: 0 -20px;             /* 画面端までスワイプ領域を広げる */
        scroll-snap-type: x mandatory; /* ピタッと止まるスナップ機能 */
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start !important;
    }

    /* 各カードの幅を固定し、スナップさせる */
    #pricing .plan-card {
        flex: 0 0 85% !important;    /* ★重要：カード幅を画面の85%に固定 */
        scroll-snap-align: center;   /* スクロール時に中央で止まる */
        min-height: auto;
        padding: 40px 20px;
        display: flex;
        flex-direction: column;
    }
    .plan-card {
        flex: 0 0 85%; /* カード1枚の幅を画面の85%にする */
        scroll-snap-align: center; /* 止まる位置をセンターに */
    }

    /* リスト（詳細）を隠して高さを圧縮 */
    #pricing .plan-list {
        display: none !important;
    }

    #pricing .price span {
        font-size: 2.2rem;
    }

    /* ... (以下のstaff-cardやintroの修正などはそのままでOK) ... */
    .staff-card { flex-direction: column; text-align: center; padding: 40px 20px; border-left: none; border-top: 5px solid var(--primary); }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn { width: 100%; box-sizing: border-box; text-align: center; }
    .service-intro br { display: none; }
    .service-intro p {
        text-align: left;
        padding: 0 15px;
        line-height: 1.8;
        letter-spacing: 0.05em;
    }
    .service-intro .lead-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    
    .staff-card { flex-direction: column; text-align: center; padding: 40px 20px; border-left: none; border-top: 5px solid var(--primary); }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn { width: 100%; box-sizing: border-box; text-align: center; }
    .service-intro br {
        display: none; /* 強制的な改行（<br>）を無効にする */
    }

    .service-intro p {
        text-align: left; /* スマホでは左揃えの方が読みやすい（お好みで center のままでも可） */
        padding: 0 15px;  /* 画面端ギリギリにならないように余白を入れる */
        line-height: 1.8; /* 行間を少し空けて読みやすくする */
        letter-spacing: 0.05em; /* 文字間隔を少し詰める（微調整） */
    }
    
    /* 見出し（Lead text）だけ少し大きく強調する場合 */
    .service-intro .lead-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

/* --- Legal Page (特定商取引法) --- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 60px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.legal-table th, 
.legal-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    width: 30%;
    color: var(--primary);
    font-weight: 700;
    background-color: #fafafa; /* 見出しを少しグレーに */
}

.legal-table td {
    color: var(--text-sub);
    line-height: 1.8;
}

.legal-table .note {
    font-size: 0.8rem;
    color: #999;
    display: block;
    margin-top: 5px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .legal-content {
        padding: 30px 20px;
    }
    .legal-table th, 
    .legal-table td {
        display: block;
        width: 100%;
        border-bottom: none;
    }
    .legal-table th {
        background: transparent;
        padding-bottom: 5px;
        color: var(--accent); /* スマホ時は見出しをアクセントカラーにして見やすく */
        border-top: 1px solid var(--border);
        margin-top: 20px;
    }
    .legal-table tr:first-child th {
        border-top: none;
        margin-top: 0;
    }
    .legal-table td {
        padding-top: 0;
        padding-bottom: 20px;
    }
}

/* --- Terms Page (利用規約) --- */
.terms-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 60px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--text-sub);
}

.terms-lead {
    margin-bottom: 40px;
    font-size: 0.95rem;
    line-height: 2;
}

.terms-item {
    margin-bottom: 30px;
}

.terms-item h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
}

.terms-item ol {
    list-style: decimal; /* 数字リスト */
    padding-left: 20px;  /* インデント */
    margin: 0;
}

.terms-item li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .terms-content {
        padding: 30px 20px;
    }
    .terms-item h3 {
        font-size: 1rem;
    }
}

/* --- 11. Matrix Table (pricing.html) --- */
.matrix-wrapper {
    overflow-x: auto;
    margin: 60px 0; /* 上下の余白を少し広げて、呼吸をさせてあげるの */
    border: none; /* 線の代わりに影で境界を作るわ */
    border-radius: 8px; /* 少し角を丸めて、洗練された印象に */
    background: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12); 
}

.matrix-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.matrix-table th, 
.matrix-table td {
    padding: 24px 20px;
    border: 1px solid var(--primary);
    text-align: center;
}

.matrix-table th {
    background: #f8f9fa;
    font-weight: 700;
    color: var(--primary);
}

.matrix-table td:first-child {
    text-align: left;
    background: #fcfcfc; 
    color: var(--primary);
    font-weight: 700;
    width: 250px;
}

.matrix-table tr.group-title td {
    background: var(--primary);
    color: #fff;
    text-align: center;
    font-weight: 700;
    padding: 14px;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
}

.matrix-table .highlight {
    background: rgba(217, 94, 50, 0.02);
    border-left: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    position: relative;
    z-index: 1;
}

.matrix-table th.highlight {
    border-top: 2px solid var(--accent);
}

.matrix-table tbody tr:last-child .highlight {
    border-bottom: 2px solid var(--accent);
}

/* --- Rules Grid --- */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
    margin-top: 60px;
}

.rule-item h3 {
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: var(--primary);
    position: relative;
    padding-left: 15px;
}

.rule-item h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.2em;
    background: var(--accent);
}

.rule-item p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-sub);
}

@media (max-width: 768px) {
    .rules-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Contact Form 7 & Confirm Plus - 洗練されたデザイン調整
   ========================================================================== */

/* 入力フィールドの基本デザインとフォーカス時の美しいアニメーション */
.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border);
    background: #FDFDFD;
    font-family: var(--font-jp);
    font-size: 1rem;
    box-sizing: border-box;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.contact-form-wrapper input[type="text"]:focus,
.contact-form-wrapper input[type="email"]:focus,
.contact-form-wrapper textarea:focus {
    border-color: var(--accent);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(217, 94, 50, 0.15); /* フォーカス時にブランドカラーで淡く光る */
}

/* プラグインが自動生成するボタン群のレイアウト */
.form-submit-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* ボタン同士の余白 */
}

/* すべてのボタンの共通スタイル */
.form-submit-area input[type="submit"],
.form-submit-area input[type="button"] {
    display: inline-block;
    padding: 16px 45px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none; /* スマホ特有のデフォルトボタンデザインを解除 */
}

/* 確認・送信ボタン (Primary) */
.form-submit-area input[type="submit"] {
    background-color: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    box-shadow: 0 4px 15px rgba(217, 94, 50, 0.3);
}

.form-submit-area input[type="submit"]:hover {
    background-color: #c04d25;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 94, 50, 0.4);
}

/* 戻るボタン (Secondary) - プラグインが生成する type="button" を捕捉 */
.form-submit-area input[type="button"] {
    background-color: transparent;
    color: var(--text);
    border: 1px solid var(--text);
}

.form-submit-area input[type="button"]:hover {
    background-color: var(--text);
    color: #fff;
}

/* ==========================================================================
   Confirm Plus 確認画面の洗練 (Studio Emberデザイン)
   ========================================================================== */
/* 確認画面のテーブルレイアウトを美しく */
#wpcf7cpcnf table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    text-align: left;
}

#wpcf7cpcnf th, 
#wpcf7cpcnf td {
    padding: 20px 15px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

#wpcf7cpcnf tr:first-child th,
#wpcf7cpcnf tr:first-child td {
    border-top: 1px solid var(--border);
}

#wpcf7cpcnf th {
    width: 30%;
    color: var(--primary);
    font-weight: 700;
    background-color: #fafafa;
}

#wpcf7cpcnf td {
    color: var(--text-sub);
    font-weight: 500;
    line-height: 1.8;
}

/* ボタンエリアの配置 */
#wpcf7cpcnf form > div:last-child,
.wpcf7cp-btns {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 20px !important;
    margin-top: 40px !important;
}

/* 🚨プラグインのスタイルを強制上書きする特効薬（buttonタグも完全網羅！） */
#wpcf7cpcnf input[type="button"],
#wpcf7cpcnf input[type="submit"],
#wpcf7cpcnf button,
.wpcf7cp-btns input,
.wpcf7cp-btns button {
    display: inline-block !important;
    padding: 16px 45px !important;
    border-radius: var(--radius) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.1em !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    -webkit-appearance: none !important;
    margin: 0 !important;
    height: auto !important;
    line-height: normal !important;
}

/* 「この内容で送信」ボタン (Primary) */
#wpcf7cpcnf input[value*="送信"],
#wpcf7cpcnf button[value*="送信"],
.wpcf7cp-btns input[type="submit"],
.wpcf7cp-btns button[type="submit"],
.wpcf7cp-submit-btn {
    background-color: var(--accent) !important;
    color: #fff !important;
    border: 1px solid var(--accent) !important;
    box-shadow: 0 4px 15px rgba(217, 94, 50, 0.3) !important;
}
#wpcf7cpcnf input[value*="送信"]:hover,
#wpcf7cpcnf button[value*="送信"]:hover,
.wpcf7cp-btns input[type="submit"]:hover,
.wpcf7cp-btns button[type="submit"]:hover,
.wpcf7cp-submit-btn:hover {
    background-color: #c04d25 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(217, 94, 50, 0.4) !important;
}

/* 「修正」ボタン (Secondary) */
#wpcf7cpcnf input[value*="修正"],
#wpcf7cpcnf button[value*="修正"],
.wpcf7cp-btns input[type="button"],
.wpcf7cp-btns button[type="button"],
.wpcf7cp-edit-btn {
    background-color: transparent !important;
    color: var(--text) !important;
    border: 1px solid var(--text) !important;
}
#wpcf7cpcnf input[value*="修正"]:hover,
#wpcf7cpcnf button[value*="修正"]:hover,
.wpcf7cp-btns input[type="button"]:hover,
.wpcf7cp-btns button[type="button"]:hover,
.wpcf7cp-edit-btn:hover {
    background-color: var(--text) !important;
    color: #fff !important;
}

/* スマホ対応 */
@media (max-width: 768px) {
    #wpcf7cpcnf th, 
    #wpcf7cpcnf td { 
        display: block; 
        width: 100%; 
    }
    #wpcf7cpcnf th { 
        border-bottom: none; 
        padding-bottom: 5px; 
        background: transparent;
    }
    #wpcf7cpcnf td { 
        padding-top: 5px; 
        padding-bottom: 25px; 
    }
    #wpcf7cpcnf form > div:last-child,
    .wpcf7cp-btns {
        flex-direction: column-reverse !important; /* スマホでは「修正」ボタンを下に配置 */
    }
    #wpcf7cpcnf input[type="button"],
    #wpcf7cpcnf input[type="submit"],
    #wpcf7cpcnf button,
    .wpcf7cp-btns input,
    .wpcf7cp-btns button {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   ★ボタン専用デザイン（他のレイアウトには一切影響を与えません）
   ========================================================================== */

/* ボタンを包むエリアの配置（中央寄せ＆余白） */
.wpcf7cp-btns {
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
    margin-top: 40px !important;
}

/* ボタン共通のベースデザイン（ダサい3Dを完全リセット） */
button.wpcf7cp-cfm-edit-btn,
button.wpcf7cp-cfm-submit-btn {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-block !important;
    padding: 16px 45px !important;
    border-radius: var(--radius) !important;
    font-family: var(--font-jp) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.1em !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* 「この内容で送信」ボタン（オレンジで目立たせる） */
button.wpcf7cp-cfm-submit-btn {
    background-color: var(--accent) !important;
    color: #fff !important;
    border: 1px solid var(--accent) !important;
    box-shadow: 0 4px 15px rgba(217, 94, 50, 0.3) !important;
}

button.wpcf7cp-cfm-submit-btn:hover {
    background-color: #c04d25 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(217, 94, 50, 0.4) !important;
}

/* 「修正」ボタン（白抜きで控えめに） */
button.wpcf7cp-cfm-edit-btn {
    background-color: #fff !important;
    color: var(--text) !important;
    border: 1px solid var(--text) !important;
    box-shadow: none !important;
}

button.wpcf7cp-cfm-edit-btn:hover {
    background-color: var(--text) !important;
    color: #fff !important;
}

/* スマホ表示時の調整（修正ボタンを下に配置） */
@media (max-width: 768px) {
    .wpcf7cp-btns {
        flex-direction: column-reverse !important;
    }
    button.wpcf7cp-cfm-edit-btn,
    button.wpcf7cp-cfm-submit-btn {
        width: 100% !important;
    }
}
