/* =====================================
   App サポートページ専用レイアウト
   ===================================== */

.app-store-link {
    display: inline-block;
    margin-top: 20px;
}

.app-screenshot {
    margin: 30px 0;
    text-align: center;
    background-color: rgb(188, 226, 232);
    padding: 40px 20px;
    border-radius: 12px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.app-screenshot-img {
    flex: 1;
    min-width: 280px;
    max-width: 100%;
    height: auto;
    max-height: 600px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* モバイル対応 */
@media (max-width: 768px) {
    .app-screenshot {
        flex-direction: column;
    }
    
    .app-screenshot-img {
        min-width: 100%;
    }
}

/* =====================================
   Hero 内 App アイコン & App Store バッジ
   ===================================== */

/* アプリアイコン */
.content-hero .app-icon {
    width: 96px;
    height: auto;
    margin-bottom: 12px;
}

/* App Store バッジ */
.content-hero .app-store-link {
    margin-top: 16px;
    text-align: center;
}

.content-hero .app-store-link img {
    height: 48px;
    width: auto;
}

@media (max-width: 768px) {

    .content-hero .app-icon {
        width: 80px;
        margin-bottom: 10px;
    }

    .content-hero .app-store-link img {
        height: 44px;
    }
}

/* =====================================
   セクションタイトル
   ===================================== */
.app-content .section-title {
    display: block;
    text-align: center;
    position: relative;
    padding-bottom: 6px; 
    margin: 0px 0 24px 0;
}

.app-content {
    background-color: var(--white);
    padding: 32px 32px 36px 32px;
    margin: 32px 0;
    border-radius: 12px;

    /* ★ 枠線をアクセントカラーに */
    border: 1px solid var(--accent-color);

    /* 影は弱めに残す */
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* 左の縦線は無効化 */
.app-content .section-title::before {
    content: none;
}

/* 二重下線 */
.app-content .section-title::after {
    content: "";
    display: block;
    width: 100%;                  /* 文字幅に追従 */
    height: 6px;                  /* ★ 二重線用の高さ */
    margin-top: 6px;              /* ★ 文字との間隔 */
    background:
        linear-gradient(
            to bottom,
            var(--accent-color) 0,
            var(--accent-color) 2px,
            transparent 2px,
            transparent 4px,
            var(--accent-color) 4px,
            var(--accent-color) 6px
        );
    border-radius: 2px;
}

/* =====================================
   機能タイトル
   ===================================== */
.feature-title {
    display: inline-block;
    position: relative;
    font-weight: 700;
    font-size: 1.1em;
    margin: 20px 0 8px 0;
    z-index: 1;
}

.feature-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.2em;
    width: 100%;
    height: 0.5em;
    background-color: var(--accent-color);
    opacity: 0.3;
    z-index: -1;
}

/* =====================================
   CTAテキスト
   ===================================== */
.app-cta-box {
    text-align: center;
    margin-top: 40px;
    border: 3px solid var(--accent-color);
    padding: 24px 32px;
    border-radius: 8px;
}

.app-cta-text {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 16px 0;
}

.app-cta-box .app-store-link {
    margin: 0;
}

.app-cta-box .app-store-link img {
    height: 48px;
}

@media (max-width: 768px) {
    .app-cta-box {
        padding: 20px 16px;
    }
    
    .app-cta-text {
        font-size: 1.2em;
    }
}

/* =====================================
   App セクションカード
   ===================================== */

/* 最初のカードだけ少し上を詰めたい場合（任意） */
.app-content:first-of-type {
    margin-top: 24px;
}

/* セクション内の本文余白を整える */
.app-content p {
    margin: 12px 0;
}

/* about-systems をカード内に馴染ませる */
.app-content .about-systems {
    margin-top: 16px;
}

/* =====================================
   メイン画像（言語別）
   ===================================== */
.app-main-image {
    text-align: center;
    margin: 30px 0;
}

.app-main-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* =====================================
   スクリーンショット横スクロール
   ===================================== */
.app-screenshot-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 16px 4px 8px 4px;

    /* スクロールを自然にする */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.app-screenshot-scroll img {
    flex: 0 0 auto;
    width: 240px; 
    max-width: 80vw; 
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);

    scroll-snap-align: start;
}

@media (max-width: 768px) {

    .app-screenshot-scroll {
        display: grid; 
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;

        overflow-x: visible;
        padding: 12px 0;
        scroll-snap-type: none;
    }

    .app-screenshot-scroll img {
        width: 100%;
        max-width: 100%;
        flex: none;
    }
}
/*============*/

/* =====================================
   アプリサポート：ヒーローエリア
   ===================================== */
.app-support-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0 0 12px 0;
}

.app-support-desc {
    font-size: 1.1rem;
    color: var(--dark-text);
    margin: 0 0 20px 0;
}

.app-support-hero-img {
    text-align: center;
    margin: 20px 0;
}

.app-support-hero-img img {
    max-width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

@media (max-width: 768px) {
    .app-support-title {
        font-size: 1.5rem;
    }

    .app-support-desc {
        font-size: 1rem;
    }
}

/* =====================================
   アプリサポート：目次
   ===================================== */
.app-support-toc {
    background-color: var(--light-bg);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 24px auto;
    text-align: left;
    max-width: 480px;
}

.app-support-toc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 12px 0;
    text-align: left;
}

.app-support-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.app-support-toc-item {
    margin: 6px 0;
}

.app-support-toc-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.95rem;
}

.app-support-toc-item a:hover {
    text-decoration: underline;
}

.app-support-toc-nested {
    padding-left: 20px;
}

.app-support-toc-nested a {
    font-size: 0.9rem;
}

/* =====================================
   アプリサポート：本文内の見出しスタイル
   ===================================== */

/* 本文全体を左寄せ */
.app-support-body {
    text-align: left;
}

/* h2：section-title スタイル */
.app-support-body h2 {
    display: block;
    text-align: left;
    position: relative;
    padding-bottom: 6px;
    margin: 40px 0 24px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.app-support-body h2::after {
    content: "";
    display: block;
    width: 100%;
    height: 6px;
    margin-top: 6px;
    background:
        linear-gradient(
            to bottom,
            var(--accent-color) 0,
            var(--accent-color) 2px,
            transparent 2px,
            transparent 4px,
            var(--accent-color) 4px,
            var(--accent-color) 6px
        );
    border-radius: 2px;
}

/* h3：feature-title スタイル */
.app-support-body h3 {
    display: inline-block;
    position: relative;
    font-weight: 700;
    font-size: 1.1em;
    margin: 20px 0 8px 0;
    z-index: 1;
    text-align: left;
}

.app-support-body h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.2em;
    width: 100%;
    height: 0.5em;
    background-color: var(--accent-color);
    opacity: 0.3;
    z-index: -1;
}

/* h4：左線付き小見出し */
.app-support-body h4 {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--primary-color);
    margin: 20px 0 8px 0;
    padding-left: 6px;
    border-left: 3px solid var(--accent-color);
    line-height: 1.4;
    text-align: left;
}

/* 本文の段落 */
.app-support-body p {
    margin: 12px 0;
    text-align: left;
}

/* 本文内の画像 */
.app-support-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 16px 0;
}

/* =====================================
   補足テキスト
   ===================================== */
.note-text {
    font-size: 0.85em;
    color: #888;
    margin: 8px 0;
}
