/* ========================================
   姓名判断通信講座 - スタイルシート
   ======================================== */

/* ---------- カスタムプロパティ ---------- */
:root {
    --font-heading: 'Noto Serif JP', serif;
    --font-body: 'Outfit', 'Noto Serif JP', sans-serif;

    --color-primary: #af8f42;
    /* Gold */
    --color-primary-dark: #8c7132;
    --color-secondary: #e6ded3;
    /* Beige */
    --color-accent: #c3a457;
    --color-text-main: #333333;
    --color-text-muted: #666666;
    --color-bg-light: #f9f9f9;
    --color-bg-alt: #ffffff;
    --color-glass-bg: rgba(255, 255, 255, 0.95);
    --color-glass-border: rgba(175, 143, 66, 0.2);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ---------- リセット ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ---------- ユーティリティ ---------- */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.section {
    padding: 60px 0 100px 0;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.section-title span {
    color: var(--color-primary);
}

/* ---------- ガラスモーフィズム ---------- */
.glass {
    background: var(--color-glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-md);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
}

/* ---------- ボタン ---------- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(175, 143, 66, 0.4);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(175, 143, 66, 0.5);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-gold {
    background: #af8f42;
    color: #ffffff;
    border-radius: 50px;
    padding: 18px 45px;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(175, 143, 66, 0.4);
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(175, 143, 66, 0.5);
    background: #c3a457;
    color: #ffffff;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ---------- ヘッダー ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: rgba(247, 249, 252, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-glass-border);
    transition: var(--transition-fast);
}

.header.scrolled {
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: -2px;
    font-family: var(--font-body);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

.nav a:hover::after {
    width: 100%;
}

.nav a:hover {
    color: var(--color-primary);
}

/* ---------- ヒーロー ---------- */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 160px;
    padding-bottom: 40px;
    overflow-x: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.hero-top-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    width: 100%;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.05em;
    text-align: left;
    flex-shrink: 0;
}

.hero-title .highlight {
    color: var(--color-primary);
    position: relative;
}

.hero-image-container {
    flex: 1;
    max-width: 250px;
}

.hero-main-image {
    width: 100%;
    border: 5px solid #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.hero-main-image:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 30px 60px rgba(175, 143, 66, 0.2);
}

.hero-bottom-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 2;
    font-family: var(--font-heading);
}

