@charset "UTF-8";

/* =========================================================
   【目次】
   1. 変数定義・ベース設定（リセットと基本フォント）
   2. ヘッダー・ナビゲーション
   3. 全体レイアウト（PCとスマホの切り替え）
   4. 共通コンポーネント（タイトル、セクション、注釈など）
   5. トップページ専用（メインビジュアル、サービス一覧）
   6. サイドバー（お問い合わせバナー、店舗情報、メニュー）
   7. 下層ページ専用（動画、カード一覧、会社概要テーブルなど）
   8. フッター
   9. 上スクロール（ページトップ）ボタン
========================================================= */

/* =========================================================
   1. 変数定義・ベース設定
========================================================= */
:root {
    --primary-color: #0056b3; /* 信頼感のある深い青 */
    --accent-color: #009900;  /* アクセントの緑 */
    --text-color: #333333;    /* 基本の文字色 */
    --bg-color: #f4f7f6;      /* 背景色 */
    --white: #ffffff;
}

html {
    scroll-behavior: smooth; /* ページ内リンクの滑らかなスクロール */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: opacity 0.3s ease, color 0.3s ease, background 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* =========================================================
   2. ヘッダー・ナビゲーション
========================================================= */
.site-header {
    background: var(--white);
    padding: 15px 20px;
    border-bottom: 3px solid var(--primary-color);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.header-inner h1 {
    font-size: 0.85rem;
    font-weight: normal;
    color: #666;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.global-nav {
    background: var(--primary-color);
}

.global-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
}

.global-nav a {
    display: block;
    padding: 12px 20px;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: bold;
}

.global-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}
/* =========================================================
   ハンバーガーメニュー用スタイル（スマホ用）
========================================================= */
.site-header {
    position: relative; /* ボタンの配置基準 */
}

/* PCではボタンを隠す */
.hamburger {
    display: none;
}

