:root {
    --ku-blue: #003366;
    --ku-blue-dark: #002d4d;
    --accent-gold: #a69460;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --border-color: #dddddd;
    --white: #ffffff;
}

/* --- 全体・リセット --- */
body, h1, h2, h3, ul, li, p { margin: 0; padding: 0; }
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: var(--bg-light); /* 全体背景を薄いグレーに */
    color: var(--text-main);
    line-height: 1.7;
font-size: 15px;
}

/* --- ヘッダー・ヒーロー領域（さわやか版） --- */
.hero-outer {
    width: 100%;
    background: #ffffff; /* 背景を白に */
    border-top: 6px solid var(--ku-blue);
    border-bottom: 1px solid #eeeeee;
    color: var(--ku-blue);
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    min-height: 80px; 
    display: flex;
    align-items: center;
    padding: 10px 30px;
}
/* 親メニュー（リスト項目）の配置設定 */
.nav-tabs > li {
    position: relative;
    display: inline-block; /* 横並びを維持 */
}

/* 子メニュー（ドロップダウン）の基本スタイル */
.dropdown {
    display: none;        /* 通常は非表示 */
    position: absolute;   /* 親要素を基準に浮かせる */
    top: 100%;            /* 親のすぐ下に配置 */
    left: 0;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;        /* 他の要素より前面に */
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ddd; /* 枠線を追加 */
}

/* 親メニューにマウスが乗った時に表示 */
.nav-tabs > li:hover .dropdown {
    display: block;
}

/* 子メニュー内のリンク項目（ここで縦幅を調整） */
.dropdown li a {
    display: block;
    padding: 5px 15px;    /* 上下5pxに指定（ここを小さくすると狭くなります） */
    color: #333;
    text-decoration: none;
    font-size: 0.85em;    /* 少し文字を小さくしてスッキリと */
    line-height: 1.2;     /* 行間をさらに詰めました */
    border-bottom: 1px solid #eee;
    text-align: left;     /* 左寄せ */
}

/* 子メニュー内の項目にマウスが乗った時 */
.dropdown li a:hover {
    background-color: #f8f8f8;
    color: #004a99;
}

/* 最後の項目の下線を消す */
.dropdown li:last-child a {
    border-bottom: none;
}

.header-container {
    display: flex;
    align-items: center; /* ロゴと文字を垂直中央に */
    gap: 20px;
}

.header-logo img {
    height: 100px; /* 高さを抑える */
    width: auto;
    filter: none;
}

.header-text-group {
    display: flex;
    flex-direction: column;
}

.university-name {
    font-size: 10px;
    font-weight: bold;
    color: var(--ku-blue);
}

.hero-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--ku-blue);
    margin: 0;
}

.hero-sub-title {
    font-size: 8px;
    color: #666666; /* サブタイトルをグレーに */
}
/* --- ヘッダー・見出しの調整 --- */
h2 {
    border-left: 5px solid #003366; /* 京大ブルー系のアクセント */
    padding: 5px 15px;
    margin-bottom: 30px; /* 見出しとその下のコンテンツを離す */
}

.sub-border {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}
/* --- フッターの美化 --- */
footer {
    width: 100%;
    background-color: #eef4f9; /* 淡いブルー */
    color: #333333;            /* 文字はすべて黒系 */
    padding: 50px 0 30px 0;    /* 上下にゆとりを持たせる */
    margin-top: 60px;          /* コンテンツとの間隔 */
    text-align: center;        /* 全体を中央寄せに */
    border-top: 1px solid #d1dee7; /* 境界線を少しだけ濃くして引き締める */
}
.footer-container {
    max-width: 1000px;      /* main-contentの幅と合わせる */
    margin: 0 auto;         /* 中央寄せ */
    padding: 0 20px;
}

footer p {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* 施設名のスタイル */
.footer-title {
    font-size: 1.1em;
    letter-spacing: 0.05em;
}

/* 住所のスタイル */
.footer-address {
    font-size: 0.9em;
    color: #333333; /* 文字色を黒に統一 */
}
/* コピーライト */
footer .copyright {
    font-size: 0.8em;
    color: #999;
    margin-top: 20px;
    border-top: 1px solid #444; /* 細い線を入れて区切る */
    padding-top: 20px;
    letter-spacing: 0.05em;
}
/* --- コンテンツ内部の「小さなカタマリ」の調整 --- */

/* STEPカード：カード同士の間隔を詰め、内部のまとまりを重視 */
.step-container {
    display: flex;
    flex-direction: column;
    gap: 20px; /* カード同士の間隔 */
}

.step-card {
    padding: 20px;
    border-radius: 6px;
    /* 内部の行間を少し詰めて「一つの指示」として見せる */
    line-height: 1.6;
}

/* カード内のタイトルと本文の間隔 */
.step-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #003366;
}

