/* 基本設定と変数 */
:root {
    --main-bg-color: #77C3C0; /* 背景の青緑 */
    --content-bg-color: #f9f5f4; /* コンテンツエリアの薄いピンクベージュ */
    --button-color: #6a3941; /* ボタンの赤茶色 */
    --text-color: #333;
    --logo-bg-color: #d9d9d9; /* ロゴの背景グレー */
    --header-height: 80px;
}

body {
    margin: 0;
    font-family: 'Helvetica Neue', 'Arial', 'Hiragino Sans', 'Meiryo', sans-serif;
    background-color: var(--main-bg-color);
    color: var(--text-color);
}

h1 {
    text-align: center;
    font-size: 1.3rem;
    margin: 0.2rem 0;
    margin-bottom: 1.2rem;
    max-width: 100%;
    font-family: 'Arial', sans-serif; /* ←フォントの種類を変更 */
    font-weight: 500; /* ←フォントの太さを通常に（pタグと同じ）*/
}

/* トップページ（スプラッシュ画面）のスタイル */
.splash {
    display: flex;
    flex-direction: column; /* 要素を縦に並べるように変更 */
    min-height: 100%;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    color: #f8f3f2;
}

.splash-content {
    max-width: 800px;
    display: flex; /* Flexboxコンテナにする */
    flex-direction: column; /* 要素を縦に並べる */
    align-items: center; /* 全ての要素をデフォルトで中央揃えにする */
}

.logo-box-splash {
    /* 必要に応じて画像のサイズやマージンを調整 */
    max-width: 100%; /* 親要素からはみ出ないようにする */
    width: 350px;
    height: auto;
    margin-bottom: 2rem;
}

.service-name-splash {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.splash h1 {
    /*
    font-size: 3.0rem;
    margin: 0.2rem 0;
    max-width: 100%;*/
    /*
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 40px;*/
    text-align: center;
    font-size: 1.6rem;
    margin: 0.2rem 0;
    max-width: 100%;
    font-family: 'Montserrat', sans-serif; /* ←フォントの種類を変更 */
    font-weight: 500; /* ←フォントの太さを通常に（pタグと同じ）*/
}

.splash p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.top-under p {
    font-size: 1rem;
    margin: 0;
}

/* css/style.css に追加 */
.top-message {
    align-self: flex-start; /* この要素だけを左揃え（始点揃え）にする */
    /* 必要に応じて画像のサイズやマージンを調整 */
    max-width: 100%; /* 親要素からはみ出ないようにする */
    margin-bottom: 2rem; /* 画像の下に余白を追加 */
}

.btn {
    display: inline-block;
    background-color: var(--button-color);
    color: #f8f3f2;
    margin-top: 30px;
    padding: 15px 60px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
}

/* 共通ヘッダー */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 40px;
    background-color: var(--main-bg-color);
    position: relative; /* ★変更：ナビゲーションを中央配置するための基準点として設定 */
}

/* レスポンシブ対応 (768px以下) の中の .logo-box */
.logo-box {
    margin: 0;
    width: 150px; /* 幅を指定 (お好みのサイズに調整してください) */
    height: auto;  /* 高さを自動調整 ← これで縦横比が保たれます */
    font-size: 0.9rem;
}

nav {
    /* ★変更：ここから3行を追加して、ヘッダーの中央に配置します */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}



nav a {
    text-decoration: none;
    color: #f8f3f2;
    font-weight: bold;
    font-size: 1rem;
    padding: 10px 42px; /* 上下10px、左右40pxの余白を追加 */
}

/*
nav li {
    margin: 0 15px;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    padding-bottom: 5px;
}*/

nav a.active {
    border-bottom: 2px solid #f8f3f2;
    color: #612734
}

/* メインコンテンツエリア */
main {
    background-color: var(--content-bg-color);
    padding: 60px 20px;
    min-height: calc(100vh - var(--header-height) - 120px); /* ヘッダーとパディング分を引く */
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

section h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
}

section p {
    line-height: 2;
    font-size: 1rem;
}

