@charset "UTF-8";

/* =========================================
   基本設定 (Base)
   ========================================= */
:root {
    --primary-color: #06C755; /* LINE Official Green */
    --primary-hover: #05b34d;
    --text-color: #333333;
    --bg-gray: #F5F6F8;
    --white: #ffffff;
    --accent-red: #eb4e3d;
    --accent-orange: #ff9900;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: var(--white);
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
    letter-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
    border-radius: 8px;
}

/* =========================================
   レイアウト & 共通 (Layout)
   ========================================= */
.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-gray {
    background-color: var(--bg-gray);
}

/* 見出し */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: bold;
}
.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-orange);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-lead {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* グリッドシステム（PC用） */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* =========================================
   ヘッダー (Header)
   ========================================= */
.header {
    background-color: var(--white);
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    align-items: center;
}

/* PCのみ表示 */
.desktop-only {
    display: none;
}
@media (min-width: 768px) {
    .desktop-only { display: block; }
}

.nav-btn a {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
}

/* =========================================
   ヒーローエリア (Hero)
   ========================================= */
.hero {
    padding: 60px 0;
    background: linear-gradient(to bottom, #fff 0%, #fffdf5 100%);
}

.hero-container {
    display: flex;
    flex-direction: column-reverse;
    gap: 30px;
}
@media (min-width: 768px) {
    .hero-container {
        flex-direction: column-reverse; /* 画像を上に、テキストを下に配置 */
        align-items: center;
        text-align: center; /* テキストを中央揃えにする */
    }
    .hero-text { 
        width: 100%;
        padding-right: 0;
        margin-top: 40px; /* 画像とテキストの間に隙間を作る */
    }
    .hero-image { 
        width: 100%;
        max-width: 800px; /* PCで画像が巨大になりすぎないよう制限（お好みで調整） */
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--text-color);
}

.price-badge-hero {
    font-size: 0.8em;
    color: #c72a2a;
    background: #ffecec;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    margin: 10px 0;
    vertical-align: middle;
}

.hero-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
}

/* =========================================
   料金プラン (Price)
   ========================================= */
.price-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
    align-items: flex-end; /* 下揃え */
}

