body {
    font-family: "游明朝 Medium", "Yu Mincho Medium", "YuMincho Medium", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", serif;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: white;
}



.body-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    color: black;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0px 0px 0px;
}

header .logo {
    height: 60px;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    margin-left: 10px;
}

header .logo h1 a {
    color: black;
    text-decoration: none;
    font-size: 24px;
    line-height: 50px;
}

header .logo img {
    height: 60px;
    width: auto;
    margin-right: 5px;
}

header .logo h1 {
    margin-left: 6px;
}


header nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
}

header nav a {
    color: black;
    text-decoration: none;
    font-weight: solid;
}

/* ハンバーガーアイコンのスタイル */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding-top: 12px;
    margin-right: 15px;
    text-align: center;
}

.hamburger .ham_line {
    display: block;
    height: 2px;
    width: 22px;
    background-color: black;
    margin: 5px auto 5px auto;    
}

.hamburger .ham_menu {
    display: block;
    background-color: transparent;
    margin: 1px 0;
    text-align: center;
    font-size: 9px;
    margin: -2px auto 5px auto;
    color: black;
}

/* ナビメニュー */
#nav-menu {
    display: block;
    margin-right: 10px;
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }
    #nav-menu {
        display: none;
    }
    #mobile-nav-menu.active {
        display: block;
    }
    #mobile-nav-menu ul {
        flex-direction: column;
    }
    #mobile-nav-menu li {
        flex: 1;
        width: 100%;
    }

    header .logo {
        font-size: 22px;
    }
    
    header .logo h1 a {
        font-size: 22px;
    }

    .bus_hours {
        margin-right: 4px;
    }
}

#nav-menu.active {
    display: block;
}

/* モバイルナビメニュー */
#mobile-nav-menu {
    display: none;
    border-top: 1px solid #4a4a4a;
    background-color: white;
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 70px;
    left: 0;
    z-index: 999;
}

#mobile-nav-menu ul li:first-child {
    margin-top: 0px;
}

#mobile-nav-menu ul {
    list-style: none;
    margin-top: 0;
    padding: 0;
    background-color: transparent;
}

#mobile-nav-menu li {
    border-bottom: 1px solid #4a4a4a;
    background-color: transparent;
    margin-top: -20px;
    margin-bottom: 0px;
    padding: 0px;
}

#mobile-nav-menu a {
    color: black;
    background-color: transparent;
    text-decoration: none;
    display: block;
    padding: 30px 0px 10px 10px;
}

#mobile-nav-menu a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* トップ画像のスタイル */
.top-image{
    position: relative;
    margin-top: 70px;
}

.top-image img {
    width: 100%;
    height: auto;
}


.overlay-text {
    position: absolute;
    bottom: 10px;
    left: 0;
    color: white;
    background-color: transparent;
    padding-left: 20px;
    padding-bottom: 5px;
    pointer-events: none;
}

.overlay-text .title{
    color: white;
    font-weight: 900;
    font-size: 30px;
    text-shadow: 3px 3px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 0px;
    background-color: transparent;
}

.overlay-text .text{
    color: white;
    font-weight: 600;
    font-size: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin: 0px;
    background-color: transparent;
}

@media (min-width: 768px) {

    .overlay-text .title{
        font-size: 44px;
    }
    
    .overlay-text .text{
        font-size: 34px;
    }
}

/* --- エラーページ用：テキストオーバーレイ --- */
.overlay-error-text {
    position: absolute;
    bottom: 10px;
    left: 40%;
    color: #302F30;
    background-color: transparent;
    padding-left: 20px;
    padding-bottom: 5px;
    pointer-events: none;
}

.overlay-error-text .title {
    color: #302F30;
    font-weight: 900;
    font-size: 15px;
    text-shadow: 3px 3px 4px rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.1;
    background-color: transparent;
}

.overlay-error-text .text {
    color: #302F30;
    font-weight: 600;
    font-size: 12px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    margin-bottom: 45px;
    line-height: 1.3;
    background-color: transparent;
}