/* ホーム画面のスタイル */
.home-section {
    text-align: center;
}
.home-section h2 {
    text-align: left;
    font-size: 1.2rem;
}
.home-section .top-title {
    text-align: left;
    font-size: 1.5rem;
}
.home-section .subtitle {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
}
.home-image {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
}

/* css/style.css に追加 */

.service-section h2 {
    margin-top: 40px;
    padding-bottom: 10px;
    font-weight: normal;
    border-bottom: 2px solid var(--main-bg-color);
}

.service-section h4 {
    margin-top: 30px;
    font-size: 1.1rem;
}

.service-list {
    list-style-type: none;
    padding-left: 0;
}

.service-list li {
    background-color: #fff;
    border-left: 5px solid var(--main-bg-color);
    padding: 15px;
    margin-bottom: 10px;
}

/* --- 料金表のスタイル --- */
.pricing-list {
    margin: 30px 0;
}

.pricing-list dt {
    font-weight: bold;
    background-color: #f4f4f4;
    padding: 12px 15px;
    border-left: 4px solid var(--main-bg-color);
}

.pricing-list dd {
    font-size: 1.6rem;
    font-weight: bold;
    text-align: right;
    color: var(--button-color);
    padding: 15px 10px;
    margin: 0 0 25px 0; /* ddが持つデフォルトの左マージンをリセット */
    border-bottom: 1px dashed #ddd;
}

.pricing-note {
    font-size: 0.9rem;
    text-align: left;
    color: #555;
    margin-top: 20px;
}

/* --- ホームページの動画と悩み例のレイアウト --- */

.home-flex-container {
    display: flex;
    justify-content: space-between; /* 要素間にスペースを均等に配置 */
    align-items: center; /* 上下の位置を中央に揃える */
    gap: 30px; /* 要素間の隙間 */
    margin-top: 50px; /* 上のテキストとの余白 */
}

.home-video-area {
    flex: 1.2; /* 動画エリアの幅を少し広めに */
    text-align: center;
}

.home-problems-area {
    flex: 1; /* 悩み例エリアの幅 */
}

.video-caption {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

.home-problems-area h4 {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 20px;
}

.problems-list {
    list-style: none;
    padding: 0;
}

.problems-list li {
    background-color: #fff;
    text-align: center;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border-left: 5px solid var(--main-bg-color);
    box-shadow: 1px 1px 5px rgba(0,0,0,0.1);
}

/* --- レスポンシブ対応 (768px以下) --- */
@media (max-width: 768px) {
    .home-flex-container {
        flex-direction: column; /* スマホでは縦並びにする */
        margin-top: 30px;
    }

    .home-problems-area {
        width: 100%;
        margin-top: 30px;
    }
}



/* --- フローティングお問い合わせボタン --- */

.floating-contact-btn {
    position: fixed; /* 画面に固定表示 */
    right: 30px; /* 右から30pxの位置 */
    bottom: 30px; /* 下から30pxの位置 */
    background-color: var(--button-color); /* ボタンの色 */
    color: white; /* 文字の色 */
    padding: 18px 25px; /* ボタンの余白 */
    border-radius: 50px; /* 角を丸くして円形に近づける */
    text-decoration: none; /* リンクの下線を消す */
    font-weight: normal;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3); /* ボタンに影を付ける */
    z-index: 1000; /* 他の要素より手前に表示 */
    transition: background-color 0.3s; /* ホバー時の色変化を滑らかに */
    
    /* アニメーションの設定 */
    animation: pulse-animation 2s infinite;
}

.floating-contact-btn:hover {
    background-color: #8a4951; /* ホバーした時に少し明るい色に */
}

/* ボタンを動かすアニメーションの定義 */
@keyframes pulse-animation {
    0% {
        transform: scale(1); /* 通常サイズ */
    }
    50% {
        transform: scale(1.08); /* 1.08倍に拡大 */
    }
    100% {
        transform: scale(1); /* 通常サイズに戻る */
    }
}

/* お問い合わせフォームのスタイル */
#contact-form {
    max-width: 700px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* paddingを含めた幅計算 */
    font-size: 1rem;
}

