/* ══════════════════════════════════════
   人間ドック会館クリニック 予約ページ
   yoyaku.css
══════════════════════════════════════ */

:root {
    --navy:        #1a2744;
    --teal:        #2a7f7f;
    --teal-light:  #e8f4f4;
    --amber:       #e8a020;
    --amber-light: #fdf3e0;
    --coral:       #d95f3b;
    --coral-light: #fdf0ec;
    --indigo:      #3d4fa1;
    --indigo-light:#eef0fa;
    --white:       #ffffff;
    --gray-50:     #f8f9fa;
    --gray-100:    #f0f2f5;
    --gray-300:    #d0d5dd;
    --gray-600:    #4a5568;
    --gray-800:    #2d3748;
    --radius:      12px;
    --shadow:      0 2px 16px rgba(26,39,68,.08);
    --shadow-h:    0 8px 32px rgba(26,39,68,.15);
}

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

body {
    font-family: 'BIZ UDPGothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', Arial, sans-serif;
    background: var(--white);
    color: var(--gray-800);
    line-height: 1.7;
    font-size: 16px;
}

/* ── HEADER ── */
.site-header {
    background: var(--navy);
    padding: 14px 24px;
}
.header-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.site-logo {
    color: var(--white);
    font-size: 16px;
    font-weight: bold;
    letter-spacing: .05em;
}
.site-nav a {
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: 13px;
    margin-left: 20px;
}
.site-nav a:hover { color: var(--white); text-decoration: underline; }

/* ── HERO ── */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #2a3f6f 100%);
    padding: 48px 24px 40px;
    text-align: center;
}
.label-badge {
    display: inline-block;
    background: var(--teal);
    color: var(--white);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: .15em;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.page-hero h1 {
    color: var(--white);
    font-size: 22px;
    font-family: 'BIZ UDPMincho', serif;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}
.page-hero p {
    color: rgba(255,255,255,.75);
    font-size: 14px;
    text-align: center;
}

/* ── CONTAINER ── */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── SECTION LABELS ── */
.section-label {
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: .2em;
    color: var(--teal);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.section-title {
    text-align: center;
    font-size: 20px;
    font-family: 'BIZ UDPMincho', serif;
    color: var(--navy);
    margin-bottom: 28px;
    font-weight: bold;
}

/* ══════════════════════════════
   ルート選択
══════════════════════════════ */
.route-section {
    background: var(--gray-50);
    padding: 44px 0 52px;
    border-bottom: 1px solid var(--gray-100);
}
.route-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 8px;
}
.route-card {
    border-radius: var(--radius);
    padding: 28px 22px;
    cursor: pointer;
    border: 2.5px solid var(--gray-300);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: all .22s;
    text-align: center;
    position: relative;
    font-family: inherit;
    width: 100%;
}
.route-card:hover {
    box-shadow: var(--shadow-h);
    transform: translateY(-3px);
}
.route-card.selected-personal {
    border-color: var(--teal);
    background: var(--teal-light);
}
.route-card.selected-corporate {
    border-color: var(--indigo);
    background: var(--indigo-light);
}
.route-icon { font-size: 36px; margin-bottom: 10px; }
.route-title { font-size: 17px; font-weight: bold; color: var(--navy); margin-bottom: 8px; }
.route-sub { font-size: 13px; color: var(--gray-600); line-height: 1.6; }
.route-channel-hint {
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    margin-top: 6px;
}
.route-channel-hint.personal { color: var(--teal); }
.route-channel-hint.corporate { color: var(--indigo); }
.corp-badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--indigo);
    color: var(--white);
    font-size: 11px;
    font-weight: bold;
    padding: 3px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ── FLOW PANELS ── */
.flow-panel { display: none; }
.flow-panel.show { display: block; animation: fadeUp .32s ease; }
@keyframes fadeUp {
    from { opacity:0; transform:translateY(10px); }
    to   { opacity:1; transform:translateY(0); }
}
.panel-divider {
    height: 3px;
    border-radius: 2px;
    margin: 28px 0;
}
.panel-divider.personal  { background: var(--teal); }
.panel-divider.corporate { background: var(--indigo); }