/* 背景デコレーション */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: var(--color-secondary);
    bottom: -50px;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: var(--color-accent);
    top: 40%;
    left: 60%;
    animation: float 12s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* ---------- 特徴セクション ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    padding: 40px 25px;
    text-align: center;
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.feature-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.feature-photo {
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.feature-photo img {
    width: 100%;
    height: auto;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.feature-text {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ---------- カリキュラム ---------- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
}

.timeline-item {
    position: relative;
    padding: 30px 30px 30px 60px;
    margin-bottom: 20px;
    transition: var(--transition-base);
}

.timeline-item:hover {
    transform: translateX(5px);
}

.timeline-dot {
    position: absolute;
    left: 12px;
    top: 35px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid var(--color-bg-light);
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.chapter-summary {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.chapter-dropdown-below {
    margin-top: 10px;
}

.chapter-dropdown-below summary {
    cursor: pointer;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.chapter-dropdown-below summary:hover {
    color: var(--color-primary-dark);
}

.chapter-detail {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.9;
    padding: 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
}

.dropdown-icon {
    font-size: 0.7em;
    transition: var(--transition-fast);
}

details[open] .dropdown-icon {
    display: inline-block;
    transform: rotate(180deg);
}

/* カリキュラム下のボタンラッパー */
.curriculum-action {
    margin-top: 50px;
    text-align: center;
}

/* ---------- 受講者の声 ---------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    padding: 30px;
    transition: var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-text {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.9;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--color-primary);
    background-color: #fdf5ea;
    display: flex;
    justify-content: center;
    align-items: center;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    font-size: 0.85rem;
}

.author-info strong {
    font-size: 0.95rem;
}

/* ---------- 講師紹介 ---------- */
.instructor-profile {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 50px;
    max-width: 800px;
    margin: 0 auto;
}

.instructor-img-wrapper {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.instructor-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.instructor-role {
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.instructor-info p {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.9;
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    padding: 5px;
    transition: var(--transition-base);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    padding: 20px 25px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.faq-item summary:hover {
    color: var(--color-primary);
}

.faq-answer {
    padding: 0 25px 20px;
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.9;
}

/* ---------- 受講特典 ---------- */
.bonus-intro {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.bonus-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 740px;
    margin: 0 auto;
}

.bonus-card {
    flex: 1;
    max-width: 340px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    border-radius: 20px;
    border-top: 4px solid var(--color-primary);
}

.bonus-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
    border: 3px solid rgba(197, 168, 114, 0.2);
}

.bonus-card-title {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.bonus-card-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    text-align: left;
}

/* Accordion in Bonus Area */
.bonus-details-container {
    max-width: 580px;
    width: 100%;
    margin: 40px auto 0;
}

.bonus-accordion {
    margin-bottom: 20px;
    border-radius: 12px;
    border: 1px solid rgba(197, 168, 114, 0.3);
    overflow: hidden;
    text-align: left;
}

.bonus-accordion summary {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-primary);
    list-style: none;
    /* Hide default marker standard */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

/* Specific fix to hide Safari default disclosure triangle */
.bonus-accordion summary::-webkit-details-marker {
    display: none;
}

.bonus-accordion summary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.bonus-accordion[open] summary {
    border-bottom: 1px solid rgba(197, 168, 114, 0.2);
}

.bonus-accordion[open] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-icon {
    font-size: 0.8rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.accordion-content {
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.4);
    font-family: var(--font-body);
}

.accordion-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accordion-list li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-main);
}

.accordion-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.accordion-list strong {
    color: var(--color-primary);
    display: inline-block;
}

.accordion-intro {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--color-text-main);
}

.accordion-theme {
    padding: 12px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.accordion-theme:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.accordion-theme h4 {
    font-family: var(--font-body);
    font-weight: bold;
    color: var(--color-primary);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.accordion-theme p {
    font-size: 0.95rem;
    color: var(--color-text-main);
    line-height: 1.6;
    margin: 0;
}

/* ---------- 料金 ---------- */
.pricing-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 50px;
    text-align: center;
}

.pricing-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.pricing-subtitle {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.price {
    margin-bottom: 10px;
}

.currency {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-right: 4px;
}

.amount {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

.tax {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.pricing-note {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 30px;
}

.pricing-features {
    text-align: left;
    margin-bottom: 40px;
    list-style: none;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
}

.pricing-features .check {
    color: var(--color-primary);
    font-weight: bold;
    margin-right: 8px;
}

.pricing-features .small-note {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    padding-left: 25px;
    border-bottom: none;
    padding-top: 0;
}

.cta-container {
    margin-top: 30px;
}

.cta-message {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

/* ---------- フッター ---------- */
.footer {
    background: var(--color-text-main);
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.copyright {
    text-align: center;
    font-size: 0.85rem;
}

/* ---------- レスポンシブ用ユーティリティ ---------- */
.sp-only {
    display: none !important;
}

.pc-only {
    display: block !important;
}

/* ---------- フォームセクション ---------- */
.contact {
    background: linear-gradient(135deg, rgba(255, 160, 122, 0.1) 0%, rgba(255, 204, 204, 0.1) 100%);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: var(--radius-md);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text-main);
}

.form-group .required {
    color: #cc0000;
    font-size: 0.8em;
    margin-left: 5px;
    vertical-align: top;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(230, 115, 115, 0.2);
    background-color: #fff;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

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

.btn-submit {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    cursor: pointer;
}

/* ---------- フェードアニメーション ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
    .sp-only {
        display: block !important;
    }

    .pc-only {
        display: none !important;
    }

    .header-container {
        flex-wrap: wrap;
    }

    .hero-top-row {
        flex-direction: column;
        gap: 60px;
    }

    .hero-title {
        font-size: 2.2rem;
        text-align: center;
    }

    .hero-image-container {
        max-width: 180px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .instructor-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px;
    }

    .instructor-img-wrapper {
        width: 120px;
    }

    .instructor-info {
        text-align: left;
        line-height: 1.7;
    }

    .bonus-grid {
        flex-direction: column;
        gap: 20px;
    }

    .bonus-icon {
        width: 60px;
        height: 60px;
    }

    .bonus-icon svg {
        width: 32px;
        height: 32px;
    }

    .bonus-card {
        max-width: none;
    }

    .pricing-card {
        padding: 40px 25px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

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

    .btn-gold {
        font-size: 1.1rem;
        padding: 15px 30px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 0 60px 0;
    }

    .hero {
        padding-top: 120px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }

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

    .amount {
        font-size: 2.5rem;
    }
}