:root {
    --bg-main: #fffcfc; 
    --bg-pink: #fdf2f4; 
    --accent-pink: #EEB9B4; 
    --text-main: #333;    
    --title-blue: #5d6275; 
    --header-h: 80px;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* --- 基本設定（全デバイス共通） --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body { 
    font-family: 'Noto Sans JP', sans-serif; 
    color: var(--text-main); 
    line-height: 1.8; 
    
    /* 背景のスクロール連動設定 */
    background-image: url('assets/haikei3.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 100% auto;
    background-position: center 0%;

    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* スマホでの横揺れ防止 */
}

h1, h2, h3, h4 { font-family: 'Noto Serif JP', serif; }
img { max-width: 100%; height: auto; vertical-align: bottom; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.py-100 { padding: clamp(60px, 10vw, 100px) 0; }
.bg-pink { background-color: var(--bg-pink); }
.text-center { text-align: center; }

/* --- ヘッダー --- */
header { 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    position: fixed; 
    width: 100%; top: 0; z-index: 1000; 
    transition: 0.3s;
    height: var(--header-h); 
    display: flex; align-items: center;
}

.header-inner { 
    width: 100%; 
    max-width: 1300px; /* コンテナを少し広めに確保 */
    margin: 0 auto;
    padding: 0 4%;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* ロゴ：右側に絶対的な死守ライン（余白）を設置 */
.header-logo-area { 
    flex-shrink: 0; 
    margin-right: clamp(20px, 4vw, 40px); /* 画面幅に応じて余白も調整 */
}

.logo-link { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    text-decoration: none; 
}

.logo-icon { 
    height: clamp(32px, 4vw, 45px); 
    width: auto;
}

.logo-text { 
    height: clamp(18px, 2.5vw, 24px); 
    width: auto;
}

/* PCナビゲーション：右側に寄せて管理 */
.pc-nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.pc-nav ul { 
    display: flex; 
    list-style: none; 
    gap: clamp(10px, 1.5vw, 25px); 
    align-items: center; 
}

.pc-nav a { 
    text-decoration: none; 
    color: var(--text-main); 
    font-weight: bold; 
    font-size: clamp(0.8rem, 0.85vw, 0.9rem); 
    transition: 0.3s; 
    letter-spacing: 0.02em;
    white-space: nowrap; /* 改行を禁止 */
}

.pc-nav a:not(.btn-cta):hover { color: var(--accent-pink); }

.btn-cta { 
    background: var(--accent-pink); 
    padding: 10px 20px  ; 
    border-radius: 50px; 
    color: #fff  ; 
    box-shadow: 0 4px 15px rgba(238, 187, 203, 0.4); 
    font-size: 0.85rem  ;
}

/* ハンバーガーボタン：早めに切り替える設定 */
.menu-btn { 
    display: none; 
    cursor: pointer; 
    width: 30px; 
    height: 20px; 
    position: relative; 
    z-index: 1100; 
}

.menu-btn span { 
    position: absolute; 
    width: 100%; 
    height: 2px; 
    background: var(--title-blue); 
    transition: 0.3s; 
}

.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 9px; }
.menu-btn span:nth-child(3) { bottom: 0; }

.menu-btn.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- メディアクエリ：重なりが発生する前の1200pxでスマホ表示へ --- */
@media (max-width: 1200px) {
    .menu-btn { display: block; }
    
    .pc-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        transition: 0.5s cubic-bezier(0.65, 0, 0.35, 1);
        z-index: 1000;
        padding-top: 100px;
        display: block;
        text-align: center;
    }

    .pc-nav.active { right: 0; }
    
    .pc-nav ul {
        flex-direction: column;
        gap: 30px;
    }

    .pc-nav a {
        font-size: 1.2rem;
    }
    
    .btn-cta {
        padding: 15px 40px  ;
    }
}

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* --- ★★★★★★★ヒーローセクション ★★★★★★--- */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
#hero {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #333; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* スライダー設定 */
.slider-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.slide { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    /* 【修正箇所】中央上部に固定することで、上が見切れるのを防ぐ */
    background-position: center top; 
    opacity: 0; 
    z-index: 1;
    animation: simpleCrossFade 12s infinite ease-in-out;
}
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: -6s; }
.slide::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.3); z-index: 2;
}

/* テキストコンテンツ：波が下がった後に見えるように z-index を調整 */
.hero-content {
    position: relative;
    z-index: 10; /* 波(20)より下、スライダー(1)より上 */
    width: 100%;
    text-align: center;
    padding: 0 20px;
    color: #fff;
}
.hero-title { font-size: clamp(1.5rem, 6vw, 3.8rem); line-height: 1.5; font-weight: 600; }

