/* --- コンセプト：洗練されたポップ・モダン --- */
:root {
    --bg-color: #f8f9fa; 
    --accent-pink: #ff8787;
    --accent-blue: #74c0fc;
    --accent-yellow: #ffd43b;
    --text-main: #343a40;
    /* 影を真っ黒から、少し柔らかいトーンへ */
    --shadow-pop: 6px 6px 0px rgba(52, 58, 64, 0.2); 
    --border-line: 2px solid var(--text-main);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', "Hiragino Sans", sans-serif;
    line-height: 1.6;
}

/* --- 固定ヘッダーの土台 --- */
/* --- 固定ヘッダー：厚みを出してかわいく --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 9999;
    /* 下線を太くして「ぷっくり感」を出す */
    border-bottom: 4px solid var(--text-main); 
    padding: 20px 0; /* ← ここ！15pxから20pxに増やして「太く」しました */
}

/* メニュー項目をしっかり見せる */
.menu-content {
    display: flex;
    gap: 12px; /* 項目同士の間隔を広げてゆったり */
    list-style: none;
    align-items: center;
}

.menu-content a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 900; 
    font-size: 0.85rem; 
    padding: 8px 12px;
    border-radius: 12px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 0.5px;
}

/* ホバーした時に「ぷくっ」と浮く演出 */
.menu-content a:hover {
    background: var(--accent-yellow);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 4px 4px 0px var(--text-main);
}

/* コンタクトボタンを「目立つおもちゃ」っぽく */
.btn-nav {
    background: var(--accent-pink) !important; /* ピンクで目立たせる */
    color: #fff !important;
    border: 2px solid var(--text-main);
    box-shadow: 3px 3px 0px var(--text-main);
}

/* ヘッダーが太くなった分、中身をさらに下げる */
body {
    padding-top: 100px;
}

.logo {
    /* ロゴをちょっとだけ傾けて「遊び心」を出す */
    display: inline-block;
    transform: rotate(-2deg);
    background: var(--accent-yellow); /* 黄色のマーカー風背景 */
    padding: 2px 10px;
    border-radius: 5px;
     font-size: 1.4rem;
    font-weight: 900;
}
/* 中央寄せのコンテナ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ヘッダー内の中身を左右に分ける */
.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--text-main);
    text-decoration: none;
}

.menu-content a:hover {
    background: var(--bg-color);
}

/* コンタクトボタン（PC版ナビ内） */
.btn-nav {
    background: var(--text-main) !important;
    color: #fff !important;
}

.menu-btn, #menu-check {
    display: none; /* PCではハンバーガーを隠す */
}

/* ヘッダーの下にコンテンツが潜り込むのを防ぐ */
body {
    padding-top: 80px;
}

/* --- ヒーロー：インパクトはあるが上品に --- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: 
        radial-gradient(var(--accent-blue) 1px, transparent 1px),
        radial-gradient(var(--accent-pink) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.9; /* 背景のドットを控えめに */
}

.hero-content {
    display: flex;
    flex-direction: column; /* これで強制的に「縦並び」にします */
    align-items: center;    /* 中央に寄せる */
    text-align: center;
}

#hero h1 {
    /* ヒーローテキスト：視認性を高めつつ、サイズ感はキープ */
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 1;
    color: var(--text-main);
    /* 影を少し細くしてスッキリ */
    text-shadow: 3px 3px 0px var(--accent-yellow);
    margin-bottom: 20px;
}

#hero p {
    /* 文章も一癖つける：付箋のような、あるいは手書きのキャッチコピー風に */
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-main);
    background: #fff;
    padding: 10px 20px;
    border: 2px solid var(--text-main);
    border-radius: 10px;
    box-shadow: 4px 4px 0px var(--accent-yellow); /* 黄色の影でポップに */
    
    margin-bottom: 50px; /* ここ！ボタンとの距離をガッツリ空けます */
    max-width: 90%;
    transform: rotate(-1deg); /* 少しだけ傾けて「お堅さ」を解除 */
}

