/*
Theme Name: stargate
Author: STORE LABO
Description: ポップで親しみやすいビジネステーマ（ハンバーガーメニュー版）
Version: 1.0.5
*/

/* --- ベース設定 --- */
:root {
    --primary-color: #2ecc71;
    --accent-color: #ffeb3b;
    --text-color: #333;
    --text-gray: #666;
    --bg-gray: #f8f9fa;
    --white: #fff;
    --font-logo: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    background-color: var(--white);
    overflow-x: hidden;
}

a { text-decoration: none; color: var(--primary-color); transition: 0.3s; }
a:hover { opacity: 0.8; }
ul { list-style: none; padding: 0; margin: 0; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; height: auto; }
h1 { margin: 0; }

/* --- ヘッダー --- */
.site-header {
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky; top: 0; z-index: 999; /* Z-indexを高く */
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo a {
    font-family: var(--font-logo);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    position: relative;
    z-index: 1001; /* メニューより手前にロゴを表示 */
}

/* PC用メニュー表示 */
.site-nav ul { display: flex; gap: 30px; align-items: center; }
.site-nav a { font-weight: 700; color: var(--text-color); font-size: 0.95rem; }
.site-nav a:hover { color: var(--primary-color); }
.site-nav .nav-btn {
    background: var(--primary-color); color: var(--white);
    padding: 12px 25px; border-radius: 50px;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3);
}
.site-nav .nav-btn:hover {
    background: #27ae60; color: var(--white);
    opacity: 1; transform: translateY(-2px);
}

/* ハンバーガーボタン（PCでは非表示） */
.hamburger-btn {
    display: none; /* デフォルトは非表示 */
    background: none; border: none; cursor: pointer;
    width: 30px; height: 24px; position: relative;
    z-index: 1001; /* メニューより手前 */
    padding: 0;
}
.hamburger-btn span {
    display: block; width: 100%; height: 3px;
    background-color: var(--primary-color);
    position: absolute; left: 0; transition: 0.3s;
    border-radius: 3px;
}
.hamburger-btn span:nth-child(1) { top: 0; }
.hamburger-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-btn span:nth-child(3) { bottom: 0; }

.hamburger-btn.active span {
    background-color: #fff;
}


/* --- コンテンツ（Hero, Section等）は変更なし --- */
/* --- Heroセクション（ヘッダー考慮・1画面収め版） --- */
.hero {
    position: relative;
    width: 100%;
    /* 画面の高さ(100dvh)からヘッダーの高さ(約80px)を引く */
    height: calc(100dvh - 80px); 
    min-height: 500px; /* 極端に潰れるのを防ぐ */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
    /* 前回のマージン・パディング設定をリセット */
    margin-top: 0;
    padding-top: 0;
}

/* 背景画像設定 */
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    z-index: 1;
}

/* 画像の上に被せるグラデーション */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.7) 0%, rgba(5, 56, 52, 0.8) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    animation: fadeUp 1.2s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-catch-en {
    font-family: var(--font-logo);
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    margin-bottom: 15px;
    opacity: 0.9;
    font-weight: 600;
    color: var(--accent-color);
}

.hero-title {
    font-family: var(--font-logo);
    font-size: 5rem;
    margin-bottom: 30px;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1;
    text-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 500;
    line-height: 2;
    letter-spacing: 0.05em;
}

.btn-hero {
    background: var(--white);
    color: var(--primary-color);
    padding: 20px 70px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: var(--accent-color);
    z-index: -1;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    color: var(--text-color);
}

.btn-hero:hover::before {
    width: 100%;
}

/* --- スクロールダウンアニメーション（位置調整済み） --- */
.scroll-down {
    position: absolute;
    bottom: 20px; /* 画面の底辺から20px上に配置 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    color: #fff;
    font-family: var(--font-logo);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.scroll-down span {
    display: block;
    margin-bottom: 8px;
}

.scroll-down::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px; /* 線は長すぎないように調整 */
    background: #fff;
    margin: 0 auto;
    animation: scrollLine 2s infinite;
}