/* --- オープニング・ウェーブ演出：最終完成版 --- */

.wave-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* 画面全体(100vh) ＋ 波の高さ(20vh) で構成 */
    height: 120vh; 
    z-index: 20; /* 最前面で幕になる */
    pointer-events: none; 
    
    /* 初期位置は0（全画面ピンク）。5秒かけてゆっくり下へ移動 */
    transform: translateY(0);
    animation: wave-down-curtain 5s cubic-bezier(0.45, 0, 0.55, 1) forwards;
    animation-delay: 0.5s;
}

/* 波の形（SVG）：ピンクの塊の「一番上」に配置して、ここを境界線にする */
.waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20vh; /* 波のうねりをしっかり出すために高さを確保 */
}

/* 波の下を隙間なく塗りつぶすメインのピンク背景 */
.wave-fill {
    position: absolute;
    top: 19.5vh; /* 波のすぐ下から開始（わずかに重ねて隙間を消す） */
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #E8B6B1;
}

/* テキストのアニメーション：波が通り過ぎる頃（4.5秒後）にふわっと表示 */
.hero-content span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s forwards;
    animation-delay: 4.5s; 
}

/* --- アニメーション定義 --- */

@keyframes wave-down-curtain {
    0% {
        transform: translateY(0); /* 最初は画面がピンクで覆われている */
    }
    100% {
        transform: translateY(82vh); /* 下に移動し、上端の波の部分だけが画面の下の方に残る */
    }
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes simpleCrossFade {
    0%, 100% { opacity: 0; transform: scale(1.0); }
    10%, 50% { opacity: 1; }
    60% { opacity: 0; }
    100% { transform: scale(1.1); }
}

/* 波のゆらゆら（パララックス） */
.parallax > use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}
.parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; fill: rgba(232, 182, 177, 0.8); }
.parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; fill: rgba(232, 182, 177, 0.5); }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; fill: rgba(232, 182, 177, 0.3); }
.parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 20s; fill: #E8B6B1; } /* メイン色 */

@keyframes move-forever {
    0% { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d(85px, 0, 0); }
}

@media (max-width: 768px) {
    .wave-container { height: 110vh; }
    .waves { height: 15vh; }
    .wave-fill { top: 14.5vh; }
}

/* --- タイトル装飾 --- */
.section-title { text-align: center; margin-bottom: clamp(40px, 8vw, 80px); font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--title-blue); position: relative; padding-bottom: 20px; }
.section-title::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 3px; background: var(--accent-pink); }

/* アニメーション用クラス */
.reveal { opacity: 0; transform: translateY(30px); transition: 1s all ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- アイデア1：診断シミュレーター --- */
.diagnosis-card {
    background: #fff;
    padding: clamp(20px, 5vw, 50px);
    border-radius: 30px;
    box-shadow: var(--shadow);
    max-width: 850px;
    margin: 0 auto;
}
.diagnosis-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;
    max-width: 600px; 
    margin: 30px auto 0;
}
.diag-btn {
    padding: clamp(15px, 3vw, 25px);
    border: 2px solid var(--accent-pink);
    background: #fff;
    color: var(--title-blue);
    border-radius: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}
.diag-btn:hover { background: var(--accent-pink); color: #fff; transform: translateY(-3px); }

@media (max-width: 600px) {
    .diagnosis-options {
        grid-template-columns: 1fr;
    }
}

/* --- アイデア2：ご依頼の流れ（SVG演出） --- */
.flow-wrapper { position: relative; padding-top: 20px; }
.flow-line-svg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100%;
    z-index: -1;
}
.flow-arrow-container { height: clamp(40px, 8vw, 80px); display: flex; align-items: center; justify-content: center; }
.flow-dot {
    width: 12px; height: 12px;
    background: var(--accent-pink);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-pink);
}


/* --- プライバシーポリシーのスクロールエリア --- */
.privacy-box-inline {
    height: 150px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 20px;
    font-size: 0.8rem;
    background: #fafafa;
    margin: 15px 0;
    border-radius: 12px;
    line-height: 1.6;
    color: #666;
}
.privacy-box-inline::-webkit-scrollbar { width: 6px; }
.privacy-box-inline::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.privacy-box-inline::-webkit-scrollbar-thumb { background: var(--accent-pink); border-radius: 10px; }

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* --- ★★★★★★★代表メッセージ ★★★★★★--- */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
.message-flex { 
    display: flex; 
    flex-wrap: wrap; 
    gap: clamp(40px, 8vw, 80px); /* 余白を広めにとって高級感を出す */
    align-items: center; 
    max-width: 1100px; /* 全体の幅を少し絞って凝縮感を出す */
    margin: 0 auto;
}