.overlay-error-text .message {
    color: #302F30;
    font-weight: 500;
    font-size: 11px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.7);
    margin: 0px;
    line-height: 1.4;
    background-color: transparent;
}

@media (min-width: 768px) {
    .overlay-error-text .title {
        font-size: 38px;
    }
    
    .overlay-error-text .text {
        margin-top: 8px;
        margin-bottom: 80px;
        font-size: 20px;
    }
    
    .overlay-error-text .message {
        font-size: 16px;
    }
}


footer {
    background-color: transparent;
    color: black;
    text-align: center;
    padding: 10px 0;
    bottom: 0;
    width: 100%;
    z-index: 2000;
}



/* =========================================
   トップページ専用スタイル & ティザーセクション
========================================= */

/* --- イントロダクション --- */
.intro-section {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
}

.intro-section h2 {
    font-size: 24px;
    color: #302F30;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.intro-section p {
    font-size: 17px;
    color: #555;
    line-height: 2;
    max-width: 800px;
    margin: 0 auto;
}

/* スマホ表示時の文字サイズ調整 */
@media screen and (max-width: 768px) {
    .intro-section h2 { font-size: 20px; }
    .intro-section p { font-size: 14px; }
}

/* --- 取扱業務（ティザー版） --- */
.services-teaser {
    position: relative;
    padding: 60px 20px 100px;
    background-color: #F7F6F2; /* 優しいオフホワイト */
}

.cat-left-bottom {
    position: absolute;
    bottom: 0;   /* ★下端にぴったり合わせる */
    left: -30px;     /* ★左端にぴったり合わせる（少し隙間を空けたい場合は left: 10px; など） */
    width: auto;
    max-width: 210px; /* ★猫のサイズ。画像に合わせて調整してください */
    z-index: 10;
    pointer-events: none; /* 猫に重なった部分のテキストやボタンをクリックできるようにする */
}

.services-teaser h2 {
    text-align: center;
    font-size: 24px;
    color: #302F30;
    margin-bottom: 30px;
}

/* SEO用の業務一覧（デザイン上は控えめに表示） */
.seo-keywords-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.seo-keywords-list h3 {
    font-size: 14px;
    color: #666;
    background-color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid #E0DCD3;
    font-weight: normal;
    margin: 0;
}

/* 準備中ボックス */
.coming-soon-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 50px 30px;
    background-color: #ffffff;
    border: 2px dashed #D0C9B8;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.status-badge {
    display: inline-block;
    background-color: #E67E22;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.teaser-message {
    font-size: 18px;
    color: #302F30;
    line-height: 1.8;
    margin-bottom: 20px;
}

.teaser-note {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* ボタン装飾 */
.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background-color: #302F30;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    opacity: 0.8;
}

/* =========================================
   HP校正要件（1〜7）の反映
========================================= */

/* 要件1: トップ画像のキャッチコピーを右側に縦書き配置 [cite: 3] */
.vertical-layout {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    padding: 40px 30px;
    pointer-events: none; /* 裏の画像が触れるように */
}

.vertical-layout .title {
    writing-mode: vertical-rl; /* 縦書き指定 */
    position: absolute;
    top: 10%;
    right: 8%; /* 右側に配置 */
    font-size: clamp(18px, 5vw, 48px);
    font-weight: 840;
    color: #000;
    text-shadow: 3px 3px 3px rgba(255, 255, 255, 1);
    line-height: 1.5;
}

.vertical-layout .text {
    writing-mode: vertical-rl; 
    position: absolute;
    bottom: 5%;  
    left: 7%;  
    font-size: clamp(15px, 3.5vw, 32px);
    font-weight: 640;
    color: #000;
    text-shadow: 2px 2px 2px rgba(255, 255, 255, 1);
    line-height: 1.5;
}


/* --- 縦書きの各行の制御 --- */
.vertical-layout .title span {
    display: block; 
}
.vertical-layout .title .line2 {
    margin-top: 1.5em; 
}

