/* 
 * BAAO 共通スタイル
 * =====================
 */

/* ベーススタイル */
body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.7;
}

/* ヘッダースタイル - 右揃え */
.header-right-aligned {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header-right-aligned nav {
    margin-right: 1.5rem;
}

/* 背景パターン */
.hero-pattern {
    background-color: #f9fafb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23e5e7eb' fill-opacity='0.4'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* セクション見出し */
.section-heading {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}
.section-heading:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #818cf8);
}

/* 特徴カード */
.feature-card {
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 推薦文カード */
.testimonial-card {
    position: relative;
}
.testimonial-card:before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 4rem;
    color: #e5e7eb;
    position: absolute;
    top: -1rem;
    left: -0.5rem;
    line-height: 1;
    opacity: 0.5;
}

/* カラー変数 */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #818cf8;
    --text-color: #333;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
}

/* ボタンスタイル */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

.btn-outline:hover {
    background-color: rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

/* コンテナ */
.container-custom {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* レスポンシブ設定 */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}
@media (max-width: 767px) {
    html {
        font-size: 14px;
    }
}

.hero-bg {
    background: linear-gradient(135deg, #5e4ee0 0%, #6462e0 100%);
    position: relative;
    overflow: hidden;
}
.circle-bg {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 0;
}
.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -50px;
}
.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: 100px;
}
.hero-content {
    position: relative;
    z-index: 10;
}
.highlight-box {
    display: inline-block;
    position: relative;
}
.highlight-box:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: -1;
}
.scroll-arrow {
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}
.gradient-border {
    position: relative;
    border-radius: 0.5rem;
    z-index: 0;
}
.gradient-border::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 0.6rem;
    background: linear-gradient(45deg, #4f46e5, #818cf8);
    z-index: -1;
}
.profile-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.section-divider {
    position: relative;
    height: 1px;
    background-color: #e5e7eb;
}
.section-divider::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    background: linear-gradient(90deg, #4f46e5, transparent);
}
.media-item {
    transition: all 0.3s ease;
}
.media-item:hover {
    background-color: #f3f4f6;
    transform: translateX(5px);
}

/* ニュースアイテム */
.news-item {
    transition: all 0.3s ease-in-out;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.news-item img {
    transition: transform 0.3s ease-in-out;
}

.news-item:hover img {
    transform: scale(1.05);
}

/* Line clamp utility for text truncation */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive Video Embed */
.video-responsive {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    margin: 2em 0;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* YouTube Facade for better performance and look */
.youtube-facade {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 0.5rem; /* 8px */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease-in-out;
}

.youtube-facade:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.youtube-facade img {
    display: block;
    width: 100%;
    height: auto;
}

.youtube-facade::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease-in-out;
}

.youtube-facade:hover::before {
    background: rgba(0, 0, 0, 0);
}

.youtube-facade::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55C3.97,2.33,2.26,4.81,1.48,7.74,0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" fill="%23ff0000"></path><path d="M 45,24 27,14 27,34" fill="%23ffffff"></path></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.2s ease-in-out;
}

.youtube-facade:hover::after {
    transform: translate(-50%, -50%) scale(1.1);
}
/* FAQ アコーディオン スタイル */
.faq-grid {
    --faq-border-accent: rgba(99, 102, 241, 0.18);
    --faq-border-base: rgba(148, 163, 184, 0.2);
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.faq-item {
    position: relative;
    border-radius: 1.25rem;
    border: 1px solid var(--faq-border-base);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.92));
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
    animation: faqFadeIn 0.6s ease-out both;
}

.faq-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(56, 189, 248, 0.14));
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.faq-item:hover {
    transform: translateY(-4px);
    border-color: var(--faq-border-accent);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
}

.faq-item:hover::before,
.faq-item.active::before {
    opacity: 1;
}

.faq-item.active {
    border-color: var(--faq-border-accent);
}

.faq-question {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    width: 100%;
    padding: 1.2rem 1.6rem 1.1rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(129, 140, 248, 0.04));
}

.faq-question:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35);
    border-radius: 1rem;
}

.faq-heading {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.faq-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.28);
    flex-shrink: 0;
}

.faq-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.faq-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.faq-subtitle {
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
}

.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    transition: background 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.faq-icon svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-icon-chevron {
    transform: rotate(180deg);
}

.faq-item.active .faq-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(129, 140, 248, 0.16));
    color: #312e81;
}

.faq-item.active .faq-title {
    color: #4338ca;
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, transform 0.35s ease;
    overflow: hidden;
}

.faq-answer.active {
    max-height: var(--faq-max-height, 320px);
    opacity: 1;
    transform: translateY(0);
}

.faq-answer-inner {
    padding: 0 1.6rem 1.35rem;
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.7;
}

.faq-answer-inner p {
    margin: 0;
}

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

.faq-item:nth-child(1) { animation-delay: 0.08s; }
.faq-item:nth-child(2) { animation-delay: 0.16s; }
.faq-item:nth-child(3) { animation-delay: 0.24s; }
.faq-item:nth-child(4) { animation-delay: 0.32s; }
.faq-item:nth-child(5) { animation-delay: 0.4s; }
.faq-item:nth-child(6) { animation-delay: 0.48s; }

@media (max-width: 768px) {
    .faq-question {
        gap: 1rem;
        padding: 1rem 1.2rem;
    }

    .faq-number {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 0.7rem;
    }

    .faq-title {
        font-size: 0.9rem;
    }

    .faq-subtitle {
        letter-spacing: 0.12em;
    }

    .faq-answer-inner {
        padding: 0 1.2rem 1.1rem;
        font-size: 0.82rem;
    }
}

/* BAAO実戦AI道場セクション スタイル */
#baao-dojo {
    position: relative;
}

#baao-dojo .bg-white {
    transition: all 0.3s ease;
}