/* --- ヒーローボタン：3Dおもちゃボタン --- */
.btn-main {
    /* リンクの初期設定を解除 */
    padding: 22px 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--accent-blue); /* 爽やかなブルー */
    color: #fff; /* 文字は白 */
    font-size: 1.3rem;
    font-weight: 900;
    white-space: nowrap;
    
    /* 完璧な丸（カプセル型） */
    border-radius: 100px;
    
    /* 境界線と、最初の影（少し下にずらす） */
    border: 3px solid var(--text-main);
    box-shadow: 0px 8px 0px var(--text-main); /* これが「厚み」に見えます */
    
    /* アニメーションの準備（ここ重要！） */
    position: relative;
    top: 0;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 弾むような動き */
    
    /* 文字に少し立体感を出す */
    text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
}

/* ホバー：ブワッと浮き上がって、影が大きくなる演出 */
.btn-main:hover {
    top: -5px; /* 5px上に浮く */
    background: var(--accent-pink); /* ホバーでピンクに変わるギャップ！ */
    color: #fff;
    box-shadow: 0px 15px 0px var(--text-main); /* 影が長くなって、浮いてる感を出す */
    transform: scale(1.05);
}

.btn-main::after {
    content: '→'; /* HTMLを汚さず矢印を入れる場合 */
    /* もしHTMLに「→」を直接書いているなら、ここは不要です */
}

/* アクティブ（クリックした瞬間）：ピョコッと沈むカタルシス！ */
.btn-main:active {
    top: 4px; /* 最初の位置より少し下に沈む */
    background: var(--accent-pink); /* 色はキープ */
    box-shadow: 0px 0px 0px var(--text-main); /* 影をゼロにして、完全に押し込まれた感を出す */
}

/* --- セクション共通 --- */
section {
    padding: 120px 8%;
}

h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 60px;
    display: inline-block;
    border-bottom: 6px solid var(--accent-blue);
}

/* --- ミッション＆ビジョン：対話レイアウト --- */
/* --- ミッション＆ビジョン：仲良しレイアウト --- */
.flex-layout {
    display: flex;
    align-items: center;
    /* 左右の端に追い出すのをやめて、中央に寄せつつ隙間を指定 */
    justify-content: center; 
    gap: 40px; /* ここで距離を自由にコントロール！50px〜80pxくらいがおすすめ */
    max-width: 1000px; /* 全体が広がりすぎないように制限 */
    margin: 0 auto;    /* 中央寄せ */
}

/* テキスト部分：幅を固定しすぎず、画像に寄り添うように */
.text-content {
    flex: 0 1 450px; /* 最大450px幅。狭い時は縮む */
    text-align: left;
}

/* 画像部分：幅を固定 */
.illust-content {
    flex: 0 0 350px; /* 350px幅で固定して、ふらふらさせない */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 反転した時（ビジョン）も中央寄せを維持 */
.flex-layout.reverse {
    flex-direction: row-reverse;
}

.flex-layout.reverse {
    flex-direction: row-reverse;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--accent-pink);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

#mission h2, #vision h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 25px;
    border-bottom: none; /* ここでは線なしでスッキリ */
}

.description {
    font-size: 1.1rem;
    font-weight: 500;
    color: #555;
    max-width: 500px;
}

/* --- CSSイラスト：ぷかぷか動く図形 --- */
.illust-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px; /* 全体のスペースを少し広く */
    position: relative;
}

/* フレーム自体の設定（縁取りを復活させる） */
.blob-frame {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    overflow: hidden; /* 画像の四角い角をカット */
    
    /* 【復活！】黒い縁取り */
    border: 2px solid #333; 
    
    /* あの歪んだ形（既存の数値をそのまま使ってください） */
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    
    /* ぷっくり感を出すための影（もしあれば） */
    box-shadow: 0 8px 0 #333; 
}

/* 中のイラスト（枠内にピタッと収める） */
.blob-frame img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* 画像の白い余白を飛ばして、イラストを枠いっぱいに広げる */
    object-fit: cover; 
    
    /* 縁取りの内側に潜り込ませる */
    z-index: 1;
}

/* ホバー時の動き */
.blob-frame:hover img {
    transform: scale(1.1);
}

/* --- 色ごとの設定 --- */
.blob-frame.pink {
    /* 以前の形を継承 */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.blob-frame.blue {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    animation-delay: -4s; /* 動きをずらす */
}

/* --- 背景の装飾（画像を邪魔しない程度に） --- */
.blob-frame::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 30px;
    width: 100%;
    height: 100%;
    border-radius: inherit; /* フレームと同じ形 */
    z-index: -1; /* 画像の後ろに */
}