/* 警告・重要事項のボックス：パッと見て「別枠」と分かるように */
.step-card div[style*="background: #fff0f0"] {
    margin: 10px 0 !important;
}

/* テーブル（必要試料量）の単元 */
.table-wrapper {
    margin-top: 20px;
}

.sample-table {
    width: 100%;
    border-collapse: collapse;
}

/* --- ナビゲーション（絶対に横並びにする設定） --- */
.nav-outer {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    
    /* 上のラインを消す */
    border-top: none; 
    
    /* 下に紺のラインを配置（太さはお好みで 3px〜5px） */
    border-bottom: 4px solid var(--ku-blue); 
}
.nav-container {
    max-width: 1100px;
    margin: 0 auto;
}

.nav-tabs { 
    display: flex !important; /* 強制的に横並びにする */
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.nav-tabs li { 
    flex: 1; /* 各メニューを均等な幅にする */
}

.nav-tabs a {
    display: flex; 
    align-items: center; 
    justify-content: center;
    height: 55px; 
    text-decoration: none; 
    color: var(--text-main);
    font-weight: bold; 
    font-size: 15px; 
    transition: 0.3s;
    border-bottom: none;
}

.nav-tabs a:hover, .nav-tabs a.active { 
    background-color: #f0f4f8; 
    color: var(--ku-blue);
   border-bottom: none;
}
/* --- メインコンテンツの美化 --- */
.main-content {
    max-width: 1000px; /* 少し絞ると読みやすくなります */
    margin: 40px auto;
    padding: 60px 80px; /* 余白をたっぷり取るのが「美しさ」の秘訣 */
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* 影を柔らかく */
    border-radius: 4px;
}
h2 {
    font-size: 24px; color: var(--ku-blue);
    border-left: 6px solid var(--ku-blue);
    padding-left: 15px; margin-bottom: 30px;
}

/* --- テーブルデザイン (共通化) --- */
.table-wrapper { overflow-x: auto; margin: 20px 0; }
table {
    width: 100%; border-collapse: collapse; background: var(--white);
}
th { background: var(--ku-blue); color: var(--white); padding: 15px; font-weight: bold; }
td { border: 1px solid #eee; padding: 15px; text-align: center; }

/* 料金表の強調 */
.price-table tbody tr:nth-child(even) { background-color: #f9fbff; }
.price-table tr:hover { background-color: #f0f7ff; }
.price-table td.category { font-weight: bold; color: var(--ku-blue); background: #f4f7f9; }
.price-table strong { color: #d32f2f; font-size: 1.2em; }

/* --- 依頼フロー・カード --- */
.step-container, .rules-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; margin: 30px 0;
}
.step-card, .rule-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    padding: 25px;
    border-radius: 12px;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.step-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }

/* --- ボタン --- */
.btn-network-main {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--ku-blue);
    color: var(--white) !important;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
}
.btn-network-main:hover {
    background-color: var(--ku-blue-dark);
    transform: translateY(-2px);
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
    .hero-inner { flex-direction: column; text-align: center; padding: 30px; }
    .header-logo img { margin: 0 0 15px 0; }
    .main-content { padding: 20px; margin: 20px; }
    .nav-tabs { flex-wrap: wrap; }
    .nav-tabs li { min-width: 50%; }
}
/* これを追加するとスマホでも隙間が狭くなります */
    .equipment-card {
        margin-bottom: 20px !important;
    }
/* --- お知らせリストの美化 --- */
.news-list {
    border-top: none; /* 線を消してスッキリ */
}
.news-item {
    padding: 18px 10px;
    border-bottom: 1px solid #edf2f7;
    transition: background 0.2s;
}
.news-item:hover {
    background-color: #fcfdfe;
}
.news-date {
    font-family: "Helvetica Neue", sans-serif;
    color: var(--ku-blue);
    background: #eef4f9;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 0.85em;
    min-width: 90px;
    text-align: center;
font-size: 12px;
}
.news-text {
    font-size: 15px;
    color: var(--text-main);
}

/* --- レイアウトの基本：セクション間の余白 --- */
.section-box {
    margin-bottom: 60px; /* セクション同士をしっかり離す */
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
}
/* メインビジュアルのエリア */
.main-visual {
    width: 100%;
    max-width: 1100px; /* main-contentの幅に合わせるのが一般的です */
    margin: 0 auto;    /* 中央寄せ */
    overflow: hidden;
    height: 200px;     /* 写真の高さ（お好みで調整してください） */
}

.visual-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠に合わせて画像を綺麗に切り抜き・配置します */
    display: block;
}
/* 装置カード全体の枠組み */
.equipment-card {
    display: flex;         /* 横並びにする */
    gap: 30px;            /* 画像と説明の間隔 */
    margin-bottom: 40px;   /* カード同士の間隔 */
    padding-bottom: 40px;
    border-bottom: 1px solid #eee; /* 区切り線 */
    align-items: flex-start;
}

/* 画像エリアの設定 */
.equipment-image {
    flex: 0 0 300px;      /* 画像の幅を300pxに固定 */
}

.equipment-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 説明エリアの設定 */
.equipment-info {
    flex: 1;              /* 残りの幅をすべて使う */
}

.equipment-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--ku-blue);
    font-size: 1.3em;
    border-bottom: 2px solid var(--ku-blue);
    display: inline-block;
}