.vertical-layout .text span {
    display: block; 
}
.vertical-layout .text .line2 {
    margin-top: 1.0em; 
}

/* 要件5: 取扱業務の枠幅統一とリンク化 [cite: 27, 28, 29] */
.list-uniform {
    display: flex;
    flex-direction: column; /* 縦に並べる */
    align-items: center;
}

.service-link {
    text-decoration: none;
    width: 100%;
    max-width: 450px; /* 全ての枠幅をここで固定 */
    display: block;
}

.service-link h3 {
    margin: 0;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.service-link:hover h3 {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.inline-link {
    color: var(--color-accent, #E67E22);
    text-decoration: underline;
    font-weight: bold;
    transition: opacity 0.3s;
}

.inline-link:hover {
    opacity: 0.7;
}


/* =========================================
   下層ページ共通トップ画像（横書きタイトル重ね）
========================================= */
.sub-top-image {
    position: relative;
    margin-top: 70px; /* 固定ヘッダーの高さ分、上を空ける */
}

.sub-top-image img {
    width: 100%;
    height: auto;
    display: block;
}

.sub-overlay-text {
    position: absolute;
    top: 25%;
    right: 15%;
    width: auto;
    text-align: right;
    pointer-events: none;
}

.sub-overlay-text .page-title {
    font-size: clamp(24px, 5vw, 48px);
    font-weight: 840;
    color: #000;
    margin: 0 0 8px 0;
    letter-spacing: 0.1em;
    text-shadow: 3px 3px 3px rgba(255, 255, 255, 1);
}

.sub-overlay-text .page-subtitle {
    font-size: clamp(15px, 2vw, 20px);
    color: #000;
    font-weight: 640;
    margin: 0;
    letter-spacing: 0.15em;
    font-family: sans-serif;
    text-transform: uppercase;
    text-shadow: 2px 2px 1px rgba(255, 255, 255, 1);
}

.sub-overlay-text-left {
    position: absolute;
    top: 25%;
    left: 15%;
    width: auto;
    text-align: right;
    pointer-events: none;
}

.sub-overlay-text-left .page-title {
    font-size: clamp(24px, 5vw, 48px);
    font-weight: 840;
    color: #000;
    margin: 0 0 8px 0;
    letter-spacing: 0.1em;
    text-shadow: 3px 3px 3px rgba(255, 255, 255, 1);
}

.sub-overlay-text-left .page-subtitle {
    font-size: clamp(15px, 2vw, 20px);
    color: #000;
    font-weight: 640;
    margin: 0;
    letter-spacing: 0.15em;
    font-family: sans-serif;
    text-transform: uppercase;
    text-shadow: 2px 2px 1px rgba(255, 255, 255, 1);
}

.sub-overlay-text-left-more {
    position: absolute;
    bottom: 12%;
    left: 5%;
    width: auto;
    text-align: right;
    pointer-events: none;
}

.sub-overlay-text-left-more .page-title {
    font-size: clamp(24px, 5vw, 48px);
    font-weight: 840;
    color: #000;
    margin: 0 0 8px 0;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 2px rgba(255, 255, 255, 1);
}

.sub-overlay-text-left-more .page-subtitle {
    font-size: clamp(15px, 2vw, 20px);
    color: #000;
    font-weight: 640;
    margin: 0;
    letter-spacing: 0.15em;
    font-family: sans-serif;
    text-transform: uppercase;
    text-shadow: 2px 2px 1px rgba(255, 255, 255, 1);
}
/* =========================================
   パンくずリスト（Breadcrumb / SEO対応）
========================================= */
.home-link {
    display: inline-flex;
    align-items: center;
    gap: 4px; /* アイコンと文字の間の隙間 */
}

.icon-home {
    /* アイコンと文字の中心を合わせるための微調整 */
    margin-bottom: 0px; 
}

.breadcrumb {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 20px 10px; /* 画像の下に来るため、上部固定ヘッダー分の余白をカット */
    background-color: #fff; /* 背景は白にしてコンテンツへ繋げる */
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 13px;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    color: #888;
}

.breadcrumb li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb li a:hover {
    color: #E67E22;
    text-decoration: none;
}

.breadcrumb li:not(:last-child)::after {
    content: "\003E"; /* > 記号 */
    margin: 0 10px;
    color: #000;
    font-size: 11px;
}

.breadcrumb .current-page {
    color: #302F30;
    font-weight: bold;
}


/* =========================================
   料金のご案内ページ専用スタイル
========================================= */


/* 料金表の見出し */
.fees-heading {
    font-size: 22px;
    color: #302F30;
    border-left: 4px solid #E67E22; /* オレンジのラインでアクセント */
    padding-left: 15px;
    margin: 50px 0 20px 0;
}

/* 料金テーブル */
.fees-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
    background-color: #fff;
}

.fees-table th,
.fees-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #E0DCD3; /* 柔らかいグレーの罫線 */
}

.fees-table th {
    width: 60%;
    text-align: left;
    font-weight: normal;
    color: #302F30;
    font-size: 16px;
}

.fees-table td {
    width: 40%;
    text-align: right;
    color: #302F30;
    font-size: 18px;
    font-weight: bold; /* 金額は太字で見やすく */
}

/* その他の事項・実費についての案内枠 */
.fees-attention {
    background-color: #fff;
    border: 2px solid #E0DCD3;
    border-radius: 8px;
    padding: 30px;
    margin-top: 0px;
    margin-bottom: 40px;
}

.fees-content {
    margin-bottom: 80px;
}

/* 料金表：その他の事項（番号付きリスト） */
.attention-list {
    padding-left: 1.5em;
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}

.attention-list li {
    margin-bottom: 10px; /* 各項目の間に少し余白を開けて読みやすく */
}

.attention-list li:last-child {
    margin-bottom: 0;
}


/* =========================================
   下層ページ・料金表のスマホ対応（メディアクエリ）
========================================= */
@media screen and (max-width: 768px) {
    .sub-top-image {
        margin-top: 60px; /* スマホ用ヘッダーの高さに合わせる */
    }
    
    .breadcrumb {
        padding: 15px 15px 5px;
        font-size: 11px;
    }

    .intro-text {
        text-align: left;
        font-size: 14px;
    }
    
    /* スマホでは横並びを解除して縦積みにする */
    .fees-table th,
    .fees-table td {
        display: block; 
        width: 100%;
        text-align: left;
        padding: 15px 10px;
        box-sizing: border-box;
    }
    
    .fees-table th {
        text-align: left;
        border-bottom: none;
        padding-bottom: 5px;
        font-size: 15px;
    }
    
    .fees-table td {
        text-align: right;
        padding-top: 0;
        font-size: 18px;
    }

    .attention-list {
        font-size: 14px; /* スマホ時は少し小さく */
        padding-left: 1.2em;
    }
}


/* =========================================
   取扱業務（services.php）専用スタイル
========================================= */
.services-detail {
    margin-bottom: 80px;
}

/* 大分類のタイトル（ビジネスサポートなど） */
.category-title {
    font-size: 22px;
    color: #302F30;
    border-left: 4px solid #2F6F41; 
    padding-left: 15px;
    margin: 50px 0 20px 0;
}

/* 各業務のカードデザイン */
.service-card {
    background-color: #fff;
    border: 1px solid #E0DCD3;
    border-radius: 8px;
    padding: 35px 30px;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02); /* うっすらとした上品な影 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* マウスを乗せた時に少しフワッと浮き上がる演出 */
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

/* 業務名 */
.service-name {
    font-size: 20px;
    color: #2F6F41; 
    margin: 0 0 15px 0;
}

/* 業務の説明文 */
.service-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin: 0 0 0 0;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-name {
        font-size: 18px;
    }
    
    .service-desc {
        font-size: 14px;
    }
}