.price-card {
    background: #fff;
    width: 100%;
    max-width: 300px; /* PCでの幅 */
    padding: 30px 20px;
    text-align: center;
    position: relative;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.price-card:hover { transform: translateY(-5px); }

/* 一番人気の強調 */
.price-card.recommended {
    border: 3px solid #ffcc00;
    background: #fffcf5;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(255, 200, 0, 0.2);
}

.recommend-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff3333, #ff6600);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}

.price-header {
    display: inline-block;
    background: #eee;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    color: #666;
    margin-bottom: 15px;
}
.recommended .price-header { background: #ffcc00; color: #fff; }

.price-card h3 { margin: 10px 0; font-size: 1.3rem; color: #333; }

.price-amount {
    font-size: 2.2rem;
    font-weight: bold;
    color: #333;
    margin: 15px 0;
    letter-spacing: -1px;
}
.recommended .price-amount { color: #ff3333; font-size: 2.5rem; }
.yen { font-size: 1rem; font-weight: normal; margin-left: 3px; }

.price-desc { font-size: 0.9rem; color: #666; line-height: 1.6; }
.price-note { color: #ff3333; font-weight: bold; font-size: 0.9rem; margin-bottom: 10px; }

/* =========================================
   オプションエリア (Option)
   ========================================= */
.option-area {
    max-width: 860px;
    margin: 60px auto 0;
    background: #fff;
    border: 2px dashed var(--accent-orange);
    border-radius: 15px;
    padding: 30px;
}
.option-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}
.option-table {
    width: 100%;
    border-collapse: collapse;
}
.option-table th, .option-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.option-table th {
    background: #fffcf5;
    color: var(--accent-orange);
    font-weight: bold;
    width: 30%;
}
.option-price {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

/* =========================================
   利用シーン & 実績 (Works)
   ========================================= */
.scene-card {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}
.scene-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--accent-orange); }
.scene-card img { border-radius: 10px; margin-top: 10px; }

/* =========================================
   利用者の声 (Voice)
   ========================================= */
.voice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.voice-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}
.voice-header { display: flex; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #f0f0f0; padding-bottom: 15px; }
.voice-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    object-fit: cover; margin-right: 15px; border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.voice-meta h4 { margin: 0; font-size: 0.9rem; color: #888; }
.voice-star { height: 20px; width: auto; margin-top: 5px; }
.voice-title { font-weight: bold; color: var(--accent-orange); margin-bottom: 10px; display: block; }
.voice-text { font-size: 0.95rem; color: #555; text-align: justify; }

/* =========================================
   流れ (Flow)
   ========================================= */
.flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.step {
    background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.step-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.step-content { padding: 25px; }
.step-number {
    display: inline-block; background: var(--accent-orange); color: #fff;
    padding: 4px 12px; border-radius: 50px;
    font-weight: bold; font-size: 12px; margin-bottom: 10px;
}
.step h3 { margin-top: 0; margin-bottom: 10px; font-size: 1.2rem; border-bottom: 2px solid #f0f0f0; padding-bottom: 10px; }

/* =========================================
   よくある質問 (FAQ)
   ========================================= */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #eee; padding: 25px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-question { font-size: 1.1rem; font-weight: bold; margin-bottom: 10px; display: flex; }
.q-mark { color: var(--accent-orange); margin-right: 10px; }
.faq-answer { display: flex; font-size: 1rem; color: #444; }
.a-mark { color: var(--accent-red); margin-right: 10px; font-weight: bold; }

/* =========================================
   ボタン (CTA Button)
   ========================================= */
.cta-button {
    background: linear-gradient(135deg, #06C755 0%, #05b34d 100%);
    color: #fff;
    padding: 20px 50px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.3rem;
    box-shadow: 0 10px 20px rgba(6, 199, 85, 0.3);
    display: inline-block;
    border-bottom: 4px solid #04913e;
}
.cta-button:hover {
    transform: translateY(2px);
    border-bottom: 2px solid #04913e;
    box-shadow: 0 5px 10px rgba(6, 199, 85, 0.3);
}

/* =========================================
   スマホ用調整 (Mobile)
   ========================================= */
@media (max-width: 768px) {
    /* ヒーロー画像のはみ出し処理 */
    .hero-image img {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        max-width: none;
        border-radius: 0;
    }
    .hero-subtitle { font-size: 1.3rem; text-align: center; }
    
    /* 料金表の並び順（一番人気を上に） */
    .price-card.recommended { transform: scale(1); margin-bottom: 20px; }
    .price-list { flex-direction: column; align-items: center; }
    .price-card { width: 100%; max-width: 340px; }

    /* オプション表 */
    .option-table th, .option-table td {
        display: block; width: 100%;
    }
    .option-table th { margin-top: 15px; }

    /* グリッド解除 */
    .grid-4, .grid-3 { grid-template-columns: 1fr; }

/* --- スマホでトップ画像の上の余白を消す修正 --- */
@media (max-width: 768px) {
    .hero {
        padding-top: 0 !important; /* 上の余白を強制的にゼロにする */
    }
    /* もし画像が少し浮いてしまう場合は以下も有効 */
    .hero-image {
        margin-top: 0;
    }
}
}

/* --- スマホ用：LINE特典エリアの余白を狭くする（強力版） --- */
@media only screen and (max-width: 768px) {
    /* 緑色の枠があるセクション内のコンテナの左右余白を強制的に狭くする */
    section[style*="background: #e8f5e9"] > .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        width: auto !important; /* 幅の指定も解除して広げる */
    }
    /* 中の3つの白いカードの間隔も少し狭くする */
    section[style*="background: #e8f5e9"] .grid-3 {
        gap: 15px !important; /* 元は30px */
    }
}


/* =========================================
   スマホ用ヘッダー高さ修正 (追加分)
   ========================================= */
@media screen and (max-width: 768px) {
    
    /* 1. ヘッダー全体の上下の余白を少し削る */
    .header {
        padding: 8px 0; /* 元は12px */
    }

    /* 2. ロゴ（H1）の不要な余白を強制的にゼロにする */
    .logo {
        margin: 0;
        line-height: 1; /* 行間も詰める */
        display: flex;  /* 上下中央揃えを安定させる */
        align-items: center;
    }

    /* 3. ロゴの文字サイズをスマホ用に少し小さく */
    .logo a {
        font-size: 16px; /* 元は1.2rem(約19px) */
    }

    /* 4. 右側の「相談する」ボタンも少し小さくしてバランスを取る */
    .nav-btn a {
        padding: 6px 12px; /* ボタンの余白を縮小 */
        font-size: 12px;   /* 文字サイズを縮小 */
    }
}

/* =========================================
   LINE特典エリア（緑の枠）のスマホ余白修正
   ========================================= */
@media screen and (max-width: 768px) {
    /* style属性で指定された緑背景のセクションを狙い撃ちします */
    section[style*="background: #e8f5e9"] {
        padding-top: 20px !important;    /* 元の80px → 20pxに強制変更 */
        padding-bottom: 20px !important; /* 下の余白もスッキリさせる */
    }

    /* ついでに、中の見出し（H2）の上の隙間も微調整 */
    section[style*="background: #e8f5e9"] .section-title {
        margin-top: 0 !important;
    }
}

/* =========================================
   スマホで見出しを1行にする修正
   ========================================= */
@media screen and (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;   /* 文字サイズを少し小さく (約24pxに) */
        white-space: nowrap; /* 強制的に改行させない命令 */
        width: 100%;         /* 幅を確保 */
    }
}

/* =========================================
   スマホ用：「自分も作ってみたい！」上の余白修正
   ========================================= */
@media screen and (max-width: 768px) {
    /* 制作実績（#works）のすぐ下にある、白い背景のセクションを狙い撃ちします */
    #works + .section[style*="background: #fff"] {
        padding-top: 5px !important; /* 上の余白を強制的に20pxにする */
    }
}

/* PC用グリッド（2列） */
.voice-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* PCで2列固定にする */
@media (min-width: 768px) {
    .voice-grid-2 {
        grid-template-columns: repeat(2, 1fr);
        /* 2つのカードを中央揃えにしたい場合はコメントアウトを解除 */
        /* max-width: 700px; */
        /* margin-left: auto; */
        /* margin-right: auto; */
    }
}

/* =========================================
   スマホ専用の改行設定
   ========================================= */
/* PC画面（幅768px以上）では、mobile-only クラスがついたタグを隠す */
@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
}