/*
Theme Name: GRCEED Theme Geometric Wide
Author: GRCEED
Description: Wide Layout & Split Color Logo
Version: 5.0
*/

/* --- 1. 変数・リセット --- */
:root {
    --primary: #ed882a;       /* オレンジ */
    --navy: #2e3f63;          /* ネイビー */
    --navy-dark: #1b263b;
    --text: #333333;
    --text-gray: #666666;
    --bg-light: #f4f6f9;
    --white: #ffffff;
    --border: #e0e0e0;
    --font-en: 'Montserrat', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-jp);
    color: var(--text);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: var(--white);
    font-feature-settings: "palt";
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; vertical-align: bottom; }
h1, h2, h3, h4 { font-family: var(--font-en); font-weight: 700; margin: 0; line-height: 1.2; }

/* コンテナ幅を広げてワイド感を出す */
.container { max-width: 1320px; margin: 0 auto; padding: 0 4%; }
.center { text-align: center; }
.left { text-align: left; }
.right { text-align: right; }

/* ロゴデザイン調整 */
.header-logo a {
    font-family: var(--font-en);
    font-size: 34px; /* サイズアップ */
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    display: flex;
    align-items: baseline;
}
.logo-gr { color: var(--navy); }   /* 名刺の左側イメージ */
.logo-ceed { color: var(--primary); } /* 名刺の右側イメージ */
.logo-dot { color: var(--primary); margin-left: 2px; }

/* --- 3. メインビジュアル (ワイド＆迫力アップ) --- */
.mv-section {
    position: relative;
    height: calc(100vh - 90px);
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--white);
}

/* 名刺デザインの斜め分割 */
.mv-bg-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 角度と位置を調整してダイナミックに */
    background: linear-gradient(
        110deg, 
        transparent 55%, 
        var(--navy) 55%, 
        var(--navy) 80%, 
        var(--primary) 80%
    );
    z-index: 0;
}

.mv-content { width: 100%; position: relative; z-index: 2; }

.mv-text-box {
    /* 背景の白を少し透過させてなじませる */
    background: rgba(255, 255, 255, 0.85);
    padding: 30px 40px 30px 0; /* 左の余白をなくして左端に寄せる感覚 */
    max-width: 800px; /* テキストエリアを広げる */
    /* ボーダーは削除してシンプルに、あるいは残す */
}

.mv-subtitle {
    display: block;
    font-family: var(--font-en);
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
    font-size: 16px; /* 少し大きく */
}

/* キャッチコピーを巨大化 */
.mv-title {
    font-family: var(--font-jp);
    /* 参考サイトのようにかなり大きく。画面幅に応じて可変 */
    font-size: clamp(3.5rem, 6.5vw, 6rem); 
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 30px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.mv-desc {
    font-size: 1.1rem; /* 少し大きく */
    color: var(--text);
    margin-bottom: 45px;
    line-height: 1.8;
    max-width: 600px;
    font-weight: 500;
}

.btn-primary {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    padding: 18px 50px; /* ボタンも大きく */
    font-weight: bold;
    border-radius: 2px;
    transition: 0.3s;
    letter-spacing: 0.05em;
    border: 1px solid var(--navy);
    font-size: 16px;
}
.btn-primary:hover { 
    background: #fff; 
    color: var(--navy); 
}

/* スクロールダウン */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 5%; /* 位置調整 */
    color: var(--navy);
    font-family: var(--font-en);
    font-size: 13px;
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
    z-index: 2;
    font-weight: 600;
}
.scroll-down::after {
    content: '';
    display: block;
    width: 2px; /* 少し太く */
    height: 50px; /* 長く */
    background: var(--navy);
    margin: 10px auto 0;
    animation: scrollLine 2s infinite;
}
@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; }
}

/* --- 4. セクション共通 --- */
section { padding: 120px 0; } /* 上下の余白を広げてゆとりを持たせる */

.sec-header { margin-bottom: 80px; position: relative; }
.bg-text {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8rem; /* 背景文字も巨大化 */
    font-family: var(--font-en);
    font-weight: 800;
    color: #f0f2f5; 
    z-index: -1;
    line-height: 1;
    white-space: nowrap;
}
.left .bg-text { left: -20px; transform: none; }

