/* =====================
   全体・フォント
===================== */
body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica", "Arial", sans-serif;
    color: #222;
    background: #fff;
    line-height: 1.6;
}

/* =====================
   ヘッダー
===================== */
.header {
    display: flex;
    align-items: center;
    padding: 20px 60px;
    border-bottom: 1px solid #ddd;
}

/* ナビ */
.nav {
    display: flex;
    gap: 25px;
    margin-left: 800px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.2s;
}

.nav a:hover {
    opacity: 0.6;
}

/* ロゴ */
.logo {
    font-size: 24px;
    font-weight: bold;
    margin-left: 350px;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

/* =====================
   レスポンシブヘッダー
===================== */
@media (max-width: 900px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav {
        margin-right: 0;
        margin-top: 10px;
        flex-wrap: wrap;
        gap: 20px;
    }
    .logo {
        margin-left: 0;
    }
}

/* =====================
   メインビジュアル
===================== */
.hero {
    text-align: center;
    padding: 140px 20px;
    background: url("img/background.gif") center/cover no-repeat;
    color: #fff;
    position: relative;
}

.hero h1 {
    position: relative;
    top: -60px;
    font-size: 48px;
    margin-bottom: 10px;
    font-weight: 900;
}

/* タイピング */
.typing-box {
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.typing {
    font-size: 18px;
    color: #fff;
    white-space: nowrap;
    border-right: 2px solid #fff;
    display: inline-block;
    overflow: hidden;
    animation: cursorBlink 0.7s infinite;
}

@keyframes cursorBlink {
    0%, 100% { border-right-color: transparent; }
    50% { border-right-color: #fff; }
}

/* メインビジュアルボタン */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.btn.main {
    padding: 12px 32px;
    border: 1px solid #fff;
    color: #fff;
    background: transparent;
    font-size: 16px;
    transition: 0.25s;
    backdrop-filter: blur(3px);
    text-decoration: none;
}

.btn.main:hover {
    background: #fff;
    color: #000;
    text-decoration: none;
}

/* 青ボタン */
.btn.main.blue-btn {
    background: #007BFF;
    border: 1px solid #007BFF;
    color: #fff;
    border-radius: 4px;
}

.btn.main.blue-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* 透明白文字ボタン */
.btn.main.light {
    border-color: #bbb;
    color: #eee;
}

.btn.main.light:hover {
    background: #eee;
    color: #000;
}

/* =====================
   セクション全体
===================== */
.section {
    padding: 60px 20px;
    text-align: center;
}

.section h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

/* =====================
   特徴セクション（白背景）
===================== */
.features-section { text-align: center; padding: 60px 40px 20px 40px; /* 上の余白を60px→80pxなどに増やすとさらに伸びます */ margin-top: -10px; /* 前セクションとの距離 */ background: #fff; color: #111; } .new-features { display: flex; gap: 40px; margin-top: 20px; overflow-x: auto; padding-bottom: 10px; scroll-behavior: smooth; } .feature-card { flex: 0 0 auto; display: inline-block; width: 300px; background: #ffffff; border-radius: 20px; padding: 50px 30px; text-align: center; box-shadow: none; border: none; transition: none; } .feature-card:hover { transform: none; box-shadow: none; } .feature-icon { width: 70px; height: 70px; margin-bottom: 25px; object-fit: contain; filter: grayscale(100%) contrast(150%); } .feature-card h3 { font-size: 1.5rem; margin-bottom: 15px; font-weight: 600; color: #111; } .feature-card p { font-size: 1rem; line-height: 1.7; color: #333; }

/* =====================
   プランセクション
===================== */
.plans-section {
    background: #fff;
    padding: 20px 20px 60px 20px;
    text-align: center;
}

.plans-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 50px 0;
    color: #111;
}

.plans {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: nowrap;
}

.plan {
    flex: 0 0 300px;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 40px 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.plan:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

/* 中央プラン */
.plan.center {
    background: #111;
    color: #fff;
    transform: scale(1.12);
    width: 320px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}

.plan h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.plan .price {
    font-size: 28px;
    font-weight: 700;
    margin: 20px 0;
}

.plan ul {
    list-style: none;
    padding: 15px 0;
    margin-bottom: 25px;
    border-top: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.plan li {
    margin: 12px 0;
    font-size: 1rem;
    color: inherit;
}

/* 申し込みボタン */
.plan .btn {
    padding: 16px 40px;
    border-radius: 0;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s ease;
}

.plan .btn:not(.center-btn) {
    background: transparent;
    border: 1px solid #111;
    color: #111;
}

.plan .btn:not(.center-btn):hover {
    background: #111;
    color: #fff;
}

.plan.center .btn {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.plan.center .btn:hover {
    background: #fff;
    color: #111;
}

/* サブタイトル */
.plans-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
}

/* レスポンシブプラン */
@media (max-width: 1000px) {
    .plans {
        flex-wrap: wrap;
        justify-content: center;
    }
    .plan {
        margin-bottom: 20px;
    }
}

@media (max-width: 900px) {
    .plans {
        flex-direction: column;
        align-items: center;
    }
    .plan.center {
        transform: scale(1);
        margin: 20px 0;
    }
}

/* =====================
   運営理念
===================== */
.mission-section {
    background: #fff;
    padding: 40px 20px;
    margin-top: -10px;
}

.mission-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.mission-text {
    flex: 1;
    min-width: 280px;
    text-align: left;
}

.mission-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
}

.mission-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.mission-image {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.mission-image img {
    max-width: 100%;
    border-radius: 20px;
}

/* =====================
   サイト区切り
===================== */
.section-divider {
    width: 100%;
    height: 1px;
    background: rgba(0,0,0,0.08);
    margin: 40px 0;
}

/* =====================
   Freepyの特徴セクション（白背景）
===================== */
.features-dark-section {
    background: #fff;
    color: #111;
    padding: 60px 20px;
}

.features-dark-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-dark-image {
    flex: 0 0 45%;
    text-align: left;
    min-width: 280px;
}

.features-dark-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
}

.features-dark-text {
    flex: 0 0 50%;
    text-align: left;
    min-width: 280px;
}

.features-dark-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.features-dark-text p {
    font-size: 1rem;
    line-height: 1.7;
}

/* レスポンシブ特徴 */
@media (max-width: 900px) {
    .features-dark-container {
        flex-direction: column;
        gap: 20px;
    }
    .features-dark-text,
    .features-dark-image {
        flex: 1 1 100%;
        text-align: left;
    }
}

/* =====================
   完璧な操作性
===================== */
.usability-section {
    background-color: #0a1f44;
    color: #cccccc;
    padding: 80px 20px;
    text-align: center;
}

.usability-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
}

.usability-section p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
    color: #cccccc;
}

.usability-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
}

.usability-gallery img {
    height: 200px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    flex-shrink: 0;
    transition: transform 0.3s;
}

.usability-gallery img:hover {
    transform: scale(1.05);
}

/* =====================
   FAQ
===================== */
.faq-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.faq-text {
    flex: 0 0 250px;
    min-width: 200px;
    text-align: left;
}

.faq-text h2 {
    font-size: 36px;
    margin: 0;
}

.faq-list {
    flex: 0 0 600px;
    text-align: left;
    margin-left: auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    margin-bottom: 10px;
}

.faq-question {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    text-align: left;
    position: relative;
    padding-left: 30px;
}

.faq-question::before {
    content: "+";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 18px;
    color: #007BFF;
    transition: transform 0.2s;
}

.faq-item.open .faq-question::before {
    content: "-";
}

.faq-answer {
    padding-top: 10px;
    padding-left: 20px;
    display: none;
    line-height: 1.6;
}

/* FAQレスポンシブ */
@media (max-width: 900px) {
    .faq-container {
        flex-direction: column;
        gap: 20px;
    }
    .faq-text,
    .faq-list {
        flex: 1 1 100%;
        min-width: auto;
    }
}

/* =====================
   フッター
===================== */
.footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    border-top: none;
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    margin: 0 12px;
    text-decoration: none;
    transition: 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

/* =====================
   小さい画面調整
===================== */
@media (max-width: 800px) {
    .feature-card {
        width: 250px;
    }
}

@media (max-width: 500px) {
    .feature-card {
        width: 200px;
    }
}

/* =====================
   スマホゾーン
===================== */
/* スマホ表示ヘッダー調整（ロゴ横にナビ） */
@media screen and (max-width: 600px) {
    .header {
        flex-direction: row;          /* 横並びに戻す */
        justify-content: space-between; /* 左右に余白を分散 */
        align-items: center;
        padding: 12px 20px;           /* 高さを小さく */
    }

    .logo {
        margin-left: 0;
        font-size: 20px;              /* ロゴを少し小さく */
    }

    .nav {
        margin-left: 0;
        margin-top: 0;
        gap: 12px;                     /* リンク間のスペースを小さく */
    }
}

/* スマホ表示で特徴セクション（白背景）非表示 */
@media screen and (max-width: 600px) {
    .features-section {
        display: none;
    }
}

@media screen and (max-width: 600px) {
    /* display: none を削除 */
    /* .features-section {
        display: none;
    } */

    .features-grid {
        display: flex;
        flex-direction: column;
    }

    .feature-card {
        display: flex;
        flex-direction: column; /* 文字→画像順に */
    }

    .feature-card img {
        order: 2;
    }

    .feature-card h3,
    .feature-card p {
        order: 1;
    }
}


/* スマホ表示で特徴セクション・横棒を非表示 */
@media screen and (max-width: 600px) {
    .features-section {
        display: none;
    }
    .section-divider {
        display: none;
    }
}


/* スマホ（768px以下）で画像を後ろに回す */
@media (max-width: 768px) {
    .features-dark-section {
        background-color: #000000; /* セクション全体を深い青に */
        padding: 40px 20px;        /* 余白をスマホ用に調整 */
    }

    .features-dark-container {
        flex-direction: column;   /* 縦並びにする */
    }

    .features-dark-image {
        order: 2;                 /* 画像を後ろに */
        margin-top: 20px;          /* 文字との間隔を確保 */
    }

    .features-dark-text {
        order: 1;                 /* テキストを先に表示 */
        text-align: left;          /* 左揃え */
        color: #fff;               /* 文字色を白に */
    }
}


/* スマホ表示でプランセクションを横スクロール可能に */
@media screen and (max-width: 600px) {
    .plans {
        flex-direction: row;        /* 横並び */
        overflow-x: auto;           /* 横スクロール可能に */
        gap: 15px;                  /* カード間の間隔 */
        padding-bottom: 10px;       /* スクロール時の余白 */
    }

    .plan {
        flex: 0 0 250px;            /* 幅固定で縮まないように */
        margin: 0;                  /* 縦マージンをリセット */
    }

    .plan.center {
        width: 250px;               /* 中央プランも統一 */
        transform: scale(1);        /* 拡大をリセット */
    }

    /* スクロールバーを目立たなくする */
    .plans::-webkit-scrollbar {
        height: 6px;
    }

    .plans::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.2);
        border-radius: 3px;
    }
}

/* スマホ表示用：完璧な操作性ギャラリー自動スクロール */
@media screen and (max-width: 600px) {
    .usability-gallery {
        display: flex;
        gap: 15px;
        overflow: hidden;         /* 親要素で隠す */
        padding: 10px 0;
        position: relative;
    }

    .usability-gallery img {
        flex: 0 0 200px;          /* 幅固定 */
        height: 150px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        animation: scrollGallery 12s linear infinite;
    }

    /* 自動スクロールアニメーション */
    @keyframes scrollGallery {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-100%);
        }
    }
}

/* スマホ表示のフッターリンク縦並び */
@media screen and (max-width: 600px) {
    .footer-links {
        display: flex;
        flex-direction: column;  /* 縦並びに変更 */
        gap: 10px;               /* リンク間の間隔 */
        align-items: center;     /* 中央揃え */
        margin-bottom: 0;
    }

    .footer-links a {
        margin: 0;               /* 横マージンをリセット */
    }
}