/* --- アニメーション定義 --- */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- スマホ表示調整 --- */
@media (max-width: 768px) {
    .hero {
        /* スマホも同様に計算（ヘッダーがもし小さくなるなら数値調整が必要ですが一旦80pxで） */
        height: calc(100dvh - 70px); 
        padding-top: 0;
    }
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 20px;
    }
    .hero-catch-en {
        font-size: 0.9rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
        display: inline-block;
    }
    .btn-hero {
        padding: 15px 40px;
        font-size: 1rem;
        width: 80%;
        box-sizing: border-box;
    }
    .scroll-down {
        bottom: 15px; /* スマホのアドレスバー干渉を避けるため少し余裕を持つ */
    }
}

.section { padding: 100px 0; }
.section-gray { background-color: var(--bg-gray); }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 60px; color: var(--text-color); font-weight: 700; position: relative; padding-bottom: 20px; }
.section-title::after { content: ""; display: block; width: 60px; height: 4px; background: var(--accent-color); margin: 20px auto 0; border-radius: 2px; }

/* --- セクション見出しの改修（英語併記デザイン） --- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 20px;
    /* フォント設定は子要素で制御するため、ベースは継承 */
}

/* 英語タイトル（上の段） */
.section-title .en-title {
    display: block; /* 改行させる */
    font-family: var(--font-logo); /* ロゴと同じフォントを使用 */
    font-size: 1.1rem;
    color: var(--primary-color); /* メインカラー（緑） */
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 10px; /* 日本語との余白 */
    text-transform: uppercase; /* 強制的に大文字にする */
}

/* 日本語タイトル（下の段） */
.section-title .jp-title {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.4;
}

/* 下線のデザイン（既存のデザインを維持） */
.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color); /* アクセントカラー（黄） */
    margin: 20px auto 0;
    border-radius: 2px;
}

/* --- スマホ表示調整（既存のメディアクエリ内に追加・修正） --- */
@media (max-width: 768px) {
    .section-title {
        margin-bottom: 40px;
    }
    .section-title .en-title {
        font-size: 0.9rem; /* スマホでは英語を少し小さく */
        margin-bottom: 5px;
    }
    .section-title .jp-title {
        font-size: 1.6rem; /* スマホでの日本語サイズ */
    }
    .section-title::after {
        margin-top: 15px;
        width: 40px;
    }
}

/* --- 事業概要（About）セクションの改修 --- */

/* 既存の text-align: center をリセットする場合があるため、明示的に指定 */
.about-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-top: 40px;
}

/* --- 画像エリア --- */
.about-img {
    width: 45%;
    position: relative; /* 装飾の基準位置 */
}

.about-img img {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2; /* 装飾より手前に表示 */
    width: 100%;
    display: block;
}

/* 画像後ろの黄色い装飾ボックス */
.about-deco {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color); /* 黄色 */
    border-radius: 20px;
    z-index: 1; /* 画像の後ろ */
    opacity: 0.6;
}

/* 画像右下の緑のドット装飾（疑似要素で作るオシャレポイント） */
.about-img::after {
    content: "";
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(var(--primary-color) 20%, transparent 20%);
    background-size: 10px 10px; /* ドットのサイズ */
    z-index: 0;
}

/* --- テキストエリア --- */
.about-txt {
    width: 50%;
    text-align: left; /* 左揃えに変更 */
}

.about-catch {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 25px;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    position: relative;
}

.about-desc {
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 30px;
    color: var(--text-color);
}

/* --- 注意書き（Note）の新デザイン --- */
.about-note {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-gray);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.note-label {
    background: var(--text-gray);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    margin-top: 3px; /* テキストとの位置合わせ */
}

.about-note p {
    margin: 0;
    line-height: 1.6;
}

/* --- スマホ対応（レスポンシブ） --- */
@media (max-width: 768px) {
    .about-wrapper {
        flex-direction: column; /* 縦並びにする */
        gap: 40px;
    }

    .about-img, .about-txt {
        width: 100%;
    }

    .about-img {
        padding: 0 10px; /* 少し余白を持たせる */
    }

    .about-catch {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .about-deco {
        top: -10px;
        left: -10px;
    }
    
    .about-img::after {
        /* スマホではドット装飾が邪魔なら消す、または調整 */
        right: 0;
    }
}

.service-list { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.service-item { background: var(--white); padding: 30px 20px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); text-align: center; transition: 0.3s; border-bottom: 5px solid var(--primary-color); }
.service-item:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.service-icon img { width: 80px; height: 80px; object-fit: contain; margin-bottom: 15px; }
.service-text h3 { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--text-color); }

/* --- 料金（Price）セクションの改修 --- */

