/* --- 変数定義（カラーパレット） --- */
:root {
    /* ベースカラー */
    --base-yellow: #FFFDF0; /* 目に優しいごく薄い黄色 */
    --text-black: #333333;
    
    /* ロゴ由来のアクセントカラー */
    --accent-yellow: #FFC000;
    --accent-red: #C0392B;
    --accent-blue: #0056A8;
    --accent-green: #2E8B57;
    --accent-purple: #6A2C8A;

    /* CTA用カラー */
    --line-green: #06C755;
}

/* --- ベースリセット & 基本設定 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-black);
    background-color: var(--base-yellow);
    line-height: 1.8;
    font-size: 16px; /* シニア向けに大きめ */
}

a {
    text-decoration: none;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 24px;
    color: var(--accent-blue); /* 信頼感のある青をタイトルに */
    margin-bottom: 40px;
    border-bottom: 3px solid var(--accent-yellow);
    display: inline-block;
    padding-bottom: 10px;
}

/* --- ヘッダー --- */
.site-header {
    background-color: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px; /* 実際のロゴに合わせて調整 */
    width: auto;
}

.logo-text .sub-title {
    font-size: 12px;
    color: var(--text-black);
    display: block;
}

.logo-text .main-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-black);
}

/* --- ヒーローエリア --- */
.hero {
    position: relative; /* 子要素（動画）の基準にする */
    height: 80vh;      /* 画面の高さの80%（お好みで100vhにすれば全画面） */
    min-height: 400px; /* 小さくなりすぎないよう最低限の高さ */
    overflow: hidden;  /* はみ出た動画をカット */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff; /* 動画読み込み前のバックアップ色 */
}
/* 動画を枠いっぱいに広げる設定 */
.hero-video-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 常に中央に配置 */
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* これが重要！枠いっぱいに動画をフィットさせます */
}

/* 動画の上の暗幕（文字を白抜きにする場合は濃く、黒文字なら薄く） */
.hero-video-wrap::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 253, 240, 0.4); /* ベースの黄色を薄く重ねてポップに */
}

.hero-content {
    position: relative;
    z-index: 2; /* 動画より前に出す */
    background-color: rgba(255, 255, 255, 0.8); /* 少し透けさせて動画を見せる */
    padding: 30px;
    border-radius: 12px;
    max-width: 90%; /* スマホで横幅いっぱいにならないよう調整 */
    margin: 0 auto;
    border: 4px solid var(--accent-red);
}
/* --- フロートアニメーションの初期状態 --- */
.float-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.float-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.catchcopy {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-black);
    margin-bottom: 20px;
    line-height: 1.4;
}

.sub-catch {
    font-size: 18px;
    margin-bottom: 30px;
}

/* --- ボタン共通 --- */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    font-size: 18px;
}

.btn:active {
    transform: translateY(2px);
    box-shadow: none;
}

.btn-primary {
    background-color: var(--accent-red);
    color: #fff;
    width: 100%;
    max-width: 400px;
}

/* --- 共感セクション --- */
.empathy {
    background-color: #fff;
    text-align: center;
}

.worry-list {
    list-style: none;
    text-align: left;
    max-width: 500px;
    margin: 0 auto 30px;
}

.worry-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 18px;
}

.worry-list li::before {
    content: "✔";
    color: var(--accent-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.solution-text {
    font-size: 22px;
    color: var(--accent-red);
    font-weight: bold;
}

/* --- 特徴セクション --- */
.feature-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.bg-red { background-color: var(--accent-red); }
.bg-green { background-color: var(--accent-green); }
.bg-blue { background-color: var(--accent-blue); }

.feature-text h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-black);
}

/* --- CTAセクション --- */
.contact-area {
    background-color: var(--base-yellow);
    text-align: center;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.btn-tel {
    background-color: var(--accent-blue);
    color: #fff;
}

.btn-tel span {
    font-size: 24px;
}

.btn-line {
    background-color: var(--line-green);
    color: #fff;
}

/* --- フッター --- */
.site-footer {
    background-color: var(--text-black);
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    padding-bottom: 80px; /* スマホ固定ボタン用の余白 */
}

/* --- モバイル用固定CTA（スマホ表示のみ） --- */
.floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 999;
}

.float-btn {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
}

.float-tel { background-color: var(--accent-blue); }
.float-line { background-color: var(--line-green); }

/* PC向けの調整 */
@media (min-width: 768px) {
    .floating-cta {
        display: none; /* PCでは固定ボタンを非表示 */
    }
    .site-footer {
        padding-bottom: 30px;
    }
}
/* PCでの基本スタイル */
.worry-list {
    font-size: 18px; /* PCでの標準サイズ */
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* スマホ（画面幅768px以下）の設定 */
@media screen and (max-width: 768px) {
    /* 1. お悩みリスト全体の文字を小さくする */
    .worry-list {
        font-size: 12px; /* PCより一回り小さく */
        padding-left: 20px; /* 左側の余白を少し詰める */
        text-align: left;   /* 左寄せを維持して読みやすく */
    }

    /* 2. 各リスト項目の行間を調整 */
    .worry-list li {
        margin-bottom: 12px; /* 項目ごとの間隔を空けて窮屈さを解消 */
        list-style-position: outside; /* 文頭のポッチを外に出して2行目以降を揃える */
    }

    /* 3. 前回の solution-text もここにまとめてOK */
    .solution-text {
        font-size: 18px;
        margin-top: 20px;
    }
}
/* --- ギャラリーセクション（カルーセル） --- */
.gallery {
    background-color: var(--base-yellow); /* 基本の背景色と合わせるか、目立つ色に */
}

.gallery .section-title {
    color: var(--accent-red); /* 注目させる色に */
    border-bottom-color: var(--accent-yellow);
}

.carousel-container {
    overflow: hidden; /* はみ出た画像を隠す */
    width: 100%;
    margin: 40px auto;
    position: relative;
    border-radius: 15px; /* 角を丸く */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    /* アニメーションで左右に動かす */
    animation: scroll-carousel 30s linear infinite; /* 30秒かけて無限ループ */
    width: max-content; /* 全画像が収まるように幅を広げる */
}

.carousel-item {
    width: 300px; /* 1枚の画像の幅（PC表示） */
    height: 200px; /* 1枚の画像の高さ */
    object-fit: cover; /* 画像が枠に収まるように調整 */
    margin: 0 10px; /* 画像間の余白 */
    border-radius: 10px;
    flex-shrink: 0; /* 画像が縮まないように */
}

/* カルーセルアニメーションの定義 */
@keyframes scroll-carousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 5 - 10px * 4 - 300px * 2 - 10px * 2)); } /* (画像の幅 * 枚数) + (余白 * 枚数) の分だけ移動 */
    /* ここは画像枚数に合わせて調整が必要です。今回は7枚なので、5枚分移動してループの始めに */
    /* 実際には画像の合計幅からコンテナ幅を引いた分を計算すると正確ですが、ここでは目視で調整 */
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .carousel-item {
        width: 200px; /* スマホでは画像を小さく */
        height: 150px;
        margin: 0 5px;
    }
    
    /* スマホ用のアニメーション調整（幅が変わるので） */
    @keyframes scroll-carousel {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-200px * 5 - 5px * 4 - 200px * 2 - 5px * 2)); } /* スマホ幅に合わせて調整 */
    }
}