/* =========================================
   事務所案内（about.php）専用スタイル
========================================= */

.about-title {
    font-size: 22px;
    color: #302F30;
    border-left: 4px solid #D40045; 
    padding-left: 15px;
    margin: 50px 0 20px 0;
}

.about-card {
    display: flex;
    align-items: center;
    background-color: #F7F6F2;
    border-radius: 12px;
    padding: 30px 40px;
    margin-bottom: 80px;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.mascot-gallery {
    flex: 0 0 240px; /* 全体の幅を固定 */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 縦3列に分割 */
    gap: 8px; /* 写真と写真の間の隙間 */
}

.gallery-img {
    width: 100%;
    aspect-ratio: 1 / 1; /* 強制的に正方形にする魔法のコード */
    object-fit: cover;   /* 画像が歪まないようにトリミング */
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* マウスを乗せると写真が少し浮き上がる演出 */
.gallery-img:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1;
    position: relative;
}

/* --- ライトボックス（拡大表示）のスタイル --- */
.lightbox {
    display: none; /* 初期状態は非表示 */
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.85); /* 半透明の黒背景 */
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    cursor: default; /* 画像の上ではカーソルを標準に */
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* --- 事務所概要テーブル --- */
.profile-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 80px;
    border-top: 1px solid #E0DCD3;
}