.price-wrapper {
    display: flex;
    justify-content: center;
    padding-top: 20px; /* バッジがはみ出す分の余白 */
}

/* カード本体 */
.price-card {
    background: var(--white);
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    /* 以前の太い枠線はやめて、影で浮き上がらせる */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 50px 40px 40px; /* 上はバッジ用に少し広めに */
    text-align: center;
    position: relative;
    border: 1px solid rgba(0,0,0,0.03); /* 極薄い境界線 */
    transition: transform 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(46, 204, 113, 0.15); /* ホバー時に緑の影 */
}

/* 上部の黄色いバッジ */
.price-badge {
    position: absolute;
    top: -18px; /* カードの上に飛び出させる */
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color); /* 黄色 */
    color: var(--text-color);
    font-family: var(--font-logo);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 8px 30px;
    border-radius: 50px;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 10px rgba(255, 235, 59, 0.4);
}

/* プラン名まわり */
.price-header {
    margin-bottom: 30px;
    border-bottom: 2px dashed #eee; /* 点線で区切る */
    padding-bottom: 20px;
}

.plan-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text-color);
}

.plan-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
}

/* 価格表示エリア */
.price-row {
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: baseline; /* 下揃え */
    line-height: 1;
}

.currency {
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 5px;
    font-family: var(--font-logo); /* 英語フォント */
}

.amount {
    font-size: 4.5rem; /* 数字を特大に */
    font-weight: 800;
    font-family: var(--font-logo); /* 英語フォント */
    letter-spacing: -0.02em;
}

.tax {
    font-size: 0.9rem;
    font-weight: 700;
    margin-left: 5px;
    color: var(--text-gray);
}

