/*
Theme Name: Dental Seminar LP
Author: GenSpark
Version: 1.0
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f8f9fa;
}

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

/* ヘッダー */
.header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-logo {
    max-width: 400px;
}

.header-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* セクション共通スタイル */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    color: #1a3a5c;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #fb8500, #e85d04);
    border-radius: 2px;
}

/* ファーストビュー */
.hero {
    position: relative;
    min-height: 700px;
    background-image: url('https://www.genspark.ai/api/files/s/E6kHHGvx');
    background-size: 120% auto;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(58, 123, 168, 0.65) 0%, rgba(44, 95, 141, 0.65) 50%, rgba(26, 58, 92, 0.70) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(30, 58, 138, 0.7) 0%, rgba(37, 99, 235, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 30px;
    border-radius: 50px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 1s ease-out;
}

.badge-text {
    color: #e85d04;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.badge-divider {
    width: 1px;
    height: 20px;
    background: #ddd;
    margin: 0 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 30px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.9;
    font-weight: 400;
    margin-bottom: 40px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-subtitle .highlight {
    background: linear-gradient(90deg, #fb8500, #e85d04);
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 700;
}

.hero-cta-button {
    display: inline-block;
    background: linear-gradient(90deg, #fb8500, #e85d04);
    color: white;
    padding: 20px 60px;
    font-size: 1.3rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: 3px solid white;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 3;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* アニメーション */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* サブキャッチコピー */
.sub-catch {
    padding: 60px 0;
    background: white;
}

.warning-box {
    background: linear-gradient(135deg, #fff4e6 0%, #ffe8cc 100%);
    border-left: 6px solid #e85d04;
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.warning-box i {
    font-size: 2.5rem;
    color: #e85d04;
    margin-bottom: 15px;
    display: block;
}

.warning-box p {
    font-size: 1.3rem;
    font-weight: 700;
    color: #78350f;
    line-height: 1.8;
}

.text-emphasis {
    color: #dc2626;
    font-weight: 800;
}

/* 問題セクション */
.problems {
    background: linear-gradient(180deg, #fff 0%, #f5f8fa 100%);
}

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

.problem-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.problem-icon {
    font-size: 3.5rem;
    color: #dc2626;
    margin-bottom: 20px;
}

.problem-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a3a5c;
    line-height: 1.8;
}

.problem-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.problem-text p {
    font-size: 1.15rem;
    line-height: 2;
    margin-bottom: 20px;
}

.highlight-text {
    background: linear-gradient(90deg, #e8f1f8, #d4e6f1);
    padding: 25px 30px;
    border-radius: 10px;
    border-left: 5px solid #2c5f8d;
    font-weight: 600;
}

/* セミナー情報 */
.about-seminar {
    background: white;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-lead {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a3a5c;
    text-align: center;
    margin-bottom: 30px;
    line-height: 2;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 20px;
    text-align: center;
}

.question-box {
    background: linear-gradient(135deg, #f0f4f8 0%, #e3edf5 100%);
    padding: 40px;
    border-radius: 15px;
    margin-top: 40px;
    text-align: center;
    border: 2px solid #d4e6f1;
}

.question {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 15px;
}

.answer {
    font-size: 1.2rem;
    font-weight: 700;
    color: #dc2626;
    margin-top: 15px;
}

/* 成果事例 */
.results {
    background: linear-gradient(180deg, #f5f8fa 0%, #fff 100%);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.result-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #2c5f8d;
}

.result-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(44, 95, 141, 0.2);
}

.result-icon {
    font-size: 3.5rem;
    color: #2c5f8d;
    margin-bottom: 20px;
}

.result-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 15px;
}

.result-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #64748b;
}

/* カリキュラム */
.curriculum {
    background: white;
}

.curriculum-items {
    max-width: 900px;
    margin: 0 auto;
}

.curriculum-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f0f4f8 0%, #fff 100%);
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.curriculum-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 25px rgba(44, 95, 141, 0.15);
}

.curriculum-number {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2c5f8d, #3a7ba8);
    color: white;
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(44, 95, 141, 0.3);
}

.curriculum-content {
    flex: 1;
}

.curriculum-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 10px;
}

.curriculum-description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.8;
}

/* 講師紹介 */
.instructor {
    background: linear-gradient(180deg, #f0f4f8 0%, #e3edf5 100%);
}

.instructor-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.instructor-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.instructor-image img {
    width: 100%;
    height: auto;
    display: block;
}

.instructor-name {
    font-size: 2rem;
    font-weight: 800;
    color: #1a3a5c;
    margin-bottom: 10px;
}

.instructor-position {
    font-size: 1.2rem;
    color: #2c5f8d;
    font-weight: 600;
    margin-bottom: 30px;
}

.instructor-achievements {
    list-style: none;
    margin-bottom: 30px;
}

.instructor-achievements li {
    font-size: 1rem;
    line-height: 2;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructor-achievements i {
    color: #10b981;
    font-size: 1.2rem;
}

.instructor-comment {
    background: #f0f4f8;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #2c5f8d;
    position: relative;
}

.instructor-comment i {
    color: #2c5f8d;
    font-size: 1.5rem;
}

.instructor-comment .fa-quote-left {
    position: absolute;
    top: 15px;
    left: 15px;
}

.instructor-comment .fa-quote-right {
    position: absolute;
    bottom: 15px;
    right: 15px;
}

.instructor-comment p {
    font-size: 1rem;
    line-height: 1.9;
    color: #1e293b;
    padding: 10px 20px;
}

/* ベネフィット */
.benefits {
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 30px;
    background: linear-gradient(135deg, #f0f4f8 0%, #fff 100%);
    border-radius: 10px;
    border-left: 5px solid #2c5f8d;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(44, 95, 141, 0.15);
}

.benefit-item i {
    font-size: 1.8rem;
    color: #10b981;
    flex-shrink: 0;
}

.benefit-item p {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.7;
}

/* ターゲット */
.target {
    background: linear-gradient(180deg, #f5f8fa 0%, #fff 100%);
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.target-item {
    background: white;
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 3px solid #2c5f8d;
}

.target-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 95, 141, 0.2);
}

.target-item i {
    font-size: 2.5rem;
    color: #2c5f8d;
    margin-bottom: 15px;
    display: block;
}

.target-item p {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.7;
}

/* セミナー詳細 */
.details {
    background: white;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.detail-item {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e3edf5 100%);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.detail-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2c5f8d, #3a7ba8);
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 25px;
    box-shadow: 0 5px 20px rgba(44, 95, 141, 0.3);
}

.detail-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 15px;
}

.detail-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #475569;
}

.detail-content small {
    font-size: 0.9rem;
    color: #64748b;
}

/* CTA セクション */
.cta {
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5f8d 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, #fb8500, #e85d04);
    color: white;
    padding: 20px 60px;
    font-size: 1.3rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 3px solid white;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* フォームセクション */
.form-section {
    background: white;
    padding: 80px 0;
}

.seminar-form {
    max-width: 700px;
    margin: 0 auto;
    background: #f8fafc;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 10px;
}

.required {
    color: #dc2626;
    font-size: 0.9rem;
    font-weight: 700;
    background: #fee2e2;
    padding: 3px 10px;
    border-radius: 4px;
    margin-left: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5f8d;
    box-shadow: 0 0 0 3px rgba(44, 95, 141, 0.1);
}

.form-submit {
    text-align: center;
    margin-top: 40px;
}

.submit-button {
    background: linear-gradient(135deg, #2c5f8d, #3a7ba8);
    color: white;
    padding: 18px 60px;
    font-size: 1.2rem;
    font-weight: 800;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(44, 95, 141, 0.3);
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(44, 95, 141, 0.4);
}

.submit-button i {
    margin-right: 10px;
}

.form-note {
    max-width: 700px;
    margin: 30px auto 0;
    text-align: center;
    color: #64748b;
}

.form-note i {
    color: #10b981;
    margin-right: 8px;
}

/* FAQ */
.faq {
    background: linear-gradient(180deg, #f5f8fa 0%, #fff 100%);
}

.faq-items {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.faq-question {
    padding: 25px 30px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e3edf5 100%);
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.faq-question i {
    font-size: 1.8rem;
    color: #2c5f8d;
    flex-shrink: 0;
}

.faq-question h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a3a5c;
    line-height: 1.7;
}

.faq-answer {
    padding: 25px 30px 25px 75px;
    background: white;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.9;
    color: #475569;
}

/* 最終CTA */
.final-cta {
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5f8d 50%, #3a7ba8 100%);
    padding: 100px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

.final-cta-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.final-cta-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.final-cta-button {
    display: inline-block;
    background: linear-gradient(90deg, #fb8500, #e85d04);
    color: white;
    padding: 22px 70px;
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: 3px solid white;
    position: relative;
    z-index: 1;
}

.final-cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.final-cta-notes {
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.final-cta-notes p {
    font-size: 1.1rem;
    margin: 10px 0;
}

.final-cta-notes i {
    margin-right: 10px;
}

/* フッター */
.footer {
    background: #1a3a5c;
    color: white;
    text-align: center;
    padding: 40px 0;
}

.footer p {
    font-size: 0.95rem;
}

/* レスポンシブ */
@media (max-width: 1024px) {
    .instructor-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .instructor-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .header-logo {
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .curriculum-item {
        flex-direction: column;
        text-align: center;
    }

    .curriculum-number {
        margin: 0 auto;
    }

    .benefits-grid,
    .target-grid {
        grid-template-columns: 1fr;
    }

    .seminar-form {
        padding: 30px 20px;
    }

    .final-cta-title {
        font-size: 2rem;
    }

    .final-cta-subtitle {
        font-size: 1.2rem;
    }

    .cta-button,
    .final-cta-button,
    .hero-cta-button {
        padding: 18px 40px;
        font-size: 1.1rem;
    }
    
    .header-logo {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 650px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .badge {
        flex-direction: column;
        gap: 10px;
    }

    .badge-divider {
        width: 30px;
        height: 1px;
        margin: 0;
    }

    .problem-cards,
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .header-logo {
        max-width: 200px;
    }
    
    .hero-cta-button {
        padding: 16px 35px;
        font-size: 1rem;
    }
}
/* Contact Form 7用 修正CSS */

/* 入力欄の幅を100%にする */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
}

/* 送信ボタンのスタイル */
.wpcf7 input[type="submit"] {
    background: linear-gradient(135deg, #2c5f8d, #3a7ba8);
    color: white;
    padding: 18px 60px;
    font-size: 1.2rem;
    font-weight: 800;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(44, 95, 141, 0.3);
    transition: all 0.3s ease;
    width: auto; /* 幅を自動に戻す */
    display: inline-block;
}

.wpcf7 input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(44, 95, 141, 0.4);
}

/* エラーメッセージの調整 */
.wpcf7-not-valid-tip {
    font-size: 0.9rem;
    margin-top: 5px;
    font-weight: bold;
}
/* =========================================
   スマホ表示の修正用CSS (完全版)
   ========================================= */

@media (max-width: 480px) {
    /* 1. 背景画像を画面いっぱいに広げる修正 */
    .hero {
        background-size: cover !important; 
        background-position: center center !important;
    }

    /* 2. サイト全体の「変な改行」を一括で直す修正 */
    /* 見出し(h1-h3)や本文(p)、リスト(li)の中にある改行タグ(br)をスマホでは無効にする */
    h1 br, 
    h2 br, 
    h3 br, 
    p br, 
    li br,
    .problem-title br,
    .result-description br,
    .curriculum-description br {
        display: none;
    }

    /* 3. 文字サイズの微調整（スマホで見やすく） */
    .hero-title {
        font-size: 1.6rem !important;
        line-height: 1.4 !important;
        padding: 0 10px;
    }

    .section-title {
        font-size: 1.8rem !important; /* セクションのタイトルも少し小さく */
        line-height: 1.4 !important;
        padding: 0 10px;
    }

    /* 本文の文字詰め調整 */
    p {
        text-align: justify; /* 文章の両端を揃える（お好みで） */
        line-height: 1.8 !important;
    }

    /* オレンジ色のハイライト背景の調整 */
    .hero-subtitle .highlight {
        display: inline;
        box-decoration-break: clone;
        -webkit-box-decoration-break: clone;
        padding: 4px 8px !important;
        line-height: 2.4 !important;
    }
}
/* =========================================
   改行位置の調整用CSS（ここから下を追加）
   ========================================= */

/* 【PC用の設定】スマホ専用の改行を隠す */
.sp-only {
    display: none;
}

/* 【スマホ用の設定】 */
@media (max-width: 480px) {
    /* 1. PC専用の改行を隠す */
    .hero-subtitle br.pc-only {
        display: none;
    }

    /* 2. スマホ専用の改行を表示させる */
    .hero-subtitle br.sp-only {
        display: inline;
    }

    /* 3. オレンジ色のハイライト部分の調整 */
    .hero-subtitle .highlight {
        display: inline-block; /* 複数行になっても背景をまとめる */
        padding: 6px 10px;     /* 余白を少し広げる */
        line-height: 1.5;      /* 行間を調整 */
        margin-bottom: 15px;   /* 下に隙間をあける */
    }

    /* 4. 最後の太文字部分を新しい行にする */
    .hero-subtitle strong {
        display: block;       /* ブロック要素にして強制改行 */
    }

    /* ※前回追加した「.hero-subtitle br { display: none; }」という記述があれば、
       今回の設定と競合するので削除するか、コメントアウト（/* ... */で囲む）してください。 */
}
/* =========================================
   スマホでの中央揃え修正用 (ここから下を追加)
   ========================================= */

@media (max-width: 480px) {
    /* サブタイトル全体を中央揃えにする */
    .hero-subtitle {
        text-align: center !important;
    }

    /* オレンジ色の背景部分も中央揃えにする */
    .hero-subtitle .highlight {
        display: inline-block;  /* ブロック化 */
        text-align: center;     /* 中の文字を中央へ */
        margin-left: auto;      /* 左右の余白を自動にして中央配置 */
        margin-right: auto;
        width: auto;            /* 幅は文字数に合わせる */
    }
}
/* =========================================
   スマホ表示の最終調整（中央揃え・行間詰め）
   ========================================= */

@media (max-width: 480px) {
    /* 1. 全体を中央揃えにする */
    .hero-subtitle {
        text-align: center !important;
    }

    /* 2. オレンジ色の背景部分の調整 */
    .hero-subtitle .highlight {
        display: inline-block;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        width: auto;
        
        /* ★ここが行間を狭くする設定です★ */
        line-height: 1.4 !important;  /* 行の高さを詰める */
        padding: 6px 10px !important; /* 上下の余白も少し調整 */
        margin-bottom: 8px;           /* 下の黒太文字との隙間も半分に */
    }

    /* 3. スマホ専用の改行設定（念のため維持） */
    .sp-only { display: inline; }
    .hero-subtitle br.pc-only { display: none; }
    .hero-subtitle br.sp-only { display: inline; }
    
    /* 4. 下の黒太文字もブロック化して中央へ */
    .hero-subtitle strong {
        display: block;
        margin-top: 0;
    }
}
/* =========================================
   バッジ横並び設定（文字大きめ版）
   ========================================= */

@media (max-width: 480px) {
    /* 1. 外枠の設定 */
    .badge {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        
        /* 文字を入れるスペースを確保するため、余白を削る */
        width: 95% !important;         /* 画面いっぱいまで広げる */
        max-width: 380px !important;   
        padding: 12px 2px !important;  /* 左右の余白を最小限に */
        white-space: nowrap;
    }

    /* 2. 文字サイズの拡大 */
    .badge-text {
        /* 文字サイズを標準くらいまで大きくする */
        font-size: 1rem !important;  /* 0.85rem → 1remに変更 */
        font-weight: 800 !important; /* 太くして読みやすく */
    }

    /* 3. 真ん中の仕切り線の調整 */
    .badge-divider {
        display: block !important;
        width: 1px !important;
        height: 16px !important;      /* 文字に合わせて少し長く */
        background: #ddd !important;
        
        /* 線と文字の間隔を狭めて、文字スペースを確保 */
        margin: 0 6px !important;     /* 12px → 6pxに短縮 */
    }
}