.blob-frame.pink::after { background: var(--accent-pink); opacity: 0.1; }
.blob-frame.blue::after { background: var(--accent-blue); opacity: 0.1; }

/* --- モーフィング・アニメーション（形が変わる動き）を調整 --- */
@keyframes morph {
    /* 0%と100%を同じ形に（ループを滑らかに） */
    0% { border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; transform: rotate(0deg) translate(0, 0); }
    33% { border-radius: 55% 45% 45% 55% / 55% 25% 75% 45%; }
    66% { border-radius: 45% 55% 55% 45% / 65% 65% 35% 35%; transform: rotate(4deg) translate(8px, 8px); }
    100% { border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; transform: rotate(0deg) translate(0, 0); }
}


/* --- 代表挨拶：アイコン版の仕上げ --- */
/* --- 代表挨拶：特大カードのデザイン --- */
#ceo-message {
    padding: 150px 5%;
    background-color: var(--bg-color);
}

.message-card {
    background: #fff;
    border: 3px solid var(--text-main);
    padding: 80px 40px;
    border-radius: 50px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 15px 15px 0px var(--accent-blue); /* 青い影で浮かせる */
    position: relative;
    
    /* 1.5度だけ傾けて「置いた手紙」感を出す */
    transform: rotate(-1.5deg);
}

/* 巨大なキャッチコピー */
.main-quote {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 40px;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

/* 引用符（“ ”）を背景に薄く置く一癖 */
.main-quote::before {
    content: '“';
    position: absolute;
    top: -20px;
    left: -40px;
    font-size: 5rem;
    color: var(--accent-pink);
    opacity: 0.3;
}

.sub-text {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 2;
    color: #444;
    margin-bottom: 25px;
}

.ceo-signature {
    margin-top: 50px;
    border-top: 2px dashed #eee;
    padding-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ceo-signature p {
    font-weight: 900;
    color: var(--text-main);
}

.ceo-signature span {
    font-size: 2rem;
    margin-left: 15px;
    background: linear-gradient(transparent 60%, var(--accent-yellow) 60%); /* 黄色のマーカー */
}

/* --- カードデザイン（抑えめのクレイ） --- */
/* --- サービス：ぷかぷかバブルレイアウト --- */
#services {
    background-image: radial-gradient(circle at 10% 10%, rgba(116, 192, 252, 0.1) 0%, transparent 20%);
}

.service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
}

.service-item {
    width: 300px;
    height: 300px;
    background: #fff;
    border: var(--border-line);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    box-shadow: var(--shadow-pop);
    
    /* 一癖：完璧な丸ではなく、少し歪んだオーガニックシェイプ */
    border-radius: 60% 40% 70% 30% / 40% 50% 60% 50%;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

/* 2番目のアイテムだけ少し形を変える */
.service-item:nth-child(2) {
    border-radius: 40% 60% 30% 70% / 60% 30% 70% 40%;
    background-color: #fdfdfd;
}

/* 3番目のアイテムもまた違う形に */
.service-item:nth-child(3) {
    border-radius: 50% 50% 40% 60% / 50% 60% 40% 50%;
}

/* ホバー：ぷにんと膨らんで、形が整う演出 */
.service-item:hover {
    transform: scale(1.1) rotate(3deg);
    border-radius: 20px; /* ホバーするとカチッとした形に戻るギャップ */
    box-shadow: 15px 15px 0px var(--accent-yellow);
    background-color: #fff;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
    position: relative;
}

/* 見出しの下に手書き風の線を引く */
.service-item h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10%;
    width: 80%;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 10px;
    opacity: 0.3;
}

.service-item p {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
}

/* --- Valueセクションの微調整 --- */
.section-lead {
    text-align: center;
    margin-top: -40px;
    margin-bottom: 40px;
    font-weight: bold;
    color: var(--accent-pink);
}

/* 4番目と5番目のバブルにも一癖ある歪みを設定 */
.service-item:nth-child(4) {
    border-radius: 30% 70% 40% 60% / 60% 40% 60% 40%;
}
.service-item:nth-child(5) {
    border-radius: 70% 30% 60% 40% / 40% 60% 30% 70%;
}

