/* ==========================================================================
   base.css
   株式会社ミユキサブリース 標準カラー・共通基盤定義
   ==========================================================================
   【保守・運用メモ】
   1. カラー定義：CI（コーポレート・アイデンティティ）に基づいた厳密な8色。
   2. 打ちの青：.blue (#0070b8) は手続きの核心部（重要箇所）を強調するために使用。
   3. 互換性：メイリオを優先し、Windows/Mac双方での印刷再現性を確保。
   ========================================================================== */

:root {
    --miyuki-red:    #be0018; /* 警告・停止 */
    --miyuki-green:  #148c28; /* 正常・完了 */
    --miyuki-blue:   #0070b8; /* miyukiの青：最重要ポイント */
    --miyuki-orange: #f0641e; /* 注意喚起 */
    --miyuki-purple: #5a50a0; /* 補足・注釈 */
    --miyuki-white:  #ffffff; /* 背景色 */
    --miyuki-black:  #333333; /* 文字基本色 */
    --miyuki-pink:   #db7093; /* 補助アクセント */
}

/* ミユキ標準カラークラス（HTML内で class="blue" 等で指定） */
.red    { color: var(--miyuki-red)    !important; }
.green  { color: var(--miyuki-green)  !important; }
.blue   { color: var(--miyuki-blue)   !important; }
.orange { color: var(--miyuki-orange) !important; }
.purple { color: var(--miyuki-purple) !important; }
.white  { color: var(--miyuki-white)  !important; }
.black  { color: var(--miyuki-black)  !important; }
.pink   { color: var(--miyuki-pink)   !important; }

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

body.elec-body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--miyuki-black);
    line-height: 1.6;
    background-color: var(--miyuki-white);
    -webkit-print-color-adjust: exact;
}

/* ----------------------------------------------------------------------
   御幸建設グループ システム管理課：全ページ共通ナビゲーション設定
   （パンくずリスト・共通ボタン・共通余白）
   ---------------------------------------------------------------------- */

