/* =================================================
   0. 設定変数 (CSS Variables)
   ================================================= */
:root {
    /* ブランドカラー */
    --color-primary: #004d43;       /* メインの緑 */
    --color-primary-hover: #003830; 
    --color-accent: #d4af37;        /* 金色 */
    --color-accent-hover: #b5952f;
    --color-bg-light: #f4f7f4;      /* 薄いグレー背景 */
    --color-text-main: #333333;
    --color-text-sub: #666666;
    --color-white: #ffffff;
    
    /* ボタンカラー */
    --color-line: #06C755;
    --color-line-shadow: #05a848;
    --color-orange: #ff9800;
    --color-orange-shadow: #e68a00;

    /* レイアウト */
    --width-container: 1100px;
    --header-height: 80px; /* 必要に応じて調整 */
}

/* =================================================
   1. 基本設定 (Reset & Base)
   ================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.8;
    color: var(--color-text-main);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* 横スクロール防止 */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 共通コンテナ設定 */
.container {
    max-width: var(--width-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* =================================================
   2. ヘッダー設定
   ================================================= */
.header {
    position: sticky;
    top: -75px; /* スクロール時に少し隠す演出用（JavaScriptなしでの簡易実装） */
    z-index: 2000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: #fff;
    width: 100%;
}

.header-top {
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tagline {
    font-size: 0.9rem;
    color: var(--color-text-sub);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tel-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.tel-label {
    font-size: 0.7rem;
    color: var(--color-primary);
    font-weight: bold;
}

.tel-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.hours {
    font-size: 0.8rem;
    color: var(--color-text-sub);
    text-align: right;
}

.btn-contact-head {
    background: var(--color-accent);
    color: white !important;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 3px 0 #b38f20;
}

.btn-contact-head:hover {
    background: var(--color-accent-hover);
    transform: translateY(1px);
    box-shadow: 0 2px 0 #b38f20;
}

.header-main {
    padding: 10px 0;
    background: var(--color-primary);
    color: white;
}

.header-main-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 200px;
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav ul li {
    font-weight: bold;
    font-size: 1.1rem;
}

.nav ul li.sep {
    color: rgba(255, 255, 255, 0.3);
}

.nav-unshown,
.nav-open {
    display: none;
}

/* =================================================
   2.5 パンくずリスト
   ================================================= */
.breadcrumb {
    background-color: var(--color-bg-light); /* 変数を利用 */
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    color: var(--color-text-sub); /* 変数を利用 */
}

.breadcrumb-list li a {
    color: var(--color-primary); /* 変数を利用 */
    text-decoration: none;
}

.breadcrumb-list li a:hover {
    text-decoration: underline;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin: 0 12px;
    color: #ccc;
}

.breadcrumb-list li i {
    margin-right: 5px;
}

/* =================================================
   3. ヒーローセクション
   ================================================= */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('img/onebase01.jpeg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: white;
}

/* サブページ用背景クラス */
.hero-support { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('img/pc-image01.jpg'); }
.hero-school { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('img/school-image01.jpeg'); }
.hero-design { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('img/onebase02.jpeg'); }
.hero-access { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('img/onebase03.jpeg'); }

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero h2.white {
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* =================================================
   4. 共通セクション・コンポーネント
   ================================================= */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-accent);
}

.section-title.white {
    color: #fff;
}
.section-title.white::after {
    background: #fff;
}

.section-desc {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
}

/* 背景色ユーティリティ */
.bg-gray {
    background: var(--color-bg-light);
}

.bg-deep {
    background: var(--color-primary);
    color: #fff;
}
.bg-deep .sub-title.white {
    color: #fff !important;
}
.bg-deep .sub-desc {
    color: rgba(255, 255, 255, 0.9);
}

/* レイアウトユーティリティ */
.flex-row {
    display: flex;
    align-items: center;
    gap: 50px;
}
.flex-row.reverse {
    flex-direction: row-reverse;
}
.content-box, .image-box {
    flex: 1;
}
.image-box img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* サブタイトル類 */
.sub-title {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}
.sub-desc {
    margin-bottom: 25px;
}

/* チェックリスト */
.check-list li {
    margin-bottom: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
}
.check-list i {
    color: var(--color-accent);
    margin-right: 12px;
}

/* .check-list li.white i {
    color: #fff;
}*/

/* サービスカードグリッド：親要素 */
.service-grid {
    display: flex;
    flex-wrap: wrap;        /* 3つ並んだら自動で折り返す */
    gap: 30px;              /* カード同士の隙間 */
    justify-content: center; /* 2行目のカードを中央に寄せる */
    margin-top: 40px;
}

/* 各カード：子要素 */
.service-card {
    /* PC表示で3つ並べるための幅計算（重要！） */
    width: calc((100% - 60px) / 3);   
    background: white;
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--color-primary); /* 下にブランド色のアクセント */
    transition: 0.3s ease; /* 動きを滑らかに */
    box-sizing: border-box; /* パディングを含めて幅計算 */
}

/* マウスを乗せた時の動き */
.service-card:hover {
    transform: translateY(-5px); /* 少し上に浮く */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); /* 影を強くして浮遊感を出す */
}

/* アイコンと見出しの装飾 */
.service-card i {
    font-size: 3rem;
    color: var(--color-accent); /* 金色アイコン */
    margin-bottom: 20px;
    display: block; /* 中央寄せを安定させる */
}

.service-card h4 {
    margin: 15px 0;
    font-size: 1.3rem;
    color: var(--color-primary); /* 緑色の見出し */
    font-weight: bold;
}

/* 3ステップ専用カードスタイル */
.repair-step-card {
    border: 2px solid #eee;
    position: relative;
    padding-top: 50px;
}

.repair-step-card:hover {
    border-color: var(--color-primary);
}

.repair-step-card i {
    margin-top: 15px;
}

.repair-step-card p {
    text-align: left;
}

.step-badge {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--color-primary);
    color: #fff;
    padding: 2px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 10;
}