/* 数字のバッジを付けるとかわいい */
.value-num {
    display: inline-block;
    background: var(--accent-yellow);
    color: var(--text-main);
    font-weight: 900;
    padding: 2px 10px;
    border-radius: 50px;
    border: 2px solid var(--text-main);
    font-size: 0.8rem;
    margin-bottom: 10px;
    transform: rotate(-5deg);
}

/* --- Valueセクションのリード文（マーカーデザイン） --- */
.section-lead {
    display: inline-block; /* マーカーを文字の長さに合わせる */
    position: relative;
    text-align: center;
    margin: 10px auto 40px; /* 上下の余白を調整 */
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--text-main); /* 文字色はメインカラーに */
    z-index: 1;
}

.section-lead::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 10px; /* マーカーの太さ */
    background: var(--accent-yellow); /* プロセスと同じ黄色 */
    z-index: -1;
    border-radius: 5px;
    opacity: 0.7;
}

/* --- OUR VALUEの導入文をプロセスと「全く同じ」に！ --- */
.section-lead-value {
    /* サイズをプロセスと完全一致 */
    font-size: clamp(1.4rem, 4vw, 2rem); 
    font-weight: 900;
    color: var(--text-main);
    
    /* 中央に寄せるための魔法（プロセスと同じ設定） */
    display: table; 
    margin: 0 auto 60px; 
    
    line-height: 1.5;
    position: relative;
    padding: 0 15px;
    text-align: center;
}

/* 文字の下のピンクマーカー（プロセスと完全一致！） */
.section-lead-value::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 15px;
    background: var(--accent-pink); /* ピンクマーカー */
    opacity: 0.2;
    z-index: -1;
    transform: rotate(-0.5deg); /* プロセスと同じ「一癖」ある傾き */
}

/* おすすめプランの強調を上品に */
/* プラン全体のレイアウト：5つがリズムよく並ぶように */
.plan-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 中央に寄せることで余りをなくす */
    gap: 30px;
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.plan-item {
    background: #fff;
    border: var(--border-line);
    padding: 40px 30px;
    border-radius: 30px;
    box-shadow: var(--shadow-pop);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: calc(33.333% - 30px); /* 基本は3つ並び */
    min-width: 280px;
    position: relative;
}

/* --- ここで「一癖」のリズムをつける --- */

/* 1番目と2番目を少し大きくして、上段に「2つ」並べる */
.plan-item:nth-child(1),
.plan-item:nth-child(2) {
    width: calc(45% - 30px);
}

/* 2番目のスタンダード（おすすめ）を少し傾ける */
.plan-item:nth-child(2).recommended {
    transform: rotate(2deg);
    border-color: var(--accent-pink);
    border-width: 4px;
    z-index: 2;
}

/* 下段の3つ（3番目〜5番目）は少し小ぶりに並べる */
.plan-item:nth-child(n+3) {
    width: calc(30% - 30px);
    transform: translateY(20px); /* 少し下にずらしてリズムを出す */
}

/* 4番目だけ逆に傾ける */
.plan-item:nth-child(4) {
    transform: translateY(20px) rotate(-2deg);
}

/* ホバーで「正位置」に戻って浮き上がる演出 */
.plan-item:hover {
    transform: translateY(-10px) rotate(0deg) scale(1.05) !important;
    z-index: 10;
    box-shadow: 15px 15px 0px var(--accent-blue);
}

/* プラン内の装飾 */
.plan-tag {
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    background: var(--accent-yellow);
    padding: 4px 12px;
    border: 2px solid var(--text-main);
    border-radius: 50px;
    position: absolute;
    top: -15px;
    left: 20px;
}

.plan-lead {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--accent-pink);
    margin-bottom: 10px;
}

.plan-details {
    list-style: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
    font-size: 0.85rem;
    text-align: left;
}

.plan-details li::before {
    content: "⚡";
    margin-right: 8px;
}

/* 推奨プランを目立たせる */
.plan-item.recommended {
    background: #fff;
    border-color: var(--accent-blue);
    border-width: 4px;
}

/* --- プロセスの導入文を「中央」で「デカく」！ --- */
#plans .section-lead {
    font-size: clamp(1.4rem, 4vw, 2rem); /* さらに一回り大きく！ */
    font-weight: 900;
    color: var(--text-main);
    
    /* 中央に寄せるための魔法 */
    display: table; /* inline-blockの代わりにtableを使うと、幅を保ちつつ中央寄せが楽になります */
    margin: 0 auto 60px; 
    
    line-height: 1.5;
    position: relative;
    padding: 0 15px;
    text-align: center;
}