/* ── Q&A CARDS ── */
.question-card {
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
}
.question-card.active { border-color: var(--teal); }
.q-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.q-number {
    width: 28px; height: 28px;
    background: var(--teal);
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: bold;
    flex-shrink: 0;
}
.q-text { font-size: 15px; font-weight: bold; color: var(--navy); }
.q-options { display: flex; flex-wrap: wrap; gap: 10px; padding-left: 40px; }
.q-btn {
    padding: 10px 18px;
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    background: var(--white);
    color: var(--gray-600);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all .18s;
    font-weight: 500;
}
.q-btn:hover, .q-btn.selected {
    border-color: var(--teal);
    background: var(--teal-light);
    color: var(--teal);
    font-weight: bold;
}

/* ── 診断結果 ── */
.recommendation { display: none; margin-top: 8px; animation: fadeUp .35s ease; }
.recommendation.show { display: block; }
.rec-badge-wrap { text-align: center; margin-bottom: 14px; }
.rec-badge {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    padding: 4px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .08em;
}
.reset-btn {
    display: block;
    background: none;
    border: none;
    margin: 18px auto 0;
    font-family: inherit;
    font-size: 13px;
    color: var(--teal);
    cursor: pointer;
    text-decoration: underline;
}
.tab-reset {
    display: block;
    background: none;
    border: none;
    margin: 24px auto 0;
    font-family: inherit;
    font-size: 13px;
    color: var(--gray-600);
    cursor: pointer;
    text-decoration: underline;
}

/* ── CHANNEL CARDS ── */
.channel-cards {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 1fr 1fr;
}
.channel-cards.col2 { grid-template-columns: 1fr 1fr; }

.channel-card {
    border-radius: var(--radius);
    padding: 22px 18px;
    position: relative;
    transition: all .22s;
    border: 2px solid transparent;
}
.channel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }
.channel-card.recommended { border-color: currentColor; }
.rec-tag {
    position: absolute;
    top: -11px; left: 50%;
    transform: translateX(-50%);
    background: var(--amber);
    color: var(--white);
    font-size: 11px;
    font-weight: bold;
    padding: 3px 14px;
    border-radius: 20px;
    white-space: nowrap;
}
.channel-card.ai   { background: var(--amber-light); }
.channel-card.tel  { background: var(--coral-light); }
.channel-card.mail { background: var(--teal-light); }

.ch-icon   { font-size: 26px; margin-bottom: 6px; }
.ch-name   { font-size: 15px; font-weight: bold; color: var(--navy); margin-bottom: 4px; }
.ch-number { font-size: 18px; font-weight: bold; color: var(--navy); margin-bottom: 8px; letter-spacing: .04em; }
.ch-addr   { font-size: 12px; font-weight: bold; color: var(--navy); margin-bottom: 8px; word-break: break-all; }
.ch-tags   { margin-bottom: 8px; }
.tag {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 9px;
    border-radius: 4px;
    margin-right: 4px;
    margin-bottom: 4px;
    color: var(--white);
}
.channel-card.ai   .tag { background: var(--amber); }
.channel-card.tel  .tag { background: var(--coral); }
.channel-card.mail .tag { background: var(--teal); }
.ch-desc { font-size: 12px; color: var(--gray-600); line-height: 1.6; margin-bottom: 12px; }
.ch-cta {
    display: block;
    text-align: center;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity .18s;
    color: var(--white);
}
.ch-cta:hover { opacity: .85; }
.channel-card.ai   .ch-cta { background: var(--amber); }
.channel-card.tel  .ch-cta { background: var(--coral); }
.channel-card.mail .ch-cta { background: var(--teal); }

/* ── 空き日バナー ── */
.vacancy-banner {
    background: var(--navy);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin: 28px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.vacancy-text h3 { color: var(--white); font-size: 16px; margin-bottom: 6px; }
.vacancy-text p  { color: rgba(255,255,255,.75); font-size: 13px; }
.vacancy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--teal);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .18s;
}
.vacancy-btn:hover { background: #1f6a6a; }

/* ══════════════════════════════
   法人フロー
══════════════════════════════ */
.corp-steps {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0;
    margin-bottom: 32px;
    position: relative;
}
.corp-steps::before {
    content: '';
    position: absolute;
    top: 23px; left: 13%; right: 13%;
    height: 3px;
    background: linear-gradient(90deg, var(--indigo), var(--teal));
    z-index: 0;
}
.corp-step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 6px;
}
.corp-step-num {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--indigo);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: bold; color: var(--indigo);
    margin: 0 auto 10px;
    box-shadow: 0 2px 8px rgba(61,79,161,.15);
}
.corp-step-label { font-size: 13px; font-weight: bold; color: var(--navy); margin-bottom: 4px; }
.corp-step-sub   { font-size: 11px; color: var(--gray-600); line-height: 1.5; }