/* スペック表の微調整 */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.spec-table th, .spec-table td {
    padding: 10px;
    border: 1px solid #e0e0e0;
    text-align: left;
    font-size: 0.95em;
}

.spec-table th {
    background-color: #f4f7f9;
    width: 120px;
    color: var(--ku-blue);
}

/* スマホ表示では縦並びに戻す */
@media (max-width: 768px) {
    .equipment-card {
        flex-direction: column;
    }
    .equipment-image {
        flex: 0 0 auto;
        width: 100%;
    }
}
/* 写真と表を横並びにする設定 */
.equipment-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.equipment-image {
    flex: 1;
    max-width: 300px;
}

.equipment-image img {
    width: 100%;
    height: auto;
}

.equipment-info {
    flex: 2;
}

/* 表と箇条書きの調整 */
.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th, .spec-table td {
    border: 1px solid #ccc;
    padding: 12px;
}

.spec-table td ul {
    margin: 0;
    padding-left: 1.5em; /* ここで「・」が線に被らないようにしています */
    list-style-position: outside;
}

.spec-table td li {
    margin-bottom: 8px;
}
/* 本文中のリンクの色を青系にする例 */
.section-box a {
    color: #0056b3;
    text-decoration: underline; /* 下線を引く */
}

.section-box a:hover {
    text-decoration: none; /* マウスを乗せた時に下線を消す */
    color: #003366;
}
/* --- ドロップダウン専用の修正設定 --- */

/* 1. 親要素がflexだと子が崩れることがあるため、位置を安定させる */
.nav-tabs li {
    position: relative;
    flex: 1; 
}

/* 2. ドロップダウン内のリンク設定（ここが重要） */
.nav-tabs .dropdown li a {
    display: block !important; /* flexを解除 */
    height: auto !important;   /* 親の55px固定を解除 */
    padding: 8px 15px !important; /* ここで縦幅を自由に調整 */
    line-height: 1.4 !important;  /* 行間を詰める */
    text-align: left;
    font-size: 14px;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    justify-content: flex-start; /* flexが残った時用の保険 */
}

/* 3. マウスホバー時の色（activeクラスとの競合を防ぐ） */
.nav-tabs .dropdown li a:hover {
    background-color: #f0f4f8 !important;
    color: var(--ku-blue) !important;
    text-decoration: none;
}

/* 4. ドロップダウン自体の枠線と影を強化 */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px; /* 少し幅を広げると文字が入りきります */
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ddd;
}

/* 最後の項目の線を消す */
.nav-tabs .dropdown li:last-child a {
    border-bottom: none !important;
}
/* 装置カード全体を白背景のボックスにする */
.equipment-card {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    padding: 25px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* ほんの少し影をつけて「ひとくくり」を強調 */
    align-items: flex-start;
}

