:root {
    --primary: #00afb9;
    --accent: #f07167;
    --dark: #333;
    --bg: #f8fbfa;
}

body { 
    font-family: sans-serif; 
    margin: 0; 
    color: var(--dark); 
    background: var(--bg); 
    line-height: 1.6; 
}

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

.hero {
    height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    background-size: cover;      /* 枠いっぱいに広げる */
    background-position: center; /* 中央を表示 */
    background-repeat: no-repeat; /* 繰り返さない */
}

.overlay { 
    background: rgba(0,0,0,0.4); 
    padding: 40px; 
    border-radius: 10px; 
}

.badge { 
    background: var(--accent); 
    padding: 5px 15px; 
    border-radius: 20px; 
    font-weight: bold; 
}

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

.card { 
    background: white; 
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    text-align: center; 
}

.card i { 
    font-size: 2.5rem; 
    color: var(--primary); 
    margin-bottom: 15px; 
}

.samples img { 
    width: 100%; 
    border-radius: 5px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

table { 
    width: 100%; 
    border-collapse: collapse; 
    background: white; 
}

th, td { 
    border: 1px solid #eee; 
    padding: 15px; 
    text-align: left; 
}

th { 
    background: var(--primary); 
    color: white; 
}

.highlight { 
    background: #fff9e6; 
}

.btn { 
    display: inline-block; 
    background: var(--accent); 
    color: white; 
    padding: 15px 35px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: bold; 
    margin-top: 20px; 
}

.btn-alt { 
    display: inline-block; 
    border: 2px solid var(--accent); 
    color: var(--accent); 
    padding: 10px 25px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: bold; 
}

footer { 
    background: #eef2f1; 
    text-align: center; 
    padding: 60px 0; 
}

/* フォームのスタイル */
.contact-section { background: #fff; padding: 60px 0; }
.form-container { max-width: 600px; margin: 0 auto; background: var(--bg); padding: 30px; border-radius: 10px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 5px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box; }
.btn-submit { background: var(--accent); color: white; border: none; padding: 15px 0; width: 100%; border-radius: 50px; font-size: 1.1rem; font-weight: bold; cursor: pointer; }

/* フローティングバナー */
.floating-banner {
    position: fixed;
    bottom: -100px; /* 最初は画面の外 */
    left: 0;
    width: 100%;
    background: rgba(0, 175, 185, 0.95); /* メインカラーの半透明 */
    color: white;
    padding: 15px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transition: bottom 0.4s ease; /* スッと出てくるアニメーション */
    z-index: 9999;
}
.floating-banner.show { bottom: 0; } /* 表示状態 */
.banner-content { display: flex; justify-content: center; align-items: center; gap: 20px; }
.btn-small { background: var(--accent); color: white; padding: 8px 20px; border-radius: 20px; text-decoration: none; font-weight: bold; }

/* 全体共通 */
body { font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; line-height: 1.6; color: #333; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; position: relative; }

/* 媒体概要テーブル */
.spec-table { width: 82%; border-collapse: collapse; background: rgba(255, 255, 255, 0.95); box-shadow: 0 5px 20px rgba(0,0,0,0.1); margin-top: 30px; }
.spec-table th { width: 20%; background: #004a6a; color: #ffffff; padding: 18px; border: 1px solid #003a5a; text-align: center; font-size: 1.1rem; }
.spec-table td { padding: 20px; border: 1px solid #ddd; font-size: 1.1rem; }

/* 表紙画像 */
.cover-image-float { position: absolute; right: -30px; top: -30px; width: 290px; z-index: 10; transform: rotate(6deg); filter: drop-shadow(15px 15px 25px rgba(0,0,0,0.3)); border: none; }

/* 料金表 */
.price-table { width: 100%; border-collapse: collapse; background: #fff; text-align: center; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.price-table thead { background: #008cba; color: white; }
.price-table th { padding: 20px; font-size: 1.2rem; }
.price-table td { padding: 25px; border-bottom: 1px solid #eee; font-size: 1.1rem; }
.price-table tr:nth-child(even) { background-color: #f9fbfd; }

/* フローティングバナー */
.floating-banner { position: fixed; bottom: -100px; left: 0; width: 100%; background: rgba(0, 74, 106, 0.95); color: white; padding: 15px 0; transition: all 0.5s ease; z-index: 9999; box-shadow: 0 -5px 15px rgba(0,0,0,0.2); }
.floating-banner.show { bottom: 0; }
.banner-content { max-width: 1000px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }

/* フォームの必須ラベル */
.required-label { color: #ff4081; font-size: 0.8rem; font-weight: bold; border: 1px solid #ff4081; padding: 2px 4px; border-radius: 3px; margin-left: 8px; }

/* フッター電話番号 */
.footer-tel-wrapper a { color: #ff9900 !important; text-decoration: none !important; font-size: 2.2rem !important; font-weight: bold !important; }

/* --- レスポンシブデザイン設定 (スマホ対応) --- */
@media screen and (max-width: 768px) {
    /* 1. 全体設定：余白を少し詰める */
    section { padding: 50px 0; }
    .section-title { font-size: 1.8rem; margin-bottom: 30px; }

    /* 2. ヒーローエリア：文字を小さくして収める */
    .hero h1 { font-size: 2.2rem !important; }
    .hero p { font-size: 1rem !important; }

    /* 3. 媒体概要：表を全幅にし、画像を「表の上」に移動 */
    .spec-table { width: 100%; }
    .spec-table th { width: 30%; font-size: 0.9rem; padding: 12px; }
    .spec-table td { font-size: 0.9rem; padding: 12px; }

    .cover-image-float {
        position: relative; /* 浮かせず、通常配置にする */
        display: block;
        margin: 0 auto 30px auto; /* 中央寄せにして下に余白 */
        width: 70%; /* スマホで見やすいサイズ */
        right: auto;
        top: auto;
        transform: rotate(0deg); /* スマホでは傾けない方が見やすい */
    }

    /* 4. 3つのポイント：完全に縦並びにする */
    div[style*="display: grid"] {
        grid-template-columns: 1fr !important; /* 強制的に1列 */
        gap: 20px;
    }

    /* 5. 深掘りボックス：パディングを調整 */
    .feature-detail-box { padding: 25px; }
    .feature-detail-box h3 { font-size: 1.2rem; }

    /* 6. 料金表：横スクロールできるようにする */
    .price-table {
        display: block;
        overflow-x: auto; /* 横にはみ出した時にスクロール可能にする */
        white-space: nowrap; /* 文字の折り返しを防いで表の形を維持 */
        -webkit-overflow-scrolling: touch;
    }
    .price-total { font-size: 1.5rem; }

    /* 7. フォーム：パディングを調整 */
    form { padding: 25px !important; }

    /* 8. フッター：電話番号のサイズ調整 */
    .footer-tel-wrapper a { font-size: 1.6rem !important; }

    /* 9. フローティングバナー：スマホでは文字を小さく */
    .banner-content p { font-size: 0.8rem; }
    .btn-small { padding: 6px 12px; font-size: 0.8rem; }
}