.sec-title {
    font-size: 3rem; /* 見出しサイズアップ */
    color: var(--navy);
    margin-bottom: 15px;
}
.sec-jp-title {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: bold;
    letter-spacing: 0.1em;
    margin: 0;
}

/* --- 5. Mission (Philosophy) --- */
.sec-mission { background: var(--white); }
.mission-lead {
    font-size: 2.2rem; /* サイズアップ */
    text-align: center;
    color: var(--navy);
    margin-bottom: 40px;
    line-height: 1.4;
}
.mission-text {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 2;
}
.mission-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-family: var(--font-en);
    font-weight: 800; /* 太く */
    color: var(--navy);
    font-size: 1.5rem;
    flex-wrap: wrap;
}
.circle-item {
    padding: 20px 40px;
    border: 3px solid var(--navy); /* さらに太く */
    border-radius: 60px;
}
.circle-item.result {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
.x-mark, .equal-mark { color: var(--primary); font-size: 2rem; }

/* --- 6. Service (Grid) --- */
.sec-service { background: var(--bg-light); }
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 40px; /* 間隔を広げる */
}
@media (max-width: 768px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
    background: var(--white);
    padding: 50px; /* 内側の余白を大きく */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s;
    border-top: 6px solid transparent; 
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}
.service-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-top: 6px solid var(--primary);
    transform: translateY(-8px);
}

.card-num {
    font-family: var(--font-en);
    font-size: 3.5rem; /* 数字大きく */
    font-weight: 800;
    color: #f0f2f5;
    line-height: 1;
    margin-bottom: 25px;
}
.service-card:hover .card-num { color: rgba(237, 136, 42, 0.15); }

.card-body h3 {
    font-size: 1.6rem; /* タイトル大きく */
    color: var(--navy);
    margin-bottom: 20px;
    font-family: var(--font-jp);
    font-weight: 700;
}
.card-body p {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 0;
    line-height: 1.8;
}
.arrow-icon {
    display: block;
    text-align: right;
    margin-top: 30px;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-15px);
    transition: 0.3s;
}
.service-card:hover .arrow-icon { opacity: 1; transform: translateX(0); }

/* --- 7. News (List) --- */
.sec-news { background: var(--white); }
.news-list-wrap { border-top: 3px solid var(--navy); }
.news-item {
    display: flex;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
    transition: 0.3s;
}
.news-item:hover { background-color: #fff9f0; padding-left: 20px; }

.news-meta {
    display: flex;
    align-items: center;
    width: 220px;
    flex-shrink: 0;
}
.news-meta time {
    font-family: var(--font-en);
    color: var(--text-gray);
    margin-right: 20px;
    font-weight: 500;
}
.news-meta .label {
    font-size: 12px;
    background: var(--navy);
    color: #fff;
    padding: 4px 12px;
    border-radius: 2px;
    font-weight: bold;
}
.news-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}
.btn-text {
    display: inline-block;
    margin-top: 40px;
    font-weight: bold;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
    font-size: 1.1rem;
}
.btn-text:hover { color: var(--navy); border-color: var(--navy); }