.profile-table th,
.profile-table td {
    padding: 20px;
    border-bottom: 1px solid #E0DCD3;
}

.profile-table th {
    width: 25%;
    text-align: left;
    background-color: #F7F6F2;
    color: #302F30;
    font-weight: bold;
}

.profile-table td {
    width: 75%;
    color: #302F30;
    line-height: 1.6;
}

/* --- アクセスマップ --- */
.about-access {
    margin-bottom: 80px;
}

.access-note {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.map-wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden; /* 角丸からはみ出たマップを隠す */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}


/* =========================================
   事務所案内のスマホ対応（メディアクエリ）
========================================= */
@media screen and (max-width: 768px) {

    .about-card {
        flex-direction: column-reverse; /* 画像を上に配置 */
        padding: 25px 20px;
        gap: 20px;
        text-align: center;
    }
    
    .about-image {
        max-width: 150px;
        margin: 0 auto;
    }
    
    .about-text .service-name {
        justify-content: center; /* タイトルを中央揃えに */
    }

    /* 事務所概要テーブルを縦積みに */
    .profile-table th,
    .profile-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    .profile-table th {
        padding-bottom: 10px;
        border-bottom: none;
    }
    
    .profile-table td {
        padding-top: 0;
        padding-bottom: 20px;
    }
}


/* =========================================
   お問い合わせフォーム（contact.php）専用スタイル
========================================= */

/* フォームの各行 */
.form-group {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px dashed #D5D1C8; /* 項目間の区切り線 */
    padding-bottom: 30px;
}

.form-group:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

/* ラベル部分（左側） */
.form-label {
    flex: 0 0 220px;
    font-weight: bold;
    color: #302F30;
    padding-top: 10px;
    font-size: 15px;
}

/* 必須・任意のバッジ */
.badge-required {
    background-color: #D32F2F; /* 目立つ赤 */
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: normal;
    vertical-align: middle;
}

.badge-optional {
    background-color: #888;
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: normal;
    vertical-align: middle;
}

/* 入力エリア（右側） */
.form-input {
    flex: 1;
}

/* テキストボックス・テキストエリアの共通スタイル */
.input-text,
.input-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #CCC;
    border-radius: 6px;
    font-size: 16px; /* スマホでのズーム防止のため16px以上にする */
    font-family: inherit;
    box-sizing: border-box;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.input-text:focus,
.input-textarea:focus {
    outline: none;
    border-color: #E67E22; /* 入力中はオレンジの枠線に */
    box-shadow: 0 0 5px rgba(230, 126, 34, 0.3);
}

.input-textarea {
    resize: vertical; /* 縦方向のみリサイズ可能に */
}

/* ラジオボタンのスタイル */
.radio-group {
    display: flex;
    gap: 20px;
    padding-top: 8px;
}