.corp-detail {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--indigo);
}
.corp-detail h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: bold;
    color: var(--navy);
    margin-bottom: 12px;
    text-align: left;
}
.step-badge {
    width: 26px; height: 26px;
    background: var(--indigo);
    color: var(--white);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: bold;
    flex-shrink: 0;
}
.corp-detail p { font-size: 14px; color: var(--gray-600); line-height: 1.8; }

.corp-channels {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.corp-ch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
}
.corp-ch.tel  { background: var(--coral-light);  color: var(--coral); }
.corp-ch.mail { background: var(--teal-light);   color: var(--teal); }
.corp-ch.fax  { background: var(--indigo-light); color: var(--indigo); }

.corp-timeline {
    padding-left: 18px;
    margin-top: 10px;
}
.corp-timeline li {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 6px;
}
.corp-timeline strong { color: var(--navy); }

/* 名簿サンプル */
.roster-box {
    background: var(--indigo-light);
    border: 1.5px dashed var(--indigo);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-top: 14px;
}
.roster-title {
    font-size: 13px;
    font-weight: bold;
    color: var(--indigo);
    margin-bottom: 10px;
}
.roster-scroll { overflow-x: auto; }
.roster-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 560px;
}
.roster-table th {
    background: var(--indigo);
    color: var(--white);
    padding: 7px 10px;
    text-align: left;
    font-weight: 500;
}
.roster-table td {
    padding: 7px 10px;
    border: 1px solid rgba(61,79,161,.2);
    color: var(--gray-600);
    background: var(--white);
}
.roster-table tr:nth-child(even) td { background: #f7f8fd; }

/* ══════════════════════════════
   NOTEボックス
══════════════════════════════ */
.note {
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.7;
    margin-top: 14px;
}
.note.amber  { background: var(--amber-light);  border-left: 4px solid var(--amber);  color: var(--gray-800); }
.note.indigo { background: var(--indigo-light); border-left: 4px solid var(--indigo); color: var(--gray-800); }
.note strong { color: inherit; }
.note.amber  strong { color: var(--amber); }
.note.indigo strong { color: var(--indigo); }

/* ══════════════════════════════
   全チャネル一覧
══════════════════════════════ */
.all-channels {
    padding: 44px 0;
    border-bottom: 1px solid var(--gray-100);
}

/* ══════════════════════════════
   必要情報セクション
══════════════════════════════ */
.info-section {
    padding: 44px 0;
    background: var(--gray-50);
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 22px;
}
.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}
.info-card h3 {
    font-size: 14px;
    font-weight: bold;
    color: var(--navy);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--teal);
    text-align: left;
}
.info-list {
    list-style: none;
    padding: 0;
}
.info-list li {
    font-size: 13px;
    color: var(--gray-600);
    padding: 6px 0;
    border-bottom: 1px solid var(--gray-100);
    padding-left: 14px;
    position: relative;
    line-height: 1.6;
}
.info-list li::before {
    content: '▶';
    color: var(--teal);
    position: absolute;
    left: 0;
    font-size: 10px;
    top: 9px;
}
.info-list li:last-child { border-bottom: none; }