/* ボタン類 */
.center-btn {
    text-align: center;
    margin-top: 30px;
}
.btn-more {
    display: inline-block;
    padding: 12px 50px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: bold;
    border-radius: 5px;
}
.btn-more:hover {
    background: var(--color-primary);
    color: #fff !important;
}

.btn-outline {
    display: inline-block;
    padding: 10px 30px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: bold;
    border-radius: 5px;
    margin-top: 15px;
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff !important;
}
.btn-outline.white {
    border-color: #fff;
    color: #fff !important;
}
.btn-outline.white:hover {
    background: #fff;
    color: var(--color-primary) !important;
}

/* CTAエリア */
.cta-section {
    background: var(--color-accent); /* 金色背景 */
    padding: 60px 0;
    text-align: center;
    color: white;
}

.cta-section h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: bold;
}

/* ボタンコンテナ：重なりを防止する設定 */
.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* 画面が狭い時に自動で折り返す */
    gap: 15px;       /* ボタン間の隙間 */
    margin-top: 30px;
}

/* ボタン共通設定：サイズ・配置・アニメーション */
.cta-tel, 
.cta-mail, 
.cta-line, 
.btn-line, 
.btn-tel-orange,
.btn-base { /* ←BASEを追加 */
    display: inline-flex;      /* 横並び中央揃え */
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 22px 40px;        /* 縦長に調整した高さを維持 */
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    transition: 0.3s;
    line-height: 1;            /* 文字の上下位置を安定させる */
    min-width: 260px;          /* 幅を揃えて美しく見せる */
    box-sizing: border-box;
}

/* 各ボタンのカラー・角丸設定 */
/* 四角いボタン（5px）グループ */
.cta-tel, .cta-mail, .cta-line, .btn-base {
    border-radius: 5px;
}

/* 丸いボタン（50px）グループ */
.btn-line, .btn-tel-orange {
    border-radius: 50px;
}

/* 個別カラー設定 */
.cta-tel {
    background: var(--color-primary);
    color: white !important;
}