/* --- 共通パーツ --- */
.page-header { background: var(--navy); color: #fff; padding: 80px 0; text-align: center; }
.company-table th { width: 30%; /* テーブル見出し幅調整 */ }

/* フッター */
footer { background: var(--navy); color: #fff; padding: 80px 0; text-align: center; }
.footer-info { margin-bottom: 30px; line-height: 2; font-size: 1rem; }
.copyright { opacity: 0.6; font-size: 0.85rem; margin-top: 30px; display: block; font-family: var(--font-en); }

/* アニメーション */
.fade-in { opacity: 0; animation: fadeIn 1s ease forwards; }
.fade-in-up { opacity: 0; animation: fadeInUp 0.8s ease forwards; transform: translateY(30px); }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* レスポンシブ */
@media (max-width: 768px) {
    .header-nav { display: none; }
    .header-action { display: none; }
    .mv-bg-shape { 
        background: linear-gradient(180deg, transparent 60%, var(--navy) 60%, var(--navy) 80%, var(--primary) 80%);
    }
    .mv-text-box { margin-top: 0; background: rgba(255,255,255,0.9); padding: 20px; }
    /* スマホでも大きく */
    .mv-title { font-size: 3rem; }
    .service-grid { grid-template-columns: 1fr; }
    .news-item { flex-direction: column; align-items: flex-start; }
    .news-meta { margin-bottom: 10px; width: 100%; }
    .bg-text { font-size: 4rem; top: -30px; }
    .mission-graphic { flex-direction: column; }
    .x-mark, .equal-mark { transform: rotate(90deg); }
    
    .container { padding: 0 5%; }
}
/* =========================================
   下層ページ用スタイル (追加分)
   ========================================= */

/* --- ページヘッダー (共通) --- */
.page-header {
    background: var(--navy);
    color: #fff;
    padding: 100px 0 80px; /* 余白をたっぷりとる */
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* 背景に薄く社名を入れる装飾 */
.page-header::before {
    content: 'GRCEED';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    font-weight: 800;
    color: rgba(255,255,255,0.03);
    font-family: var(--font-en);
    pointer-events: none;
    white-space: nowrap;
}
.ph-title {
    font-size: 3rem;
    font-family: var(--font-en);
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}
.ph-desc {
    color: var(--primary);
    font-weight: bold;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 2;
}

/* --- 事業紹介ページ (Service) --- */
.service-wrapper { padding: 80px 0; background: var(--white); }
.service-lead {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--navy);
    margin-bottom: 80px;
    line-height: 1.6;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}
/* 偶数番目は左右反転 */
.service-row.reverse { flex-direction: row-reverse; }

.service-img-area {
    flex: 1;
    position: relative;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* イメージ画像の代わりの装飾ボックス */
.s-bg-box {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-light) 0%, #eef1f5 100%);
    position: absolute;
    top: 0; left: 0;
    border-radius: 8px;
    z-index: 0;
}
.s-number {
    font-size: 8rem;
    font-weight: 800;
    font-family: var(--font-en);
    color: var(--navy);
    opacity: 0.1;
    position: relative;
    z-index: 1;
    line-height: 1;
}

.service-text-area { flex: 1; }
.service-text-area h3 {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}
.s-desc {
    font-size: 1rem;
    margin-bottom: 30px;
    color: var(--text);
}
.s-list {
    list-style: none;
    padding: 0;
}
.s-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--navy);
}
.s-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* --- CTA セクション --- */
.cta-section {
    background: var(--navy);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.cta-section h2 { font-size: 2rem; margin-bottom: 20px; color: #fff; }
.cta-section p { margin-bottom: 40px; opacity: 0.8; }
.btn-cta {
    background: var(--primary);
    color: #fff;
    padding: 15px 50px;
    font-weight: bold;
    border-radius: 50px;
    font-size: 1.1rem;
    display: inline-block;
}
.btn-cta:hover { background: #fff; color: var(--primary); }

/* --- 会社概要ページ (Company) --- */
.ceo-section {
    background: var(--bg-light);
    padding: 80px 0;
}
.ceo-box {
    background: #fff;
    padding: 60px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 0 auto;
}
.ceo-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--navy);
}
.ceo-text {
    line-height: 2;
    margin-bottom: 30px;
}
.ceo-name {
    text-align: right;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--navy);
}

.sub-title {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 40px;
}
.company-table-detail {
    width: 100%;
    border-collapse: collapse;
    max-width: 900px;
    margin: 0 auto;
    border-top: 2px solid var(--navy);
}
.company-table-detail th, 
.company-table-detail td {
    padding: 25px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}
.company-table-detail th {
    width: 25%;
    background: #fdfdfd;
    color: var(--navy);
    font-weight: bold;
}