.message-img { 
    flex: 1 1 300px; 
    max-width: 400px; /* 画像が大きすぎないように調整 */
}

.message-img img { 
    border-radius: 20px; 
    /* 影を少し柔らかく、奥行きのあるものに */
    box-shadow: 30px 30px 0 var(--bg-pink); 
}

.message-text { 
    flex: 1 1 450px; 
    position: relative;
    /* 左側にアクセントの縦線を入れる */
    padding-left: 30px;
    border-left: 1px solid var(--accent-pink);
}

/* キャッチコピー部分：大きく、印象的に */
.message-lead {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--title-blue);
    margin-bottom: 25px;
    line-height: 1.4;
    position: relative;
}

/* メッセージ本文：読みやすさと空気感 */
.message-text p:not(.message-lead):not(.signature) {
    font-size: 1rem;
    line-height: 2.2; /* 行間を広げて「語り」の雰囲気を作る */
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    color: #555;
}

/* 署名：右寄せ ＆ 質感の調整 */
.signature {
    text-align: right;
    margin-top: 40px;
    font-family: 'Noto Serif JP', serif;
    font-weight: bold;
    color: var(--title-blue);
    font-size: 1.1rem;
}

/* スマホでは縦線を消して調整 */
@media (max-width: 768px) {
    .message-text {
        padding-left: 0;
        border-left: none;
    }
    .message-lead {
        font-size: 1.2rem;
        text-align: center;
    }
}
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* --- ★★★★★★★取扱業務 ★★★★★★--- */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
.service-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 25px; 
    grid-auto-rows: 1fr; 
}


.service-card { 
    background: #fff; 
    padding: clamp(25px, 5vw, 40px); 
    border-radius: 20px; 
    box-shadow: var(--shadow); 
    position: relative; 
    overflow: hidden; 
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1); 

    display: flex;
    flex-direction: column;
    height: 100%; 
    border: 1px solid rgba(238, 185, 180, 0.2);
}

.mizuhiki-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.mizuhiki-line::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-top: 1.5px solid var(--accent-pink);
    border-right: 1.5px solid var(--accent-pink);
    transform: scale(0);
    transform-origin: left top;
    transition: 0.5s ease;
    opacity: 0;
}

.mizuhiki-line::after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-bottom: 1.5px solid var(--accent-pink);
    border-left: 1.5px solid var(--accent-pink);
    transform: scale(0);
    transform-origin: right bottom;
    transition: 0.5s ease;
    opacity: 0;
}

.service-card h3 {
    margin-bottom: 15px;
    position: relative;
    z-index: 2; 
}

.service-card p {
    margin: 0;
    flex-grow: 1;
    position: relative;
    z-index: 2; 
}

.service-card:hover { 
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(238, 185, 180, 0.15);
    border-color: var(--accent-pink);
    background: #fffcfc;
}

.service-card:hover .mizuhiki-line::before,
.service-card:hover .mizuhiki-line::after {
    transform: scale(1);
    opacity: 1;
}

/* ★★★★★ご依頼の流れ★★★★★★ */
.flow-step-large { background: #fff; padding: clamp(20px, 5vw, 40px); border-radius: 25px; box-shadow: var(--shadow); }
.flow-step-large.highlight { border: 2px solid var(--accent-pink); }

/* --- 初期状態：透明で少し下に配置 --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.0s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- 表示状態：クラスがついたら浮き上がる --- */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- 時間差（Stagger）演出：ひとつずつズレて出る --- */

/* 1つ目（Step.01） */
#step1.active { 
    transition-delay: 0.2s; 
}

/* 2つ目（Step.02）: 1つ目から少し遅れて出す */
#step2.active { 
    transition-delay: 0.7s; 
}

/* 3つ目（Step.03）: 2つ目からさらに遅れて出す */
#step3.active { 
    transition-delay: 1.0s; 
}


