/* Base Styles */
:root {
    --primary-color: #0066ff; /* スポーティなブルー */
    --accent-color: #ff6b00;  /* 視認性の高いオレンジ */
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --text-color: #333333;
    --text-white: #ffffff;
    --font-family: 'Inter', 'Noto Sans JP', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

.text-accent {
    color: var(--accent-color);
}

.text-white {
    color: var(--text-white);
}

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

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.section-desc {
    text-align: center;
    margin-top: -30px;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #555;
}

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

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

.grid {
    display: grid;
    gap: 30px;
}

.two-cols {
    grid-template-columns: 1fr;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    /* モバイルのタップ対応: 最低44pxの高さ確保 */
    min-height: 48px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: #06C755;
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.4);
}

.btn-primary:hover {
    background-color: #05a044;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.5);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-lg {
    font-size: 1.1rem;
    padding: 20px 40px;
    width: 100%; /* モバイルでは幅いっぱい */
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 60px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./images/GrowithLPイメージ.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

@media (max-width: 768px) {
    .hero-bg {
        background-position: 65% center;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* テキスト可読性確保のための半透明黒 */
}

.hero-content {
    color: var(--text-white);
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-title .highlight {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Reasons */
.cards-grid {
    grid-template-columns: 1fr;
}

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

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Features */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.feature-item {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.feature-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-note {
    font-size: 0.8rem;
    font-weight: normal;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Coaches */
.coaches-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.coach-profile {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.4);
    /* グラスモーフィズム */
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.coach-name {
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.coach-title {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

.coach-credentials {
    list-style-position: inside;
    margin-bottom: 15px;
    color: #555;
    padding-left: 0;
    list-style-type: none;
    font-size: 0.9rem;
}

.coach-credentials li::before {
    content: "🏆";
    margin-right: 8px;
}

.coach-message {
    font-style: italic;
    font-size: 1.1rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    color: #444;
}

.coach-tier {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.tier-legend {
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.tier-grand {
    background: linear-gradient(135deg, #E0E0E0 0%, #9E9E9E 100%);
    box-shadow: 0 4px 10px rgba(158, 158, 158, 0.3);
}

.tier-national {
    background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.3);
}

.tier-expert {
    background: linear-gradient(135deg, #1a2b3c 0%, #2e4057 100%);
    box-shadow: 0 4px 10px rgba(26, 43, 60, 0.35);
    letter-spacing: 0.04em;
}

.coach-price {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
}

.coach-price span {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.coach-price span > span {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 800;
}



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

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: white;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-family);
    color: var(--text-color);
    /* 最低44pxのタップ領域保護 */
    min-height: 60px;
}

.faq-answer {
    padding: 0 20px;
    background: var(--bg-light);
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-answer.open {
    padding: 20px;
    max-height: 500px;
}

/* Closing */
.closing-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.closing-desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(255, 107, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: #aaa;
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #ddd;
    font-size: 0.9rem;
}

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

.copyright {
    font-size: 0.8rem;
}

/* Responsive (Tablet & PC) */
@media (min-width: 768px) {
    .btn-lg {
        width: auto;
    }

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

    .two-cols {
        grid-template-columns: 1fr 1fr;
    }

    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .coaches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .coaches-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Flow Section */
.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}
.flow-step {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
}
.step-number {
    background: var(--accent-color);
    color: white;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 8px;
    white-space: nowrap;
}
.step-content h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}
.step-content p {
    font-size: 0.9rem;
    color: #555;
}

/* Chat Visual Placeholder */
.chat-visual-placeholder {
    margin-top: 20px;
    background: #f0f0f0;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.mt-3 {
    margin-top: 1.5rem;
}
.chat-bubble {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: 90%;
}
.student-bubble {
    align-self: flex-end;
    justify-content: flex-end;
}
.coach-bubble {
    align-self: flex-start;
    justify-content: flex-start;
}
.chat-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}
.student-bubble .chat-avatar {
    background: #FF6B00;
}
.coach-bubble .chat-avatar {
    background: var(--primary-color);
}
.chat-text {
    background: white;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    line-height: 1.5;
}
.student-bubble .chat-text {
    background: #85e05a; /* LINE-like green */
    color: #111;
}
.coach-bubble .chat-text {
    background: white;
    color: #333;
}

/* Annotated Image for Video Analysis */
.annotated-image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 10px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.annotated-image-container .base-image {
    width: 100%;
    display: block;
    border-radius: 12px;
}
.annotation-circle {
    position: absolute;
    top: 30%;
    right: 35%;
    width: 50px;
    height: 50px;
    border: 3px solid #ff3333;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255,0,0,0.5);
}
.annotation-arrow {
    position: absolute;
    top: 45%;
    right: 38%;
    color: #ff3333;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    transform: rotate(45deg);
}

/* Coach Image and Details */
.coach-image-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #eee;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.coach-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.coach-details {
    margin: 15px 0;
    text-align: left;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.coach-details summary {
    font-weight: bold;
    cursor: pointer;
    padding: 10px 15px;
    background: #eee;
    color: var(--text-color);
    font-size: 0.9rem;
    list-style: none;
}
.coach-details summary::-webkit-details-marker {
    display: none;
}
.coach-details summary::after {
    content: " ▼";
    font-size: 0.8rem;
    float: right;
}
.coach-details[open] summary::after {
    content: " ▲";
}

.coach-details-content {
    padding: 15px;
    font-size: 0.85rem;
    color: #444;
}

.coach-details-content p {
    margin-bottom: 10px;
}
.coach-details-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .flow-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* -------------------------------------
 * Header Navigation & Mobile Menu
 * ------------------------------------- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
    padding: 15px 0;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-logo {
    height: 48px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.header.scrolled .header-logo {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
    margin: 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.nav-cta {
    padding: 10px 24px !important;
    min-height: auto !important;
    font-size: 0.9rem !important;
    border-radius: 30px;
    font-weight: 700 !important;
    background-color: #06C755 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.4) !important;
    -webkit-text-stroke: 0 !important;
    -webkit-text-fill-color: #ffffff !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .header-logo {
        height: 36px;
    }
    .header.scrolled .header-logo {
        height: 32px;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        gap: 20px;
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* -------------------------------------
 * YouTube アイコン ツールチップ (.video-tooltip)
 * PCホバー時に黒背景・白文字の吹き出しを表示。
 * スマホはfont-sizeラベル("動画を見る")で代替。
 * ------------------------------------- */

.video-tooltip {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.video-tooltip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(30, 30, 30, 0.92);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    letter-spacing: 0.03em;
}

.video-tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 5px solid transparent;
    border-top-color: rgba(30, 30, 30, 0.92);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-tooltip:hover::after,
.video-tooltip:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* コーチSNSリンク共通スタイル */
.coach-sns-links {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

.coach-sns-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #555;
    transition: color 0.2s ease;
    max-width: 140px;
    text-align: center;
}

.coach-sns-item:hover {
    color: #333;
}

.sns-label {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.4;
    display: block;
}

@media (max-width: 768px) {
    .coach-sns-links {
        gap: 16px;
    }
    .sns-label {
        font-size: 0.7rem;
    }
}

.video-tooltip .sns-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: inherit;
}
