@charset "UTF-8";

/* ====================================
   基本設定 (Base)
   ==================================== */
:root {
    --primary-color: #001366;
    --accent-color: #d4af37;
    --text-color: #333333;
    --bg-light: #f9f9fc;
    --white: #ffffff;
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: var(--white);
    scroll-behavior: smooth;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 共通クラス */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-gray {
    background-color: var(--bg-light);
}

.bg-white {
    background-color: var(--white);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

.section-lead {
    text-align: center;
    margin-bottom: 50px;
}

/* ====================================
   ヘッダー (Header)
   ==================================== */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
}

/* ★修正: .nav自体をflexにして子要素(ulとa)を横並びにする */
.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav a {
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-contact {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    /* ボタン内のテキスト改行防止 */
}

/* ★修正: スマホのみ改行するためのクラス */
.sp-only {
    display: none;
}

/* スマホ・タブレット対応 */
@media (max-width: 900px) {

    /* 画面幅が狭くなったらメニュー文字を少し小さく */
    .nav ul {
        gap: 10px;
    }

    .nav a {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {

    /* SP表示設定 */
    .nav ul {
        display: none;
    }

    /* メニュー非表示 */

    .sp-only {
        display: block;
    }

    /* ★修正: 改行を有効化 */

    .logo {
        font-size: 1.2rem;
    }
}

/* ====================================
   メインビジュアル (Hero)
   ==================================== */
.hero {
    background: linear-gradient(color-mix(in srgb, var(--primary-color) 70%, transparent),
            color-mix(in srgb, var(--primary-color) 50%, transparent)), url('http://plumtiger7.sakura.ne.jp/23973997_s.jpg');

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 120px 20px;
    text-align: center;
}

.hero-sub {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1.4;
    margin-bottom: 30px;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.hero-btns .btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero {
        background-attachment: scroll;
    }
}

/* ====================================
   特徴 (About)
   ==================================== */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.feature-item {
    flex: 1;
    min-width: 280px;
    text-align: center;
    padding: 20px;
}

.feature-item h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

/* ====================================
   コース (Course - Cards)
   ==================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-top: 5px solid var(--primary-color);
}

.card-header {
    padding: 20px;
    background-color: #f0f0f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.badge {
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
}

.card-body {
    padding: 25px;
}

/* ====================================
   料金 (Price)
   ==================================== */
.price-tables {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.price-box {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.price-title {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px;
    text-align: center;
    margin: -30px -30px 20px -30px;
    border-radius: 8px 8px 0 0;
    font-size: 1.1rem;
}

.price-rate {
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.calc-detail {
    font-size: 1.1rem;
}

.total-price {
    font-size: 1.5rem;
    color: #e74c3c;
    font-weight: bold;
}

.price-note {
    margin-top: 40px;
    font-size: 0.9rem;
    color: #666;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
}

.price-note li {
    margin-bottom: 5px;
    list-style: inside disc;
}

/* ====================================
   実績 (Result)
   ==================================== */
.result-group {
    text-align: center;
}

.result-group h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.result-list-box {
    background: var(--white);
    display: inline-block;
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.school-list li {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: bold;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    text-align: left;
}

.result-category {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
}

.result-category h5 {
    border-left: 4px solid var(--accent-color);
    padding-left: 10px;
    margin-top: 0;
    color: var(--primary-color);
}

.result-category ul li {
    margin-bottom: 5px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 2px;
}

.mt-large {
    margin-top: 60px;
}

/* ====================================
   Q&A (Questions)
   ==================================== */
.qa-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qa-item {
    background-color: var(--white);
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 20px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
}

.qa-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.qa-question {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.qa-icon {
    background-color: var(--primary-color);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.qa-question h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.qa-answer {
    padding-left: 45px;
    color: var(--text-color);
}

@media (max-width: 600px) {
    .qa-question h4 {
        font-size: 1rem;
    }

    .qa-answer {
        padding-left: 0;
        margin-top: 10px;
    }
}

/* ====================================
   アクセス (Access)
   ==================================== */
.access-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.access-info,
.access-map {
    flex: 1;
    min-width: 300px;
}

.access-info dl {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.access-info dt {
    font-weight: bold;
    color: var(--primary-color);
}

.access-info .tel a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.mobile-tel {
    font-size: 1rem;
    color: #666;
}

.btn-primary.block,
.btn-secondary.block {
    display: block;
    text-align: center;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    text-decoration: none;
}

.btn-primary.block {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary.block {
    background-color: #eee;
    color: var(--text-color);
}

/* ====================================
   フッター (Footer)
   ==================================== */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
}

.footer p {
    margin: 0;
}