.cta-mail {
    background: white;
    color: var(--color-primary) !important;
    border: 1px solid #eee; /* 白背景なので少し境界線を */
}

.cta-line, .btn-line {
    background: var(--color-line);
    color: white !important;
    box-shadow: 0 4px 0 var(--color-line-shadow);
}

.btn-tel-orange {
    background: var(--color-orange);
    color: #fff !important;
    box-shadow: 0 4px 0 var(--color-orange-shadow);
}

/* BASEボタン専用：枠線ありのデザイン */
.btn-base {
    background: white;
    color: var(--color-primary) !important;
    border: 2px solid var(--color-primary);
    min-width: auto; /* コンテンツ内なので幅指定を解除する場合 */
    padding: 15px 30px; /* カード内なら少し小さくしてもOK */
}

/* ホバーアクション */
.btn-tel-orange:hover,
.btn-line:hover,
.cta-tel:hover,
.cta-mail:hover,
.cta-line:hover,
.btn-base:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* ショップ誘導エリア全体の調整 */
.shop-nav {
    margin-top: 25px;
    text-align: left; /* PCでは左寄せ、スマホ対応はメディアクエリで */
}

/* 「1点からでも〜」の補足テキスト */
.shop-nav-text {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--color-accent); /* 金色で注目させる */
    margin-bottom: 8px;
}

/* 店舗案内のスタイル */
.greeting-name {
    color: var(--color-primary); /* #004d43 (メインの緑) */
    text-align: right;           /* 右揃え */
    font-weight: bold;           /* 太字 */
    font-size: 1.1rem;           /* 必要に応じて少し大きく調整 */
}

.map-large {
    height: 450px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-large iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* =================================================
    5. テーブル設定
   ================================================= */
.table-wrapper {
    margin-top: 30px;
    overflow-x: auto;
}

.table-wrapper p {
    text-align: center;
    margin-top: 30px;
    font-size: 1.05rem;
    color: #555;
    font-weight: bold;
    line-height: 1.8;
}

.price-table, .company-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #eee;
    table-layout: auto;
}

/* --- 見出し（th）の共通設定 --- */
/* price-table内のすべてのthに色を付ける（theadがなくてもOK） */
.price-table th {
    background: var(--color-primary);
    color: #fff !important; /* 強制的に白文字に */
    padding: 15px;
    font-weight: bold;
    border: 1px solid #ddd;
    text-align: center;
}

/* 修理料金テーブル（2列）などの特定の1列目だけ左寄せにする設定 */
.table-head-blue th:first-child {
    text-align: left;
}

/* --- データセル（td）の設定 --- */
.price-table td, .company-table td, .law-table td {
    padding: 15px 20px;
    border: 1px solid #eee;
    text-align: left; /* 基本はすべて左寄せ */
    vertical-align: middle;
}

/* 料金表（price-table）の最後の列だけを中央寄せにする */
/* ※特商法(company-tableなど)には効かないよう限定 */
.price-table:not(.company-table) tbody td:last-of-type {
    text-align: center;
    font-weight: bold;
    color: var(--color-primary);
    min-width: 120px;
}

/* カテゴリ結合（rowspan）があるセルの設定 */
.price-table td[rowspan] {
    background: #fdfdfd;
    /* font-weight: bold; */
    color: #333;
    /* text-align: center; */ /* カテゴリ名は中央寄せ */
}

/* パソコン修理テーブル用の小見出し（1枚ぶち抜き） */
.table-sub-head th {
    background: #f1f8f7 !important;
    color: var(--color-primary) !important;
    text-align: left !important;
    border-bottom: 2px solid var(--color-primary);
}

/* --- 会社概要・店舗案内 (.company-table) 専用の設定 --- */
/* 左側の項目名 (th) の装飾 */
.company-table th {
    width: 30%; /* 項目名の幅を固定して見やすく */
    font-weight: bold;
    text-align: center;
}

