/* =====================================================
    1. 画面全体の基本レイアウト
    （フレームなしで上下固定するための必須設定）
   ===================================================== */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;       /* 画面全体のスクロールを禁止 */
    font-family: "MS UI Gothic", sans-serif;
    color: #333333;         /* 色：濃いグレー */
    background-color: #f5f5f5; /* 左右の余白をわかりやすくするため、外側を薄いグレーに */
    font-size: 16px;        /* 全体の基本文字サイズ */
    line-height: 1.7;       /* 文字の上下の間隔（行間）を広げる */
}

/* =====================================================
    2. ヘッダーを最上部に固定
    （幅を1100pxにして中央寄せ）
   ===================================================== */
#common-header {
    position: fixed;
    top: 0;
    left: 50%; /* 画面の真ん中を基準にする */
    transform: translateX(-50%); /* 自身の幅の半分だけ左に戻して完全に中央寄せ */
    width: 100%;
    max-width: 1100px; /* ★幅を1100pxに制限★ */
    height: 80px; /* ヘッダーの高さ */
    background: #fff;
    border-bottom: 3px solid #005bac;
    z-index: 1000;
    box-sizing: border-box;
    padding: 12px 20px;    /* 上下のバランスを微調整 */
}
/* ヘッダー内のロゴ（社名） */
.logo-area {
    font-size: 26px;
    font-weight: 900;
    color: #005bac;         /* 色：基本の青 */
    font-family: "Meiryo", "Yu Gothic", sans-serif;
}
/* メニューの並び */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;              /* 上の余白をリセット */
    display: flex;
    gap: 20px;              /* メニュー間の幅を少し広げて見やすく */
    font-size: 15px;        /* 文字サイズを少しだけクッキリに */
    flex-wrap: wrap;        /* 画面幅が狭いときの崩れ防止 */
}
nav a {
    text-decoration: none;
    color: #005bac;         /* 色：基本の青 */
    font-weight: bold;
}
nav a:hover {
    text-decoration: underline;
}

/* =====================================================
    3. フッターを最下部に固定（幅を1100pxにして中央寄せ）
   ===================================================== */
#common-footer {
    position: fixed;
    bottom: 0;
    left: 50%;          /* 画面の真ん中を基準にする */
    transform: translateX(-50%); /* 自身の幅の半分だけ左に戻して完全に中央寄せ */
    width: 100%;
    max-width: 1100px;  /* 幅を制限 */
    background: #f2f2f2;
    border-top: 1px solid #ccc;
    font-size: 14px;
    text-align: right;  /* 右寄せ */
    z-index: 1001;
    box-sizing: border-box;
    height: 30px;       /* フッターの全体の高さ */
    line-height: 14px;  /* 文字の高さを一致 */
    padding: 0;             /* 上下の隙間 */
    padding-top: 0px;       /* 上端の隙間 */
    padding-right: 20px;    /* 右端の隙間 */
}

/* =====================================================
    4. 中央メイン本文の枠組み
   ===================================================== */
main {
    position: absolute;
    top: 80px;    /* ヘッダーの高さと同じ分だけ上をあける */
    bottom: 30px; /* フッターの高さと同じ分だけ下をあける */
    left: 50%;    /* 画面の真ん中を基準にする */
    transform: translateX(-50%); /* 完全に中央寄せ */
    width: 100%;
    max-width: 1100px;          /* 幅を制限 */
    overflow-y: auto;           /* 縦スクロールを許可 */
    scroll-behavior: smooth;    /* スクロールを滑らかにする設定 */
    padding: 20px;
    box-sizing: border-box;
    background-color: #ffffff;  /* 本文の背景を白 */
}

/* =====================================================
    5. タイトル・見出し文の装飾（文字サイズ：大・中）
    大見出し（h1）、中見出し（h2）、注記見出し（h3）
    バナーのタイトルなど
   ===================================================== */
