/* --- 変数設定 --- */
:root {
    --primary-color: #002B5B;
    --accent-color: #B8944F;
    --text-color: #333333;
    /* 既存サイトに合わせた背景色 */
    --bg-offwhite: #f8f9fa;   /* 非常に淡いグレー（セクションの切り替え用） */
}

/* 会社概要やプライバシーポリシーのメインエリア */
main {
    padding-top: 140px; /* ヘッダーに被らないよう、上側にしっかり余白を作る */
    background-color: #ffffff;
}

/* --- 基本設定 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ヘッダー --- */
.navbar .container {
    display: flex;
    justify-content: space-between; /* これでロゴは左、メニューは右になります */
    align-items: center;
    width: 100%;
    max-width: 1100px; /* コンテナの最大幅 */
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-list li {
    margin-left: 30px;
}

/* 会社概要などの見出し（h2）を紺色にする */
h2 {
    color: #002B5B !important; /* テザリウム様のメインカラー（紺色） */
}

/* ヘッダーのナビゲーションリンクの色を調整 */
.nav-list li a {
    color: #333 !important; /* 白ではなく、濃いグレーにして読みやすくする */
}

/* 「お問い合わせ」ボタンの装飾を完全に消す */
.nav-list li a.btn-contact {
    background-color: transparent !important; /* 背景を透明に */
    padding: 0 !important;                     /* 余計な余白を消す */
    color: #333 !important;                    /* 文字色を合わせる */
}

/* --- ヒーローセクション --- */

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

/* --- Our Mission (白背景) --- */
.mission-section {
    padding: 120px 0;
    text-align: center;
    background-color: var(--bg-white); /* ここは白 */
}
.mission-en {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--accent-color);
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}

.mission-jp {
    font-family: 'Noto Serif JP', serif;
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.mission-description p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

/* 最後の一文（使命です）を強調し、大きくする */
.mission-highlight {
    display: block;            /* 1行として独立させる */
    font-family: 'Noto Serif JP', serif; /* 明朝体で高級感を出す */
    font-size: 60px;           /* サイズを大きく（元の16pxから大幅アップ） */
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 50px;          /* 上の文章との間隔を広げる */
    line-height: 1.8;
    letter-spacing: 0.1em;     /* 文字の間隔を広げて優雅に */
}   

/* --- Service (淡いグレー背景) --- */
.service-section {
    padding: 100px 0;
    background-color: var(--bg-offwhite); /* ここをオフホワイトに */
    text-align: center;
}

.service-en {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--accent-color);
    letter-spacing: 0.3em;
    display: block;
    margin-bottom: 15px;
}

.service-jp {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 60px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white); /* 背景がグレーなので、カードの白が引き立ちます */
    background: #fff;
    padding: 0; /* カード自体の余白をゼロに */
    border: 1px solid #eee;
    overflow: hidden;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.service-img {
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    transition: 0.6s ease;
}

.service-card:hover .img-placeholder {
    transform: scale(1.05);
}

.service-content {
    padding: 35px 25px;
    text-align: center;
}

.service-content h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 15px;
    position: relative;
}

.service-content h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

/* --- アニメーション --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: 1.2s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- スマホ対応 --- */
.menu-toggle {
    display: none; /* デスクトップでは隠す */
    flex-direction: column;
    justify-content: space-between; /* 線を均等に上下に配置 */
    width: 30px;   /* ボタンの横幅 */
    height: 22px;  /* ここが重要！ボタンに高さを出すことで線が分離します */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto; /* 右側に寄せる */
}
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* ここで flex にする */
    }

    /* ロゴとメニューの間にしっかり距離を作る */
    .navbar .container {
        justify-content: space-between !important;
    }
    .bar { width: 25px; height: 2px; background: #333; }
    
    .mission-highlight {
        font-size: 20px;       /* スマホで読みやすいサイズ */
        margin-top: 30px;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 80px; left: 0; width: 100%;
        background: #fff; flex-direction: column;
        padding: 20px; box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav-list.active { display: flex; }
    .nav-list li { margin: 15px 0; }

    .hero h1 { font-size: 28px; }
    .mission-jp { font-size: 24px; }
    .service-img { height: 300px; }
}

footer { padding: 40px 0; text-align: center; color: #999; font-size: 12px; }

/* 他のすべての設定を無視して文字を大きくする（!importantを使用） */
.mission-highlight {
    display: block !important;
    font-size: 32px !important; /* 思い切ってかなり大きく設定しました */
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    margin-top: 50px !important;
    line-height: 1.6 !important;
    font-family: 'Noto Serif JP', serif !important;
}

/* スマホでもしっかり大きく表示 */
@media (max-width: 768px) {
    .mission-highlight {
        font-size: 24px !important;
        margin-top: 30px !important;
    }
}

/* ロゴをクリックしたときにホームに戻れるように */
.logo a {
    color: var(--primary-color);
    text-decoration: none;
}

/* 会社概要のセクション全体を中央寄せ */
.company-wrapper {
    margin: 60px auto 0;
    max-width: 900px; /* 表の最大幅を制限して中央に置く */
    display: flex;
    flex-direction: column;
    align-items: center; /* 中の要素を中央に */
}

/* テーブルを中央に配置し、見た目を整える */
.company-table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    border-top: 2px solid var(--primary-color);
    text-align: left; /* 文字自体は左寄せが見やすい */
}

/* 項目（左側）の設定 */
.company-table th {
    width: 250px; /* 項目の幅を揃える */
    padding: 25px 30px;
    background-color: var(--bg-offwhite);
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 1px solid #eee;
    vertical-align: top; /* 文字が複数行になっても上に揃える */
}

/* 内容（右側）の設定 */
.company-table td {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    color: #444;
    line-height: 2; /* 行間を広げて読みやすく */
}

/* 地図も中央に配置 */
.company-map {
    width: 100%;
    margin-top: 60px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* スマホ用：縦並びにして見やすく */
@media (max-width: 768px) {
    .company-table th {
        width: 100%;
        display: block;
        padding: 20px 20px 5px;
        background-color: transparent;
        color: var(--accent-color);
    }
    .company-table td {
        display: block;
        width: 100%;
        padding: 5px 20px 20px;
    }
}


/* ヘッダー：透過させてヒーローの上に重ねる */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed; /* 固定は維持 */
    width: 100%;
    background: transparent; /* 背景を透明にする */
    z-index: 1000;
    box-shadow: none; /* 最初は影を消す */
    transition: background 0.3s; /* スクロール時に色を変えるための準備 */
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #eee; /* 薄い線を入れて境目をはっきりさせる */
    padding: 15px 0;
}

/* ヒーローセクション：ヘッダーの裏側から開始させる */
/* ヒーローセクション全体：画面いっぱいに広げる */
.hero {
    position: relative;
    width: 100%;       /* 親に依存せず100% */
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* スライダー本体：heroの枠いっぱいに広げる */
.hero-swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 隙間なく動画を埋める */
}

/* 文字を動画の上に中央配置 */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 完全に真ん中へ */
    z-index: 10;                     /* 動画より手前 */
    width: 90%;                      /* スマホで端まで行きすぎないように */
    text-align: center;
    color: #ffffff !important;       /* 絶対に白 */
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* 文字に影をつけて読みやすく */
}

