/* 注意喚起モーダル & Cookie同意バナー */
.ov{position:fixed;inset:0;z-index:200;background:rgba(4,14,25,.72);backdrop-filter:blur(3px);
  display:flex;align-items:center;justify-content:center;padding:24px;opacity:0;visibility:hidden;transition:.25s}
.ov.on{opacity:1;visibility:visible}
.modal{background:#fff;max-width:640px;width:100%;max-height:88vh;overflow:auto;
  box-shadow:0 24px 60px rgba(4,14,25,.32);transform:translateY(10px);transition:.25s}
.ov.on .modal{transform:none}
.modal-head{background:var(--navy);color:#fff;padding:22px 34px;display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.modal-head .tag{font-size:12px;font-weight:700;letter-spacing:.08em;color:#c8b48f;flex-shrink:0;padding-right:20px;border-right:1px solid #ffffff33}
.modal-head h2{font-size:17.5px;line-height:1.6;margin:0;font-weight:600;letter-spacing:.03em;flex:1;min-width:200px}
.modal-body{padding:32px 34px 34px}
.modal-body p{margin:0 0 18px;font-size:14.5px;line-height:2;color:#2d4256}
.modal-body p:last-of-type{margin-bottom:0}
.modal-body strong{color:var(--navy)}
.modal-body .callout{border:1px solid var(--line);padding:18px 22px;font-size:14px;line-height:1.95;color:var(--muted);margin:24px 0 0}
.modal-body .callout a{color:var(--navy);text-decoration:underline;text-underline-offset:3px;font-weight:700}
.modal-foot{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:0 34px 34px}
.btn-solid{background:var(--navy);color:#fff;border:1px solid var(--navy);padding:15px 32px;font-size:14.5px;
  font-weight:700;cursor:pointer;transition:.2s;letter-spacing:.04em}
.btn-solid:hover{background:#17334d;border-color:#17334d}
.btn-text{background:none;border:0;color:var(--navy);font-size:14px;font-weight:700;cursor:pointer;
  padding:15px 4px;text-decoration:underline;text-underline-offset:4px}

/* Cookieバナー */
.cookie{position:fixed;left:0;right:0;bottom:0;z-index:190;background:var(--navy);color:#fff;
  padding:22px 6%;display:flex;align-items:center;gap:30px;flex-wrap:wrap;
  box-shadow:0 -10px 40px rgba(4,14,25,.28);transform:translateY(110%);transition:transform .35s ease}
.cookie.on{transform:none}
.cookie-txt{flex:1;min-width:280px;font-size:13.5px;line-height:1.95;color:#c9d7e3}
.cookie-txt b{display:block;color:#fff;font-size:14.5px;margin-bottom:6px}
.cookie-txt a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.cookie-btns{display:flex;gap:12px;flex-wrap:wrap}
.cookie .btn-solid{padding:13px 26px;font-size:14px}
.cookie .btn-ghost{background:none;border:1px solid #ffffff55;color:#fff;padding:13px 26px;font-size:14px;
  font-weight:700;cursor:pointer;transition:.2s}
.cookie .btn-ghost:hover{background:#ffffff1a}
.cookie-link{background:none;border:0;color:inherit;font:inherit;cursor:pointer;padding:0;text-decoration:underline;text-underline-offset:3px}

body.no-scroll{overflow:hidden}
@media(max-width:760px){
  .modal-head{padding:20px 22px;gap:12px}
  .modal-head h2{font-size:15.5px}
  .modal-body{padding:24px 22px}
  .modal-foot{padding:0 22px 26px}
  .btn-solid{width:100%;text-align:center}
  .cookie{padding:20px 6%;gap:16px}
  .cookie-btns{width:100%}
  .cookie-btns button{flex:1}
}

/* 言語切替 */
.lang-switch{display:inline-flex;align-items:center;border:1px solid #ffffff3d;flex-shrink:0}
.lang-switch a{padding:7px 14px;font:700 12px/1 Arial,sans-serif;letter-spacing:.06em;color:#c5d3df;transition:.15s}
.lang-switch a[aria-current="true"]{background:#ffffff;color:var(--navy)}
.lang-switch a:not([aria-current="true"]):hover{color:#fff;background:#ffffff1f}
header .lang-switch{border-color:var(--line);margin-left:4px}
header .lang-switch a{color:var(--muted)}
header .lang-switch a[aria-current="true"]{background:var(--navy);color:#fff}
header .lang-switch a:not([aria-current="true"]):hover{background:var(--pale);color:var(--navy)}
@media(max-width:760px){
  header .lang-switch{margin:16px 0 0;align-self:flex-start}
  .modal-head{padding:18px 22px;gap:14px}
  .modal-head .tag{padding-right:14px}
}

/* ===== UI refinement（モーダル・バナー） ===== */
.ov{background:rgba(0,0,0,.42);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.modal{border-radius:20px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.28)}
.modal-head{padding:22px 32px}
.modal-head h2{font-size:17px;font-weight:600;letter-spacing:-.008em}
.modal-head .tag{font-size:11.5px;font-weight:600;letter-spacing:.02em;color:#c8b48f;border-right:1px solid rgba(255,255,255,.22)}
.modal-body{padding:30px 32px 30px}
.modal-body p{font-size:14.5px;line-height:1.95;color:#333}
.modal-body .callout{border:0;border-radius:14px;background:var(--pale);font-size:13.5px}
.modal-foot{padding:0 32px 30px;gap:8px}
.btn-solid{border-radius:980px;border:0;background:var(--blue);padding:14px 30px;font-size:15px;font-weight:500;letter-spacing:0}
.btn-solid:hover{background:var(--blue-d);border:0}
.btn-text{font-weight:500;font-size:14px;text-decoration:none}
.btn-text::after{content:"›";margin-left:5px;font-size:1.2em;line-height:1}
.btn-text:hover{opacity:.7}
.cookie{padding:20px 6%;background:rgba(12,36,56,.92);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.cookie-txt{font-size:13px;line-height:1.85}
.cookie .btn-solid{background:#fff;color:var(--navy);padding:12px 26px;font-size:14px}
.cookie .btn-solid:hover{background:#e8e8ed}
.cookie .btn-ghost{border-radius:980px;border:1px solid rgba(255,255,255,.35);padding:12px 26px;font-size:14px;font-weight:500}
.lang-switch{border-radius:980px;border-color:rgba(255,255,255,.3);overflow:hidden}
.lang-switch a{font:500 12px/1 inherit;letter-spacing:.01em;padding:7px 15px}
header .lang-switch{border-radius:980px;border-color:rgba(0,0,0,.14);overflow:hidden}
header .lang-switch a{font-size:12px}

/* ===== モノクロ化（モーダル・バナー） ===== */
.modal-head{background:var(--ink)}
.modal-head .tag{color:rgba(255,255,255,.6);border-right-color:rgba(255,255,255,.2)}
.modal-body .callout a{color:var(--ink)}
.btn-solid{background:var(--ink)}
.btn-solid:hover{background:#000}
.btn-text{color:var(--ink)}
.cookie{background:rgba(29,29,31,.94)}
.cookie .btn-solid{background:#fff;color:var(--ink)}
.cookie .btn-solid:hover{background:#e8e8ed}
.lang-switch a[aria-current="true"]{background:#fff;color:var(--ink)}

/* モーダル本文：2行の長さを揃えて、行末に助詞だけが残らないようにする */
.modal-body p,.cookie-txt{word-break:auto-phrase;line-break:strict;text-wrap:pretty}
.modal-body p{text-wrap:balance}
.modal-head h2{word-break:auto-phrase;text-wrap:balance}

/* サイト全体の text-wrap:pretty より優先させ、モーダルは2行の長さを揃える */
html .modal-body p,html[lang="ja"] .modal-body p{text-wrap:balance}
html .modal-head h2,html[lang="ja"] .modal-head h2{text-wrap:balance}
html .cookie-txt,html[lang="ja"] .cookie-txt{text-wrap:pretty}