/* 文字の下のピンクマーカー（中央でもバッチリ！） */
#plans .section-lead::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 15px;
    background: var(--accent-pink);
    opacity: 0.2;
    z-index: -1;
    transform: rotate(-0.5deg); /* ほんの少しだけ傾けて「一癖」 */
}

/* --- 選ばれる理由：一癖あるリスト --- */
#why-us {
    background: #fff;
    padding: 120px 8%;
}

.reason-list {
    max-width: 800px;
    margin: 50px auto 0;
}

.reason-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    background: var(--bg-color);
    padding: 40px;
    border-radius: 25px;
    border: 2px solid var(--text-main);
    box-shadow: 8px 8px 0px var(--accent-yellow); /* 黄色の影でポップに */
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.reason-item:hover {
    transform: translateX(10px); /* ホバーで少し右にずれる一癖 */
    background: #fff;
}

.reason-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-pink);
    line-height: 1;
    font-family: 'Inter', sans-serif;
    opacity: 0.8;
}

.reason-text h3 {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 10px;
    border-bottom: none; /* ここは線なし */
}

.reason-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    font-weight: 500;
}

/* --- Why Us? の導入文も「中央」で「デカく」！ --- */
#why-us .section-lead {
    font-size: clamp(1.4rem, 4vw, 2rem); /* プロセスと同じサイズで統一感！ */
    font-weight: 900;
    color: var(--text-main);
    
    /* 中央寄せのセット */
    display: table;
    margin: 0 auto 60px;
    
    line-height: 1.5;
    position: relative;
    padding: 0 15px;
    text-align: center;
}

/* Why Us? は「黄色」のマーカーで「選ばれる理由」を強調！ */
#why-us .section-lead::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 15px;
    background: var(--accent-yellow); /* ここは黄色にして変化をつける一癖 */
    opacity: 0.3;
    z-index: -1;
    transform: rotate(0.8deg); /* 逆向きに少し傾けて動きを出す */
}

/* --- お問い合わせ誘導セクション --- */
#cta-section {
    padding: 100px 5%;
    text-align: center;
    background: var(--bg-color);
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* 吹き出しコメント */
.cta-balloon {
    display: inline-block;
    background: var(--text-main);
    color: #fff;
    padding: 20px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    position: relative;
    margin-bottom: 40px;
    box-shadow: 8px 8px 0px var(--accent-blue);
    transform: rotate(-2deg);
}

/* 吹き出しのしっぽ */
.cta-balloon::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-top: 20px solid var(--text-main);
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
}

.cta-content h2 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    display: block;
    border-bottom: none;
    color: var(--text-main);
}

/* 究極のデカボタン */
.btn-giant {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding: 30px 60px;
    background: var(--accent-yellow);
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 900;
    border: 3px solid var(--text-main);
    border-radius: 100px;
    box-shadow: 10px 10px 0px var(--text-main);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-giant:hover {
    transform: scale(1.05) translateY(-5px);
    background: var(--accent-pink);
    color: #fff;
    box-shadow: 15px 15px 0px var(--text-main);
}

.arrow-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-giant:hover .arrow-icon {
    transform: translateX(10px);
}

/* --- 会社概要：スクラップ・モダンレイアウト --- */
.company-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 左右2つの大きなカードに分ける */
    gap: 40px;
    margin-top: 50px;
}

.company-card {
    background: #fff;
    border: var(--border-line);
    padding: 40px;
    border-radius: 40px;
    box-shadow: var(--shadow-pop);
    position: relative;
    transition: transform 0.3s ease;
}

/* 一癖：カードを少しだけ左右に傾けて「置いてある感」を出す */
.company-card:nth-child(1) { transform: rotate(-1deg); }
.company-card:nth-child(2) { transform: rotate(1.5deg); }

.company-card:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 12px 12px 0px var(--accent-pink);
}

.info-item {
    margin-bottom: 25px;
    border-bottom: 2px dashed #eee; /* 項目ごとに点線で区切る */
    padding-bottom: 10px;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 900;
    color: #fff;
    background: var(--text-main);
    padding: 2px 10px;
    border-radius: 5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.info-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-main);
    line-height: 1.4;
}

