/* 基本設定 */
body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
}

/* --- メインビジュアル --- */
.main-visual {
    position: relative;
    width: 100%;
}
.main-visual img {
    width: 100%;
    height: auto;
    display: block;
}
.main-visual-content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}
.main-visual-content .catchphrase { font-size: 24px; font-weight: bold; margin-bottom: 10px; }
.main-visual-content h1 { font-size: 56px; margin: 0 0 20px 0; line-height: 1; }
.main-visual-content .description { font-size: 20px; line-height: 1.6; font-weight: bold; }

/* --- 説明文エリア --- */
/* 1. 説明文エリアの下側の余白を削る */
.intro-section {
    padding: 60px 40px 0 40px; /* ★下(3点目)の数値を 0 に変更 */
    background-color: #fff;
}

.intro-text p:last-child {
    margin-bottom: 20px; /* ★最後の段落の下マージンを少し狭める */
}

/* 2. 価格セクションの上側の余白を削る */
.price-section {
    background-color: #fff; /* 背景を白で統一 */
    padding: 10px 20px 40px 20px; /* ★上(1点目)を 10px 程度に小さくする */
    text-align: center;
}
.intro-text {
    line-height: 2;
    font-size: 16px;
}
.intro-text p { margin-bottom: 30px; }

/* --- タブナビゲーション --- */
.tab-nav {
    display: flex;
    background-color: #d1d1d1;
}
.tab-btn {
    flex: 1;
    padding: 20px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s;
    background-color: #d1d1d1;
    color: #333333;
    border-right: 1px solid rgba(0,0,0,0.1); 
}
.tab-btn.active {
    background-color: #003366;
    color: #ffffff;
}

/* --- コンテンツ表示制御 --- */
.tab-content-wrapper {
    padding: 40px;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- ★ここからが「特徴セクション」の修正点（スマホ設定の外に出しました） --- */
.feature-row {
    display: flex; /* これでPC時に横並びになります */
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}
.feature-row.reverse {
    flex-direction: row-reverse; /* これで交互に入れ替わります */
}
.feature-text {
    flex: 1.2;
}
.feature-text h3 {
    background-color: #003366;
    color: #fff;
    padding: 10px 15px;
    font-size: 20px;
    margin-bottom: 20px;
}
.feature-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}
/* PC・共通設定 */
.feature-image {
    flex: 1; /* 0.8から1に広げて中央を確保しやすくします */
    text-align: center;
    display: flex;         /* 追加：中身を並べる設定 */
    justify-content: center; /* 追加：水平方向の中央寄せ */
    align-items: center;    /* 追加：垂直方向の中央寄せ */
}

.feature-image img {
    max-width: 80%; /* スマホで見劣りしないよう少し大きく（お好みで60%でもOK） */
    height: auto;
    display: block;  /* blockに変更 */
    margin: 0 auto;  /* 左右マージンを自動にして中央固定 */
}

/* 親要素（row）の設定：スマホでは縦並びにして中央へ */
@media screen and (max-width: 767px) {
    .feature-row {
        display: block !important; /* flexを解除して縦に積む */
        width: 100% !important;
        text-align: center !important; /* 中身を中央へ */
    }

    /* 画像を包む枠の設定 */
    .feature-image {
        display: block !important;
        width: 100% !important;
        margin: 0 auto 20px auto !important; /* 左右中央、下に余白 */
        text-align: center !important;
    }

    /* 画像自体の設定 */
    .feature-image img {
        display: inline-block !important; /* inline-blockに戻してtext-alignを効かせる */
        max-width: 80% !important; /* 画面に対して適切なサイズに */
        height: auto !important;
        margin: 0 auto !important;
    }
}

/* ついでに、タイトルの上下の余白を少し整えるとさらに綺麗です */
.feature-title {
    margin-top: 40px; /* 前のセクションとの間隔 */
    margin-bottom: 30px;
}
.feature-title:first-of-type {
    margin-top: 0; /* 最初のタイトルだけ上マージンを消す */
}


/* --- レスポンシブ対応 (最後にまとめて記述) --- */
@media (max-width: 768px) {
    /* メインビジュアル文字サイズ調整 */
    .main-visual-content h1 { 
        font-size: 20px !important; /* 23pxから20pxへ（型番をスッキリさせる） */
        letter-spacing: 0.02em; 
        margin: 5px 0 !important;
    }
    .main-visual-content .catchphrase { 
        font-size: 13px !important; /* 14pxから13pxへ */
        font-weight: 500;
    }
    .main-visual-content .description { 
        font-size: 11px !important; /* 12pxから11pxへ（一回り小さく） */
        line-height: 1.6 !important; /* 行間を広げて読みやすく */
        opacity: 0.9; /* 少しだけ色を薄くすると洗練されて見えます */
    }
    
    /* タブボタン調整 */
    .tab-btn { 
        padding: 10px 8px !important; /* 左右の余白を詰め、スマホで並びやすく */
        font-size: 13px !important; /* 14pxから13pxへ */
    }
    
    /* セクション間のレイアウト（以前の修正を統合） */
    .feature-row, .feature-row.reverse {
        display: flex !important;
        flex-direction: column !important; /* スマホの時だけ縦にする */
        gap: 15px !important;
        margin-bottom: 40px !important;
        text-align: center !important; /* 中身を中央揃えに */
    }

    /* 画像の中央寄せを確実に維持 */
    .feature-image {
        width: 100% !important;
        display: block !important;
        margin: 0 auto !important;
    }
}
/* タイトル（ネイビーの帯）を幅いっぱいに */
.feature-title {
    background-color: #003366;
    color: #fff;
    padding: 12px 20px;
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 30px 0; /* 下に余白 */
    width: 100%;
    box-sizing: border-box; /* パディングを含めて100%に */
}