.hero-content h1 {
    font-size: clamp(24px, 5vw, 48px); /* 画面サイズに合わせて自動調整 */
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* 動画の上に被せる暗いフィルター */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 40%の黒。これで文字が消えなくなります */
    z-index: 2;
}
/* ロゴとメニューの文字色を白くする（紺背景で見えるように） */
.navbar .logo,
.nav-list a {
    color: var(--white);
}

/* お問い合わせボタンの調整 */
.btn-contact {
    background-color: var(--accent-color);
    color: var(--white) !important;
}


.footer {
    background-color: #f8f9fa; /* 薄いグレー、または紺色にするなら var(--primary-color) */
    padding: 80px 0 0;
    color: #333;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 60px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-address {
    font-style: normal;
    line-height: 1.8;
    color: #666;
    font-size: 14px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2列で並べる */
    gap: 15px 40px;
}

.footer-nav a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    background-color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #eee;
}

/* スマホ対応：縦に並べる */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    .footer-nav ul {
        grid-template-columns: 1fr; /* スマホでは1列 */
    }
}

/* すべてのリンクからアンダーラインを消し、色を固定する */
a {
    text-decoration: none !important; /* 下線を強制的に消す */
    color: inherit;                   /* 親要素の色を引き継ぐ */
}

/* ナビゲーション（ヘッダー・フッター）の文字設定 */
.nav-list li a, 
.footer-nav li a {
    text-decoration: none !important;
    color: #333 !important;           /* 読みやすい濃いグレー */
    font-weight: 500;
    transition: color 0.3s;
}

/* マウスを乗せた時だけ色を変える（下線は出さない） */
.nav-list li a:hover,
.footer-nav li a:hover {
    color: #002B5B !important;        /* 会社のロゴに近い紺色など */
}

/* トップページのヒーローエリア内の文字は、常に「白」にする */
.hero-content h1, 
.hero-content p {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* 影をつけて浮き立たせる */
}

/* ヒーローエリアが表示されない（真っ白）場合、高さの設定を再確認 */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* 画面いっぱいの高さ */
    min-height: 600px;
    background-color: #000; /* 動画が読み込まれるまでの背景を黒にする */
}

/* 共通のリンク設定 */
a {
    text-decoration: none !important;
    transition: 0.3s;
}

/* ヘッダーのナビゲーション（トップページでは動画の上なので白くしたい） */
.navbar .nav-list li a {
    color: #ffffff; /* 基本は白 */
}

/* ヒーローセクションを正しく表示させる */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* 画面いっぱいの高さ */
    overflow: hidden;
    background: #000; /* 動画が出る前の予備色 */
}

/* 動画を画面いっぱいに広げる */
.hero-swiper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ヘッダーの設定（トップページでは透過、他では白にするため） */
.navbar {
    position: fixed; /* 常に上に固定 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* 確実に一番上にくるようにする */
    padding: 20px 0;
    background: transparent; /* 最初は透明 */
    transition: background 0.3s;
}