/* --- お知らせページ (News) --- */
.news-wrapper { padding: 80px 0; }
.news-row-large {
    display: flex;
    align-items: center;
    padding: 30px;
    border: 1px solid #eee;
    margin-bottom: 20px;
    border-radius: 4px;
    transition: 0.3s;
    background: #fff;
}
.news-row-large:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transform: translateX(5px);
}
.n-meta {
    width: 180px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.n-meta time { font-family: var(--font-en); color: #888; }
.n-label {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    text-align: center;
    width: fit-content;
}
.n-title {
    font-size: 1.1rem;
    flex: 1;
    margin: 0;
    color: var(--text);
}
.n-arrow { color: var(--primary); font-weight: bold; }

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .service-row, .service-row.reverse { flex-direction: column; text-align: left; gap: 30px; }
    .service-img-area { min-height: 150px; width: 100%; }
    .company-table-detail th, .company-table-detail td { display: block; width: 100%; }
    .company-table-detail th { background: var(--bg-light); }
    .news-row-large { flex-direction: column; align-items: flex-start; gap: 10px; }
    .n-meta { width: 100%; flex-direction: row; align-items: center; gap: 15px; }
    .ph-title { font-size: 2.2rem; }
}
/* 画像用の追加スタイル */
.service-img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠に合わせてトリミング */
    border-radius: 8px;
    position: absolute;
    top: 0; left: 0;
    z-index: 1; /* 数字より後ろ、背景より前 */
}
/* 数字を画像の上に重ねる調整 */
.s-number {
    z-index: 2;
    color: #fff; /* 画像の上なので白文字に */
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* 読みやすく影をつける */
}
/* --- Contact Form 7 Style --- */
.contact-form-wrapper { max-width: 700px; margin: 0 auto; }
.form-row { margin-bottom: 30px; }
.form-row label { display: block; margin-bottom: 8px; font-weight: bold; color: var(--navy); }
.required { color: #e74c3c; font-size: 0.8rem; margin-left: 5px; background: #ffebeb; padding: 2px 6px; border-radius: 4px; }

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background: #f9f9f9;
    transition: 0.3s;
}
.form-control:focus { border-color: var(--primary); background: #fff; outline: none; }

.form-submit { text-align: center; margin-top: 50px; }
.wpcf7-submit {
    background: var(--navy);
    color: #fff;
    padding: 15px 60px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}
.wpcf7-submit:hover { background: var(--primary); transform: translateY(-3px); }
/* --- Scroll Animation --- */
/* 初期状態：少し下に隠して透明に */
.js-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); /* 気持ちいい慣性 */
}

/* 表示状態：元の位置に戻して不透明に */
.js-fade-up.is-active {
    opacity: 1;
    transform: translateY(0);
}

/* 順番に表示させるための遅延設定（必要であればHTML側でクラス追加） */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
/* =========================================
   記事詳細ページ (single.php) 用スタイル
   ========================================= */

/* ヘッダーエリア */
.single-header-area {
    background: var(--bg-light);
    padding: 60px 0 40px;
    margin-bottom: 50px;
    text-align: center;
}

.single-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: #666;
    font-family: var(--font-en);
}
.single-meta .label {
    background: var(--navy);
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 2px;
}

.single-title {
    font-size: 2rem;
    color: var(--navy);
    line-height: 1.4;
}

/* 本文エリアの装飾 */
.entry-content {
    line-height: 1.8;
    color: var(--text);
    font-size: 1rem;
}

/* 本文内の見出し */
.entry-content h2 {
    font-size: 1.6rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    margin: 50px 0 30px;
    color: var(--navy);
}
.entry-content h3 {
    font-size: 1.4rem;
    margin: 40px 0 20px;
    color: var(--navy);
    border-left: 5px solid var(--navy);
    padding-left: 15px;
}
.entry-content h4 {
    font-size: 1.2rem;
    margin: 30px 0 15px;
    font-weight: bold;
}

/* 本文内のリストや画像 */
.entry-content p { margin-bottom: 2em; }
.entry-content ul, .entry-content ol { margin-bottom: 2em; padding-left: 20px; }
.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .single-title { font-size: 1.5rem; }
    .entry-content h2 { font-size: 1.3rem; }
}
/* --- ヘッダーレイアウトの強制修正 --- */

.header-inner {
    display: flex !important;
    justify-content: space-between !important; /* 両端揃えを強制 */
    align-items: center !important;
    width: 100%;
}

/* ロゴエリアの定義 */
.header-logo {
    flex-shrink: 0; /* ロゴが潰れないようにする */
}
.header-logo a {
    display: flex;
    align-items: center;
    gap: 15px; /* 画像間の隙間 */
    text-decoration: none;
}

/* 画像サイズの制限 */
.logo-icon {
    height: 40px;      /* アイコンの高さ */
    width: auto;       /* 横幅はなりゆき */
    display: block;
}

.logo-text-img {
    height: 40px;      /* 社名画像の高さ */
    width: auto;       /* 横幅はなりゆき */
    display: block;
    /* もし画像が大きすぎる場合は以下を調整 */
    max-width: 200px;  
}