/* 見出し１ */
h1 {
    font-size: 26px;
    color: #7a1f1d;         /* 文字色：バーガンディ/深いワインレッド */
    letter-spacing: 0.2em;  /* 文字と文字の間隔（標準は0） */
    text-indent: 0.2em;     /* 文字間を空けたときの右寄りを防ぐ中央補正 */
    margin-top: 10px;
    margin-bottom: 20px;
    background: #f0f4f8;
    padding: 10px;
    text-align: center;
    border-top: 1px solid #005bac;     /* 上の線 */
    border-bottom: 3px solid #005bac;  /* 下の線 */
    border-left: 5px solid #005bac;    /* 左の線 */
    border-right: 1px solid #005bac;   /* 右の線 */
}
/* 左右の線（自動で引き伸ばされる） */
h1::before,h1::after {
    content: "";
    flex-grow: 1;
    max-width: 150px;           /* 線の最大の長さ */
    height: 2px;
    background-color: #005bac;  /* 線の色：基本の青 */
}

/* 見出し２ */
h2 {
    font-size: 24px;
    color: #005bac;             /* 色：基本の青 */
    margin-top: 10px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #005bac;
    text-align: left;
}

/* 見出し３（注記タイトル） */
h3 {
    font-size: 18px;
    color: #7a1f1d;         /* 文字色：バーガンディ */
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

/* =====================================================
    6. 文字修飾用クラス
    通常の文章、会社挨拶文（.intro-text）、注意書き、バナー内の説明文など
   ===================================================== */
/* 文字寄せ */
.left {
    text-align: left !important;    /* 左寄せ */
}
.center {
    text-align: center !important;  /* 中央寄せ */
}
.right {
    text-align: right !important;   /* 右寄せ */
}
/* (1)通常のリード文（大き目の文字） */
.lead {
    font-family: "MS UI Gothic", sans-serif;
    font-size: 20px;        /* サイズ：少し大き目 */
    color: #333333;         /* 色：濃いグレー */
    font-weight: normal;    /* 太さ：標準 */
    letter-spacing: 0.05em; /* 文字間：少し広め */
    line-height: 1.8;       /* 行間 */
    margin-bottom: 30px;    /* 下の余白： 大き目*/
    text-align: justify;    /* 左右の端を綺麗に揃える */
}
/* (2)標準の補足・説明文 */
.desc {
    font-family: "MS UI Gothic", sans-serif;
    font-size: 15px;        /* サイズ：標準的 */
    color: #333333;         /* 色：濃いグレー */
    font-weight: normal;    /* 太さ：標準 */
    letter-spacing: 0.03em; /* 文字間 */
    line-height: 1.7;       /* 行間 */
    margin-bottom: 15px;    /* 下の余白：標準的な隙間 */
}
/* (3)注意点・警告の文 */
.alert {
    font-family: "MS UI Gothic", sans-serif;
    font-size: 15px;        /* サイズ */
    color: #d32f2f;         /* 色：赤 */
    font-weight: bold;      /* 太さ：太字 */
    letter-spacing: 0.03em; /* 文字間 */
    line-height: 1.7;       /* 行間 */
    margin-bottom: 10px;    /* 下の余白 */

}
/* (4)補足文字（薄文字・小さめ） */
.note {
    font-family: "MS UI Gothic", sans-serif;
    font-size: 13px;        /* サイズ */
    color: #666666;         /* 色：グレー */
    font-weight: normal;    /* 太さ：標準 */
    letter-spacing: 0.03em; /* 文字間 */
    line-height: 1.7;       /* 行間 */
    margin-bottom: 5px;     /* 下の余白 */
}
/* (5)表項目の文字 */
.table-th {
    font-family: "MS UI Gothic", sans-serif;
    font-size: 15px;        /* サイズ */
    color: #005bac;         /* 色：基本の青 */
    font-weight: bold;      /* 太さ：太字 */
    letter-spacing: 0.05em; /* 文字間：少し広め */
    line-height: 1.7;       /* 行間 */
}
/* (6)表の説明文字 */
.table-td {
    font-family: "MS UI Gothic", sans-serif;
    font-size: 15px;        /* サイズ */
    color: #333333;         /* 色：濃いグレー */
    font-weight: normal;    /* 太さ：標準 */
    letter-spacing: 0.03em; /* 文字間 */
    line-height: 1.7;       /* 行間 */
}

/* =====================================================
    7. ボタン（ナビゲーション・アクションなど）の修飾
    ページ内リンク（目次）、戻るリンク、URLリンクなど（ヘッダーメニュー以外のもの）
    汎用ボタン（.btn）、ダウンロードボタン、バナー内の移動ボタンなど
   ===================================================== */
/* --- (1) ナビゲーション用（背景：薄い水色＋枠線 / 目次ボタンなど） --- */
.btn-navi {
    font-family: "MS UI Gothic", sans-serif;
    display: inline-block;      /* 横並び・サイズ指定を可能にする */
    background-color: #f0f4f8;  /* デフォルトの背景色（薄い水色） */
    color: #005bac;             /* 色：基本の青 */
    border: 1px solid #b0c4de;  /* 枠線：薄い青グレー */
    padding: 10px 20px;
    text-decoration: none;      /* 文字の下線を消す */
    font-weight: bold;
    border-radius: 4px;         /* 四隅をほんの少し丸く */
    white-space: nowrap;        /* 文字の勝手な改行を防ぐ */
    transition: all 0.2s ease;  /* マウスを乗せたときの変化を滑らかに */
}
/* マウスをのせた時（ホバー時）の動作 */
.btn-navi:hover {
    background-color: #005bac; /* 背景色：基本の青 */
    color: #ffffff;            /* 文字色：白 */
}

/* --- (2) アクション用（背景：濃い色ベース / 汎用・ダウンロードなど） --- */
/* すべての色付きボタンの「共通の土台」になります */
.btn {
    font-family: "MS UI Gothic", sans-serif;
    display: inline-block;
    background-color: #005bac; /* 色：基本の青 */
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}
/* マウスをのせた時（ホバー時）の動作 */
.btn:hover {
    background-color: #004482; /* 背景色：ネイビー */
    color: #ffffff;
    text-decoration: none;
}

/* エクセルボタン（緑に上書き） */
.btn-excel {
    background-color: #1f7246;
}
/* エクセルボタンのホバー */
.btn-excel:hover {
    background-color: #144d2f; /* 濃い緑 */
}

/* 特殊効果付きボタン（影を追加、ホバーでバーガンディに変更＋浮き上がる） */
.btn-action {
    box-shadow: 0 3px 8px rgba(0, 91, 172, 0.15);
    transform: translateY(0);
}
/* マウスをのせた時（ホバー時）の動作 */
.btn-action:hover {
    background-color: #7a1f1d !important;   /* 色：バーガンディ */
    box-shadow: 0 4px 10px rgba(122, 31, 29, 0.2);
    transform: translateY(-1px);
}

/* =====================================================
    8. テーブル（表形式データ）の構造と装飾
   ===================================================== */
/* --- テーブルの基本構造（すべての表の土台） --- */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

/* --- 見出しセル（th）とデータセル（td）の共通設定 --- */
.table th, .table td {
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 15px;
    line-height: 1.7;
}

/* --- 見出しセル（th）の個別設定 --- */
.table th {
    background-color: #f2f2f2;  /* 背景色：薄いグレー */
    color: #003366;             /* 色：深いネイビー */
    font-weight: bold;
    letter-spacing: 0.05em;
    text-align: left;           /* 基本は左寄せ */
}

/* --- データセル（td）の個別設定 --- */
.table td {
    color: #333333;
    font-weight: bold;         /* 数字やテキストを太字にして認識しやすく */
    letter-spacing: 0.05em;    /* 半角数字などの間隔を少し広げる */
}

/* --- テーブルの全体幅・配置のバリエーション（修飾クラス） --- */
/* 横幅を560pxに制限して、左右中央寄せにする（元のsmall-table相当） */
.table-md {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* --- 列幅のコントロール（th や td に直接指定して組み合わせる） --- */
.w15 { width: 15%; }
.w20 { width: 20%; }
.w30 { width: 30%; }
.w35 { width: 35%; }

/* --- 特殊な装飾用クラス --- */
/* 設備テーブルなどで、列の間を二重線で区切りたい場合に使用 */
.table .border-double-right {
    border-right: 4px double #ccc;
}

/* --- ページ内の区切りライン（hrタグ） --- */
hr {
    border: none;
    border-top: 5px solid #ccc;
    width: 100%;
    margin: 40px auto;
}
hr.thin {
    border-top: 1px solid #ddd;
}


/* =====================================================
    9. 囲み枠・カード型の装飾（ブロック要素）
   ===================================================== */
/* 要素を綺麗に横並びにするための汎用コンテナ（外枠） */
.flex-container { 
    display: flex; 
    gap: 20px; 
    margin: 20px 0; 
    flex-wrap: wrap; /* 画面が狭いときは自動で縦並びにする */
}

/* ブロック内寄せ */
.flex-left {
    justify-content: left !important;   /* 左寄せ */
}
.flex-center {
    justify-content: center !important; /* 中央寄せ */
}
.flex-right {
    justify-content: right !important;  /* 右寄せ */
}

/* ブロックごとに上下に余白を空け、下に薄い点線で区切りを作る汎用クラス */
.dashed-section {
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 2px dashed #ddd; /* 下部の薄い点線 */
    padding-bottom: 30px;
}

/* 枠線や下線を強制的に消す */
.no-border {
    border: none !important;
    border-bottom: none !important; /* h2などの下線を消す */
    padding-bottom: 0 !important;   /* 線が消えた分、下の余白もゼロにする */
}

/* コンテンツの最大幅を引き締め、左右中央に寄せて読みやすくする汎用コンテナ */
.narrow-container {
    max-width: 800px;
    margin-left: auto;  /* 左右オートで必ず画面の真ん中に寄せる */
    margin-right: auto;
    padding-left: 10px; /* スマホ時の左右の最低限の余白 */
    padding-right: 10px;
}

/* 重要なお知らせや、別ページへの誘導を行うための汎用アクセントバナー枠 */
.accent-banner {
    margin: 30px auto;
    padding: 18px 20px;
    background-color: #f9f9f9;     /* すっきりとした超薄いグレー */
    border: 1px solid #c0c0c0;     /* 引き締まったグレーの枠線 */
    border-top: 4px solid #7a1f1d; /* 上部にバーガンディのアクセント太線を引いて重要度を演出 */
    border-radius: 4px;
    text-align: center;            /* 中身を全て中央寄せ */
    max-width: 850px;              /* 本文エリアの中で程よく引き締まる幅 */
    box-sizing: border-box;
}

/* 案内バナー内の最上部に配置する、引き締まった小見出し文字 */
.banner-sub {
    font-size: 14px;
    font-weight: bold;
    color: #005bac;            /* 色：基本の青 */
    margin: 0 0 6px 0;         /* ➔ 下のタイトルとの隙間を6pxにして引き締める */
    letter-spacing: 0.05em;    /* ➔ 文字の間隔を少し広げてクッキリさせる */
}

/* 背景が超薄いグレーで枠線がついた、シンプルな汎用カード枠 */
.panel-card {
    background: #e9e9e9;        /* 背景：超薄いグレー */
    border: 1px solid #c0c0c0;  /* 枠線：薄いグレー */
    border-radius: 4px;
    padding: 12px 18px;
    display: flex;
    justify-content: center;    /* 中央寄せ */
    gap: 12px;                  /* 中に入った文字と数字の間のすき間 */
    align-items: center;
}

/* 数字付きステップ手順を綺麗に並べるための汎用リスト設定 */
.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.step-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;          /* 数字バッジと文章の間のすき間 */
    margin-bottom: 8px; /* ステップごとの上下の間隔 */
    font-size: 15px;
    line-height: 1.5;
}
.step-list li:last-child {
    margin-bottom: 0;
}

/* 丸い数字バッジの汎用デザイン設定 */
.step-num {
    background: #005bac; /* 会社の基本の青 */
    color: #fff;         /* 文字色：白 */
    font-weight: bold;
    width: 22px;         /* バッジの正方形サイズ */
    height: 22px;
    border-radius: 50%;  /* 完全な丸にする */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;      /* 画面が狭くなっても丸が潰れないように固定 */
    font-size: 12px;
    margin-top: 1px;     /* 文章の1行目と高さを合わせる微調整 */
}

/* =====================================================
    10.画像配置・ビジュアルの調整
   ===================================================== */
/* 大きな画像用の汎用設定 */
.img-lg {
    max-width: 100%;      /* 画面幅が狭いときは自動で100%に縮む */
    height: auto;         /* 縦横比を固定 */
    width: 593px;         /* PC（パソコン）で見たときの最大の横幅 */
}

/* 中くらいの画像用の汎用設定 */
.img-md {
    max-width: 100%;      /* 画面幅が狭いときは自動で100%に縮む */
    height: auto;         /* 縦横比を固定 */
    width: 320px;         /* PC（パソコン）で見たときの最大の横幅 */
}

/* 縦横比を固定、高さ指定の設定 */
.img-fit {
    max-width: 100%;
    height: 180px;           /* 高さを180pxで統一 */
    width: auto;             /* 横幅は縦横比を固定 */
    object-fit: contain;     /* 画像が歪まないように綺麗に収める */
    border: 1px solid #ddd;  /* 薄いグレーの枠線をつけて製品を引き締める */
    border-radius: 4px;      /* 四隅をほんの少し丸くする */
}

/* =====================================================
    11.スマートフォン（画面横幅が768px以下）向けのレスポンシブ設定
    @media の中に、スマホ時だけ「縦並び」にしたい箇所の
    レイアウト・文字サイズ調整をまとめる
   ===================================================== */
@media screen and (max-width: 768px) {

    /* 画面全体のスクロール禁止を解除（文字あふれ・見切れ防止） */
    html, body {
        overflow: auto; 
    }

    /* ヘッダー：上部固定を解除して上下2段のセンター並びに変更 */
    #common-header {
        position: static;
        transform: none;
        left: auto;
        height: auto;
        padding: 15px;
        display: block;   /* 強制的に上下2段に並べる */
        text-align: center;
    }
    .logo-area {
        font-size: 20px;
        margin-bottom: 10px;
    }
    nav ul {
        justify-content: center;
        gap: 12px 8px;    /* ボタン同士の縦の間隔を12px、横の間隔を8pxに調整 */
        font-size: 13px;
    }

    /* メイン本文：固定配置を解除し、普通のページのように縦に流れる設定にする */
    main {
        position: static;
        transform: none;
        left: auto;
        width: 100%;
        height: auto;
        padding: 15px;
    }

    /* フッター：固定を解除し、ページの最下部に自然に配置する */
    #common-footer {
        position: static;
        transform: none;
        left: auto;
        width: 100%;
        height: auto;
        padding: 15px 0;
        text-align: center; /* スマホでは中央寄せが見やすいため右寄せから変更 */
    }
    /* --- 汎用アクセントバナー（.accent-banner）のスマホ最適化 --- */
    .accent-banner {
        margin: 25px 10px;
        padding: 15px 12px;
    }
    /* バナーの中にあるボタンを、スマホ時のみ横幅100%に広げる */
    .accent-banner .btn {
        width: 100%; 
        padding: 12px 0;
        box-sizing: border-box;
    }
    
    
}