.radio-label {
    cursor: pointer;
    font-size: 15px;
    color: #302F30;
    display: flex;
    align-items: center;
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    transform: scale(1.2); /* ラジオボタンを少し大きくして押しやすく */
    cursor: pointer;
}

/* 送信ボタンエリア */
.form-submit {
    text-align: center;
    margin-top: 40px;
}

.privacy-note {
    font-size: 13px;
    color: #555;
    margin-bottom: 20px;
}

.privacy-note a {
    color: #E67E22;
    text-decoration: underline;
}

.btn-submit {
    background-color: #E67E22;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 18px 60px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
}

.btn-submit:hover {
    background-color: #CF6F1A;
    transform: translateY(-2px);
}


/* =========================================
   お問い合わせフォームのスマホ対応
========================================= */
@media screen and (max-width: 768px) {
    .form-wrapper {
        padding: 30px 20px;
    }
    
    /* スマホでは縦並びに変更 */
    .form-group {
        flex-direction: column;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .form-label {
        flex: none;
        margin-bottom: 10px;
        padding-top: 0;
    }
    
    .radio-group {
        flex-direction: column; /* ラジオボタンも縦並びに */
        gap: 15px;
    }

    .btn-submit {
        width: 100%;
        padding: 16px 0;
    }
}

/* --- プライバシーポリシー同意チェックボックス --- */
.privacy-check {
    margin-bottom: 25px;
    text-align: center;
}

.privacy-check label {
    flex-direction: column; /* 横並びを縦並び（2段）に変更 */
    gap: 12px; /* 1行目と2行目の隙間 */
    cursor: pointer;
    font-size: 15px;
    color: #302F30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    border: 1px solid #E0DCD3;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.privacy-check label:hover {
    background-color: #FDFBFA;
    border-color: #E67E22;
}

/* PC時の横並び設定 */
.privacy-label-text {
    margin-right: 15px;
}

.privacy-label-action {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold; /* 「同意する」を少し目立たせる */
}

.privacy-check input[type="checkbox"] {
    transform: scale(1.4);
    cursor: pointer;
    margin: 0;
}

.privacy-check a {
    color: #E67E22;
    text-decoration: underline;
    font-weight: bold;
}

.privacy-check a:hover {
    text-decoration: none;
}

/* =========================================
   スマホ対応：チェックボックスを2行にする
========================================= */
@media screen and (max-width: 768px) {
    .privacy-check label {
        padding: 20px 15px; /* スマホ用に上下の余白を少し広げる */
        width: 100%; /* 横幅いっぱいに広げて押しやすくする */
        box-sizing: border-box;
    }
    
    .privacy-label-text {
        margin-right: 0;
        font-size: 14px;
    }
    
    .privacy-label-action {
        font-size: 16px; /* 「同意する」の文字を少し大きくしてタップしやすく */
    }
}


/* --- エラーメッセージボックス --- */
.form-error-box {
    max-width: 800px;
    margin: 30px auto 0 auto; /* 中央揃えに調整 */
    padding: 20px;
    background-color: #FDECEA;
    border: 1px solid #D32F2F;
    border-radius: 8px;
    color: #D32F2F;
    text-align: left; /* リストが綺麗に並ぶよう左揃え */
}

.form-error-box p {
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
    color: #D32F2F;
}

.form-error-box ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.form-error-box li {
    font-size: 15px;
    line-height: 1.6;
}


/* =========================================
   プライバシーポリシー（privacy.php）専用スタイル
========================================= */

.privacy-content {
    line-height: 1.8;
    color: #302F30;
}

.privacy-intro {
    margin-bottom: 50px;
    font-size: 15px;
}

.privacy-heading {
    font-size: 22px;
    color: #302F30;
    border-left: 4px solid #093F86; 
    padding-left: 15px;
    margin: 50px 0 0px 0;
}

.privacy-text {
    padding-left: 15px;
    padding-right: 15px;
}

.privacy-attention {
    background-color: #fff;
    border: 2px solid #E0DCD3;
    border-radius: 8px;
    padding: 30px;
    margin-top: 0px;
    margin-bottom: 40px;
}

.privacy-content p {
    margin-bottom: -15px;
    font-size: 15px;
}

.privacy-list {
    margin-top: 30px;
    margin-bottom: -15px;
    padding-left: 45px; 
}

.privacy-list li {
    margin-bottom: 5px;
    font-size: 15px;
    line-height: 1.7;
}

/* お問い合わせ窓口ボックス */
.privacy-contact-box {
    background-color: #F7F6F2;
    border: 1px solid #E0DCD3;
    border-radius: 8px;
    padding: 40px;
    margin-top: 50px;
    margin-bottom: 50px;
    text-align: left;
}

.privacy-contact-title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 20px;
    color: #E67E22;
}