/* 原理のテキストエリアを400文字程度入るサイズに固定 */
.theory-box {
    width: 100%;
    min-height: 150px; /* 最低限の高さ */
    max-height: 300px; /* 長すぎる場合はスクロールさせる */
    overflow-y: auto;  /* 縦に長くなったらスクロールバーを出す */
    padding: 10px;
    background-color: #fcfcfc; /* ほんの少し色を変えて「枠」を意識 */
    border: 1px solid #f0f0f0;
    line-height: 1.6;
    font-size: 0.95em;
    box-sizing: border-box;
}

/* スペック表の横幅調整 */
.spec-table th {
    width: 100px; /* 見出しの幅を固定 */
    vertical-align: top; /* 文字を上に寄せる */
}
/* 1. 原理の欄の枠線と背景を消す（ここを上書き） */
.theory-box {
    border: none !important;      /* 枠線を消す */
    background: transparent !important; /* 背景色を消す */
    padding: 0 !important;        /* 内側の余白を消す */
    min-height: auto !important;  /* 固定高さを解除して自然に */
}

/* 2. タイトルの位置を微調整（上に余白を作る） */
.equipment-info h3 {
    margin-top: -5px;   /* 少しだけ上に持ち上げる（必要に応じて調整） */
    margin-bottom: 15px;
}

/* 3. 写真の位置を少し下げる */
.equipment-image {
    padding-top:100px;  /* タイトルの高さ分、写真だけを下に押し下げる */
}

/* 4. 箇条書きが表の線に被らないように調整 */
.theory-box ul {
    margin: 0;
    padding-left: 1.2em;
}
/* 1. タイトルの位置を左上隅に寄せる */
.equipment-info h3 {
    margin-top: 0 !important;    /* 上の余白をゼロに */
    margin-left: 0 !important;   /* 左の余白をゼロに */
    padding-top: 0 !important;   /* 内側の上の余白もゼロに */
    
    /* タイトルの下のラインを少し長くしたい場合は width を調整 */
    display: block;              /* inline-blockから変更して横いっぱいに線を引く */
    border-bottom: 2px solid var(--ku-blue);
    padding-bottom: 5px;         /* 線と文字の間の隙間 */
    margin-bottom: 20px;         /* 下（写真や表）との間隔 */
}

/* 2. もしカード自体の余白が邪魔をしている場合（必要に応じて） */
.equipment-card {
    /* padding: 25px; の左と上を少し詰めたい場合はここを調整 */
    padding-top: 20px !important; 
    padding-left: 20px !important;
}

/* 3. 写真の位置を再調整 */
.equipment-image {
    /* タイトルが上に詰まった分、ここも微調整してください */
    padding-top: 60px; /* 100pxから少し減らしてもいいかもしれません */
}
/* 1. 親要素（カード全体）を基準点にする */
.equipment-card {
    position: relative; /* これが重要！ */
    padding-top: 60px !important; /* タイトルの場所を空ける */
}

/* 2. タイトルをカードの左上に強制移動 */
.equipment-card h3 {
    position: absolute;  /* 自由配置モード */
    top: 20px;           /* カードの上端からの距離 */
    left: 25px;          /* カードの左端からの距離（写真の左端と揃うはず） */
    margin: 0 !important;
    
    /* デザイン設定 */
    display: block;
    width: calc(100% - 50px); /* 右端まで線を伸ばす設定 */
    border-bottom: 2px solid var(--ku-blue);
    color: var(--ku-blue);
    font-size: 1.4em;
    padding-bottom: 5px;
}

/* 3. 写真の位置を戻す */
.equipment-image {
    padding-top: 0 !important; /* absoluteで浮かせるので、paddingでの調整は不要になります */
}
/* 1. 大枠の余白（タイトル用のスペース） */
.equipment-card {
    position: relative;
    padding-top: 60px !important; /* タイトルが収まる最低限の余白にする */
    padding-left: 25px !important;
}

/* 2. タイトルの位置（固定） */
.equipment-card h3 {
    position: absolute;
    top: 20px;
    left: 25px;
    display: inline-block !important;
    width: auto !important;
    border-bottom: 2px solid var(--ku-blue);
    margin: 0 !important;
}

/* 3. 写真（ここでお好みの位置まで押し下げる） */
.equipment-image {
    /* 120px分、写真だけをさらに下に押し下げます */
    padding-top: 10px !important; 
    flex: 0 0 300px;
}