/* 右側の内容 (td) */
.company-table td {
    text-align: left !important; /* 強制的に左寄せ */
}

/* 縞模様（price-tableのみ） */
.price-table:not(.company-table) tr:nth-child(even) {
    background: #f9f9f9;
}

/* PCでは注釈を非表示 */
.scroll-hint {
    display: none;
}

/* =================================================
   6. お問い合わせフォーム・その他
   ================================================= */
.contact-section {
    padding: 80px 0;
    background-color: var(--color-bg-light); /* 薄いグレー背景を適用 */
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--color-primary); /* メインの緑を適用 */
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-top: 185%; 
    overflow: hidden;
}

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

/* お問い合わせページ独自の補足テキスト */
.contact-notice {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--color-text-sub); /* サブテキスト色を適用 */
    text-align: center;
}

/* =================================================
   7. サイトマップ
   ================================================= */
.sitemap-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.sitemap-category {
    margin-bottom: 50px;
}

.sitemap-head {
    font-size: 1.4rem;
    color: var(--color-primary); /* メインの緑を適用 */
    border-bottom: 2px solid var(--color-accent); /* 金色を適用 */
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.sitemap-head i {
    margin-right: 10px;
    color: var(--color-accent); /* 金色を適用 */
}

.sitemap-list > li {
    font-weight: bold;
    margin-bottom: 15px;
}

.sitemap-list ul {
    margin-top: 10px;
    padding-left: 25px;
}

.sitemap-list ul li {
    font-weight: normal;
    font-size: 0.95rem;
    margin-bottom: 8px;
    position: relative;
}

.sitemap-list ul li::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free"; /* 既存のパンくずリストに合わせて 6 に修正 */
    font-weight: 900;
    position: absolute;
    left: -15px;
    color: #ccc; /* 既存の区切り線色に統一 */
}

/* =================================================
   8. プライバシーポリシー
   ================================================= */
.privacy-wrapper {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8; /* 少し詰めると読みやすくなります */
    text-align: left; /* 左揃えを確実にする */
}

.privacy-intro {
    margin-bottom: 40px; /* 下の項目との間隔 */
    color: var(--color-text-main);
}

.privacy-item {
    margin-bottom: 40px;
}

.privacy-title {
    font-size: 1.4rem;
    color: var(--color-primary); /* メインの緑色を継承 */
    border-left: 5px solid var(--color-accent); /* 金色のアクセント */
    padding-left: 15px;
    margin-bottom: 20px;
    font-weight: bold;
}

.privacy-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.privacy-contact {
    background: var(--color-bg-light); /* 薄いグレー背景 */
    padding: 20px;
    border-radius: 5px;
    margin-top: 10px;
}

/* =================================================
   9. フッター
   ================================================= */
.footer {
    background: #333;
    color: white;
    padding: 60px 0 110px; /* 下部ナビ分の余白 */
}
.footer-flex {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.footer-info {
    flex: 1;
    min-width: 300px;
}
.footer-info h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: bold;
}
.footer-tel {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--color-accent);
    margin: 10px 0;
}
.footer-map {
    flex: 1;
    min-width: 300px;
}
.footer-map iframe {
    border-radius: 8px;
}
.sns-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}
.sns-links a {
    font-size: 1.8rem;
    color: white;
}
.footer-legal-links {
    text-align: center;
    margin: 30px 0 10px;
    border-top: 1px solid #444;
    padding-top: 20px;
}
.footer-legal-links a {
    color: #ccc;
    font-size: 0.85rem;
}
.footer-legal-links .sep {
    color: #555;
    margin: 0 15px;
}
.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
}

/* =================================================
   10. スマホ用固定ナビ
   ================================================= */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    display: flex;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}
.mobile-nav a {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 0.7rem;
    color: #333;
    border-right: 1px solid #eee;
}
.mobile-nav a i {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 2px;
}
.mobile-nav a:nth-child(1) { color: var(--color-primary); }
.mobile-nav a:nth-child(2) { color: var(--color-line); }