/* 受付時間表 */
.hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-top: 8px;
}
.hours-table th {
    background: var(--navy);
    color: var(--white);
    padding: 7px;
    text-align: center;
    font-weight: 500;
    font-size: 11px;
}
.hours-table td {
    padding: 7px;
    text-align: center;
    border: 1px solid var(--gray-100);
    color: var(--gray-600);
    font-size: 11px;
}
.hours-table .closed { color: var(--gray-300); }
.hours-note {
    margin-top: 12px;
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ══════════════════════════════
   フッター
══════════════════════════════ */
.site-footer {
    background: var(--navy);
    padding: 36px 24px;
    text-align: center;
    color: rgba(255,255,255,.65);
    font-size: 12px;
    line-height: 1.9;
}
.footer-name {
    color: var(--white);
    font-size: 15px;
    font-family: 'BIZ UDPMincho', serif;
    font-weight: bold;
    margin-bottom: 8px;
}

/* ══════════════════════════════
   レスポンシブ
══════════════════════════════ */
@media (max-width: 640px) {
    .route-cards      { grid-template-columns: 1fr; }
    .channel-cards    { grid-template-columns: 1fr; }
    .channel-cards.col2 { grid-template-columns: 1fr; }
    .corp-steps       { grid-template-columns: 1fr 1fr; }
    .corp-steps::before { display: none; }
    .info-grid        { grid-template-columns: 1fr; }
    .site-nav         { display: none; }
    .vacancy-banner   { flex-direction: column; text-align: center; }
    .q-options        { padding-left: 0; }
    .page-hero h1     { font-size: 18px; }
    .header-inner     { justify-content: center; }
}

/* ══════════════════════════════
   空き日検索フォーム（統合版）
══════════════════════════════ */
.vacancy-integrated {
    background: var(--navy);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-top: 28px;
}
.vacancy-integrated-header h3 {
    color: var(--white);
    font-size: 17px;
    margin-bottom: 8px;
}
.vacancy-integrated-header p {
    color: rgba(255,255,255,.75);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 4px;
}
.vacancy-note {
    color: rgba(255,255,255,.5) !important;
    font-size: 12px !important;
    margin-bottom: 20px !important;
}

.sf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
.sf-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.07);
    border-radius: 8px;
    padding: 8px 12px;
}
.sf-row label {
    color: rgba(255,255,255,.85);
    font-size: 13px;
    font-weight: bold;
    width: 120px;
    flex-shrink: 0;
    display: inline-block;
}
.sf-row select,
.sf-row input[type="date"] {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 6px;
    background: rgba(255,255,255,.9);
    color: var(--gray-800);
    font-size: 13px;
    font-family: inherit;
    height: auto;
    width: auto;
    max-width: none;
    box-sizing: border-box;
}
.sf-row select:disabled {
    background: rgba(255,255,255,.25);
    color: rgba(255,255,255,.4);
    cursor: not-allowed;
    border-color: transparent;
}

.search-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    transition: background .18s;
    margin: 0;
}
.search-btn:hover    { background: #1f6a6a; }
.search-btn:disabled { background: rgba(255,255,255,.2); cursor: not-allowed; }

#loading {
    display: none;
    text-align: center;
    color: rgba(255,255,255,.8);
    font-size: 14px;
    margin-top: 16px;
}
#error {
    color: #ff8a80;
    font-size: 13px;
    margin-top: 12px;
}
#result {
    margin-top: 16px;
    color: var(--white);
}
#result table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
}
#result th {
    background: var(--teal);
    color: var(--white);
    padding: 10px 14px;
    text-align: left;
    font-weight: bold;
    cursor: pointer;
}
#result td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-800);
}
#result tr:last-child td { border-bottom: none; }
#result tr:nth-child(even) td { background: var(--gray-50); }
.full-month-message {
    color: var(--white);
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 6px;
}
.error-message {
    color: var(--white);
    font-weight: bold;
    font-size: 13px;
}

@media (max-width: 640px) {
    .sf-grid { grid-template-columns: 1fr; }
    .vacancy-integrated { padding: 20px 16px; }
}

/* 人間ドック注釈 */
.sf-row-dock {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.sf-row-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.sf-note {
    font-size: 11px;
    color: rgba(255,255,255,.6);
    line-height: 1.5;
    padding-left: 2px;
}

/* 3ステップ版レイアウト */
.corp-steps-3 {
    grid-template-columns: 1fr 1fr 1fr;
}
.corp-steps-3::before {
    left: 17%; right: 17%;
}

/* 名簿注釈 */
.roster-note {
    font-size: 12px;
    color: var(--indigo);
    font-weight: bold;
    margin-bottom: 10px;
    padding: 6px 10px;
    background: rgba(61,79,161,.08);
    border-radius: 6px;
}

/* フッター内リンク・電話番号の色固定（iPhoneの自動リンク化対策） */
.site-footer a,
.site-footer a:link,
.site-footer a:visited {
    color: rgba(255,255,255,.65) !important;
    text-decoration: none;
}
