/* T-4OO ログイン画面 (6b) */
:root { color-scheme: light; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: #0f2d4d; font-family: "Meiryo","メイリオ","Hiragino Kaku Gothic ProN","Yu Gothic UI",sans-serif; }
a { color: #1e6bb0; text-decoration: none; }
a:hover { color: #0f4c81; text-decoration: underline; }
input:focus, button:focus-visible { outline: 2px solid #1e6bb0; outline-offset: -1px; }

.page { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.main { flex: 1; display: flex; min-height: 0; }

/* ---- 左ペイン ---- */
.left-pane { width: 350px; flex: none; background: #fff; padding: 28px 32px; display: flex; flex-direction: column; gap: 20px; }
.lang-row { display: flex; justify-content: flex-end; }
.lang-btn { background: none; border: 1px solid #cbd5e1; border-radius: 999px; padding: 4px 14px; font-size: 12px; color: #475569; cursor: pointer; font-family: inherit; }
.logo { width: 190px; align-self: center; margin-top: 2px; }
.login-form { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.login-form input[type="text"], .login-form input[type="password"] { border: 1px solid #b6c6d4; border-radius: 6px; padding: 11px 14px; font-size: 14px; font-family: inherit; }
.chk { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #334155; cursor: pointer; }
.chk small { font-size: 11px; color: #64748b; }
.login-btn { background: #1e6bb0; color: #fff; border: none; border-radius: 6px; padding: 13px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; letter-spacing: .1em; }
.login-btn:hover { background: #0f4c81; }
.login-help { display: flex; flex-direction: column; gap: 6px; align-items: center; font-size: 13px; }
.login-help div { font-size: 12px; color: #475569; }
.support { margin-top: auto; background: #f4f7fa; border-radius: 8px; padding: 14px 16px; font-size: 12px; color: #334155; display: flex; flex-direction: column; gap: 10px; }
.support-title { font-weight: 700; font-size: 15px; }
.support-label { font-weight: 700; font-size: 11px; color: #1e6bb0; letter-spacing: .06em; }
.support-body { line-height: 1.9; }
.support-links { display: flex; flex-direction: column; gap: 7px; border-top: 1px solid #e2e8f0; padding-top: 10px; }
.support-links a { display: flex; align-items: center; gap: 8px; }
.support-links svg { color: #1e6bb0; flex: none; }

/* ---- 右ペイン ---- */
.right-pane { flex: 1; background: #0f2d4d; padding: 24px 28px 20px 28px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.maint-bar { background: #fff7e6; border-left: 4px solid #e0a92e; border-radius: 8px; padding: 9px 16px; font-size: 13px; color: #7a5b13; display: flex; gap: 10px; align-items: center; flex: none; }
.maint-bar[hidden] { display: none; }
.maint-label { font-weight: 700; flex: none; }
.maint-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.maint-text a { color: #1e6bb0; text-decoration: underline; font-weight: 700; }
.maint-text a:hover { color: #0f4c81; }

/* MAIN FEATURE 黄色ヒーロー */
.hero-wrap { position: relative; flex: 2; min-height: 0; margin-bottom: 20px; }
.hero-shadow { position: absolute; left: 6%; right: 6%; bottom: -26px; height: 32px; background: radial-gradient(ellipse at center, rgba(0,0,0,.8), rgba(0,0,0,0) 70%); border-radius: 50%; }
.hero-bezel { padding: 3px; border-radius: 15px; height: 100%; background: linear-gradient(140deg, #fff8d6 0%, #e0b93a 22%, #fffbe8 46%, #b8922a 72%, #f5e3a0 100%); box-shadow: 0 6px 0 #a3821f, 0 12px 0 #7d6316, 0 48px 90px rgba(0,0,0,.9), 0 22px 40px rgba(0,0,0,.65); }
.hero { overflow: hidden; border-radius: 12px; height: 100%; position: relative; padding: 36px 48px; display: flex; gap: 40px; align-items: center; background: linear-gradient(120deg, #ffdf57 0%, #ffd020 100%); }
.hero-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hero-kicker { font-size: 13px; letter-spacing: .18em; color: #175a94; font-weight: 700; }
.hero-title { font-size: 32px; font-weight: 900; line-height: 1.4; color: #0f2d4d; white-space: pre-line; }
.hero-desc { font-size: 15px; color: #3b4652; line-height: 1.9; }
.hero-link { color: #1e6bb0; font-size: 14px; font-weight: 700; }
.hero-video { width: 400px; flex: none; aspect-ratio: 16/9; background: #0f2d4d; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; cursor: pointer; box-shadow: 0 12px 32px rgba(120,90,0,.45); }
/* 動画の表示サイズ: contents.json の slides[].videoWidth (px) で上書きできます。未指定時は 400px */
.hero-video .play { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; }
.hero-video .tri { width: 0; height: 0; border-left: 20px solid #1e6bb0; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.hero-video-label { font-size: 12px; color: #8fd0ff; }
.hero-gloss { position: absolute; inset: 0; border-radius: 12px; background: linear-gradient(160deg, rgba(255,255,255,.35), rgba(255,255,255,.08) 30%, rgba(255,255,255,0) 55%, rgba(255,255,255,.12) 85%); pointer-events: none; }

/* 下段横スクロール帯 */
.band { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.band-head { display: flex; align-items: baseline; gap: 14px; flex: none; }
.band-title { font-size: 13px; font-weight: 900; color: #fff; }
.band-hint { font-size: 11px; color: #8fb8dc; }
.band-scroll { display: flex; gap: 14px; overflow-x: auto; min-height: 0; flex: 1; padding-bottom: 8px; }

.news-card { width: 480px; flex: none; background: #fff; border-radius: 12px; display: flex; flex-direction: column; overflow-y: auto; }
.news-head { padding: 8px 16px; font-size: 12px; font-weight: 900; color: #14507e; background: #e3eef8; flex: none; position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; }
.news-chips { display: flex; gap: 5px; flex-wrap: nowrap; }
.news-chip { padding: 1px 8px; border-radius: 999px; font-size: 10px; font-weight: 500; cursor: pointer; font-family: inherit; background: #fff; color: #475569; border: 1px solid #cbd5e1; white-space: nowrap; }
.news-chip.active { background: #1e6bb0; color: #fff; border-color: #1e6bb0; }
.news-more { padding: 8px 16px; font-size: 11px; color: #94a3b8; text-align: center; }
.news-item { border-bottom: 1px solid #edf2f7; flex: none; }
.news-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; cursor: pointer; }
.news-row:hover { background: #f6fafd; }
.news-cat { flex: none; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.news-title { font-size: 12px; color: #1f2937; flex: 1; min-width: 0; }
.news-date { font-size: 11px; color: #94a3b8; flex: none; }
.news-sym { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid #cbd5e1; color: #64748b; display: flex; align-items: center; justify-content: center; font-size: 12px; line-height: 1; background: #fff; }
.news-body { margin: 0 16px 10px 16px; padding-top: 8px; border-top: 1px dashed #e2e8f0; font-size: 12px; color: #475569; line-height: 1.8; }
.news-body blockquote { margin: 6px 0; padding: 4px 14px; border-left: 3px solid #b6c6d4; color: #64748b; background: #f8fafc; }
.news-body ul, .news-body ol { margin: 6px 0; padding-left: 24px; }
.news-body img { max-width: 100%; height: auto; display: block; margin: 6px 0; border-radius: 4px; }
.news-chips { flex-wrap: wrap; }
.news-modes { display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.news-modes-label { font-size: 10px; color: #94a3b8; }
.mode-chip { font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid; white-space: nowrap; }

.camp-card { width: 230px; flex: none; background: #f1edf9; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.camp-thumb { width: 100%; height: 64px; flex: none; border-radius: 7px; background-size: cover; background-position: center; background-color: #ddd3ef; }
.camp-kicker { font-size: 10px; font-weight: 700; color: #6b3fa0; letter-spacing: .1em; }
.camp-title { font-size: 13px; font-weight: 900; color: #1f2937; line-height: 1.5; white-space: pre-line; }
.camp-link { font-size: 12px; font-weight: 700; margin-top: auto; }

.case-card { width: 250px; flex: none; background: #e7f4f2; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.case-card:hover { background: #d9efec; }
.case-head-row { display: flex; align-items: center; gap: 8px; }
.case-tag { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: #0d7a72; }
.case-industry { font-size: 10px; padding: 2px 8px; border-radius: 4px; border: 1px solid #a8cdc8; color: #0d7a72; background: #fff; }
.case-headline { font-size: 13px; font-weight: 900; color: #0f2d4d; line-height: 1.5; }
.case-summary { font-size: 11px; color: #64748b; line-height: 1.7; }
.case-link { font-size: 11px; font-weight: 700; margin-top: auto; }

/* ---- フッター ---- */
.footer { flex: none; }
.footer-links { background: #fff; border-top: 1px solid #dbe4ec; padding: 10px 24px; display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 13px; color: #334155; flex-wrap: wrap; }
.footer-links a { text-decoration: underline; }
.footer .sep { color: #cbd5e1; }
.footer-copy { background: #1e5f96; color: #fff; text-align: center; padding: 9px; font-size: 13px; }

/* ---- レスポンシブ(簡易) ---- */
@media (max-width: 1100px) {
  .main { flex-direction: column; }
  .left-pane { width: 100%; }
  .hero { flex-direction: column; padding: 24px; gap: 20px; }
  .hero-video { width: 100%; }
}


/* ===== 8a レイアウト ===== */
.logo-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 2px; }
.logo-wrap .logo { width: 209px; align-self: center; margin: 0; }
.logo-formerly { font-size: 20px; color: #64748b; }

/* MAIN TOPIC: 右ペインの約2/3 */
.hero-wrap { flex: 2; }
.hero.topic { min-height: 0; flex-direction: column; align-items: stretch; gap: 14px; padding: 22px 40px 24px 40px; }
.topic-head { display: flex; flex-direction: column; gap: 6px; flex: none; }
.topic-head .hero-kicker { font-size: 12px; }
.topic-title { font-size: 32px; font-weight: 900; line-height: 1.25; color: #0f2d4d; }
.topic-lead { font-size: 14px; line-height: 1.7; color: #1f2937; font-weight: 500; white-space: pre-line; }
.topic-notes { display: flex; flex-wrap: wrap; column-gap: 16px; font-size: 11px; line-height: 1.6; color: #3b4652; }
.topic-images { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0,1fr); gap: 24px; flex: 1; min-height: 0; }
.topic-images img { width: 100%; height: 100%; max-height: 100%; min-height: 0; object-fit: contain; display: block; filter: drop-shadow(0 12px 24px rgba(120,90,0,.45)); }
.topic-concept { align-self: center; flex: none; font-size: 13px; color: #0f2d4d; font-weight: 500; }
.topic-release { align-self: center; flex: none; font-size: 15px; font-weight: 700; color: #0f2d4d; text-decoration: underline; text-underline-offset: 3px; position: relative; z-index: 1; }
.topic-release:hover { color: #1e6bb0; }

/* お知らせ2列: 右ペインの約1/3 */
.news-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; position: relative; z-index: 1; }
.news-cols .news-card { width: auto; min-width: 0; min-height: 0; }
.news-head-a { border-top: 3px solid #e0a92e; border-radius: 12px 12px 0 0; }
.news-head-b { border-top: 3px solid #1e6bb0; border-radius: 12px 12px 0 0; }
.news-head-title { font-size: 13px; font-weight: 900; color: #14507e; }
.news-head-sub { font-size: 11px; font-weight: 400; color: #64748b; }
.news-body-html { overflow: hidden; overflow-wrap: anywhere; }
.news-body-html img { max-width: 100%; height: auto; display: block; }

/* 画像が小さくなりすぎないよう下限を設定(画面が低いときは右ペイン内をスクロール) */
/* MAIN TOPICは中身の高さより小さく縮めない(下端のリンクが切れないように) */
.hero-wrap { min-height: 460px; flex: 2 0 auto; }
.topic-images { min-height: 240px; }
.news-cols { min-height: 200px; }

/* 高さが低い画面ではテキストを詰めて画像の面積を確保 */
@media (min-width: 1101px) and (max-height: 820px) {
  .hero.topic { gap: 10px; padding: 16px 32px 18px 32px; }
  .topic-title { font-size: 26px; }
  .topic-lead { font-size: 13px; line-height: 1.6; }
  .topic-concept { font-size: 12px; }
  .topic-release { font-size: 14px; }
}

/* デスクトップ: 1画面に収める(左ペインのみ必要時スクロール) */
@media (min-width: 1101px) {
  .page { height: 100vh; min-height: 0; overflow: hidden; }
  .main { min-height: 0; }
  .right-pane { min-height: 0; overflow-y: auto; }
  .left-pane { overflow-y: auto; }
}

@media (max-width: 1100px) {
  .topic-images { grid-template-columns: 1fr; grid-template-rows: auto; }
  .news-cols { grid-template-columns: 1fr; }
}
