@charset "UTF-8";

/* 基本設定 */
:root {
    --primary-color: #e60012; /* ネットスクール赤 */
    --accent-color: #f39800; /* オレンジ */
    --web-campaign-color: #007bc7; /* WEB講座メイン青 */
    --gold-border: #e6b422; /* 新春ゴールド */
    --limited-bg: linear-gradient(135deg, #ff0055 0%, #ff5e62 100%);
    --bg-color: #fffaf0;
    --text-color: #333;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 60px; /* バナーの高さ分 */
}

/* サイトヘッダー */
.site-header {
    background-color: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 100;
}
.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.site-logo-link {
    display: inline-block;
    text-decoration: none;
}
.site-logo-img {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

/* ファーストビュー */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #fffaf0 0%, #fff0e0 40%, #ffdec0 100%);
    padding: 60px 20px 80px;
    text-align: center;
    overflow: hidden;
    border-bottom: 5px solid var(--primary-color);
}
.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 麻の葉模様 */
    background-image: 
        linear-gradient(30deg, #fcefe2 12%, transparent 12.5%, transparent 87%, #fcefe2 87.5%, #fcefe2),
        linear-gradient(150deg, #fcefe2 12%, transparent 12.5%, transparent 87%, #fcefe2 87.5%, #fcefe2),
        linear-gradient(30deg, #fcefe2 12%, transparent 12.5%, transparent 87%, #fcefe2 87.5%, #fcefe2),
        linear-gradient(150deg, #fcefe2 12%, transparent 12.5%, transparent 87%, #fcefe2 87.5%, #fcefe2),
        linear-gradient(60deg, #fcefe277 25%, transparent 25.5%, transparent 75%, #fcefe277 75%, #fcefe277),
        linear-gradient(60deg, #fcefe277 25%, transparent 25.5%, transparent 75%, #fcefe277 75%, #fcefe277);
    background-size: 40px 70px;
    background-position: 0 0, 0 0, 20px 35px, 20px 35px, 0 0, 20px 35px;
    opacity: 0.6;
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}
.hero-catch {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.4rem;
    margin: 0 0 10px;
    text-shadow: 1px 1px 0 #fff;
}
.hero-title {
    margin: 10px 0 30px;
    line-height: 1.2;
}
.hero-year {
    font-size: 3rem;
    color: #555;
    font-family: "Georgia", serif;
    display: inline-block;
    border-bottom: 2px solid var(--primary-color);
    padding: 0 10px;
    margin-bottom: 5px;
}
.hero-year i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 10px;
    vertical-align: middle;
}
.hero-main-text {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 0 #fff, 0 0 20px rgba(230, 0, 18, 0.3);
}
.period-badge {
    display: inline-block;
    background: #fff;
    border: 3px solid var(--primary-color);
    border-radius: 50px;
    padding: 8px 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}
.badge-label {
    background: var(--primary-color);
    color: #fff;
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-right: 10px;
    vertical-align: middle;
}
.badge-date {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
    vertical-align: middle;
}
.hero-message-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 10px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: inline-block;
    text-align: center;
}
.hero-message-box strong {
    color: var(--primary-color);
    background: linear-gradient(transparent 70%, #ffcccc 70%);
}

/* キャンペーン選択ナビ */
.main-campaign-nav {
    margin-top: -40px;
    position: relative;
    z-index: 10;
    background: transparent;
    border: none;
    padding: 0 20px 40px;
}
.nav-container {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 30px;
}
.nav-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    padding: 25px 30px;
    text-decoration: none;
    color: inherit;
    flex: 1;
    max-width: 450px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 10px solid #ccc;
}
.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.web-theme { border-left-color: var(--web-campaign-color); }
.book-theme { border-left-color: var(--primary-color); }

.nav-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    color: #555;
}
.web-theme .nav-icon { color: var(--web-campaign-color); }
.book-theme .nav-icon { color: var(--primary-color); }
.nav-text { flex-grow: 1; }
.nav-sub {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    color: #888;
    margin-bottom: 5px;
}
.nav-main {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
}
.nav-arrow {
    font-size: 1.2rem;
    color: #ccc;
    margin-left: 10px;
}

/* セクション共通 */
.campaign-section { padding: 40px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-title {
    font-size: 2rem;
    color: #333;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent-color);
    margin-bottom: 15px;
}
#campaign-web .section-title { border-bottom-color: var(--web-campaign-color); color: var(--web-campaign-color); }
#campaign-book .section-title { border-bottom-color: var(--primary-color); color: var(--primary-color); }
.section-desc { font-size: 1.1rem; color: #666; }
.section-divider {
    border: none;
    border-top: 2px dashed #ccc;
    margin: 20px 0 40px;
}

/* ▼▼ WEB講座キャンペーン（3部構成）デザイン ▼▼ */
.campaign-part {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 40px;
    padding: 40px 30px;
    position: relative;
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.part-badge {
    position: absolute;
    top: -15px;
    left: 20px;
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}
.part-title {
    text-align: center;
    font-size: 1.6rem;
    margin-top: 10px;
    margin-bottom: 25px;
    border-bottom: 2px dashed #eee;
    padding-bottom: 20px;
}

/* その1：全員プレゼント */
.part-1 {
    background-color: #fff;
    border: 2px solid #00c2ff;
}
.part-1 .part-badge { background-color: #00c2ff; }
.part-1 .part-title { color: #0099cc; border-bottom-color: #00c2ff; }
.center-text { text-align: center; font-size: 1.1rem; }

/* その2：割引キャンペーン */
.part-2 {
    border-top: 5px solid var(--web-campaign-color);
}
.part-2 .part-badge { background-color: var(--web-campaign-color); }
.part-2 .part-title { color: var(--web-campaign-color); }

.discount-story {
    background-color: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}
.story-lead { font-weight: bold; color: var(--web-campaign-color); font-size: 1.1rem; margin-bottom: 10px; }
.story-item { display: inline-block; background: #fff; padding: 5px 15px; border-radius: 5px; margin: 5px; border: 1px solid #cceeff; font-weight: bold; }
.story-item strong { color: #e60012; font-size: 1.1rem; }

/* 検索エリア */
.web-search-area { max-width: 900px; margin: 0 auto; }
.search-filters { display: flex; gap: 20px; justify-content: center; margin-bottom: 30px; background: #fafafa; padding: 20px; border-radius: 8px; }
.filter-group { flex: 1; }
.filter-group label { display: block; font-weight: bold; margin-bottom: 5px; }
.filter-group select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }

/* 結果カード（色味・デザイン強化） */
.web-course-card {
    border: 1px solid var(--gold-border); /* 新春ゴールド枠に変更 */
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.course-header {
    background: #fff9f0; /* 少し温かみのある背景色に変更 */
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.course-title-group h4 { margin: 0 0 5px 0; font-size: 1.3rem; color: #333; font-weight: 800; }
.target-date { font-size: 0.9rem; color: #fff; background-color: #666; padding: 2px 10px; border-radius: 10px; font-weight: bold; }
.btn-detail-link { background-color: #fff; border: 1px solid var(--web-campaign-color); color: var(--web-campaign-color); padding: 5px 15px; border-radius: 4px; text-decoration: none; font-size: 0.9rem; transition: all 0.3s; }
.btn-detail-link:hover { background-color: var(--web-campaign-color); color: #fff; }

.course-option-row { padding: 15px 20px; border-bottom: 1px dashed #ccc; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; }
.course-option-row:last-child { border-bottom: none; }
.option-name { flex: 1; font-weight: bold; min-width: 150px; display: flex; align-items: center; }

/* ▼▼ アイコンの色味修正 ▼▼ */
.badge-material { font-size: 0.85rem; padding: 4px 10px; border-radius: 4px; margin-right: 10px; font-weight: bold; border: 1px solid transparent; }
/* 教材込：赤背景・白文字 */
.badge-in { 
    background-color: #e60012; 
    color: #fff; 
}
/* 教材別：薄い黄緑背景・黒文字 */
.badge-ex { 
    background-color: #d4edda; 
    color: #155724; 
    border-color: #c3e6cb;
}

.price-box { text-align: right; }
.list-price { font-size: 0.85rem; color: #888; text-decoration: line-through; display: block; }
.discount-info { font-size: 0.8rem; color: #e60012; background: #ffe0e0; padding: 0 5px; border-radius: 3px; margin-left: 5px; }
.campaign-price { font-size: 1.4rem; font-weight: bold; color: #e60012; }
.campaign-price span { font-size: 0.9rem; color: #333; }
.btn-apply { background-color: #e60012; color: #fff; text-decoration: none; padding: 10px 25px; border-radius: 50px; font-weight: bold; box-shadow: 0 4px 6px rgba(230,0,18,0.2); transition: transform 0.2s; white-space: nowrap; }
.btn-apply:hover { transform: translateY(-2px); background-color: #c90010; box-shadow: 0 6px 10px rgba(230,0,18,0.3); }

/* その3：抽選 */
.part-3 { background-color: #fff; border-top: 5px solid #555; }
.part-3 .part-badge { background-color: #555; }
.part-3 .part-title { color: #333; border-bottom-color: #ccc; }
.prize-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin-top: 30px; }
.prize-item { background: #f9f9f9; padding: 20px; border-radius: 8px; text-align: center; border: 1px solid #eee; }
.prize-icon { font-size: 2.5rem; color: #555; margin-bottom: 10px; display: block; }
.prize-name { display: block; font-weight: bold; margin-bottom: 5px; }
.prize-count { display: block; color: #e60012; font-weight: bold; }
.lottery-note { text-align: right; font-size: 0.8rem; color: #888; margin-top: 10px; }

/* 注意事項 */
.course-notes { margin-top: 30px; background-color: #fff0f5; border: 1px solid #ffb6c1; padding: 20px; border-radius: 8px; font-size: 0.9rem; }
.course-notes h5 { margin-top: 0; color: #e60012; }
.course-notes ul { margin: 0; padding-left: 20px; }

/* 分割払いバナー */
.bunkatsu-area { margin-top: 40px; text-align: center; }
.bunkatsu-banner {
    display: block;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    max-width: 800px;
    margin: 0 auto;
}
.bunkatsu-banner:hover { transform: scale(1.02); }
.bunkatsu-content { display: flex; align-items: center; justify-content: center; gap: 20px; }
.bunkatsu-icon { font-size: 2.5rem; color: #f1c40f; }
.bunkatsu-text { text-align: left; flex-grow: 1; }
.bunkatsu-sub { display: block; font-size: 0.9rem; color: #ecf0f1; }
.bunkatsu-main { display: block; font-size: 1.5rem; font-weight: bold; color: #fff; }
.bunkatsu-note { font-size: 0.8rem; color: #bdc3c7; }
.bunkatsu-arrow { font-size: 1.5rem; }

/* カテゴリナビ */
.category-nav { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; padding: 0 20px 10px; position: sticky; top: 10px; z-index: 90; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
.category-nav::-webkit-scrollbar { display: none; }
.nav-btn { background: #fff; border: 2px solid #ddd; color: #555; padding: 10px 25px; border-radius: 30px; font-weight: bold; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.1); font-size: 1rem; flex: 0 0 auto; white-space: nowrap; }
.nav-btn:hover, .nav-btn.active { background: var(--accent-color); color: #fff; border-color: var(--accent-color); transform: translateY(-2px); }

/* グリッド */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.product-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: transform 0.3s ease; position: relative; padding: 20px; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }

/* 書籍バッジ・コピー */
.badge-limited { position: static; display: inline-block; background: var(--limited-bg); color: #fff; padding: 5px 15px; border-radius: 20px; margin-bottom: 10px; font-weight: bold; font-size: 0.85rem; line-height: 1; box-shadow: 0 3px 6px rgba(255, 0, 85, 0.3); width: auto; z-index: 1; }
.badge-limited::before { content: "\f005"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: 5px; color: #ffeebb; }
.product-catch-copy { color: var(--accent-color); font-weight: bold; font-size: 0.95rem; margin: 0 0 5px; line-height: 1.4; }
h3.product-name { font-size: 1.2rem; margin: 0 0 15px 0; color: #333; line-height: 1.4; border-bottom: 2px solid #f0f0f0; padding-bottom: 10px; text-align: left; }

/* 書籍カード内部 */
.card-main-area { display: flex; gap: 20px; align-items: flex-start; }
.product-image-area { flex: 0 0 160px; aspect-ratio: 1 / 1; background-color: #f0f0f0; display: flex; align-items: center; justify-content: center; border-radius: 8px; overflow: hidden; }
.product-img { width: 100%; height: 100%; object-fit: contain; }
.card-info-area { flex: 1; display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.price-section { text-align: right; margin-bottom: 10px; }
.expiry-date { font-size: 0.75rem; color: var(--primary-color); margin: 0 0 2px; }
.price-original { text-decoration: line-through; color: #888; font-size: 0.9rem; margin: 0; }
.tax-label { font-size: 0.75rem; }
.price-label-special { color: var(--primary-color); font-weight: bold; font-size: 0.8rem; background: #ffe0e0; display: inline-block; padding: 2px 6px; border-radius: 4px; margin: 2px 0 0; }
.price-special { color: var(--primary-color); font-size: 2rem; font-weight: 800; margin: 0; line-height: 1.1; }
.price-special span { font-size: 0.9rem; color: #333; font-weight: normal; }
.action-area { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.btn-contents { background-color: #f0f0f0; color: #555; border: none; padding: 8px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; transition: background 0.2s; text-align: center; width: 100%; box-sizing: border-box; }
.btn-contents:hover { background-color: #e0e0e0; }
.btn-buy { background-color: var(--accent-color); color: #fff; padding: 12px; border: none; border-radius: 6px; cursor: pointer; font-size: 1rem; font-weight: bold; transition: background 0.3s; text-align: center; width: 100%; box-sizing: border-box; display: block; text-decoration: none; }
.btn-buy:hover { background-color: #d88700; }

.local-notes { margin-top: 50px; padding: 25px; border-radius: 8px; font-size: 0.9rem; color: #555; background-color: #fafafa; }
.local-notes h4 { margin-top: 0; margin-bottom: 15px; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.local-notes ul { margin: 0; padding-left: 20px; }
.local-notes li { margin-bottom: 5px; }
.web-notes-theme { border: 2px solid #e0f0ff; background-color: #f0f8ff; }
.web-notes-theme h4 { color: var(--web-campaign-color); }
.book-notes-theme { border: 2px solid #ffe0e0; background-color: #fffaf0; }
.book-notes-theme h4 { color: var(--primary-color); }

/* フッター */
.site-footer { background-color: #333; color: #fff; text-align: center; padding: 40px 20px; margin-top: 60px; }
.footer-links { margin-bottom: 20px; font-size: 0.9rem; }
.footer-links a { color: #fff; text-decoration: none; margin: 0 10px; display: inline-block; }
.footer-links a:hover { text-decoration: underline; color: var(--accent-color); }
.copyright { font-size: 0.8rem; color: #999; margin: 0; }

/* スティッキー追跡バナー */
.sticky-notice-banner { position: fixed; bottom: 0; left: 0; width: 100%; background-color: var(--web-campaign-color); color: #fff; text-align: center; padding: 15px 2px; z-index: 999; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); }
.sticky-notice-banner a { color: #fff; text-decoration: none; font-weight: bold; display: block; max-width: 1200px; margin: 0 auto; font-size: 1rem; }
.sticky-notice-banner a:hover { text-decoration: underline; opacity: 0.9; }
.sticky-notice-banner i { margin: 0 5px; }

/* モーダル */
.modal { display: none; position: fixed; z-index: 100; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); animation: fadeIn 0.3s; }
.modal-content { background-color: #fefefe; margin: 10% auto; padding: 40px 25px 30px; border: 1px solid #888; width: 90%; max-width: 600px; border-radius: 10px; position: relative; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.close-btn { position: absolute; top: 15px; right: 20px; color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer; line-height: 1; z-index: 10; }
.close-btn:hover { color: #333; }
.modal-content h4 { color: var(--primary-color); margin-top: 0; border-bottom: 2px solid var(--accent-color); padding-bottom: 10px; margin-right: 30px; font-size: 1.1rem; }
.modal-list { padding-left: 20px; font-size: 0.95rem; line-height: 1.8; }
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }

/* ▼▼ スマホ対応（レイアウト崩れ修正済み） ▼▼ */
@media (max-width: 768px) {
    .hero-main-text { font-size: 2.2rem; }
    .hero-year { font-size: 2rem; }
    .hero-message-box { font-size: 1rem; text-align: left; }
    
    .nav-container { flex-direction: column; gap: 15px; }
    .nav-card { width: 100%; max-width: none; box-sizing: border-box; }
    
    .category-nav { justify-content: flex-start; }
    .container { margin: 30px auto; }
    .product-grid { grid-template-columns: 1fr; }

    h1.campaign-title { font-size: 1.6rem; }
    
    .card-main-area { flex-direction: column; }
    .product-image-area { flex: none; width: 100%; max-width: 100%; height: 250px; margin: 0 0 15px 0; }
    .card-info-area { width: 100%; }
    .price-section { width: 100%; margin-bottom: 15px; }
    .action-area { width: 100%; }
    
    .bunkatsu-content { flex-direction: column; text-align: center; gap: 10px; }
    .bunkatsu-text { text-align: center; }
    .footer-links a { display: block; margin: 10px 0; }

    /* WEB講座カード スマホレイアウト調整 */
    .search-filters { flex-direction: column; }
    .course-header { flex-direction: column; align-items: flex-start; }
    .course-title-group { width: 100%; margin-bottom: 10px; }
    .btn-detail-link { width: 80%; text-align: center; display: block; }
    
    /* ▼ 縦積みにしてはみ出しを防止 ▼ */
    .course-option-row { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 10px;
    }
    .option-name { 
        width: 100%; 
        margin-bottom: 5px; 
    }
    .price-box { 
        width: 100%; 
        text-align: left; /* 左寄せに変更 */
        margin-bottom: 10px; 
        display: flex; 
        flex-direction: row; /* 価格内は横並びでOK */
        align-items: baseline; 
        gap: 15px;
    }
    /* 念のため価格内で折り返しを許可 */
    .price-box > * { white-space: normal; }
    
    .btn-apply { 
        width: 100%; /* 幅いっぱいに */
        text-align: center; 
        box-sizing: border-box;
    }
}