.text-center {
    text-align: center;
}

.btn-submit {
    background-color: var(--logo-bg-color);
    color: var(--text-color);
    padding: 15px 60px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

/* --- もっと見るページ のボックススタイル --- */

.info-box {
    background-color: #fff; /* ボックスの背景を白に */
    padding: 25px 35px; /* ボックスの内側の余白 */
    margin-bottom: 40px; /* ボックス間の下の余白 */
    border-radius: 8px; /* 角を少し丸くする */
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* ボックスに影を付けて立体感を出す */
}

.info-box h2 {
    text-align: center;
    font-weight: normal;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--main-bg-color);
    margin-top: 10px;
    margin-bottom: 30px;
}

.info-box p {
    line-height: 2.0; /* 行間を広げて読みやすく */
}

.flow-list-simple,
.flow-list-simple ul {
    list-style-type: none;
    padding-left: 0;
}

.flow-list-simple > li {
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.8;
}

.flow-list-simple ul li {
    font-weight: normal;
    padding-left: 1.5em; /* 字下げして階層を分かりやすく */
    text-indent: -1.5em; /* 2行目以降も揃える */
    margin-top: 10px;
    color: #333;
}

/* リストの黒点をカスタム */
.flow-list-simple ul li::before {
    content: '・';
    margin-right: 0.5em;
    font-weight: bold;
}

/* --- フッターのスタイル --- */

footer {
    width: 100%;
    padding: 20px 40px; /* フッター内の上下左右に余白を追加 */
    box-sizing: border-box; /* paddingを含めて幅を100%に保つ */
    background-color: var(--main-bg-color); /* 背景色をヘッダーと合わせる */
    text-align: right;  /* 文字を右揃えにする */
}

footer p {
    margin: 0; /* pタグが持つデフォルトの余白をリセット */
    color: rgba(255, 255, 255, 0.7); /* 文字色を少し透明な白にして薄く見せる */
    font-size: 0.8rem; /* 文字サイズを小さくする (約12.8px) */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    header {
        position: relative; /* 中央配置の基準として残す */
        flex-direction: row; /* 横並びに戻す */
        justify-content: space-between; /* ロゴとナビを両端に配置 */
        height: auto;
        padding: 15px 15px; /* 上下のパディングを調整 */
    }

    .logo-box {
        margin: 0; /* マージンをリセット */
        width: 100px; /* 少し小さくする */
        height: auto;
        font-size: 0.9rem;
    }

    nav {
        position: static; /* 絶対配置を解除 */
        transform: none; /* 中央揃えのtransformを解除 */
        width: auto; /* 幅を自動調整 */
    }

    nav ul {
        justify-content: flex-end; /* ナビゲーションを右寄せにする */
    }

    nav a {
        padding: 8px 6px; /* リンクの左右の余白を大幅に縮小 */
        font-size: 0.75rem; /* 文字サイズを小さくして収める */
    }

    main {
        padding: 40px 15px;
    }

    h1 {
        text-align: center;
        font-size: 1.6rem;
        margin: 0.2rem 0;
        max-width: 100%;
        font-family: 'Montserrat', sans-serif; /* ←フォントの種類を変更 */
        font-weight: 500; /* ←フォントの太さを通常に（pタグと同じ）*/
    }

    .splash h1 {
        text-align: center;
        font-size: 1.6rem;
        margin: 0.2rem 0;
        max-width: 100%;
        font-family: 'Montserrat', sans-serif; /* ←フォントの種類を変更 */
        font-weight: 500; /* ←フォントの太さを通常に（pタグと同じ）*/
    }

    .floating-contact-btn {
        right: 15px; /* 右からの位置を調整 */
        bottom: 15px; /* 下からの位置を調整 */
        padding: 10px 15px; /* ボタンの余白を小さくする */
        font-size: 0.8rem; /* 文字サイズを小さくする */
    }

    .splash-content .btn {
        padding: 10px 30px; /* ボタンの余白を小さくする */
        font-size: 0.9rem; /* 文字サイズを小さくする */
    }
}