/* 装飾ステッカー（擬似要素でかわいい飾りを付ける） */
.company-card::before {
    content: '★';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 2rem;
    color: var(--accent-yellow);
    filter: drop-shadow(3px 3px 0px var(--text-main));
}

/* --- プライバシーポリシー専用スタイル --- */
.privacy-page {
    background-color: #fcfcfc;
    color: #333;
}

.privacy-section {
    max-width: 800px;
    margin: 100px auto;
    padding: 60px 40px;
    background: #fff;
    border-radius: 30px;
    border: 2px solid var(--text-main);
}

.privacy-section h1 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-main);
    background: linear-gradient(transparent 60%, var(--accent-yellow) 60%);
    display: table;
    margin-left: auto;
    margin-right: auto;
}

.policy-item {
    margin-bottom: 40px;
}

.policy-item h2 {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--accent-pink);
    border-left: 5px solid var(--accent-pink);
    padding-left: 15px;
}

.policy-item p, .policy-item li {
    line-height: 1.8;
    font-size: 0.95rem;
}

.policy-item ul {
    padding-left: 20px;
    margin-top: 10px;
}

.contact-info {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 15px;
    margin-top: 15px;
}

/* --- 規約ページの戻るボタン：被らない設定 --- */
.btn-back {
    display: inline-block;
    position: relative; /* 固定を解除！ */
    text-decoration: none;
    font-weight: 900;
    color: var(--text-main);
    background: #fff;
    border: 3px solid var(--text-main);
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 6px 6px 0px var(--accent-blue); /* 青い影で浮かせる */
    transition: all 0.2s ease;
    z-index: 100;
}

.btn-back:hover {
    transform: translate(3px, 3px); /* 押した時に影の方へ沈む演出 */
    box-shadow: 0px 0px 0px var(--accent-blue);
    background: var(--bg-color);
}

/* ヘッダー自体の重なりを防止 */
header {
    position: relative;
    z-index: 10;
    width: 100%;
}

/* --- 特商法：絶対に崩れないスッキリスタイル --- */
.tokusho-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px; /* 行間に少し隙間を作る一癖 */
    margin-top: 20px;
}

/* 1行ごとのまとまり */
.tokusho-table tr {
    display: flex;
    flex-wrap: wrap; /* 狭くなったら自動で折り返す */
    align-items: baseline;
    border-bottom: 2px dashed #eee; /* 区切り線を可愛く */
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* 左側の見出し（事業者の名称など） */
.tokusho-table th {
    width: 180px; /* 幅を固定して揃える */
    text-align: left;
    font-weight: 900;
    color: var(--accent-pink);
    font-size: 0.9rem;
    flex-shrink: 0; /* 縮ませない */
    position: relative;
    padding-left: 15px;
}

/* 見出しの横に小さな丸をつける一癖 */
.tokusho-table th::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-yellow);
    border-radius: 50%;
}

/* 右側の内容 */
.tokusho-table td {
    flex: 1; /* 残りの幅を全部使う */
    min-width: 250px; /* これ以上狭くなったら下に落ちる */
    line-height: 1.6;
    font-size: 1rem;
    color: var(--text-main);
    padding-left: 10px;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    margin-bottom: 20px;
    font-family: inherit;
}

input:focus {
    border-color: var(--text-main);
    outline: none;
}

.btn-submit {
    background: var(--text-main);
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.btn-submit:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
}

/* 最初は透明で、少し下にずらしておく */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 滑らかな動き */
}

/* 画面に入ったら透明度を戻し、位置を定位置へ */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* カードなど、少し時間差で出したらかわいい要素の設定 */
.service-item.reveal:nth-child(2) { transition-delay: 0.2s; }
.service-item.reveal:nth-child(3) { transition-delay: 0.4s; }

/* --- フッター：波打ち際デザイン --- */
footer {
    position: relative;
    background: var(--text-main); /* 締めくくりは黒（あるいは濃い色）でカッコよく */
    color: #fff;
    padding: 0 0 40px 0;
    margin-top: 100px;
}

/* フッターの上の波々装飾 */
.footer-wave {
    position: absolute;
    top: -25px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.footer-wave svg {
    fill: var(--text-main);
    width: 100%;
    height: 30px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px 0;
    text-align: center;
}

.footer-logo h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 40px;
}

/* リンク集を横並びでかわいく */
.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-yellow);
}