@media (max-width: 767px) {
    .site-header {
        padding-right: 60px; /* 右側にボタン用の余白をあける */
    }

    /* ハンバーガーボタンのデザイン */
    .hamburger {
        display: block;
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        width: 45px;
        height: 45px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 100;
        outline: none;
    }

    /* 3本線のデザイン */
    .hamburger span {
        display: block;
        position: absolute;
        width: 26px;
        height: 3px;
        background-color: var(--primary-color);
        left: 9px;
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    .hamburger span:nth-child(1) { top: 12px; }
    .hamburger span:nth-child(2) { top: 21px; }
    .hamburger span:nth-child(3) { top: 30px; }

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

    /* ナビゲーションメニューを初期状態では隠す */
    .global-nav {
        display: none; 
        width: 100%;
    }

    /* ボタンが押されて .active が付いたら表示する */
    .global-nav.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .global-nav ul {
        flex-direction: column;
    }

    .global-nav a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 15px 20px;
        text-align: left;
    }

    /* ふんわり表示させるアニメーション */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* =========================================================
   3. 全体レイアウト（PCとスマホの切り替え）
========================================================= */
.container {
    display: flex;
    flex-direction: column; /* スマホでは縦並び */
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    gap: 30px;
}

/* PC・タブレット（幅768px以上）の場合 */
@media (min-width: 768px) {
    .container {
        flex-direction: row; /* 横並び */
    }
    .main-content {
        flex: 1; /* メインを広く取る */
    }
    .sidebar {
        width: 300px; /* サイドバーは幅固定 */
    }
}

/* =========================================================
   4. 共通コンポーネント（各ページ共通パーツ）
========================================================= */
.page-title {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    text-align: center;
}

.page-title h2 {
    font-size: 1.4rem;
    margin: 0;
}

.content-section {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.content-section h2 {
    font-size: 1.2rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.content-section h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    border-left: 5px solid var(--accent-color);
    padding-left: 10px;
    margin-bottom: 15px;
}

.highlight-text {
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.8;
}

.image-wrapper {
    text-align: center;
    margin: 20px 0;
}

/* 注意書きボックス */
.note-box {
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.note-blue {
    background: #e6f2ff;
    color: var(--primary-color);
    border-left: 5px solid var(--primary-color);
}

.note-red {
    background: #ffebee;
    color: #d32f2f;
    border-left: 5px solid #d32f2f;
    font-weight: bold;
}

/* 画像ホバー効果（ふわりと拡大） */
.hover-image {
    transition: transform 0.3s ease;
}
a:hover .hover-image {
    transform: scale(1.03);
}

/* =========================================================
   5. トップページ専用（index.html）
========================================================= */
.hero-section {
    /* 白い箱の装飾をなくし、画像そのものを主役にする */
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin-bottom: 50px; /* 下のコンテンツとの余白を広めに */
    text-align: center;
}

.hero-image-wrapper {
    width: 100%;
    text-align: center;
}

.hero-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    /* 角を少し丸め、フワッと浮かせるリッチな影をつける */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.hero-text {
    /* キャッチコピーを独立した帯のように見せる */
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    display: inline-block;
    margin-top: -25px; /* 画像に少しだけ重ねて立体感を出す */
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.4);
    max-width: 90%;
}

.hero-text h2 {
    font-size: 1.1rem;
    color: var(--white);
    margin: 0;
    font-weight: bold;
    letter-spacing: 1px;
}

/* サービス一覧（変更なし） */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.service-item {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.service-info h3 {
    margin: 15px 0 10px;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.service-info .price {
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.news-section {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 5px solid var(--accent-color);
}

.news-section h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* ★スマホ表示の時の劇的な調整 */
@media (max-width: 767px) {
    .hero-image-wrapper {
        /* スマホの時は画面の端まで画像を広げる（ダイナミックに見せるテクニック） */
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }
    .hero-image {
        border-radius: 0; /* 画面端まで広げるため角丸をなくす */
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .hero-text {
        margin-top: -20px;
        padding: 12px 15px;
        max-width: 95%;
    }
    .hero-text h2 {
        font-size: 0.95rem; /* スマホでは文字を少し小さくして収まりを良くする */
    }
}

/* =========================================================
   6. サイドバー
========================================================= */
.sidebar-banners {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

/* バナー風 お問い合わせボタン */
.banner-contact {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ff8c00 0%, #ff5722 100%);
    color: #fff;
    padding: 20px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3);
    position: relative;
    overflow: hidden;
}

.banner-contact::before {
    content: '';
    position: absolute;
    top: 0; 
    left: -100%;
    width: 50%; 
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-25deg);
    transition: all 0.5s ease;
}

.banner-contact:hover::before {
    left: 150%;
}

.banner-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 87, 34, 0.5);
    color: #fff;
    opacity: 1;
}

.banner-sub {
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: bold;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.15);
    padding: 3px 12px;
    border-radius: 20px;
}

.banner-main {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.banner-main .icon {
    font-size: 1.4rem;
    margin-right: 5px;
}

.banner-action {
    font-size: 0.9rem;
    margin-top: 5px;
    border-bottom: 1px solid rgba(255,255,255,0.6);
    padding-bottom: 2px;
}

/* サイドバー用サブメニュー */
.sidebar-image-link {
    display: block;
    transition: transform 0.3s ease;
}
.sidebar-image-link:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.sidebar-menu {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px;
    margin-bottom: 30px;
}
.sidebar-menu ul {
    list-style: none;
}
.sidebar-menu li {
    border-bottom: 1px dashed #ccc;
}
.sidebar-menu li:last-child {
    border-bottom: none;
}
.sidebar-menu a {
    display: block;
    padding: 10px 5px;
    color: var(--text-color);
    font-size: 0.95rem;
}
.sidebar-menu a:hover {
    color: var(--primary-color);
    background: #f8fafc;
}

/* 店舗情報 */
.shop-info {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: 100%;
}

.shop-info h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.shop-info h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.contact-box {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

.contact-box .tel-icon {
    width: 30px;
    margin-bottom: 5px;
}

.contact-box strong {
    font-size: 1.5rem;
    color: var(--primary-color);
    display: block;
    margin: 5px 0 10px;
}

.business-hours {
    font-size: 0.85rem;
    color: var(--accent-color);
    text-align: left;
    display: inline-block;
}

.company-info {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
    text-align: center;
}

.company-info h4 {
    color: var(--text-color);
    font-size: 0.95rem;
}

/* =========================================================
   7. 下層ページ専用
========================================================= */
/* レスポンシブ動画（estate2等） */
.responsive-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* レスポンシブマップ（company等） */
.responsive-map {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.responsive-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 管理業務カード（estate4） */
.service-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .service-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background: #f8fafc;
    border-top: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-3px);
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-number {
    background: var(--primary-color);
    color: var(--white);
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
    flex-shrink: 0;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* 会社概要テーブル（company） */
.company-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.company-table th,
.company-table td {
    border: 1px solid #e2e8f0;
    padding: 15px;
    vertical-align: middle;
}

.company-table th {
    background-color: #f8fafc;
    color: var(--primary-color);
    width: 25%;
    text-align: left;
    font-weight: bold;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .company-table th, 
    .company-table td {
        display: block;
        width: 100%;
    }
    .company-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }
    .company-table td {
        border-top: none;
        padding-top: 5px;
        margin-bottom: 10px;
    }
}

/* アクセス情報リスト（company） */
.access-info {
    margin-bottom: 25px;
}

.access-info h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    border-left: 5px solid var(--accent-color);
    padding-left: 10px;
    margin-bottom: 15px;
}

.access-info ul {
    list-style-type: none;
    padding-left: 0;
}

.access-info li {
    margin-bottom: 10px;
    padding-left: 1.5em;
    position: relative;
    line-height: 1.6;
}

.access-info li::before {
    content: "🚃";
    position: absolute;
    left: 0;
    top: 0;
}

/* iframe用 ラッパー（loan.html等用） */
.iframe-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.iframe-wrapper iframe {
    width: 100%;
    height: 900px;
    border: none;
    display: block;
}

/* アクセスページ用スタイル（access.html用） */
.office-profile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 15px;
}

.office-photo {
    flex: 1;
    min-width: 300px;
}

.office-photo img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.office-details {
    flex: 1;
    min-width: 300px;
}

.en-address {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ccc;
}

.en-address .en-name {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.ja-address h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.ja-address p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================================
   8. フッター
========================================================= */
.site-footer {
    background: #2c3e50;
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #cbd5e1;
    margin: 0 10px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* =========================================================
   9. 上スクロール（ページトップ）ボタン
========================================================= */
.page-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.page-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.page-top-btn:hover {
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
}
/* =========================================================
   16. ペットFAQページ用スタイル（pet.html用）
========================================================= */
.pet-point-list h4 {
    margin-top: 25px;
    color: var(--primary-color);
    font-size: 1.05rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 5px;
}

.pet-advice-box {
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
    background: #fff;
}

/* 犬用ボックス（温かみのあるオレンジ系） */
.box-dog {
    border: 2px solid #ffcc80;
    background-color: #fffdf7;
}

/* 猫用ボックス（落ち着いたブルー系） */
.box-cat {
    border: 2px solid #90caf9;
    background-color: #f6fbff;
}

.pet-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 2px dashed #ccc;
    padding-bottom: 10px;
}

.pet-title img {
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pet-title h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-color);
    border: none;
    padding: 0;
}

.pet-advice-box h4 {
    margin-top: 20px;
    font-size: 1.05rem;
    color: var(--text-color);
    position: relative;
    padding-left: 15px;
}

.pet-advice-box h4::before {
    content: "🐾"; /* 足跡の絵文字をアイコン代わりに */
    position: absolute;
    left: -5px;
    top: -2px;
    font-size: 0.9rem;
}
/* =========================================================
   17. 契約のしおり用スタイル（estate.html用・画像を廃止）
========================================================= */
/* ご契約までの流れ（フロー） */
.step-flow {
    margin-top: 30px;
    position: relative; /* PC用の縦ラインの基準にする */
    padding-left: 10px; /* ラインが表示されるスペースを確保 */
}

/* PC・タブレット表示（幅768px以上）の時の縦ライン設定 */
@media (min-width: 768px) {
    .step-flow::before {
        content: '';
        position: absolute;
        top: 10px;    /* 最初の数字の中心からスタート */
        left: 35px;   /* 数字の中心に合わせる（padding + (width/2)） */
        width: 2px;
        height: calc(100% - 60px); /* 最後のステップの途中でラインを止める */
        background-color: var(--primary-color);
        opacity: 0.2; /* 少し薄くする */
        z-index: 1;   /* 数字の下に通す */
    }
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 40px; /* ステップ間の余白 */
    position: relative;
    z-index: 2; /* ラインより上に表示 */
}

/* 画像（step_img）の代わりに丸数字（step_num_circle）を設定 */
.step-num-circle {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color); /* コーポレートカラーの青 */
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.step-text h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 5px;
}

.step-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* スマホ表示の時のデザイン調整 */
@media (max-width: 767px) {
    .step-flow {
        padding-left: 0; /* スマホではラインを消すのでパディングをリセット */
    }
    .step-item {
        flex-direction: column; /* 縦並びにする */
        align-items: center;
        text-align: center;
        gap: 15px;
        background: var(--white); /* 白いカード風にする */
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    .step-num-circle {
        margin-bottom: 10px;
    }
}

/* 用語集・諸費用のリスト（辞書風）はそのまま維持 */
.term-list {
    margin-top: 20px;
}

.term-list dt {
    color: #d32f2f;
    font-weight: bold;
    font-size: 1.05rem;
    margin-top: 25px;
    margin-bottom: 10px;
    background: #ffebee;
    padding: 8px 15px;
    border-radius: 4px;
    border-left: 5px solid #d32f2f;
}

.term-list dd {
    padding-left: 10px;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}
/* =========================================================
   18. お問い合わせフォーム・モーダル用スタイル
========================================================= */
.form-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: var(--white);
}

.form-table th, .form-table td {
    border: 1px solid #e2e8f0;
    padding: 15px;
    vertical-align: middle;
}

.form-table th {
    background: #f8fafc;
    width: 30%;
    color: var(--text-color);
    font-weight: bold;
    text-align: left;
}

.required {
    color: #d32f2f;
    font-size: 0.8rem;
    margin-left: 5px;
    vertical-align: top;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.2);
}