/* 既存の feature-text 内の h3 設定は削除するか、以下で上書きしてください */
.feature-text h3 {
    display: none; /* HTMLを書き換えたので、古いh3が残っていたら消します */
}

.feature-row {
    display: flex;
    align-items: flex-start; /* 画像とテキストの上端を揃える */
    gap: 60px;
    margin-bottom: 80px;
    width: 100%;
}

.spec-container {
    margin-top: 20px;
    border-top: 2px solid #003366; /* 表の上部にアクセント */
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.spec-table th {
    width: 25%;
    background-color: #f2f2f2; /* 薄いグレー */
    color: #333;
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

.spec-table td {
    width: 75%;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    line-height: 1.6;
}

/* スマホ対応：表を縦並びにする */
@media (max-width: 768px) {
    .spec-table th, .spec-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .spec-table th {
        background-color: #003366;
        color: #fff;
        padding: 8px 15px;
    }
}
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.contact-intro {
    margin-bottom: 40px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
}

.form-group label span {
    background-color: #cc0000;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 10px;
    vertical-align: middle;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.submit-btn {
    display: block;
    width: 200px;
    margin: 40px auto 0;
    padding: 15px;
    background-color: #003366;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background-color: #004488;
    opacity: 0.9;
}
/* お問合せリンクボタンの調整 */
.tab-btn.link-btn {
    text-decoration: none; /* 下線を消す */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* スマホ表示の調整 */
@media (max-width: 768px) {
    /* (中略：他の設定はそのまま) */

    /* ★表の見出し(th)を「薄いグレー」に修正 */
    .spec-table th {
        display: block;
        width: 100%;
        background-color: #f2f2f2 !important; /* PCと同じ薄いグレーに強制 */
        color: #333 !important;              /* 文字を黒に強制 */
        padding: 10px 15px;
        box-sizing: border-box;
        border-bottom: 1px solid #ddd;
        font-size: 14px;
        text-align: left;
    }

    /* 表のデータ(td)の設定 */
    .spec-table td {
        display: block;
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
        background-color: #fff;
        border-bottom: 1px solid #eee; /* 項目ごとの区切り線 */
        font-size: 14px;
        margin-bottom: 10px; /* 次の項目との間に少し隙間を作る */
    }
}

/* フッターのスタイル */
.main-footer {
    background-color: #333; /* 濃いグレーで引き締める */
    color: #fff;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
    margin-top: 60px; /* コンテンツとの間隔 */
}

.footer-content p {
    margin: 0;
    letter-spacing: 1px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .main-footer {
        padding: 20px 0;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    /* メインビジュアルのテキスト位置調整 */
    .main-visual-content {
        top: 25%; /* ★50%から25%に引き上げて、上に移動 */
        left: 0;   /* ★左端の余白をなくす */
        width: 100%; /* ★横幅いっぱいにする（中央寄せの基準） */
        transform: translateY(-50%); /* 垂直方向の微調整 */
        text-align: center; /* ★テキストを中央寄せにする */
        padding: 0 20px; /* 左右に少しだけ余白を持たせる */
        box-sizing: border-box;
    }

    .main-visual-content .catchphrase {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .main-visual-content h1 {
        font-size: 26px; /* 文字サイズを少し調整 */
        margin: 5px 0;
    }

    .main-visual-content .description {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* 価格セクションのスタイル */
.price-section {
    background-color: #fff;
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.price-box {
    display: inline-block;
    padding: 20px 60px;
    background-color: #fff;
    border: 2px solid #003366; /* ネイビーの枠線で目立たせる */
    border-radius: 8px;
}

.price-label {
    font-size: 16px;
    font-weight: bold;
    color: #003366;
    margin: 0 0 10px 0;
}

.price-amount {
    font-size: 48px;
    font-weight: 800;
    color: #cc0000; /* 価格は赤色で強調 */
    line-height: 1;
}

.price-amount .currency {
    font-size: 24px;
    margin-right: 5px;
}

.price-amount .tax-in {
    font-size: 16px;
    color: #333;
    margin-left: 10px;
    font-weight: normal;
}

.price-note {
    font-size: 13px;
    color: #666;
    margin: 15px 0 0 0;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .price-box {
        padding: 15px 30px;
        width: 90%;
    }
    .price-amount {
        font-size: 36px;
    }
}