.contact-details p {
    margin-bottom: 8px;
}

.privacy-contact-box a {
    color: #E67E22;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.privacy-contact-box a:hover {
    opacity: 0.7;
}

.privacy-date {
    margin-top: 30px !important;
    text-align: right;
    font-size: 14px !important;
    color: #777 !important;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .privacy-heading {
        font-size: 18px;
        margin-top: 40px;
    }
    .privacy-contact-box {
        padding: 25px 20px;
        margin-top: 50px;
    }
    .contact-details p {
        margin-bottom: 20px;
    }
    
    .contact-details strong {
        display: block;
        margin-bottom: 4px;
    }
    
    .contact-details .contact-value {
        display: block;
        padding-left: 10px; 
    }
}


/* =========================================
   サイトマップ（sitemap.php）専用スタイル
========================================= */

.sitemap-section {
    margin-top: 50px;
}

.sitemap-intro {
    margin-bottom: 40px;
    font-size: 15px;
    color: #302F30;
}

.sitemap-box {
    background-color: #F7F6F2;
    border: 1px solid #E0DCD3;
    border-radius: 8px;
    padding: 20px 40px;
}

/* リスト全体の設定 */
.sitemap-list {
    list-style: none; 
    padding: 0;
    margin: 0;
}

/* 各項目の間にある区切り線 */
.sitemap-list li {
    margin-bottom: 0;
    border-bottom: 1px dashed #D5D1C8; 
}

.sitemap-list li:last-child {
    border-bottom: none; 
}

/* リンク（文字）の設定 */
.sitemap-list a {
    display: block; 
    padding: 20px 10px;
    color: #302F30;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* リンクの左側に小さなオレンジ色の矢印をCSSで作る */
.sitemap-list a::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-top: 2px solid #E67E22;
    border-right: 2px solid #E67E22;
    transform: rotate(45deg);
    margin-right: 15px;
    vertical-align: middle;
    margin-top: -3px; 
}

/* マウスが乗った時（ホバー時）の動き */
.sitemap-list a:hover {
    color: #E67E22;
    background-color: #fff; 
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .sitemap-box {
        padding: 10px 20px;
    }
    .sitemap-list a {
        padding: 18px 5px;
        font-size: 15px;
    }
}

/* =========================================
   フッター（footer.php）専用スタイル
========================================= */

footer {
    border-top: 1px solid #E0DCD3;
    background-color: #fff; 
    color: #302F30; 
    padding: 5px 0 10px 0;
    margin-top: 15px;
}

.footer-links-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 5px 20px;
}

/* リンクを右揃えで横に並べる（PC用） */
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end; 
    gap: 10px; 
}

.footer-nav a {
    color: #777;
    text-decoration: none;
    font-size: 13px;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* コピーライトは中央揃え */
.footer-copyright {
    text-align: center;
    font-size: 13px;
    padding-top: 5px;
    color: #777; 
}

/* --- スマホ対応 --- */
@media screen and (max-width: 768px) {
    .footer-nav {
        flex-direction: column; 
        align-items: flex-end;  
        gap: 0px; 
    }
}