/* スマホ対応 */
@media (max-width: 768px) {
    .logo-icon { height: 32px; }
    .logo-text-img { height: 24px; }
}
/* =========================================
   スマホ対応・ハンバーガーメニュー修正
   ========================================= */

/* --- 1. ハンバーガーボタン --- */
.hamburger-btn {
    display: none; /* PCでは非表示 */
    position: relative;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2000; /* 最前面 */
    padding: 0;
}
.hamburger-btn span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--navy);
    position: absolute;
    left: 9px; /* 中央配置 */
    transition: 0.3s;
}
.hamburger-btn span:nth-child(1) { top: 14px; }
.hamburger-btn span:nth-child(2) { top: 21px; }
.hamburger-btn span:nth-child(3) { top: 28px; }

/* メニューが開いた時のボタンの変化（×印になる） */
.hamburger-btn.is-active span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}
.hamburger-btn.is-active span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.is-active span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* --- 2. スマホ時のメニュー表示設定 --- */
@media (max-width: 768px) {
    /* ハンバーガーボタンを表示 */
    .hamburger-btn { display: block; margin-left: auto; }
    
    /* PC用のお問い合わせボタンを隠す（メニュー内に入れるなら不要） */
    .header-action { display: none; }

    /* ナビゲーションをスマホ用に変形 */
    .header-nav {
        display: block !important; /* 強制表示 */
        position: fixed;
        top: 0;
        right: -100%; /* 最初は画面外に隠す */
        width: 70%;
        height: 100vh;
        background: #fff;
        z-index: 1500;
        padding: 80px 30px;
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    /* メニューが開いた時の状態 */
    .header-nav.is-active {
        right: 0;
    }

    /* メニューリストのスタイル */
    .header-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .header-nav ul li {
        border-bottom: 1px solid #eee;
    }
    .header-nav ul li a {
        display: block;
        padding: 20px 0;
        font-size: 16px;
    }

    /* 背景の黒いフィルター */
    .mobile-menu-overlay {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1400;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }
    .mobile-menu-overlay.is-active {
        opacity: 1;
        visibility: visible;
    }
}

/* --- 3. スマホのレイアウト崩れ防止 (横揺れ対策) --- */
html, body {
    overflow-x: hidden; /* 横スクロールを禁止 */
    width: 100%;
}
.container {
    padding: 0 5%; /* 左右の余白を確保 */
    width: 100%;
}
img {
    max-width: 100%; /* 画像が画面からはみ出ないように */
    height: auto;
}

/* ロゴが大きい場合の調整 */
@media (max-width: 480px) {
    .logo-icon { height: 30px !important; }
    .logo-text-img { height: 22px !important; }
    .header-logo a { gap: 8px !important; }
}

/* メインビジュアルの文字サイズ調整 */
@media (max-width: 768px) {
    .mv-title { font-size: 2.5rem; }
    .mv-text-box { padding: 20px; background: rgba(255,255,255,0.9); }
    .scroll-down { display: none; } /* 邪魔なら消す */
}

/* =========================================
   【重要】ヘッダー修正版（PC/スマホ完全対応）
   ========================================= */

/* --- ベース（PC表示） --- */
.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    height: 90px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    height: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ロゴ */
.header-logo { flex-shrink: 0; z-index: 1001; }
.header-logo a { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { height: 40px; width: auto; }
.logo-text-img { height: 30px; width: auto; }

/* PCメニュー */
.header-nav { display: block; margin-left: auto; margin-right: 30px; }
.header-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.header-nav ul li a {
    font-size: 15px; font-weight: 600; color: var(--navy); text-decoration: none; position: relative;
}
.header-nav ul li a:hover { color: var(--primary); }

/* PCボタン */
.header-action { display: block; }

/* ハンバーガーボタン（PCでは隠す） */
.hamburger-btn { display: none; }


/* --- スマホ・タブレット表示（768px以下） --- */
@media (max-width: 768px) {
    .site-header { height: 70px; }
    
    /* ロゴサイズ調整 */
    .logo-icon { height: 32px; }
    .logo-text-img { height: 24px; }
    
    /* PC用要素を隠す */
    .header-action { display: none; }
    
    /* ハンバーガーボタンを表示 */
    .hamburger-btn {
        display: block;
        width: 44px; height: 44px;
        position: relative;
        background: none; border: none; padding: 0;
        z-index: 2000; cursor: pointer;
        margin-left: auto; /* 右端に寄せる */
    }
    .hamburger-btn span {
        display: block; width: 26px; height: 2px; background: var(--navy);
        position: absolute; left: 9px; transition: 0.3s;
    }
    .hamburger-btn span:nth-child(1) { top: 14px; }
    .hamburger-btn span:nth-child(2) { top: 21px; }
    .hamburger-btn span:nth-child(3) { top: 28px; }

    /* ハンバーガーのアニメーション */
    .hamburger-btn.is-active span:nth-child(1) { top: 21px; transform: rotate(45deg); }
    .hamburger-btn.is-active span:nth-child(2) { opacity: 0; }
    .hamburger-btn.is-active span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

    /* スマホメニュー本体 */
    .header-nav {
        position: fixed;
        top: 0; right: -100%; /* 画面外へ */
        width: 80%; height: 100vh;
        background: #fff;
        padding: 80px 30px;
        transition: 0.4s ease;
        z-index: 1500;
        margin: 0; /* PC用のマージン解除 */
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    .header-nav.is-active { right: 0; } /* 表示 */

    /* スマホメニュー内のリスト */
    .header-nav ul { flex-direction: column; gap: 0; }
    .header-nav ul li { border-bottom: 1px solid #eee; width: 100%; }
    .header-nav ul li a { display: block; padding: 20px 0; font-size: 16px; }

    /* 背景フィルター */
    .mobile-menu-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5); z-index: 1400;
        opacity: 0; visibility: hidden; transition: 0.3s;
    }
    .mobile-menu-overlay.is-active { opacity: 1; visibility: visible; }
}
/* --- お問い合わせボタンのデザイン（追記） --- */
.btn-contact {
    display: inline-block;
    background: var(--navy); /* 通常時はネイビー */
    color: #fff;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    line-height: 1;
    transition: 0.3s;
    white-space: nowrap; /* 文字の折り返し防止 */
}

.btn-contact:hover {
    background: var(--primary); /* ホバー時はオレンジ */
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(237, 136, 42, 0.3);
}

/* スマホではボタンを非表示にする設定を念のため再定義 */
@media (max-width: 768px) {
    .header-action { display: none !important; }
}
/* =========================================
   ヘッダーサイズ拡大カスタマイズ
   ========================================= */

/* 1. ヘッダー全体の高さを少し広げる */
.site-header {
    height: 100px; /* 元90px -> 100px */
}
/* メインコンテンツの開始位置も合わせる */
main {
    margin-top: 100px;
}

/* 2. ロゴ画像を大きく */
.logo-icon {
    height: 52px; /* 元40px -> 52px */
}
.logo-text-img {
    height: 38px; /* 元30px -> 38px */
}

/* 3. メニューの文字を大きく */
.header-nav ul li a {
    font-size: 17px; /* 元15px -> 17px */
    font-weight: bold; /* 太くして視認性アップ */
}

/* 4. お問い合わせボタンを大きく */
.btn-contact {
    padding: 15px 35px; /* 余白を広げる */
    font-size: 16px;    /* 文字サイズアップ */
    border-radius: 6px; /* 角丸を少し大きく */
}

/* スマホ表示時の微調整（ロゴが大きすぎないように） */
@media (max-width: 768px) {
    .site-header { height: 80px; }
    main { margin-top: 80px; }
    .logo-icon { height: 40px; }
    .logo-text-img { height: 28px; }
}
/* =========================================
   スマホメニュー内のボタン調整
   ========================================= */

/* PC画面：このボタンは隠す */
.sp-menu-btn {
    display: none;
}

/* スマホ画面：表示させてデザインを整える */
@media (max-width: 768px) {
    .sp-menu-btn {
        display: block;        /* 表示する */
        margin-top: 30px;      /* メニューリストとの隙間 */
        text-align: center;    /* 中央揃え */
    }

    /* スマホメニュー内のボタンを大きく目立たせる */
    .sp-menu-btn .btn-contact {
        display: block;        /* 横幅いっぱいに */
        width: 100%;
        padding: 15px 0;       /* 上下の厚み */
        font-size: 16px;
        background: var(--primary); /* 目立つようにオレンジにする */
        color: #fff;
    }
}