/* リンクにマウスを乗せると下に小さな丸が出る一癖 */
.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: var(--accent-pink);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

.footer-links a:hover::after {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* 絵文字をピョコピョコ動かす */
.footer-emoji {
    display: inline-block;
    animation: footere-wiggle 2s infinite;
    margin-left: 5px;
}

@keyframes footere-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

/* ============================================================
   レスポンシブ・デザイン（整理版）
   ============================================================ */

/* --- 1. タブレット・中画面（1000px以下） --- */
@media (max-width: 1000px) {
    .plan-grid {
        grid-template-columns: repeat(2, 1fr); /* 2列にする */
    }
    .plan-item:nth-child(1) {
        grid-column: span 2;
    }
}

/* --- 2. スマホ・タブレット共通（850px以下） --- */
@media (max-width: 850px) {
    /* レイアウトの縦並び化 */
    .flex-layout, 
    .flex-layout.reverse {
        flex-direction: column !important;
        text-align: center;
        gap: 40px;
    }
    
    .text-content, .description { 
        padding: 0 20px;
        margin: 0 auto; 
    }

    .illust-content {
        min-height: 300px;
    }

    /* プロセス（Plan）のカードを素直に */
    .plan-item {
        width: 100% !important;
        transform: none !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }
}

/* --- 3. スマホ（768px以下） --- */
@media (max-width: 768px) {
    nav ul { display: none; } /* ハンバーガーメニュー用 */

    #hero h1 { font-size: 3.5rem; }

    /* バブル（Services）のサイズ調整 */
    .service-item {
        width: 260px;
        height: 260px;
    }

    /* 代表挨拶カード */
    .message-card {
        padding: 50px 20px;
        transform: rotate(-0.5deg);
    }
    .main-quote { font-size: 1.8rem; }
}

/* --- 4. 小さなスマホ（600px以下） --- */
@media (max-width: 600px) {
    /* グリッドを1列に強制 */
    .plan-grid {
        grid-template-columns: 1fr !important;
    }

    /* 選ばれる理由（Why Us）を縦並びに */
    .reason-item {
        flex-direction: column;
        gap: 15px;
        padding: 30px;
    }
    .reason-num { font-size: 2rem; }

    /* 画像フレームのサイズ */
    .blob-frame {
        width: 240px;
        height: 180px;
    }

    /* ボタンの調整 */
    .btn-main {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

/* --- スマホ版（768px以下）：ここから劇的変化 --- */
@media (max-width: 768px) {
    /* ボタンを表示 */
    .menu-btn {
        display: flex;
        position: relative; /* 固定ではなくヘッダー内に配置 */
        z-index: 10001;
        width: 45px;
        height: 45px;
        background: var(--accent-blue);
        border: 2px solid var(--text-main);
        border-radius: 50%;
        justify-content: center;
        align-items: center;
    }

    /* メニューを「画面の外（右）」に完全に追いやる */
    .menu-content {
        position: fixed;
        top: 0;
        left: 100%; /* ← これで画面外へ！ */
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* 気持ちいい動き */
        z-index: 10000;
    }

    /* チェックが入った時だけ「画面内」に戻す */
    #menu-check:checked ~ .menu-content {
        left: 0;
    }

    /* 三本線などのデザインは維持 */
    .menu-btn span, .menu-btn span:before, .menu-btn span:after {
        content: '';
        display: block;
        height: 3px;
        width: 20px;
        border-radius: 3px;
        background-color: var(--text-main);
        position: absolute;
        transition: 0.3s;
    }
    .menu-btn span:before { bottom: 8px; }
    .menu-btn span:after { top: 8px; }

    #menu-check:checked ~ .menu-btn span { background: transparent; }
    #menu-check:checked ~ .menu-btn span:before { bottom: 0; transform: rotate(45deg); }
    #menu-check:checked ~ .menu-btn span:after { top: 0; transform: rotate(-45deg); }
}

/* スマホ版（768px以下）の設定：既存のCSSの後半にあるメディアクエリはそのまま使えますが、
   もしズレる場合は以下を末尾に追加してください */
@media (max-width: 768px) {
    .menu-btn { display: flex; }
    .menu-content {
        position: fixed;
        top: 0;
        left: 100%; /* 右に隠す */
        width: 100%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
    }
    #menu-check:checked ~ .menu-content {
        left: 0; /* 出てくる */
    }
}