.price-period {
    font-family: var(--font-logo);
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 5px;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

/* 注意書きエリア */
.price-footer {
    margin-top: 30px;
}

.price-note {
    font-size: 0.8rem;
    color: #999;
    margin: 0;
}

/* --- スマホ対応 --- */
@media (max-width: 768px) {
    .price-card {
        padding: 40px 20px 30px;
        max-width: 100%; /* 横幅いっぱいに */
    }
    
    .plan-name {
        font-size: 1.4rem;
    }
    
    .amount {
        font-size: 3.5rem; /* スマホでは少し数字を小さく */
    }
    
    .currency {
        font-size: 1.2rem;
    }
}

.company-box { max-width: 700px; margin: 0 auto; background: var(--white); padding: 50px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.company-list .row { display: flex; border-bottom: 2px solid #eee; padding: 20px 0; }
.company-list .row:last-child { border-bottom: none; }
.company-list dt { width: 30%; font-weight: 700; color: var(--primary-color); }
.company-list dd { width: 70%; margin: 0; font-weight: 500; }

.contact-section { background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1920&q=80'); background-size: cover; background-position: center; }
.contact-desc { text-align: center; margin-bottom: 30px; font-weight: 700; }
.form-wrapper { max-width: 700px; margin: 0 auto; }
input[type="text"], input[type="email"], textarea { width: 100%; padding: 15px; margin-bottom: 20px; border: 2px solid #ddd; border-radius: 8px; box-sizing: border-box; font-size: 1rem; transition: 0.3s; background: rgba(255,255,255,0.8); }
input[type="text"]:focus, input[type="email"]:focus, textarea:focus { border-color: var(--primary-color); outline: none; background: #fff; }
input[type="submit"] { background: var(--primary-color); color: var(--white); border: none; padding: 18px 60px; border-radius: 50px; cursor: pointer; font-size: 1.1rem; font-weight: 800; display: block; margin: 40px auto 0; box-shadow: 0 6px 15px rgba(46, 204, 113, 0.4); border-bottom: 4px solid #27ae60; transition: all 0.3s ease; }
input[type="submit"]:hover { transform: translateY(3px); box-shadow: 0 3px 10px rgba(46, 204, 113, 0.4); border-bottom-width: 2px; opacity: 1; }

/* =========================================
   ここからスマホ対応（ハンバーガーメニュー ＋ レイアウト調整）
   ========================================= */
@media (max-width: 768px) {
    /* --- ハンバーガーメニュー制御 --- */
    .hamburger-btn { display: block; }
    
    .hamburger-btn.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
    .hamburger-btn.active span:nth-child(2) { opacity: 0; }
    .hamburger-btn.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

    .site-nav {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: rgba(46, 204, 113, 0.98);
        transition: 0.4s ease;
        display: flex; justify-content: center; align-items: center;
        opacity: 0;
        z-index: 1000;
    }
    .site-nav.active { right: 0; opacity: 1; }
    .site-nav ul { flex-direction: column; gap: 20px; text-align: center; width: 100%; }
    .site-nav a { color: #fff; font-size: 1.2rem; display: block; padding: 10px; }
    .site-nav .nav-btn { background: #fff; color: var(--primary-color); box-shadow: none; padding: 12px 40px; display: inline-block; margin-top: 10px; }

    /* --- コンテンツのレスポンシブ調整 --- */
    .container { padding: 0 20px; box-sizing: border-box; } 
    .section { padding: 60px 0; }

    /* --- Heroセクションのスマホ最適化（はみ出し防止） --- */
    .hero {
        /* 高さが足りない場合は伸びるようにmin-heightに変更 */
        min-height: calc(100dvh - 70px); 
        height: auto; 
        padding-top: 0;
        /* コンテンツが上下中央に来るように */
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* スクロール矢印と被らないように下の余白を確保 */
        padding-bottom: 60px;
        box-sizing: border-box;
    }

    .hero-content {
        width: 100%;
        padding: 0; /* 左右にわずかな余白 */
        box-sizing: border-box;
    }

    /* 文字サイズを大幅に縮小して画面内に収める */
    .hero-catch-en {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .hero-title {
        font-size: 2.2rem; /* 5remから大幅縮小 */
        margin-bottom: 15px;
        line-height: 1.2;
        word-wrap: break-word; /* 長い単語での横はみ出し防止 */
    }

    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 25px;
        display: block;
        width: 100%;
    }

    /* ボタンも小さく */
    .btn-hero {
        padding: 15px 30px;
        font-size: 0.95rem;
        width: auto;
        max-width: 90%;
        white-space: nowrap; /* ボタン内改行を防ぐ */
    }

    /* スクロール矢印の位置調整 */
    .scroll-down {
        bottom: 10px; 
    }
    .scroll-down::after {
        height: 30px; /* 線を短くする */
    }

    /* --- その他の調整 --- */
    .company-list .row { flex-direction: column; }
    .company-list dt { width: 100%; margin-bottom: 8px; font-size: 1.1rem; }
    .company-list dd { width: 100%; font-size: 1rem; line-height: 1.6; }

    .price-card { padding: 40px 20px; width: 100%; box-sizing: border-box; }
    .price-box { margin: 25px 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
    .plan-name { margin-bottom: 0; font-size: 1rem; }
    .price-amount { font-size: 2.5rem; line-height: 1.1; }
    .tax { font-size: 0.8rem; display: block; margin-top: -5px; }

    input[type="submit"] { width: 100%; padding: 15px; box-sizing: border-box; }

    /* サービスリストを2列表示に変更 */
    .service-list {
        grid-template-columns: repeat(2, 1fr); /* 強制的に2列にする */
        gap: 10px; /* カード間の隙間を狭める */
    }

    /* カード自体の調整 */
    .service-item {
        padding: 20px 10px; /* 内側の余白を少し詰めて広く使えるようにする */
        border-bottom-width: 3px; /* 下線も少し細く */
    }

    /* アイコンサイズの調整 */
    .service-icon img {
        width: 50px; /* アイコンを小さくして圧迫感を減らす */
        height: 50px;
        margin-bottom: 10px;
    }

    /* テキストの調整 */
    .service-text h3 {
        font-size: 0.65rem; /* 文字サイズを小さく */
        line-height: 1.4;   /* 行間を詰める */
    }
}

/* --- お問い合わせフォーム（Contact Form 7）用スタイル --- */
.contact-form-box {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.required {
    background: #ff6b6b;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

/* 入力フィールドの共通設定 */
.wpcf7-form-control.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    background: #fdfdfd;
    box-sizing: border-box;
    transition: 0.3s;
}

.wpcf7-form-control.form-control:focus {
    border-color: var(--primary-color);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

/* テキストエリアの調整 */
textarea.wpcf7-form-control.form-control {
    height: auto;
    resize: vertical;
}

/* 送信ボタンのカスタマイズ */
.form-submit-wrap {
    text-align: center;
    margin-top: 40px;
}

.wpcf7-submit {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 18px 80px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(46, 204, 113, 0.4);
    transition: all 0.3s ease;
    width: auto; /* 幅を自動に */
    display: inline-block;
}

.wpcf7-submit:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

/* --- レスポンシブ対応（スマホ） --- */
@media (max-width: 768px) {
    .contact-form-box {
        padding: 25px 20px;
    }
    .wpcf7-submit {
        width: 100%; /* スマホではボタンを全幅に */
        padding: 15px;
    }
}

/* --- 固定ページ（法務関連）用スタイル --- */
.legal-content {
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
    color: var(--text-color);
}

.legal-section {
    margin-bottom: 40px;
}

.legal-content h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 700;
}

.legal-content p {
    line-height: 1.8;
    margin-bottom: 1.5em;
}

.legal-content .highlight {
    font-weight: bold;
    color: #e74c3c; /* 注意を引く赤色 */
    border-bottom: 1px dashed #e74c3c;
}

/* 特定商取引法などのテーブルスタイル */
.tbl-legal {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin-top: 20px;
}

.tbl-legal th,
.tbl-legal td {
    padding: 20px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 0.95rem;
}

.tbl-legal th {
    background: var(--bg-gray);
    width: 30%;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap; /* 項目名は折り返さない */
}

.tbl-legal td {
    background: var(--white);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .legal-content {
        margin: 30px auto;
    }
    
    .tbl-legal th,
    .tbl-legal td {
        display: block;
        width: 100%;
        box-sizing: border-box; /* パディングを含める */
        border-bottom: none;
    }
    
    .tbl-legal th {
        background: #f0f0f0;
        border-bottom: 1px solid #eee;
    }
    
    .tbl-legal td {
        border-bottom: 1px solid #ddd;
        padding: 15px;
    }
    
    .tbl-legal tr:last-child td {
        border-bottom: 1px solid #ddd;
    }
}

/* --- 下層ページ（page.php）用スタイル --- */

.page-main {
    min-height: 80vh; /* コンテンツが少なくてもフッターが浮かないように */
    background: var(--white);
}

/* ページタイトルエリア */
.page-header {
    background: var(--bg-gray);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 60px;
    border-bottom: 1px solid #eee;
}

/* スマホ対応の調整 */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
        margin-bottom: 40px;
    }
    /* --- 全体の文字サイズ調整 --- */
    body {
        font-size: 0.95rem; /* PC(1rem)より少し小さくして1行の情報を増やす */
        line-height: 1.7;   /* 行間を少し詰める（PCは1.8） */
    }

    /* --- セクション見出し（事業概要、提供サービス内容など） --- */
    .section-title {
        font-size: 1.6rem; /* 2.2remから縮小 */
        margin-bottom: 30px; /* 余白を詰める */
    }
    .section-title::after {
        margin-top: 15px; /* 下線との距離を詰める */
        width: 40px;      /* 下線の幅も少し短く */
    }

    /* --- Heroセクションの文字調整（念のため再定義） --- */
    .hero-title {
        font-size: 2.2rem; /* 画面からはみ出さないサイズ感 */
        margin-bottom: 15px;
    }
    .hero-subtitle {
        font-size: 0.9rem; /* サブタイトルも控えめに */
        line-height: 1.6;
    }

    /* --- 法務ページ（テーブル）の文字調整 --- */
    .tbl-legal th,
    .tbl-legal td {
        font-size: 0.9rem; /* テーブル内の文字を少し小さく */
        padding: 12px;     /* 余白も少し詰める */
    }
    
    .legal-content h3 {
        font-size: 1.2rem; /* 規約内の小見出し */
    }
}

/* =========================================
   アニメーション用スタイル
   ========================================= */

/* --- 汎用フェードアップ（下からふわっと） --- */
.js-fadeup {
    opacity: 0;
    transform: translateY(40px); /* 最初は少し下に */
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* 表示状態 */
.js-fadeup.is-show {
    opacity: 1;
    transform: translateY(0);
}

/* --- 順番に表示させるための遅延設定 --- */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* --- Hero背景のゆっくりズーム --- */
.hero-bg {
    /* 既存のstyleに加え、アニメーションを追加 */
    animation: zoomBg 20s linear infinite alternate;
}

@keyframes zoomBg {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); } /* 1.15倍までゆっくり拡大 */
}