/* ★★★★★★事務所概要★★★★★★ */
.about-flex { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 40px; 
    align-items: stretch; /* これで左右の高さを揃えます */
}
.about-table-wrapper { 
    flex: 1 1 450px; 
    display: flex; /* 子要素のtableを伸ばす準備 */
}
/* --- 事務所概要のテーブル（修正版） --- */
.info-table { 
    width: 100%; 
    border-collapse: collapse; 
    background: #fff; /* テーブル全体の背景を白に */
    border-radius: 15px; /* 全体の角を少しだけ丸く */
    padding: 20px;
}

/* 共通のセル設定：上下に余白を取り、下線を引く */
.info-table th, 
.info-table td { 
    padding: clamp(20px, 3vw, 25px) clamp(10px, 2vw, 20px); 
    border-bottom: 1px solid #e0e0e0; /* 画像のような薄いグレーの区切り線 */
    vertical-align: top; /* 複数行になった時にテキストを上揃えにする */
}

/* 一番下の行は区切り線を消す */
.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

/* 見出し（左側）のデザイン */
.info-table th { 
    width: 35%; 
    text-align: left; 
    font-size: 1rem; 
    font-weight: bold;
    color: var(--title-blue); /* ピンク背景をなくし、文字色をサイトのテーマカラーに */
}

/* 内容（右側）のデザイン */
.info-table td { 
    font-size: 1rem; 
    line-height: 1.8; /* 複数行の行間を見やすく */
    color: var(--text-main);
}
.map-area { 
    flex: 1 1 450px; 
    min-height: 400px; /* スマホなどで縦並びになった時の最低高さ */
}

.map-area iframe {
    width: 100%;
    height: 100% !important; /* 表の高さに合わせて100%に強制 */
    border-radius: 20px;
    border: none;
}

/* スマホ表示の微調整 */
@media (max-width: 768px) {
    .map-area {
        min-height: 300px; /* スマホでは少しコンパクトに */
    }
}