/* 1. パンくずリスト（階層ナビゲーション） */
.breadcrumb {
    max-width: 1000px; /* メインコンテンツ幅に合わせる */
    margin: 20px auto;
    padding: 0 20px;
}
.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.85rem;
    padding: 0;
    margin: 0;
}
.breadcrumb li {
    display: flex;
    align-items: center;
    color: #666;
}
/* 区切り文字のスタイル（ > ） */
.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin: 0 10px;
    color: #ccc;
}
.breadcrumb a {
    color: #0070b8; /* --miyuki-blue 相当 */
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

/* 2. 下部ナビゲーションエリア（戻るボタン配置用） */
.nav-button-area {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    border-top: 1px solid #e9ecef; /* --border 相当 */
    padding-top: 40px;
}

/* 3. 共通サブボタン（戻るボタン等） */
.btn-sub-nav {
    display: inline-block;
    padding: 12px 25px;
    border: 1px solid #0070b8;
    color: #0070b8;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    background: #fff;
    font-size: 0.9rem;
}
.btn-sub-nav:hover {
    background: #0070b8;
    color: #fff;
}

/* 4. 共通余白クラス（既存HTMLの指定に対応） */
.mtop30 { margin-top: 30px !important; }

/* スマホ閲覧時の最適化 */
@media (max-width: 600px) {
    .nav-button-area {
        flex-direction: column;
        align-items: center;
    }
    .btn-sub-nav {
        width: 100%;
        text-align: center;
    }
}

/* ----------------------------------------------------------------------
   御幸建設グループ システム管理課：下部ナビゲーション（戻る・次へ）
   ---------------------------------------------------------------------- 
   【修正用メモ】
   ・1. 横並び設定：.page-nav-flex の gap でボタンの間隔を調整。
   ・2. ボタン幅：.nav-item の flex 比率で左右の幅を調整。
   ・3. 配色：各ボタンの border や background を変更してください。
   ---------------------------------------------------------------------- */

/* ボタンを横並びにするコンテナ */
.page-nav-flex {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    border-top: 1px solid #e9ecef;
    padding-top: 40px;
}

.nav-item {
    flex: 1;
    max-width: 400px; /* ボタンが広がりすぎないよう制限 */
}

/* 共通：サブボタン（戻る） */
.btn-sub-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* 隣のボタンと高さを合わせる */
    padding: 15px 25px;
    border: 2px solid #0070b8;
    color: #0070b8;
    text-decoration: none;
    border-radius: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

/* 次のステップへボタン（スリム版） */
.btn-next-step-small {
    display: block;
    height: 100%;
    padding: 15px 25px;
    background: #0070b8;
    border: 2px solid #0070b8;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 112, 184, 0.15);
    box-sizing: border-box;
    text-align: center;
}

.btn-next-step-small span {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
    margin-bottom: 3px;
}

.btn-next-step-small strong {
    display: block;
    font-size: 1.05rem;
}

/* ホバーアクション */
.btn-sub-nav:hover {
    background: #f0f7ff;
    transform: translateY(-2px);
}

.btn-next-step-small:hover {
    background: #005a96;
    border-color: #005a96;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 112, 184, 0.25);
}

/* スマホ対応：縦並びに切り替え */
@media (max-width: 768px) {
    .page-nav-flex {
        flex-direction: column;
        align-items: center;
    }
    .nav-item {
        width: 100%;
        max-width: none;
    }
}

/* ----------------------------------------------------------------------
   下部ナビゲーション（3カラム対応）
   ---------------------------------------------------------------------- */

.page-nav-flex {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 15px; /* 間隔を少し詰めました */
    margin-top: 50px;
    border-top: 1px solid #e9ecef;
    padding-top: 40px;
}

.nav-item {
    flex: 1;
    min-width: 0; /* 幅が狭くなった時に文字を折り返すため */
    max-width: 320px; 
}

/* 共通：サブボタン（戻る系）の調整 */
.btn-sub-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 12px 10px; /* パディングを調整 */
    border: 2px solid #0070b8;
    color: #0070b8;
    text-decoration: none;
    border-radius: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
    font-size: 0.9rem;
    text-align: center;
}

/* 次のステップボタン（3列用サイズ） */
.btn-next-step-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 12px 10px;
    background: #0070b8;
    border: 2px solid #0070b8;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    box-sizing: border-box;
    text-align: center;
}

/* スマホ表示の際は1カラムで大きく見せる */
@media (max-width: 850px) {
    .page-nav-flex {
        flex-direction: column;
        align-items: center;
    }
    .nav-item {
        width: 100%;
        max-width: none;
    }
}

/* ----------------------------------------------------------------------
   システム管理課 メモ: 
   ・「前のステップ（電気）」「ポータル」「次のステップ（テレビ）」の3方向へ
     遷移できるようにボタンを追加しました。
   ---------------------------------------------------------------------- */

/* ----------------------------------------------------------------------
   御幸建設グループ システム管理課：フッター共通スタイル（センタリング）
   ---------------------------------------------------------------------- 
   【修正用メモ】
   ・1. 配置：text-align: center; により全ての要素を中央に寄せています。
   ・2. 余白：padding で上下のスペースを調整。
   ・3. 背景色：background-color でサイト全体のトーンに合わせています。
   ---------------------------------------------------------------------- */

.site-footer-fixed {
    background-color: #333; /* ダークグレーの背景 */
    color: #fff;
    padding: 40px 20px;
    text-align: center; /* センタリングの核となる設定 */
    margin-top: 60px;
}

.f-brand-name {
    font-weight: bold;
    letter-spacing: 0.2em;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: block; /* 1行を占有させて中央配置を確実にします */
}

.copyright {
    font-size: 0.8rem;
    color: #aaa; /* コピーライトは少し薄い色に設定 */
    margin: 0;
}

/* スマホ閲覧時も中央揃えを維持 */
@media (max-width: 600px) {
    .site-footer-fixed {
        padding: 30px 15px;
    }
}