/* トップページの文字（動画の上）は強制的に「白」にする */
.hero-content h1 {
    color: #ffffff !important;
    font-size: clamp(20px, 4vw, 40px);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
/* すべてのaタグから下線を消し、基本の文字色を紺か黒にする */
a {
    text-decoration: none !important;
}

.nav-list li a {
    color: #ffffff; /* indexでは動画の上なので白 */
    font-weight: 500;
    transition: opacity 0.3s;
}

/* 会社概要などの「背景が白いページ」だけ文字を黒くする指定 */
/* (各ページのbodyタグに class="white-bg" とつけると管理しやすいです) */
.hero {
    position: relative; /* 固定ではなく「相対的」にする */
    z-index: 1;
}

.mission-section, .service-section {
    position: relative;
    z-index: 10; /* 動画より数字を大きくして手前に出す */
    background: #ffffff; /* 背景を白に指定 */
}
/* 背景が白いセクションの文字色を固定 */
.mission-section, .service-section {
    color: #333 !important;
}

.mission-section h2, .service-section h2 {
    color: #002B5B !important; /* 紺色 */
}

.mission-section, .service-section {
    position: relative;
    z-index: 10;      /* 動画(z-index: 1)より数字を大きくして手前に出す */
    background: #fff; /* 背景を白にして透けないようにする */
}

/* 背景が白い場所の文字を強制的に黒くする */
.mission-section, .service-section {
    color: #333 !important;
}

.mission-section h2, .service-section h2, .service-section h3 {
    color: #002B5B !important; /* 紺色（ロゴの色） */
}

/* フェードイン待ちで消えているのを解除する */
.fade-in {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* 1. ヘッダーの境界線をなくし、位置を調整 */
.navbar {
    border-bottom: none !important; /* 境界線を消す */
    box-shadow: none !important;   /* もし影がついていたらそれも消す */
    margin-bottom: 0 !important;   /* 下側の外余白をゼロに */
    padding-bottom: 0 !important;  /* 下側の内余白をゼロに */
    background-color: #fff;        /* 背景が白であることを確認 */
}

/* 2. ヒーローセクション（動画エリア）の上側の隙間を埋める */
.hero {
    margin-top: 0 !important;     /* 上側の外余白をゼロに */
    padding-top: 0 !important;    /* 上側の内余白をゼロに */
    display: block;               /* ブロック要素として正しく配置 */
}

/* 3. Swiper自体の余白もリセット */
.hero-swiper {
    margin: 0 !important;
    padding: 0 !important;
}

/* 4. もしmainタグに余白がついていたらリセット */
main {
    padding-top: 0 !important;
}

/* ナビゲーション全体のコンテナ */
.navbar .container {
    display: flex;
    justify-content: space-between; /* これでロゴが左、メニューが右になります */
    align-items: center;            /* 上下の中心を揃える */
    max-width: 1200px;              /* 寄せすぎたくない場合はここで調整 */
    margin: 0 auto;
    padding: 0 20px;                /* 画面端との適度な余白 */
}

/* ロゴエリアの設定 */
.logo {
    font-weight: bold;
    font-size: 24px;
    letter-spacing: 2px;
    /* 画像になった時もここが基準になります */
    display: flex;
    align-items: center;
}

/* メニューエリア */
.nav-list {
    display: flex;
    list-style: none;
    gap: 30px; /* メニュー同士の間隔 */
    margin: 0;
    padding: 0;
}

/* サイト全体の背景色 */
body {
    background-color: #F5EBE0 !important; /* 画像のような温かみのあるベージュ */
    margin: 0;
    color: #333;
}

/* ヘッダーの背景色 */
.navbar {
    background-color: #F5EBE0 !important; /* bodyと同じ色にして一体感を出す */
    border-bottom: none !important;
}

/* お問い合わせボタンをオレンジにする（画像に合わせる場合） */
.btn-contact {
    background-color: #F3A000 !important; /* 鮮やかなオレンジ */
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 4px;
    font-weight: bold;
}
.navbar .container {
    display: flex;
    justify-content: space-between; /* 左右に振り分け */
    align-items: center;
    padding: 15px 40px; /* 左右に少し余裕を持たせる */
    max-width: 100%;    /* 画面端まで広げる */
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 40px; /* 項目間の距離 */
    list-style: none;
}

.nav-list li a {
    color: #4A4A4A; /* 文字色は真っ黒より少し柔らかいグレーが合います */
    text-decoration: none;
    font-size: 16px;
}

/* 1. サイト全体のベース設定 */
html, body {
    margin: 0;
    padding: 0;
    background-color: #FDF5E6 !important; /* 画像に近い温かみのあるベージュ */
    color: #4A4A4A; /* 文字色は真っ黒より少し柔らかい色 */
    font-family: 'Noto Sans JP', sans-serif;
}

/* 2. ヘッダーを背景色に合わせる */
.navbar {
    background-color: #FDF5E6 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px 0;
}

/* 3. メインコンテンツと各セクションの背景色を一括統一 */
main, 
section, 
.mission-section, 
.service-section, 
.bg-light {
    background-color: #FDF5E6 !important;
    border: none !important;
    margin: 0 !important;
}

/* 4. フッターも同じ色で統一 */
.footer {
    background-color: #FDF5E6 !important;
    border-top: 1px solid rgba(0,0,0,0.05); /* ほんの少しだけ境目を入れる場合 */
    padding: 40px 0;
}


/* 6. フェードイン等のアニメーションで消えないようにする */
.fade-in {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* 7. テキストが白くなっていないか確認 */
h1, h2, h3, p, a {
    color: #4A4A4A !important;
}

/* フッター全体と、その下のコピーライトエリアも一括で変更 */
.footer, 
.footer-bottom, 
.copyright-section {
    background-color: #FDF5E6 !important; /* 他と同じベージュ色 */
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important; /* 境目の線が必要なければ none にしてください */
    color: #4A4A4A !important;
    padding: 20px 0 !important;
}

/* もし最下部に余白や別の背景色が入っている場合の対策 */
html {
    background-color: #FDF5E6 !important;
}
/* すべてのページのメインコンテンツにヘッダー分の余白を作る */
main {
    padding-top: 100px !important; /* ヘッダーの高さに合わせて調整（80px〜120px程度が目安） */
}

/* 会社概要やプライバシーポリシーのタイトルの位置をさらに微調整 */
.company-section, 
.privacy-section,
.mission-section {
    margin-top: 0 !important;
    padding-top: 40px !important; /* ヘッダー下のゆとり */
}

/* トップページの動画エリア（hero）だけは、隙間を空けたくない場合の設定 */
/* もしトップの動画とヘッダーの間に隙間ができてしまったら、以下を有効にしてください */
/*
.hero {
    margin-top: -100px !important; 
}
*/
h2.mission-jp, h1.page-title {
    line-height: 1.5;
    display: block;
}
/* 共通のページ見出しスタイル */
.page-en {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #B89150; /* 会社概要と同じゴールド系 */
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.page-jp {
    font-size: 2rem;
    font-weight: 700;
    color: #002B5B; /* ロゴに近い濃紺 */
    margin-bottom: 50px;
    position: relative;
}

/* プライバシーポリシーの縦線デザインを調整 */
/* もし青い縦線が不要なら、この border-left を消してください */
.privacy-section .page-jp {
    border-left: 4px solid #002B5B; 
    padding-left: 15px;
    line-height: 1.2;
}

/* セクション全体の余白調整（ヘッダーと被らないように） */
.privacy-section {
    padding-top: 120px; /* ヘッダーの高さに合わせて調整 */
    padding-bottom: 80px;
}

/* すべてのページのメインエリアに十分な余白を作る */
main {
    padding-top: 140px !important; /* ヘッダーとの重なりを防ぐ（120px〜150pxで調整） */
}

/* プライバシーポリシーや会社概要のセクション */
.privacy-section, 
.company-section {
    padding-top: 20px !important; /* mainのpaddingと合わせて、見出しの上の余白を調整 */
}

/* 見出し（日本語）のスタイルと下の余白 */
.page-jp {
    font-size: 2rem;
    font-weight: 700;
    color: #002B5B;
    margin-bottom: 80px !important; /* 本文との間隔を大きく広げる（高級感が出ます） */
    display: block;
    line-height: 1.4;
}

/* 本文エリアの上部にも少し余白を追加 */
.privacy-content, 
.company-content {
    margin-top: 40px;
}
/* コンテンツの横幅を制限して中央に寄せる */
.container {
    max-width: 1000px !important; /* 横幅を1000pxに制限（お好みで1100px等に調整可） */
    margin-left: auto !important;  /* 左の余白を自動調整 */
    margin-right: auto !important; /* 右の余白を自動調整 */
    padding-left: 20px !important; /* スマホ表示などで端がくっつかないように */
    padding-right: 20px !important;
}

/* ヘッダーだけは横いっぱいに広げたい場合の設定 */
.navbar .container {
    max-width: 1300px !important; /* ヘッダーは少し広めにしておくとバランスが良いです */
}

/* 本文テキストの行間と余白を整える */
.privacy-content p,
.company-content p {
    line-height: 1.8;      /* 行間を広げて読みやすく */
    margin-bottom: 20px;   /* 段落同士の隙間 */
    text-align: justify;   /* 文章の右端を揃える */
}

/* 見出し（個人情報の管理など）との間隔 */
.privacy-content h2,
.privacy-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #002B5B;
}
/* 1. 全ページのメインエリアの開始位置を強制的に下げる */
main {
    /* ヘッダーの高さ＋ゆとり分として、これくらい空けると確実です */
    padding-top: 180px !important; 
}

/* 2. コンテンツ幅を読みやすい広さに固定し、中央に寄せる */
.container {
    max-width: 1100px !important; /* 横幅を制限 */
    margin-left: auto !important;  /* 左余白を自動で中央に */
    margin-right: auto !important; /* 右余白を自動で中央に */
    padding-left: 30px !important; /* 画面端の余白 */
    padding-right: 30px !important;
}

/* 3. ヘッダーだけは横幅いっぱい（または広め）を維持 */
.navbar .container {
    max-width: 1400px !important;
}

/* 4. 見出し（日本語タイトル）のデザインと下の余白 */
.page-jp {
    font-size: 2rem;
    font-weight: 700;
    color: #002B5B;
    margin-bottom: 60px !important; /* 見出しと本文の間隔 */
    display: block;
    line-height: 1.4;
    border-left: 4px solid #002B5B; /* 青いアクセント線 */
    padding-left: 15px;
}

/* 5. 英語の小見出し（COMPANY PROFILEなど） */
.page-en {
    display: block;
    font-size: 0.9rem;
    color: #B89150; /* ゴールド系 */
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

/* 1. 全ページのメインエリアを確実に下げる */
/* paddingではなくmarginを使うことで、物理的にヘッダー分のスペースを確保します */
main {
    margin-top: 40px !important; 
    display: block !important;
    clear: both !important;
}

/* 2. ヘッダー自体の高さを固定する（ここが重要です） */
.navbar {
    height: 60px !important; /* ヘッダーの高さ */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background-color: #FDF5E6 !important; /* ベージュ */
    display: flex !important;
    align-items: center !important;
}

/* 3. トップページの動画（hero）だけは、ヘッダーに重ねたい場合の設定 */
/* もしトップページの動画とヘッダーの間に隙間が空きすぎたら、以下のコメントアウトを外してください */

body.home main {
    margin-top: 0 !important;
}

/* 1. メインエリアの押し下げ距離を減らす */
main {
    /* 180pxだと広すぎたので、120px〜140pxあたりで微調整 */
    margin-top: 90px !important; 
}

/* 2. セクション内の上の余白も削る */
.privacy-section, 
.company-section {
    padding-top: 0 !important; /* セクション自体の余白をゼロにして、mainのmarginだけで制御する */
}

/* 3. 見出しの上の余白を微調整（もしこれでも広い場合） */
.page-en {
    margin-top: 0 !important;
}

/* 1. ヘッダー自体の高さを少し低くしてスッキリさせる */
.navbar {
    height: 80px !important; /* 高すぎた場合はここを調整 */
    background-color: #FDF5E6 !important;
    display: flex !important;
    align-items: center !important;
}

/* 2. メインエリアの押し下げを「ヘッダーの高さ＋少しの余白」にする */
main {
    margin-top: 80px !important; /* navbarのheightと同じ数値にすると隙間ゼロになります */
    padding-top: 20px !important; /* ここでヘッダーと見出しの「微調整」をします */
}

/* 3. 見出し（英語）の上の余白を完全に消す */
.page-en {
    margin-top: 0 !important;
    padding-top: 0 !important;
    line-height: 1 !important;
}

/* 4. 見出し（日本語）の上の余白も消す */
.page-jp {
    margin-top: 5px !important; 
}

/* 5. トップページ（index.html）の動画の隙間を埋める */
.hero {
    margin-top: -80px !important; /* mainのmargin-topと同じ数値をマイナスで入れる */
}

/* 画像エリアのサイズを固定し、中身を綺麗に見せる */
.service-img {
    width: 100%;
    height: 200px; /* 画像を表示したい高さ */
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* これを入れると、枠に合わせて自動でトリミングされます */
    transition: transform 0.3s ease; /* ホバー時に動かすための準備 */
}

/* ついでに：マウスを乗せた時に画像を少し大きくすると高級感が出ます */
.service-card:hover .service-img img {
    transform: scale(1.1);
}

/* 元々あった placeholder の文字用スタイルがあれば削除または無視してOKです */
.img-placeholder {
    display: none; 
}

/* 画像を枠いっぱいに表示し、形を整える */
.service-img {
    width: 100%;
    height: 250px; /* 画像を表示したい高さ（お好みで調整） */
    overflow: hidden;
    background: none !important; /* 元のグレー背景を消す */
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像を歪ませずに枠いっぱいに広げる魔法のコード */
    display: block;
}

/* 元々あった placeholder の文字と背景を消す */
.img-placeholder {
    display: none !important;
}

/* カード全体のデザイン調整（高級感を出す） */
.service-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px); /* マウスを乗せた時に少し浮かせる */
}   

/* 見出しの横の線をオレンジに変更 */
.page-jp {
    /* ...既存の設定はそのまま... */
    border-left: 5px solid #F3A000 !important; /* 青からオレンジ(#F3A000)に変更 */
    padding-left: 15px;
    display: block;
    line-height: 1.4;
}

/* もし「事業内容」専用のクラス名を使っている場合はこちら */
.service-jp {
    border-left: 5px solid #F3A000 !important;
    padding-left: 15px;
}

.service-en, .page-en {
    color: #F3A000 !important; /* 英語のサブタイトルもオレンジに */
    font-weight: bold;
    letter-spacing: 0.1em;
}

/* --- 今風・高級感のあるテーブルデザイン --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 60px;
}

/* 枠線をすべて消し、上下の区切りだけにする */
table th, 
table td {
    padding: 30px 20px !important; /* 余白をさらにたっぷり取る */
    background-color: transparent !important;
    border: none !important; /* すべての線を一度消す */
    border-bottom: 1px solid #E0D6C8 !important; /* 下線だけ、非常に細く・薄く引く */
    vertical-align: middle;
}

/* 左側の見出し：色を濃紺にし、文字の間隔を広げる */
table th {
    width: 25%;
    color: #002B5B;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em; /* 文字の間隔を広げて高級感を出す */
    text-align: left;
}

/* 右側の内容：フォントを少し細く、色は柔らかい黒に */
table td {
    color: #555;
    font-weight: 400;
    font-size: 1rem;
}

/* 最後の行の下線だけ少し色を濃くして締める */
table tr:last-child td,
table tr:last-child th {
    border-bottom: 2px solid #D1C4B5 !important;
}

/* スマホ表示の時は、余白を少し詰める */
@media (max-width: 768px) {
    table th, table td {
        padding: 20px 10px !important;
        font-size: 0.9rem;
    }
}

/* 左側のオレンジ色の線を消す */
.page-jp, .service-jp {
    border-left: none !important; /* 線を消す */
    padding-left: 0 !important;   /* 線がなくなった分、左の余白もゼロにする */
    
    /* 文字を中央寄せにする場合は以下を追加（お好みで） */
    /* text-align: center; */
}

/* 英語のサブタイトル（Service）も中央に寄せたい場合 */
.page-en, .service-en {
    text-align: center;
    display: block;
}

/* SUMOU Live JAPAN 専用ヒーロー */
.slj-hero {
    background: linear-gradient(rgba(0,43,91,0.6), rgba(0,43,91,0.6)), url('images/hero-slj.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    text-align: center;
    color: #fff;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
}

/* 会社概要と同じテーブルスタイルを適用（課題や比較表に） */
.slj-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
}

.slj-table th, .slj-table td {
    padding: 25px;
    border-bottom: 1px solid #E0D6C8 !important;
    background-color: transparent !important;
}

.slj-table th {
    color: #002B5B;
    width: 30%;
    text-align: left;
}

/* 導入前後の比較などの「今風」デザイン */
.process-comparison {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.process-box {
    flex: 1;
    background: #FDF5E6; /* ベージュ背景 */
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #D1C4B5;
}

/* --- SUMOU Live JAPAN 専用追加スタイル --- */

.slj-hero {
    background-color: #FDF5E6;
    padding: 100px 0;
    text-align: center;
    border-bottom: 1px solid #D1C4B5;
}

.hero-title {
    font-size: 2.5rem;
    color: #002B5B;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-sub {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #4A4A4A;
}

.btn-orange {
    display: inline-block;
    background-color: #F3A000;
    color: #fff;
    padding: 15px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-orange:hover {
    background-color: #D68D00;
}

.section {
    padding: 80px 0;
}

.concept-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 2;
    text-align: center;
}

.orange-text {
    color: #F3A000 !important;
    margin-bottom: 15px;
}

.list-style {
    list-style: none;
    padding-left: 0;
}

.list-style li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.list-style li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: #F3A000;
    font-size: 0.8rem;
}

.strength-item {
    flex: 1;
    padding: 20px;
}

.strength-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* --- SLJ 完コピスタイル --- */
.bg-beige { background-color: #FDF5E6; }
.bg-dark { background-color: #002B5B; }

.slj-hero-full {
    padding: 120px 0;
    background: linear-gradient(rgba(253, 245, 230, 0.9), rgba(253, 245, 230, 0.9)), url('images/hero-bg.jpg');
    background-size: cover;
    text-align: center;
}

.slj-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.slj-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.slj-card h3 { color: #F3A000; margin-bottom: 20px; font-size: 1.2rem; }
.slj-card ul { list-style: none; font-size: 0.9rem; color: #555; }
.slj-card li { margin-bottom: 12px; position: relative; padding-left: 15px; }
.slj-card li::before { content: "・"; position: absolute; left: 0; color: #F3A000; }

/* 実績エリア */
.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 40px 0;
}
.stats-num {
    display: block;
    font-size: 3rem;
    font-family: 'Montserrat', sans-serif;
    color: #F3A000;
    font-weight: 700;
}

/* プロセス比較 */
.process-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}
.process-box { flex: 1; padding: 40px; border-radius: 8px; text-align: center; }
.process-box.before { background: #eee; color: #888; }
.process-box.after { background: #FDF5E6; border: 2px solid #F3A000; color: #002B5B; }

/* 流れのステップ */
.flow-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}
.step { text-align: center; position: relative; flex: 1; }
.step span {
    width: 50px; height: 50px; background: #002B5B; color: #fff;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; margin: 0 auto 15px; font-weight: bold;
}

/* FAQテーブル */
.slj-faq-table { width: 100%; border-collapse: collapse; }
.slj-faq-table th, .slj-faq-table td {
    padding: 25px; border-bottom: 1px solid #E0D6C8; text-align: left;
}
/* メッセージセクション */
.message-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.message-content p {
    font-size: 1.15rem;
    line-height: 2.2;
    margin-bottom: 2rem;
    color: #333;
}

/* FAQセクション（モダンなリスト形式） */
.slj-faq-wrapper {
    margin-top: 50px;
}
.faq-row {
    background: #fff;
    padding: 30px;
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.faq-q {
    font-weight: 700;
    color: #002B5B;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.faq-q::before {
    content: "Q.";
    color: #F3A000;
    margin-right: 10px;
    font-family: 'Montserrat';
}
.faq-a {
    color: #555;
    font-size: 0.95rem;
    padding-left: 28px;
    line-height: 1.7;
}

/* お問い合わせセクション（カード型ボタン） */
.contact-sub {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.1rem;
    color: #666;
}
.contact-btns-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
}
.contact-card-btn {
    flex: 1;
    max-width: 450px;
    background: #F3A000;
    color: #fff;
    text-decoration: none;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s;
    position: relative;
}
.contact-card-btn.outline {
    background: #fff;
    border: 2px solid #F3A000;
    color: #F3A000;
}
.btn-label {
    display: block;
    font-family: 'Montserrat';
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    opacity: 0.9;
}
.contact-card-btn h3 {
    font-size: 1.4rem;
    line-height: 1.4;
}
.contact-card-btn h3 small {
    font-size: 0.9rem;
    font-weight: normal;
}
.contact-card-btn .arrow {
    display: block;
    margin-top: 20px;
    font-size: 1.5rem;
}
.contact-card-btn:hover {
    transform: translateY(-5px);
    background: #e09400;
}
.contact-card-btn.outline:hover {
    background: #fff5e6;
}

/* --- アニメーションの基本 --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ヒーローエリア */
.slj-hero-final {
    padding: 160px 0 100px;
    background: linear-gradient(to bottom, #FDF5E6, #ffffff);
    text-align: center;
}

/* グリッドレイアウト */
.slj-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.slj-service-grid-lp {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px 30px;
    margin-top: 50px;
}

/* カードデザイン */
.slj-card-lp {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.list-dots {
    list-style: none;
    padding: 0;
    text-align: left;
    font-size: 0.9rem;
}
.list-dots li {
    margin-bottom: 12px;
    padding-left: 1.2em;
    position: relative;
    color: #555;
}
.list-dots li::before {
    content: "・";
    color: #F3A000;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 実績数値 */
.slj-results-lp {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    padding: 40px 0;
}
.res-num {
    display: block;
    font-size: 3.5rem;
    font-family: 'Montserrat', sans-serif;
    color: #F3A000;
    font-weight: 700;
    margin-bottom: 5px;
}

/* 流れのステップ */
.flow-steps-lp {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}
.step-lp {
    flex: 1;
    text-align: center;
}
.step-lp span {
    width: 50px;
    height: 50px;
    background: #002B5B;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 15px;
    font-weight: bold;
}

/* 強みセクション用 */
.bg-dark-navy { background-color: #002B5B; color: #fff; }
.gold-text { color: #F3A000; font-weight: bold; margin-bottom: 10px; display: block; font-size: 1.2rem; }

/* --- SLJ LP 全体設定 --- */
.slj-lp-body { background-color: #FDF5E6; color: #333; }

/* ヒーロー */
.lp-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: #002B5B;
    color: #fff;
    text-align: left;
}
.main-copy { font-size: 4rem; line-height: 1.2; font-weight: 700; margin-bottom: 20px; }
.main-copy .highlight { color: #F3A000; }
.sub-copy { font-size: 1.5rem; opacity: 0.9; }

/* 課題提示 */
.problem-title { font-size: 2.2rem; color: #002B5B; margin-bottom: 30px; }
.problem-box {
    background: #002B5B;
    color: #fff;
    padding: 40px;
    margin-top: 50px;
    display: inline-block;
    border-radius: 8px;
}
.problem-box p { font-size: 1.8rem; font-weight: bold; margin-bottom: 10px; color: #F3A000; }

/* 図解1: 詰まりやすいポイント */
.diagram-container { margin: 60px 0; }
.diagram-h3 { border-bottom: 2px solid #F3A000; display: inline-block; margin-bottom: 30px; padding-bottom: 5px; color: #002B5B; }
.points-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.point-card { background: #fff; padding: 30px; border-radius: 4px; border-left: 5px solid #F3A000; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.point-num { background: #F3A000; color: #fff; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; margin-bottom: 15px; }

/* 図解2: フロー */
.flow-diagram { display: flex; align-items: center; justify-content: space-around; margin-top: 40px; background: #fff; padding: 40px; border-radius: 50px; }
.flow-item { text-align: center; flex: 1; }
.flow-icon { background: #002B5B; color: #fff; padding: 15px; border-radius: 10px; margin-bottom: 15px; font-weight: bold; }
.flow-sep { font-size: 2rem; color: #F3A000; font-weight: bold; }

/* ベネフィット */
.benefit-card { background: #fff; padding: 40px; border-radius: 8px; flex: 1; }
.card-tag { background: #002B5B; color: #fff; padding: 5px 15px; display: inline-block; margin-bottom: 20px; border-radius: 3px; font-size: 0.9rem; }
.benefit-card ul { list-style: none; padding: 0; }
.benefit-card li { margin-bottom: 15px; padding-left: 25px; position: relative; }
.benefit-card li::before { content: "✔"; color: #F3A000; position: absolute; left: 0; font-weight: bold; }

/* 最終メッセージ */
.final-copy { font-size: 2.2rem; line-height: 1.5; color: #002B5B; }
.final-sub { font-size: 1.2rem; color: #F3A000; margin-top: 20px; font-weight: bold; }

/* お問い合わせ */
.contact-lp { background: #002B5B; color: #fff; padding: 80px 40px; border-radius: 15px; text-align: center; }
.lp-btn-gold { background: #F3A000; color: #fff; padding: 20px 40px; display: inline-block; text-decoration: none; font-weight: bold; border-radius: 5px; margin: 10px; }
.lp-btn-outline { border: 2px solid #fff; color: #fff; padding: 18px 40px; display: inline-block; text-decoration: none; font-weight: bold; border-radius: 5px; margin: 10px; }


/* カードリンクの基本スタイル消去 */
.service-card-link {
    text-decoration: none;
    color: inherit; /* 親要素の文字色を引き継ぐ */
    display: block; /* カード全体の幅をクリック可能にする */
    transition: transform 0.3s ease;
}

/* マウスを乗せた時の動き（LP側のカードと合わせると統一感が出ます） */
.service-card-link:hover {
    transform: translateY(-5px); /* 少し浮き上がる */
}

/* カード内の特定のテキスト（詳しく見る等）だけ色を変える場合 */
.service-card-link:hover .view-more {
    color: #F3A000;
    text-decoration: underline;
}

/* カード全体がリンクであることを示すカーソル設定 */
.service-card {
    cursor: pointer;
}

/* カード全体を囲うリンクの修正 */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    /* 縦に伸びるのを防ぐため、高さを自動にする */
    height: auto; 
    /* 下記を追加して、中身のカードが変に広がらないようにします */
    align-self: start; 
}

/* カード自体の修正 */
.service-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden; /* 画像の角丸を維持 */
    display: flex;
    flex-direction: column;
    height: 100%; /* 全体の高さを揃えたい場合はここを維持 */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* 画像部分の修正（ここが伸びている原因の可能性が高いです） */
.card-image {
    width: 100%;
    /* アスペクト比を固定して、縦に伸びるのを防ぎます */
    aspect-ratio: 3 / 2; 
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    /* 画像が引き伸ばされないようにカバーします */
    object-fit: cover; 
    display: block;
}

/* カードのテキスト部分 */
.card-body {
    padding: 20px;
    text-align: center;
    flex-grow: 1; /* テキスト量に関わらずカードの底辺を揃える */
}
.service-card-link {
    display: flex; /* 中のカードを正しく制御 */
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    
    /* 横幅を他のカードと同じように広げる */
    width: 100%; 
    /* 親要素がFlexboxの場合、これを入れると横に伸びます */
    flex: 1; 
}

/* 親要素（カードが並んでいる外枠）の設定も確認してください */
/* もしクラス名が .service-grid などであれば */
.service-grid {
    display: flex;
    align-items: stretch; /* これですべてのカードの高さが揃います */
    gap: 20px;
}


/* カードの基本設定 */
.service-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* 高さを揃える */
}

/* クリックできるカードにだけ付ける演出 */
.link-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* スマホでは縦並びにする設定（メディアクエリ） */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr; /* スマホは1列 */
    }
}
/* 親要素：3枚横並びを絶対に維持する設定 */
.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr !important; /* 強制的に3分割 */
    gap: 20px;
    width: 100%;
}

/* 真ん中のカード（link-card）の設定 */
.link-card {
    cursor: pointer; /* マウスを乗せると指マークになる */
    transition: all 0.3s ease;
}

.link-card:hover {
    transform: translateY(-5px); /* 浮き上がる演出（任意） */
    opacity: 0.9;
}

/* スマホでは1列にする（必要であれば） */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr !important;
    }
}


/* 親要素：強制的に3列横並びにする */
.service-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important; /* 絶対に3分割 */
    gap: 20px !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* カードの中身が伸びないように固定 */
.service-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

/* 画像が伸びるのを防ぐ */
.card-image {
    width: 100% !important;
    aspect-ratio: 3 / 2 !important;
}

.card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* スマホの時だけ1列に戻す（これがないとスマホでも横3列になってしまいます） */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr !important;
    }
}

/* 親要素：ここが横並びの司令塔です */
.service-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* 確実に3列 */
    gap: 20px !important;
}

/* 全カード共通：見た目を整えるだけ */
.service-card {
    display: flex !important;
    flex-direction: column !important;
    background: #fff;
    /* transitionなどは共通でもOK */
    transition: transform 0.3s ease;
}

/* 真ん中のカード（is-link）だけに適用する特別な設定 */
.service-card.is-link {
    cursor: pointer !important; /* マウスを乗せると指マークになる */
}

.service-card.is-link:hover {
    transform: translateY(-5px); /* 真ん中だけ浮き上がる */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* カードを横に3つ並べる設定 */
.service-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

/* カード1枚あたりの横幅を3等分にする */
.service-card {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* スマホでは縦並びにする */
@media (max-width: 768px) {
    .service-grid {
        flex-direction: column;
    }
}

/* ロゴエリアの調整 */
.logo {
    display: flex;
    align-items: center;
    /* 必要であれば、ロゴの横幅の最大値を指定 */
    max-width: 200px; 
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* ロゴ画像自体のスタイル */
.logo-img {
    /* 高さを固定してヘッダーの縦幅に合わせる方法が一番綺麗です */
    height: 40px; 
    width: auto; /* 横幅は自動調整（比率を維持） */
    display: block;
    transition: opacity 0.3s ease;
}

/* ホバー時に少し透明にする演出（任意） */
.logo a:hover .logo-img {
    opacity: 0.8;
}

/* レスポンシブ：スマホでの調整 */
@media (max-width: 768px) {
    .logo-img {
        height: 30px; /* スマホでは少し小さく */
    }
}

.logo-img {
    /* 現在より少し大きめの数値を設定（例: 50pxから65pxへ） */
    height: 65px !important; 
    width: auto;
    
    /* 上下の位置を微調整して、ヘッダーの中央に合わせる */
    margin-top: -5px;
    margin-bottom: -5px;
    
    /* 鮮明に見せるための設定 */
    object-fit: contain;
    vertical-align: middle;
}

/* 親要素の制限を解除する */
.logo {
    display: flex;
    align-items: center;
    overflow: visible !important; /* はみ出しを許可する */
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    padding: 0 !important; /* リンク内の余白をゼロに */
    margin-right: 20px;    /* メニューとの距離だけ確保 */
}   

/* 三本線が×に変わるアニメーション */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

@media (max-width: 768px) {
    /* 1. 通常時は強制的に非表示にする */
    .nav-list {
        display: none !important; /* 強制的に隠す */
        
        /* 以下、メニューの見た目設定（位置など） */
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px 0;
        z-index: 9999;
    }

    /* 2. JSで 'active' が付いた時だけ、非表示を解除して表示する */
    .nav-list.active {
        display: flex !important; /* 強制的に表示する */
    }
}

/* お問い合わせページ全体のスタイル */
.contact-page {
    padding-top: 80px; /* ヘッダーの高さ分 */
    background-color: #f9f9f9;
}

.page-header {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 60px 0;
}

.page-header h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.form-instruction {
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.8;
    color: #555;
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.required {
    background: #e74c3c;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box; /* 幅の計算を正しくする */
}

.btn-submit {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 15px;
    background-color: #007bff; /* ロゴの色に合わせると良いです */
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 20px;
    }
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto; /* 左右の余白を自動にして中央へ */
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* 中身のテキスト等も中央へ */
}

.contact-form {
    width: 100%; /* max-width(800px)の中でいっぱいに広がる */
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    /* ハンバーガーボタンを強制的に表示 */
    .menu-toggle {
        display: block !important;
        position: relative;
        z-index: 1001; /* メニューより上に */
        cursor: pointer;
    }

    /* 三本線の見た目（もし消えていたら） */
    .menu-toggle span {
        display: block;
        width: 30px;
        height: 2px;
        background-color: #333;
        margin: 6px 0;
        transition: 0.3s;
    }

    /* メニューリストは初期状態で隠す */
    .nav-list {
        display: none !important;
    }
    
    .nav-list.active {
        display: flex !important;
    }
}

/* フォーム全体を包むコンテナの設定 */
.contact-form-container {
    max-width: 800px;  /* フォームの最大幅 */
    margin: 0 auto;    /* ★重要：これで左右の余白が均等になり、中央に寄ります */
    padding: 60px 20px;
}

/* フォームの上の説明テキストも中央寄せにする場合 */
.form-instruction {
    text-align: center;
    margin-bottom: 30px;
}

/* フォームの上の説明文とフォーム全体を中央に寄せる */
.contact-form-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* これで子要素がすべて中央に寄ります */
    width: 100% !important;
    margin: 0 auto !important;
}

/* フォーム本体の幅を固定して中央に置く */
.contact-form {
    width: 100% !important;
    max-width: 600px !important; /* フォームが広がりすぎないように調整 */
    margin: 0 auto !important;
}

/* 説明文も中央寄せ */
.form-instruction {
    text-align: center !important;
    width: 100% !important;
    margin-bottom: 30px !important;
}

@media (max-width: 768px) {
    /* 1. 通常時は隠す */
    .nav-list {
        display: none !important;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff; /* 背景色を白に */
        flex-direction: column;
        z-index: 1000;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    /* 2. ボタンが押されて 'active' が付いたら表示する */
    .nav-list.active {
        display: flex !important;
    }
}

.contact-page, .contact-form {
    background-color: #FDF5E6 !important; /* 統一したい色コード */
    box-shadow: none !important;
}

/* ロゴを囲む枠のサイズを制限 */
.logo {
    max-width: 250px; /* ロゴの表示したい横幅に合わせて調整してください */
    height: auto;
    display: flex;
    align-items: center;
}

/* 中の画像が枠からはみ出さないようにする */
.logo img, .logo-img {
    width: 100% !important;  /* 親要素（.logo）の幅いっぱいに合わせる */
    height: auto !important; /* 縦横比を維持 */
    object-fit: contain;     /* 枠内に綺麗に収める */
}
/* ロゴの親要素（aタグ）のサイズを固定 */
.logo a {
    display: block !important;
    width: 220px !important; /* ここでロゴの横幅を強制決定 */
    height: auto !important;
}

/* ロゴ画像自体のサイズを親要素に合わせる */
.logo-img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    max-width: none !important; /* 変な制限を解除 */
}

/* ヘッダー全体の背景をベージュに統一 */
.navbar {
    background-color: #fdf8e4 !important; /* サイト共通のベージュ */
    height: 80px;                       /* ヘッダーの高さを固定して全ページ統一 */
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e0dbca;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* ロゴのサイズを他のページと合わせる */
.logo a {
    display: block !important;
    width: 200px !important; /* 他のページでしっくりきているサイズに数値を調整してください */
    height: auto;
}

/* ロゴ画像自体の設定：白い背景をベージュに透過させる */
.logo-img {
    width: 100% !important;
    height: auto !important;
    display: block;
    /* ★重要：ロゴの白い背景を下のベージュと合成して透明に見せます */
    mix-blend-mode: multiply; 
    filter: contrast(110%); /* 合成で少し薄くなるのを防ぐためコントラストを上げます */
}

/* コンテンツがヘッダーに被らないように調整 */
body {
    padding-top: 80px; /* ヘッダーの高さ分、中身を下げる */
}


/* ロゴのサイズと位置の微調整 */
.logo a {
    display: flex !important;
    align-items: center;
    width: 200px !important; /* 他のページのロゴ幅に合わせて調整 */
    height: 100%;
}

.logo-img {
    width: 100% !important;
    height: auto !important;
    mix-blend-mode: multiply; /* 白背景をベージュに馴染ませる */
}

/* ナビゲーション（メニュー）の文字デザインを合わせる */
.nav-list {
    display: flex;
    gap: 25px; /* メニュー間の余白 */
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li a {
    color: #333 !important;
    text-decoration: none;
    font-size: 15px;      /* 他のページのフォントサイズに合わせる */
    font-weight: 600;    /* 少し太めにして視認性を向上 */
    transition: color 0.3s;
}

.nav-list li a:hover {
    color: #007bff !important; /* ホバー時の色（お好みで） */
}

/* コンテンツがヘッダーの下に隠れないようにする */
body {
    padding-top: 80px !important; /* ヘッダーの高さと同じ数値を入れる */
}

/* ヘッダーの中身を左右に振り分ける */
.navbar {
    background-color: #fdf8e4 !important;
    height: 80px !important;
    display: flex !important;
    justify-content: space-between !important; /* ★左右の両端に振り分ける */
    align-items: center !important;
    padding: 0 5% !important;               /* ★左右に少し余白を入れる（お好みで調整） */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box !important;
}

/* ロゴの設定 */
.logo {
    display: flex !important;
    align-items: center !important;
}

.logo a {
    width: 200px !important; 
    height: auto;
}

.logo-img {
    width: 100% !important;
    height: auto !important;
    mix-blend-mode: multiply;
}

/* ナビゲーションを右側に寄せる */
.nav-list {
    display: flex !important;
    gap: 30px !important; /* メニュー同士の間隔 */
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-list li a {
    color: #333 !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}
@media (max-width: 768px) {
    /* 事業内容のカードを縦に1枚ずつ並べる */
    .service-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
    }

    .service-card {
        width: 100% !important;
        max-width: 350px; /* 横に広がりすぎないよう調整 */
        margin: 0 auto !important;
    }
}

/* フッター全体の設定 */
.footer {
    background-color: #fdf8e4;
    padding: 60px 20px;
    text-align: center; /* ★中のテキストをすべて中央に寄せる */
    border-top: 1px solid #e0dbca;
}

/* ロゴ・会社名 */
.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: #003366; /* 濃い紺色 */
    margin-bottom: 20px;
    display: block;
}

/* 住所などの情報 */
.footer-info p {
    margin: 5px 0;
    line-height: 1.6;
    color: #333;
}

/* フッターメニュー（ここが左に寄りやすいので注意） */
.footer-nav {
    margin: 30px 0;
}

.footer-nav ul {
    list-style: none;
    padding: 0;         /* ★左側の余白を消す */
    margin: 0;
    display: inline-block; /* ★中身に合わせて幅を決め、親のcenterに従わせる */
    text-align: left;      /* ★文字自体は左揃えの方が見やすい場合、ここはお好みで */
}

.footer-nav ul li {
    margin: 10px 0;
    text-align: center; /* ★メニュー項目も中央に */
}

.footer-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

/* コピーライト */
.copyright {
    margin-top: 40px;
    font-size: 14px;
    color: #777;
}

/* フッター全体を強制中央揃え */
.footer {
    background-color: #fdf8e4 !important;
    text-align: center !important;
    padding: 60px 20px !important;
    display: block !important; /* flexになっていた場合に備えて解除 */
}

/* フッター内のコンテナ（もしあれば） */
.footer-container {
    max-width: 1000px !important;
    margin: 0 auto !important;
    float: none !important; /* floatを解除 */
}

/* 会社名・住所などのテキスト */
.footer-logo, .footer-info, .footer-info p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

/* リンクメニューを中央に */
.footer-nav ul {
    display: inline-flex !important; /* 横並びのまま中央に置く */
    justify-content: center !important;
    flex-wrap: wrap !important;      /* スマホで折り返せるように */
    gap: 20px !important;            /* メニュー間の間隔 */
    padding: 0 !important;
    margin: 20px 0 !important;
    list-style: none !important;
}

.footer-nav ul li {
    margin: 0 !important;
}

/* コピーライト */
.copyright {
    display: block !important;
    text-align: center !important;
    margin-top: 30px !important;
}
/* --- ヘッダー統一設定 --- */
.navbar {
    background-color: #fdf8e4 !important; /* 共通のベージュ */
    height: 90px !important;              /* 高さを統一 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e0dbca;
}

/* 中身を中央に寄せるコンテナ */
.header-container {
    width: 100%;
    max-width: 1100px;    /* コンテンツの最大幅を統一 */
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* ロゴとメニューを左右に振る */
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ロゴのサイズ */
.logo a {
    display: block;
    width: 200px !important;
}

.logo-img {
    width: 100% !important;
    height: auto;
    mix-blend-mode: multiply; /* 白背景を透過 */
}

/* ナビゲーションメニュー */
.nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li a {
    text-decoration: none;
    color: #333 !important;
    font-weight: 600;
    font-size: 16px;
}

/* コンテンツがヘッダーに被らないようにする設定 */
body {
    padding-top: 90px !important; /* ヘッダーの高さ分、全体を下げる */
}

/* style-cro.css のヘッダー部分 */

.header-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    
    /* 横幅を制限せず、かつ1枚目と同じ「端からの距離」を作る */
    width: 100% !important;
    max-width: none !important;
    
    /* 1枚目と位置がズレているなら、この数値を 2% 〜 8% の間で微調整してください */
    padding: 0 4% !important; 
    
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* ロゴの垂直位置がズレている場合 */
.logo {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    margin: 0 !important; /* 余計なマージンを消す */
}

/* メニューの文字の高さがズレている場合 */
.nav-list {
    display: flex !important;
    align-items: center !important; /* 縦方向の真ん中に揃える */
    gap: 35px !important;           /* 1枚目と同じくらいの間隔に調整 */
    margin: 0 !important;
}

.nav-list li a {
    font-size: 16px !important;    /* 文字サイズ */
    font-weight: 700 !important;   /* 1枚目が太いなら700、普通なら600 */
    font-family: sans-serif !important; /* 書体を合わせる */
}

/* =================================================
   全ページ共通ヘッダー（最強設定）
   ================================================= */

/* 1. ヘッダーの外枠（帯） */
.navbar {
    background-color: #FDF5E6 !important; /* 共通ベージュ */
    height: 90px !important;              /* 高さを90pxで固定 */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    /* ★ここに境界線を追加 */
    border-bottom: 1px solid #e0dbca !important; 
    /* ★少しだけ影をつけると、より立体感が出て境界がはっきりします（お好みで） */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
    
}

/* 2. 中身を左右に振り分けるコンテナ */
.header-container {
    width: 100% !important;
    max-width: none !important; /* 枠の制限を解除 */
    margin: 0 !important;
    padding: 0 4% !important;  /* ★1枚目の画像に合わせた端の余白 */
    display: flex !important;
    justify-content: space-between !important; /* ロゴを左、メニューを右へ */
    align-items: center !important;
    box-sizing: border-box !important;
}

/* 3. ロゴ画像の設定 */
.logo a {
    display: block !important;
    width: 200px !important; /* ロゴの幅 */
}

.logo-img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    mix-blend-mode: multiply !important; /* 白背景を透過 */
}

/* 4. 右側のナビゲーションメニュー */
.nav-list {
    display: flex !important;
    gap: 35px !important;      /* メニュー同士の間隔 */
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
}

.nav-list li a {
    text-decoration: none !important;
    color: #333 !important;   /* 文字色：濃いグレー */
    font-size: 16px !important;
    font-weight: 700 !important; /* 1枚目に合わせた太字 */
    white-space: nowrap !important;
}

/* 5. ページの中身がヘッダーの下に隠れないようにする */
body {
    padding-top: 90px !important; /* navbarの高さと同じにする */
}

/* ================================================= */

/* --- 背景色・ヘッダー色の完全統一設定 --- */

/* 1. ヘッダー自体の色を、ロゴの背景やサイトの基本色に合わせる */
.navbar {
    background-color: #FDF5E6 !important; /* ★このコードを共通で使用 */
}

/* 2. もしロゴの白い四角がまだ目立つなら、合成モードを再確認 */
.logo-img {
    mix-blend-mode: multiply !important; /* 白い背景を下の色に溶け込ませる */
}

/* 3. ページ全体の背景色（念のため） */
body {
    background-color: #FDF5E6 !important;
}

/* 4. モバイル用メニューの背景色も忘れずに統一 */
@media (max-width: 768px) {
    .nav-list {
        background-color: #FDF5E6 !important;
    }
}

@media (max-width: 768px) {
    /* 1. スマホ時はまずメニューを完全に隠す */
    .nav-list {
        display: none !important; /* ★ここが重要！一旦消す */
        
        /* 以下、表示された時のスタイル */
        flex-direction: column;
        position: absolute;
        top: 90px; /* ヘッダーの高さに合わせる */
        left: 0;
        width: 100%;
        background-color: #FDF5E6 !important;
        padding: 20px 0;
        text-align: center;
        z-index: 999;
    }

    /* 2. JavaScriptで 'active' クラスがついた時だけ表示する */
    .nav-list.active {
        display: flex !important;
    }

    /* 3. ハンバーガーボタン（三本線）を必ず表示する */
    .menu-toggle {
        display: block !important;
        cursor: pointer;
    }
}