/* --- フォームのスタイル --- */
.contact-form-wrapper { width: 100%; max-width: 750px; margin: 0 auto; background: #fff; padding: clamp(25px, 6vw, 50px); border-radius: 30px; box-shadow: var(--shadow); }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid #eee; border-radius: 12px; background: #fafafa; font-size: 1rem; }
.submit-btn { width: 100%; padding: 20px; background: var(--title-blue); color: #fff; border: none; border-radius: 15px; font-weight: bold; cursor: pointer; transition: 0.3s; font-size: 1.1rem; }
.submit-btn:hover { background: var(--accent-pink); }

.form-group {
    /* 項目と項目の間の余白を広げる（PC: 45px / スマホはメディアクエリで調整） */
    margin-bottom: 45px; 
    text-align: left;
}

.form-group label {
    display: flex; /* 横並びにする */
    align-items: center; /* 垂直方向の中央揃え */
    gap: 10px; /* 文字とタグの間隔 */
    margin-bottom: 12px;
    font-weight: bold;
    color: var(--title-blue);
    font-size: 0.95rem;
}

/* タグの共通設定 */
.tag-required, .tag-optional {
    font-size: 0.65rem; /* 小さめにして上品に */
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* 必須タグ：アクセントピンク */
.tag-required {
    background-color: var(--accent-pink);
    color: #fff;
}

/* 任意タグ：控えめなグレー */
.tag-optional {
    background-color: #eee;
    color: #777;
}

/* 入力欄にフォーカスした時の色（親切心） */
.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--accent-pink);
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(238, 185, 180, 0.1);
}

footer { background: var(--title-blue); color: rgba(255,255,255,0.7); padding: 50px 0; text-align: center; }


/* --- 署名の右寄せ設定（PC・スマホ共通） --- */
.signature {
    text-align: right;
    margin-top: 30px; /* メッセージ本文との間に少し余裕を持たせる */
    font-weight: bold; /* 署名なので少し太くして存在感を出す */
    color: var(--title-blue); /* サイトのテーマカラーに合わせる */
}

/* --- メディアクエリ --- */
@media (max-width: 992px) {
    :root { --header-h: 70px; }
    .pc-nav { 
        position: fixed; 
        top: 0; 
        right: -100%; 
        width: 100%; 
        height: 100vh; 
        background: rgba(255, 255, 255, 0.98); 
        transition: 0.5s; 
        z-index: 1000; 
        padding-top: 100px; 
    }
    .pc-nav.active { right: 0; }
    .pc-nav ul { flex-direction: column; gap: 35px; }
    .menu-btn { display: block; }
}

@media (max-width: 768px) {
    /* --- 1枚目のスライド調整 --- */
    .slide:nth-child(1) { 
        background-position: 80% top; 
    }

    /* --- 2枚目のスライド調整 --- */
    .slide:nth-child(2) { 
        background-position: 67% top; 
    }

    /* 以下、既存のスマホ設定を維持 */
    .ai-bubble { display: none; } 
    .ai-widget { bottom: 20px; right: 20px; }
    .message-img img { box-shadow: 10px 10px 0 var(--bg-pink); }
    
    .wave-container { height: 110vh; }
    .waves { height: 15vh; }
    .wave-fill { top: 14.5vh; }
    
    body { background-size: cover; } 
    /* --- 1. 全体のコンテナの余白を少し広げる --- */
    .container {
        padding: 0 7%; /* 5%から7%に広げて、画面端との距離を確保 */
    }

    /* --- 2. 代表メッセージ部分の微調整 --- */
    .message-flex {
        gap: 40px; /* 画像とテキストの上下間隔を少し広げる */
        padding: 0 10px; /* 横方向にもわずかに余白を追加 */
    }

    .message-img {
        width: 80%; /* 85%から80%に。少し小さくすることで周囲に空間を作る */
        margin: 0 auto 30px;
    }

    .message-text {
        /* 横のぎちぎち感を解消するために、左右にしっかり余白を取る */
        padding: 0 15px; 
        line-height: 2; /* 行間を少し広げて、文字の「詰まり感」を視覚的に解消 */
        letter-spacing: 0.03em; /* 文字の間隔をわずかに広げて高級感を出す */
    }

    .message-text p {
        margin-bottom: 1.5em; /* 段落ごとの隙間を作って、塊に見えないようにする */
    }

    /* --- 3. セクションタイトルの上下余白を調整 --- */
    .py-100 {
        padding: 60px 0; /* スマホでは上下100pxは広すぎるので60px程度に */
    }

    
    /* --- ご依頼の流れ：カードの左右余白を確保 --- */
    #flow .container {
        padding: 0 8%; /* 全体のコンテナよりさらに少し絞って、カードの存在感を出す */
    }

    .flow-step-large {
        width: 90% !important;   /* 画面幅に対して90%の太さに制限 */
        max-width: 350px;        /* 広がりすぎないように上限を設定 */
        margin: 0 auto 40px !important; /* 「auto」で中央に配置し、下に40pxの隙間 */
        
        padding: 30px 20px !important; /* カードの内側の余白を少し増やす */
        box-sizing: border-box;  /* パディングを含めた横幅計算にする */
    }

    /* ステップ番号(Step.01)などの文字も少しだけ右に寄せてバランスをとる */
    .flow-step-large span, 
    .flow-step-large h3 {
        padding: 0 5px;
    }

    /* 背景の「結びの糸（SVG）」の位置がズレないように調整 */
    .flow-line-svg {
        width: 60px; /* スマホでは糸を少し細く見せて繊細に */
    }

    /* --- お問い合わせフォーム：カード自体の余白 --- */
    .contact-form-wrapper {
        width: 92% !important;   /* 画面端に張り付かないよう絞る */
        margin: 0 auto !important;
        padding: 35px 20px !important; /* 内側にしっかり余白を作る */
        box-sizing: border-box;
    }

    /* 入力項目ごとの間隔を広げる */
    .form-group {
        margin-bottom: 25px;
    }

    /* ラベル（お名前 必須 など）の文字にゆとりを */
    .form-group label {
    display: flex; /* 横並びにする */
    align-items: center; /* 垂直方向の中央揃え */
    gap: 10px; /* 文字とタグの間隔 */
    margin-bottom: 12px;
    font-weight: bold;
    color: var(--title-blue);
    font-size: 0.95rem;
}

    /* 入力欄（input/textarea）の高さと余白を改善 */
    .form-group input, 
    .form-group textarea {
        padding: 12px 15px !important; /* 中の文字が枠に触れないように */
        font-size: 16px !important; /* スマホでズームされないための標準サイズ */
    }

    /* プライバシーポリシー周りの余白 */
    .privacy-box-inline {
        margin: 20px 0;
        height: 120px; /* スマホでは少し高さを抑えてコンパクトに */
    }

    /* 同意チェックボックスの行 */
    .contact-form-wrapper label[for="privacy-check"] {
        display: block;
        text-align: center;
        margin-bottom: 30px;
        font-size: 0.9rem;
    }

    /* 送信ボタンのサイズ調整 */
    .submit-btn {
        width: 100%;
        padding: 18px !important;
        font-size: 1rem !important;
        border-radius: 12px;
    }

}