/* =================================================
   11. レスポンシブ設定 (PC微調整 & タブレット/スマホ)
   ================================================= */

/* PCでウィンドウを縮めた際（1024px〜1200px）の崩れ防止 */
@media (min-width: 1025px) and (max-width: 1200px) {
    .container { padding: 0 15px; }
    .logo img { width: 160px; }
    .nav ul { gap: 10px; }
    .nav ul li { font-size: 0.95rem; }
    .tel-number { font-size: 1.4rem; }
    .btn-contact-head { padding: 10px 15px; font-size: 0.9rem; }
    .tagline { font-size: 0.8rem; }
}

/* タブレット・スマホ表示 (1024px以下で切り替え) */
@media (max-width: 1024px) {
    /* --- レイアウト調整 --- */
    body { padding-top: 100px; }
    .header { position: fixed; top: 0; height: auto; }
    
    .header-top { display: none; /* スマホでは上部の帯を非表示 */ }

    .container {
        padding: 0 5% !important; /* 左右余白を5%で統一 */
    }
    .section {
        padding: 60px 20px !important; /* 上下左右余白をスマホ用に縮小 */
    }
    .section-title {
        margin-bottom: 35px; 
    }

    /* --- ハンバーガーメニュー --- */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: calc(100vh - 70px); /* 固定ナビの高さ(例:70px)分だけ短くする */
        bottom: 70px;               /* 下から70px浮かせる */
        overflow-y: auto;     /* 縦方向に中身が溢れたらスクロールさせる */
        -webkit-overflow-scrolling: touch; /* iOSでのスクロールを滑らかにする */
        background: var(--color-primary);
        padding: 60px 30px 40px;
        transition: 0.4s ease-in-out;
        z-index: 9998;
    }

    #nav-input:checked ~ .nav { right: 0; }
    
    .nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav ul li.sep { display: none; }

    .nav ul li a {
        display: block;
        padding: 15px 0;
        color: #fff;
    }

    /* ハンバーガーアイコン */
    .nav-open {
        display: block;
        width: 30px;
        height: 25px;
        position: relative;
        z-index: 10000;
        cursor: pointer;
    }

    .nav-open span, .nav-open span:before, .nav-open span:after {
        position: absolute;
        height: 3px;
        width: 100%;
        background: #fff;
        content: '';
        transition: .3s;
    }

    .nav-open span { top: 11px; }
    .nav-open span:before { top: -10px; }
    .nav-open span:after { top: 10px; }
    
    #nav-input:checked ~ .nav-open span { background: transparent; }
    #nav-input:checked ~ .nav-open span:before { top: 0; transform: rotate(45deg); }
    #nav-input:checked ~ .nav-open span:after { top: 0; transform: rotate(-45deg); }

    /* --- コンテンツ最適化 --- */
    .hero {
        padding: 60px 0;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero img {
        width: 100%;
        height: 300px;      /* スマホで見栄えの良い高さ */
        object-fit: cover;  /* これが重要！画像を比率を保ったまま切り抜きます */
        object-position: center;
    }

    /* 左寄せ対応 */
    .section-desc, .sub-desc, .service-card p {
        text-align: left;
    }

    /* タイトルだけを強制的に中央揃えにする */
    .section-title {
        text-align: center !important; /* 他の指定に負けないよう強制 */
        width: 100%;                  /* 幅をいっぱいにとって中央へ */
        margin-left: auto;
        margin-right: auto;
        padding-bottom: 15px;         /* 下線の余白 */
    }

    /* タイトルの下の装飾線（after疑似要素）も中央に配置 */
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* フレックス解除（縦並び） */
    .flex-row, .flex-row.reverse {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 20px;
    }

    .content-box {
        width: 100% !important;
        margin-bottom: 20px;
    }

    .image-box {
        width: 100% !important;
        margin-bottom: 20px;
        display: flex;            /* flexを有効にする */
        flex-direction: column;   /* 子要素（画像とpタグ）を縦に並べる */
        align-items: center;      /* 縦並びの状態で中央に寄せる */
        text-align: center;       /* テキストも中央寄せにする */
    }

    /* 画像自体の幅を調整（親の幅を超えないように） */
    .image-box img {
        max-width: 100%;
        height: auto;
        margin-bottom: 10px;      /* 画像と説明文の間の余白 */
    }

    /* 説明文（キャプション）の調整 */
    .img-caption {
        font-size: 0.9rem;
        color: var(--color-text-sub);
        padding: 0 10px;          /* 左右に少し余白を作る */
        text-align: left;         /* 長文の場合は左寄せの方が見やすいのでお好みで */
        display: inline-block;    /* 幅をコンテンツに合わせる */
        max-width: 100%;
    }

    /* テーブル設定 */    
    /* A. 基本は横スクロールさせる（design.htmlなどの長い表用） */
    .table-wrapper {
        width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 20px;
    }
    
    .price-table {
        width: 100% !important;
        max-width: none;
        min-width: 600px; /* 長い表はここで強制的に幅を持たせてスクロールさせる */
    }

    /* B. 【重要】スクロールさせないテーブル用のクラス */
    /* support.html, access.html, tokushoho.html で使用 */
    .price-table.no-scroll {
        min-width: auto !important; /* 横幅の強制を解除 */
        width: 100%;                /* 画面幅に合わせる */
        /* table-layout: fixed;        列幅を固定して崩れを防ぐ（任意） */
    }

    /* no-scrollの時のセル調整：文字がはみ出さないように折り返す */
    .price-table.no-scroll th,
    .price-table.no-scroll td {
        white-space: normal; /* 自動改行 */
        font-size: 0.9rem;   /* 少し文字を小さくして収まりやすく */
        padding: 10px;       /* 余白を微調整 */
    }

    /* 店舗概要・特商法など（項目名と中身の2列）は縦並びにせず、
       幅比率を調整して横並びのまま見やすくする */
    .company-table.no-scroll th {
        width: 30%; /* 項目名を3割 */
    }
    .company-table.no-scroll td {
        width: 70%; /* 内容を7割 */
    }

    .scroll-hint {
        display: block;          /* スマホで表示させる */
        font-size: 0.85rem;      /* 少し小さめに */
        color: var(--color-text-sub);
        margin-bottom: 8px;      /* 表との間の余白 */
        text-align: right;       /* 右寄せ（表の右側からはみ出していることを示唆） */
    }

    /* ボタン類 */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .btn-tel-orange, .btn-line, .cta-tel, .cta-mail, .cta-line {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        padding: 24px 20px; /* スマホで一番押しやすい高さ */
        font-size: 1.2rem;
        box-sizing: border-box;
    }

    /* 修理ステップの隙間確保 */
    .service-grid {
        display: flex;
        flex-direction: column; 
        align-items: center;    /* カード自体を中央に寄せる */
        gap: 40px;
        width: 100%;            /* 親要素の幅を確保 */
    }

    .service-card,
    .repair-step-card {
        /* PCの3分割設定を解除して横幅をいっぱいに広げます */
        width: 100% !important; 
        max-width: 500px;       /* 横に広がりすぎないように制限（お好みで） */        
        text-align: center;      
        display: flex;
        flex-direction: column;  
        align-items: center;     
        padding: 30px 20px;      
        box-sizing: border-box; /* パディングで幅が突き抜けるのを防ぐ */
    }

    /* アイコン（iタグ）の中央固定 */
    .repair-step-card i {
        margin: 0 auto 15px auto;
        display: block;
        font-size: 3rem;         
    }

    /* STEPバッジも中央に */
    .step-badge {
        margin: 0 auto 15px auto;
        display: inline-block;   
    }

    /* 見出し(h4)の調整 */
    .repair-step-card h4 {
        margin-bottom: 15px;
        width: 100%;
    }

    /* フッター */
    .footer-legal-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-legal-links .sep { display: none; }
}

@media (min-width: 1025px) {
    .mobile-nav { display: none; }
}