/* ========================================
   Brain Grid Merge 紹介ページ スタイル
   (雛形 style.css をベースに拡張)
   ======================================== */

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

body {
    font-family: 'Helvetica Neue', 'Hiragino Sans', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans SC', 'Noto Sans TC', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}
a:hover { color: #000; }

ul { list-style: none; }

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

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

/* =============== ヘッダー =============== */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: transform 0.3s ease;
}

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

.logo a {
    font-family: 'Noto Serif JP', serif !important;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    letter-spacing: 1px;
}

/* ハンバーガー */
.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 101;
}
.hamburger-icon {
    width: 30px;
    height: 20px;
    position: relative;
}
.hamburger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #000;
    border-radius: 3px;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}
.hamburger-icon span:nth-child(1) { top: 0; }
.hamburger-icon span:nth-child(2) { top: 8px; }
.hamburger-icon span:nth-child(3) { top: 16px; }

/* ナビ */
.nav-menu { display: flex; }
.nav-menu ul {
    display: flex;
    gap: 30px;
    align-items: center;
}
.nav-menu li a {
    font-weight: 500;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-menu li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000;
    transition: width 0.3s ease;
}
.nav-menu li a:hover:after,
.nav-menu li.active a:after { width: 100%; }

.close-menu {
    display: none;
    font-size: 32px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 110;
    line-height: 1;
}

/* =============== 言語切り替え =============== */
.nav-lang { position: relative; }
.lang-switcher { position: relative; }

.lang-toggle {
    background: none;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    transition: all 0.2s ease;
}
.lang-toggle:hover {
    border-color: #000;
    background: #fafafa;
}
.lang-chevron {
    transition: transform 0.2s ease;
    font-size: 12px;
}
.lang-switcher.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 170px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 6px 0;
    z-index: 200;
}
.lang-switcher.open .lang-dropdown { display: block; }

.lang-dropdown li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
}
.lang-dropdown li a:hover { background: #f5f5f5; color: #000; }
.lang-dropdown li a:after { display: none; }
.lang-dropdown li a.lang-active {
    font-weight: 700;
    color: #000;
    background: #fafafa;
}
.lang-dropdown li a.lang-active .fa-check {
    color: #2e7d32;
    font-size: 12px;
}

/* オーバーレイ */
.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.overlay.active { opacity: 1; visibility: visible; }

/* =============== メインコンテンツ =============== */
.main-content {
    margin-top: 80px; /* ヘッダー高 */
    min-height: calc(100vh - 280px);
}

.privacypolicy {
    margin-top: 20px;
}
.privacypolicy a {
    color: #fff !important;
    font-size: 14px;
}
.privacypolicy a:hover {
    color: #ccc !important;
}

/* =============== ヒーロー =============== */
.hero {
    background-color: #000;
    color: #fff;
    padding: 60px 20px 40px;
    text-align: center;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-weight: 700;
}
.hero p {
    font-size: 18px;
    margin-bottom: 15px;
    opacity: 0.85;
}

.hero-quick-links {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============== セクション =============== */
.section {
    text-align: center;
    padding: 60px 0;
}
.section-dark {
    background-color: #111;
    color: #fff;
}
.section-dark a { color: #fff; }
.section-dark a:hover { color: #ccc; }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}
.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #000;
}
.section-dark .section-title h2:after { background-color: #fff; }
.section-subtitle {
    font-size: 18px;
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

/* =============== 特徴セクション =============== */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-dark .features { color: #000; }

.feature-item {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.feature-icon {
    font-size: 40px;
    margin: 20px 0;
    color: #000;
}
.feature-title {
    font-size: 22px;
    margin-bottom: 15px;
}
.feature-desc {
    font-size: 16px;
    opacity: 0.8;
}

/* =============== アプリ紹介 =============== */
.app-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 30px;
}
.app-info {
    flex: 1;
    padding: 10px;
    text-align: left;
}
.app-info h2 {
    font-size: 36px;
    margin-bottom: 10px;
    text-align: center;
}
.app-info p {
    font-size: 16px;
    opacity: 0.9;
}
.app-image {
    flex: 0 0 280px;
    text-align: center;
    margin: 20px;
}
.app-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* アプリ情報ブロック */
.app-version-info {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}
.app-version-info p { margin-bottom: 10px; }
.app-version-info strong {
    display: inline-block;
    width: 160px;
}

/* =============== How to =============== */
.howto-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
.howto-step {
    background: #fff;
    border-radius: 12px;
    padding: 40px 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
}
.howto-num {
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 20px;
    margin: 0 auto 20px;
}
.howto-step h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.howto-step p {
    font-size: 14px;
    opacity: 0.8;
}

/* =============== ボタン =============== */
.btn {
    display: inline-block;
    background-color: #000;
    color: #fff !important;
    padding: 12px 30px;
    margin-top: 10px;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
}
.btn:hover {
    background-color: #333;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.btn2 {
    display: inline-block;
    background-color: #fff;
    color: #000 !important;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.btn2:hover {
    background-color: #f5f5f5;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* =============== フォーム =============== */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: left;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}
.form-control:focus {
    border-color: #000;
    outline: none;
}
textarea.form-control {
    min-height: 150px;
    resize: vertical;
}
.form-btn {
    text-align: center;
    margin-top: 30px;
}

/* Alert */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: left;
    font-size: 15px;
}
.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}
.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* =============== Legal Doc =============== */
.legal-doc {
    max-width: 800px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.9;
    text-align: left;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.legal-doc h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 20px;
}
.legal-doc ul {
    list-style: disc;
    padding-left: 24px;
    margin: 10px 0;
}
.legal-doc p { margin-bottom: 10px; }

/* =============== フッター =============== */
.footer {
    background-color: #000;
    color: #fff;
    padding: 40px 0 30px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}
.footer-logo { margin-bottom: 20px; }
.footer-logo a {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}
.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}
.footer-links a { color: #ccc; }
.footer-links a:hover { color: #fff; }

.footer-lang {
    margin: 15px 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-lang-label {
    color: #ccc;
    font-size: 14px;
}
.footer-lang-select {
    background: #222;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}
.footer-lang-select option {
    background: #222;
    color: #fff;
}

.copyright {
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.7;
}

/* =============== スクリーンショット =============== */
.screenshot-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
.screenshot-wrap {
    flex: 0 0 calc(25% - 16px);
    min-width: 180px;
    max-width: 240px;
}
.screenshot-card {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.screenshot-card:hover { transform: translateY(-5px); }
.screenshot-card img {
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    min-height: 160px;
    background: #eee;
}
.screenshot-caption-text {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    color: #555;
}
.section-dark .screenshot-caption-text { color: #ddd; }

/* =============== モーダル =============== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}
.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    line-height: 1;
    z-index: 1001;
}

body.modal-open {
    overflow: hidden;
    touch-action: none;
}

/* =============== バッジ =============== */
.app-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.store-badge {
    height: 50px;
    object-fit: contain;
}

/* =============== FAQ =============== */
.faq-item {
    margin-bottom: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    color: #333;
}
.faq-question {
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-weight: 600;
}
.faq-icon {
    background-color: #000;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
    flex: 0 0 28px;
}
.faq-answer {
    margin-left: 38px;
    line-height: 1.6;
    font-size: 15px;
}

/* =============== 星評価 =============== */
.star-rating {
    color: #FFD700;
    font-size: 18px;
    letter-spacing: 2px;
}