/* 4. 表（スペック情報） */
.equipment-info {
    flex: 1;
    padding-top: 0 !important; /* 表はタイトルのすぐ下から始めたい場合は0 */
}
/* 詳細ボタンのデザイン */
.detail-btn {
    margin-left: 10px;
    padding: 2px 8px;
    font-size: 0.8em;
    background-color: var(--ku-blue);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.detail-btn:hover { background-color: var(--ku-blue-dark); }

/* モーダル（背景）全体の設定 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto; /* コンテンツが長い場合にスクロール可能にする */
}

/* 白いウィンドウ部分の設定 */
.modal-content {
    background-color: #fff;
    margin: 5% auto; /* ← ここを調整！「5%」を小さくすると上に上がります */
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}
/* 閉じるボタン */
.close-btn {
    position: absolute;
    right: 20px; top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
/* CHNのすぐ後の要素の上の余白を消す */
#chn + #halogen {
    margin-top: 0 !important;
}
body {
    font-size: 14px; /* 16pxから15pxに落とすのが一番自然です */
    line-height: 1.6; /* 文字を小さくした分、行間を少し広くすると綺麗に見えます */

}
/* 全ページのメインコンテンツの開始位置を固定 */
.main-content {
    padding-top: 20px; /* ナビゲーションバーとの間の距離。全ページ共通になります */
}

/* 各セクションの余白を統一し、一番上のセクションの余白を消す */
.section-box {
    margin-top: 0;
    padding-top: 0;    /* セクション内の上の余白をゼロに */
    padding-bottom: 30px; /* 下方向の余白だけ残す */
}

/* セクション見出しの余白をリセット */
.section-box h2 {
    margin-top: 0;      /* 見出しの上の余白を完全に消す */
    margin-bottom: 15px; /* 見出しと本文の間の距離 */
    line-height: 1.2;
}
/* 全体の文字色（真っ黒から上品なネイビーグレーへ） */
body {
    color: #2c3e50;
    background-color: #ffffff;
}

/* ヘッダー部分（メインカラー：淡い水色） */
.hero-outer {
    background-color: #e3f2fd; /* 淡い水色 */
    border-bottom: 3px solid #b3e5fc; /* アクセントの少し濃い水色の線 */
}

/* ナビゲーションバー */
.nav-outer {
    background-color: #f0f8ff; /* アリスブルー（超淡い水色） */
    border-bottom: 1px solid #e0e0e0;
}

/* ナビゲーションのリンク文字とホバー（マウスを乗せたとき）の効果 */
.nav-tabs a {
    color: #2c3e50;
    text-decoration: none;
}

.nav-tabs a:hover,
.nav-tabs a.active {
    background-color: #b3e5fc; /* ホバー時に少し濃い水色に */
    color: #000000;
}

/* 各セクションの見出し（H2）の左側に水色のアクセントを入れる場合 */
.section-box h2 {
    border-left: 5px solid #80d8ff; /* 見出しの左側に水色の縦線 */
    padding-left: 10px;
}

/* フッター（少し落ち着いたトーンの淡いグレー水色） */
footer {
    background-color: #f5fafd;
    border-top: 1px solid #e3f2fd;
    padding: 20px 0;
    text-align: center;
}
/* ---受取日確認機能用スタイル--- */
...
.search-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px 20px;
    max-width: 550px;
    margin: 20px auto 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.tel-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1em;
    font-weight: bold;
}
.tel-input {
    width: 140px;
    padding: 10px 12px;
    font-size: 1.3em;
    letter-spacing: 4px;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}