.form-control.short {
    width: 80px;
}

.form-control.is-invalid {
    border-color: #d32f2f;
    background-color: #ffebee;
}

.error-msg {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: bold;
}

.privacy-box {
    height: 120px;
    overflow-y: scroll;
    border: 1px solid #ccc;
    padding: 10px;
    background: #f9f9f9;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
}

.btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

/* セキュリティボックス */
.security-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-top: 40px;
    border: 1px solid #e2e8f0;
}

.security-box p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* スマホ用フォーム調整 */
@media (max-width: 767px) {
    .form-table th, .form-table td {
        display: block;
        width: 100%;
    }
    .form-table th {
        border-bottom: none;
    }
    .form-table td {
        border-top: none;
        padding-top: 0;
        margin-bottom: 10px;
    }
    .security-box {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================================
   19. ポップアップ（モーダル）設定
========================================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-title {
    color: var(--primary-color);
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.confirm-table th {
    background: #f1f5f9;
}
.confirm-table td {
    background: #fff;
}
/* =========================================================
   スマホ時のロゴ（サイト名）サイズ調整
========================================================= */
@media (max-width: 767px) {
    .logo {
        font-size: 1.3rem; /* 文字を少し小さくして確実に1行に収める */
        letter-spacing: 0; /* 文字の間隔を少し詰めてスッキリさせる */
    }
    .header-inner h1 {
        font-size: 0.75rem; /* ロゴ上の「◇不動産...」の文字もバランスを取って微縮小 */
        margin-bottom: 2px;
    }
}
/* =========================================================
   20. タブ切り替えレイアウト（会社案内など）
========================================================= */
.tab-wrapper {
    margin-top: 20px;
}

.tab-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-btn {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    background: #e2e8f0;
    color: #64748b;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    margin-right: 5px;
    transition: all 0.3s ease;
    border: 1px solid #cbd5e1;
    border-bottom: none;
}

.tab-btn:last-child {
    margin-right: 0;
}

.tab-btn:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}

/* 選択されているタブのデザイン */
.tab-btn.active {
    background: var(--white);
    color: var(--primary-color);
    border-top: 3px solid var(--primary-color);
    /* 下のコンテンツボックスと繋がっているように見せるテクニック */
    position: relative;
    z-index: 2;
    padding-bottom: 16px;
    margin-bottom: -1px;
}

/* タブの中身（初期状態は隠す） */
.tab-panel {
    display: none;
    animation: fadeInTab 0.4s ease;
}

/* activeが付いた時だけ表示する */
.tab-panel.active {
    display: block;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* スマホ用のタブ調整 */
@media (max-width: 767px) {
    .tab-btn {
        font-size: 0.85rem;
        padding: 12px 5px;
        margin-right: 2px;
    }
}