.tel-input:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0,86,179,0.15);
}
.btn-search {
    background: #0056b3;
    color: white;
    border: none;
    padding: 11px 32px;
    font-size: 1.05em;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-search:hover {
    background: #003d80;
}
.result-container {
    max-width: 600px;
    margin: 0 auto;
}
.status-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.status-card.completed { border-top: 6px solid #28a745; }
.status-card.processing { border-top: 6px solid #fd7e14; }
.status-card.not-found { border-top: 6px solid #dc3545; }

.status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    color: white;
    margin-bottom: 12px;
}
.completed .status-badge { background-color: #28a745; }
.processing .status-badge { background-color: #fd7e14; }
.not-found .status-badge { background-color: #dc3545; }

.result-date {
    font-size: 1.8em;
    font-weight: bold;
    color: #28a745;
    margin: 10px 0;
}
.info-box {
    background: #eef4fb;
    border-left: 4px solid #5a9bd5;
    padding: 15px;
    font-size: 0.92em;
    line-height: 1.6;
    margin-top: 20px;
    border-radius: 0 6px 6px 0;
}
</style>
/* ---常にスクロールバー領域を確保して横ズレを防ぐ--- */
html {
    overflow-y: scroll;
scrollbar-gutter: stable;
}
    /* または現代のブラウザ向け： */
    scrollbar-gutter: stable;
}
:root {
    --ku-blue: #003366;
    --ku-blue-dark: #002d4d;
    --accent-gold: #a69460;
    --text-main: #2c3e50;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --border-color: #dddddd;
    --white: #ffffff;
}

/* --- 全体・リセット --- */
html {
    overflow-y: scroll; /* 常にスクロールバーを表示してページ間の横ズレを防止 */
    scrollbar-gutter: stable;
}

body, h1, h2, h3, ul, li, p { 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: #ffffff;
    color: var(--text-main);
    line-height: 1.6;
    font-size: 14px;
}

/* --- ヘッダー・ヒーロー領域 --- */
.hero-outer {
    width: 100%;
    background-color: #e3f2fd;
    border-top: 6px solid var(--ku-blue);
    border-bottom: 3px solid #b3e5fc;
    color: var(--ku-blue);
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    min-height: 80px; 
    display: flex;
    align-items: center;
    padding: 10px 30px;
}

.header-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo img {
    height: 100px;
    width: auto;
    filter: none;
}

.header-text-group {
    display: flex;
    flex-direction: column;
}

.university-name {
    font-size: 10px;
    font-weight: bold;
    color: var(--ku-blue);
}

.hero-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--ku-blue);
    margin: 0;
}

.hero-sub-title {
    font-size: 8px;
    color: #666666;
}

/* --- ナビゲーション --- */
.nav-outer {
    background-color: #f0f8ff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--ku-blue); 
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
}

.nav-tabs { 
    display: flex !important;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.nav-tabs > li { 
    position: relative;
    flex: 1;
}

.nav-tabs a {
    display: flex; 
    align-items: center; 
    justify-content: center;
    height: 55px; 
    text-decoration: none; 
    color: var(--text-main);
    font-weight: bold; 
    font-size: 15px; 
    transition: 0.3s;
}

.nav-tabs a:hover, 
.nav-tabs a.active { 
    background-color: #b3e5fc; 
    color: #000000;
}

/* ドロップダウンメニュー */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ddd;
}

.nav-tabs > li:hover .dropdown {
    display: block;
}

.nav-tabs .dropdown li a {
    display: block !important;
    height: auto !important;
    padding: 8px 15px !important;
    line-height: 1.4 !important;
    text-align: left;
    font-size: 14px;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    justify-content: flex-start;
}

.nav-tabs .dropdown li a:hover {
    background-color: #f0f4f8 !important;
    color: var(--ku-blue) !important;
}

.nav-tabs .dropdown li:last-child a {
    border-bottom: none !important;
}

/* --- メインコンテンツ --- */
.main-content {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px 80px 60px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 4px;
}

.section-box {
    margin-bottom: 60px;
    padding: 0 30px 30px;
    background-color: #fff;
    border-radius: 8px;
}

.section-box h2 {
    font-size: 24px;
    color: var(--ku-blue);
    border-left: 5px solid #80d8ff;
    padding-left: 15px;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-box a {
    color: #0056b3;
    text-decoration: underline;
}

.section-box a:hover {
    text-decoration: none;
    color: #003366;
}

/* --- フッター --- */
footer {
    width: 100%;
    background-color: #f5fafd;
    color: #333333;
    padding: 40px 0 20px;
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid #e3f2fd;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

footer p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-title {
    font-size: 1.1em;
    letter-spacing: 0.05em;
}

.footer-address {
    font-size: 0.9em;
    color: #333333;
}

footer .copyright {
    font-size: 0.8em;
    color: #999;
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    letter-spacing: 0.05em;
}

/* --- 装置カード --- */
.equipment-card {
    position: relative;
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    padding: 60px 25px 25px 25px !important;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    align-items: flex-start;
}

.equipment-card h3 {
    position: absolute;
    top: 20px;
    left: 25px;
    display: inline-block !important;
    width: auto !important;
    border-bottom: 2px solid var(--ku-blue);
    margin: 0 !important;
    color: var(--ku-blue);
    font-size: 1.3em;
}

.equipment-image {
    padding-top: 10px !important;
    flex: 0 0 300px;
}

.equipment-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.equipment-info {
    flex: 1;
    padding-top: 0 !important;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th, .spec-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
    font-size: 0.95em;
}

.spec-table th {
    background-color: #f4f7f9;
    width: 100px;
    color: var(--ku-blue);
    vertical-align: top;
}

.theory-box {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    min-height: auto !important;
    line-height: 1.6;
    font-size: 0.95em;
}

.theory-box ul {
    margin: 0;
    padding-left: 1.2em;
}

/* --- テーブル・ステップ・ボタン類 --- */
.table-wrapper { overflow-x: auto; margin: 20px 0; }
table { width: 100%; border-collapse: collapse; background: var(--white); }
th { background: var(--ku-blue); color: var(--white); padding: 15px; font-weight: bold; }
td { border: 1px solid #eee; padding: 15px; text-align: center; }

.price-table tbody tr:nth-child(even) { background-color: #f9fbff; }
.price-table tr:hover { background-color: #f0f7ff; }
.price-table td.category { font-weight: bold; color: var(--ku-blue); background: #f4f7f9; }
.price-table strong { color: #d32f2f; font-size: 1.2em; }

.step-container, .rules-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; 
    margin: 30px 0;
}

.step-card, .rule-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    padding: 25px;
    border-radius: 12px;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    line-height: 1.6;
}

.step-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #003366;
}

.btn-network-main {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--ku-blue);
    color: var(--white) !important;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
}

.btn-network-main:hover {
    background-color: var(--ku-blue-dark);
    transform: translateY(-2px);
}

/* --- お知らせ機能 --- */
.news-item {
    padding: 18px 10px;
    border-bottom: 1px solid #edf2f7;
    transition: background 0.2s;
}

.news-item:hover { background-color: #fcfdfe; }

.news-date {
    font-family: "Helvetica Neue", sans-serif;
    color: var(--ku-blue);
    background: #eef4f9;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 12px;
    min-width: 90px;
    text-align: center;
}

.news-text {
    font-size: 15px;
    color: var(--text-main);
}

/* --- モーダル --- */
.detail-btn {
    margin-left: 10px;
    padding: 2px 8px;
    font-size: 0.8em;
    background-color: var(--ku-blue);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.detail-btn:hover { background-color: var(--ku-blue-dark); }

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.close-btn {
    position: absolute;
    right: 20px; 
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* --- 受取日確認機能用スタイル --- */
.search-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px 20px;
    max-width: 550px;
    margin: 20px auto 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.tel-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1em;
    font-weight: bold;
}

.tel-input {
    width: 140px;
    padding: 10px 12px;
    font-size: 1.3em;
    letter-spacing: 4px;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}

.tel-input:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0,86,179,0.15);
}

.btn-search {
    background: #0056b3;
    color: white;
    border: none;
    padding: 11px 32px;
    font-size: 1.05em;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-search:hover {
    background: #003d80;
}

.result-container {
    max-width: 600px;
    margin: 0 auto;
}

.status-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.status-card.completed { border-top: 6px solid #28a745; }
.status-card.processing { border-top: 6px solid #fd7e14; }
.status-card.not-found { border-top: 6px solid #dc3545; }

.status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    color: white;
    margin-bottom: 12px;
}

.completed .status-badge { background-color: #28a745; }
.processing .status-badge { background-color: #fd7e14; }
.not-found .status-badge { background-color: #dc3545; }

.result-date {
    font-size: 1.8em;
    font-weight: bold;
    color: #28a745;
    margin: 10px 0;
}

.info-box {
    background: #eef4fb;
    border-left: 4px solid #5a9bd5;
    padding: 15px;
    font-size: 0.92em;
    line-height: 1.6;
    margin-top: 20px;
    border-radius: 0 6px 6px 0;
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
    .hero-inner { flex-direction: column; text-align: center; padding: 30px; }
    .header-logo img { margin: 0 0 15px 0; }
    .main-content { padding: 20px; margin: 20px; }
    .nav-tabs { flex-wrap: wrap; }
    .nav-tabs li { min-width: 50%; }
    .equipment-card { flex-direction: column; margin-bottom: 20px !important; }
    .equipment-image { flex: 0 0 auto; width: 100%; }
}
/* 確実にすべてのページで縦スクロールバーを表示させる */
html {
    min-height: 101vh; /* 画面の高さをほんの少しだけ超えさせて、強制的にスクロールバーを出す */
    overflow-y: scroll;
}
