/* /usr/local/apache2/htdocs/acst-bj/user/parts/css/common.css
 * 会員サイトのフォーム系ページ（会員情報・回数券・登録・パスワード再設定など）の共通スタイル。
 * 2026-11-26 予約画面（reserve.css）と同じ見た目（紺1色・Noto Sans JP）にそろえた。クラス名は以前のまま。
 * 色の変数は reserve.css と同じ値。マイページ・ログイン画面は reserve.css＋mypage.css を使う。
 */
:root{
  --navy:#0b3470;
  --navy-deep:#062656;
  --navy-ink:#021936;
  --navy-soft:#eef3fb;
  --navy-line:#c9d6ea;
  --gold:#d9a52a;
  --text:#1f2a3c;
  --muted:#66728a;
  --line:#e6eaf1;
  --bg:#f5f7fb;
  --ok:#1f7a3d;
  --ng:#c63b3b;
  --radius:16px;
  --shadow:0 10px 30px rgba(6,38,86,.08);
  --shadow-card:0 1px 2px rgba(6,38,86,.04),0 6px 18px rgba(6,38,86,.06);
}

/* =========================
 * Reset / Base
 * ========================= */
*, *::before, *::after { box-sizing: border-box; }

html{ -webkit-text-size-adjust:100%; }
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body{
  font-family:"Noto Sans JP",-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  letter-spacing: .01em;
  font-feature-settings:"palt";
}

a { color: inherit; }
img, svg, video { max-width: 100%; height: auto; }
button{ font:inherit; }

.textlink{
  color: var(--navy);
  font-weight:500;
  text-decoration:underline;
  text-underline-offset:3px;
}
.textlink:hover{ color: var(--navy-deep); text-decoration-thickness:2px; }

/* =========================
 * Layout
 * ========================= */
.wrap{
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 16px 56px;
}
.wrap.narrow{ max-width: 480px; }

/* Card */
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px;
  margin: 0 0 16px;
}

/* タイトル系 */
h1, .h1{
  font-size: 22px;
  line-height: 1.45;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--navy-ink);
  letter-spacing: .02em;
}
.title{
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-ink);
  margin: 0 0 12px;
}

/* Text */
.muted{ color: var(--muted); font-size:13.5px; line-height:1.7; }
.hint{
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.6;
}
.note{ font-size:13px; color: var(--muted); }

/* =========================
 * Flash (ok/ng)
 * ========================= */
.flash{
  padding: 13px 16px;
  border-radius: 12px;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid;
}
.card .flash{ margin: 12px 0; }
.flash.ok{ background:#eef8f1; border-color:#bfe3ca; color:#17602f; }
.flash.ng{ background:#fdf1f1; border-color:#f0c2c2; color:#a02b2b; }

/* =========================
 * Form (inputs)
 * ========================= */
label{
  display:block;
  font-size: 13px;
  color: var(--navy-ink);
  margin: 0 0 6px;
  font-weight: 700;
}

/* iOSズーム防止も含めて16px統一 */
input, select, textarea{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background:#fff;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
input[readonly]{ background:#f7f9fc; color: var(--muted); }
input::placeholder{ color:#aab3c2; }

input[type="radio"], input[type="checkbox"]{
  width:18px;
  height:18px;
  min-height:0;
  padding:0;
  border:none;
  border-radius:0;
  background:transparent;
  vertical-align: middle;
  accent-color: var(--navy);
  flex: 0 0 auto;
}

input[type="date"]{
  width:100%;
  max-width:100%;
  min-width:0;
  display:block;
  -webkit-appearance:none;
  appearance:none;
  text-align:left;
}
input[type="date"]::-webkit-date-and-time-value{ text-align:left; }
input[type="date"]::-webkit-datetime-edit{ padding:0; }

input:focus, select:focus, textarea:focus{
  outline:none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,52,112,.1);
}
input[type="radio"]:focus, input[type="checkbox"]:focus{ box-shadow:none; outline:2px solid var(--navy-line); outline-offset:2px; }

/* =========================
 * Grid / Flex (はみ出し対策込み)
 * ========================= */
.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* grid内で子要素がはみ出すのを防ぐ */
.grid > div{ min-width: 0; }

@media (max-width: 700px){
  .grid{ grid-template-columns: 1fr; }
}

/* ===== row/actions ===== */
.row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  min-width:0;
  justify-content:flex-start;
}

/* 左右に振り分けたい時だけ使う */
.row.between{ justify-content:space-between; }

/* ボタンを同じ幅で並べる（ログイン前のページ） */
.row.fill{ margin-top:18px; }
.row.fill > *{ flex:1 1 180px; }

.actions{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  min-width: 0;
}

/* =========================
 * Buttons (a/button共通)
 * ========================= */
.btn, .btnfull{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  max-width:100%;
  min-width:0;
  min-height:48px;
  box-sizing:border-box;

  border-radius:12px;
  border:1.5px solid var(--navy-line);
  background:#fff;
  color: var(--navy);
  padding:10px 20px;

  font-weight:700;
  font-size:15px;
  line-height:1.4;
  text-decoration:none;
  cursor:pointer;

  white-space:normal;
  word-break:break-word;
  transition: background .12s, border-color .12s, box-shadow .12s, transform .12s;
}
.btn:hover, .btnfull:hover{ background: var(--navy-soft); }
.btn:disabled, .btnfull:disabled, .btnfull[disabled]{ opacity:.5; cursor:not-allowed; }

/* 主ボタン（紺） */
.btnprimary, .btnfull{
  background: var(--navy);
  border-color: var(--navy);
  color:#fff;
  box-shadow: 0 10px 22px rgba(11,52,112,.2);
}
.btnprimary:hover, .btnfull:hover{
  background: var(--navy-deep);
  border-color: var(--navy-deep);
}

/* 白ボタン */
.btnsub{
  background:#fff !important;
  border-color: var(--navy-line) !important;
  color: var(--navy) !important;
  box-shadow:none !important;
}
.btnsub:link,
.btnsub:visited{ color: var(--navy) !important; }
.btnsub *{ color:inherit !important; }
.btnsub:hover{ background: var(--navy-soft) !important; }

/* actions内のボタンは縮められるようにする（はみ出し防止） */
.actions .btnfull,
.actions .btn{
  flex: 0 1 auto;
  min-width: 140px;
}

/* small button */
.smallbtn{
  min-height:44px;
  border:1.5px solid var(--navy-line);
  background:#fff;
  color: var(--navy);
  border-radius:12px;
  padding:8px 14px;
  font-weight:700;
  cursor:pointer;
}
.smallbtn:hover{ background: var(--navy-soft); }
.smallbtn:disabled{ opacity:.5; cursor:not-allowed; }

/* =========================
 * Key-Value list (profile等)
 * ========================= */
.kv{
  display:grid;
  grid-template-columns: 190px 1fr;
  gap:10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.kv:last-child{ border-bottom:none; }
.k{ color: var(--muted); font-size:13px; }
.v{ font-size:14px; color: var(--navy-ink); font-weight:500; }
@media (max-width:560px){
  .kv{ grid-template-columns: 1fr; gap:0; }
}

.pill{
  font-size:12px;
  border-radius:999px;
  padding:3px 11px;
  background: var(--navy-soft);
  color: var(--navy);
  font-weight:500;
  display:inline-block;
}

/* =========================
 * Zip search row (first_reservation / profile_edit)
 * ========================= */
.ziprow{
  display:flex;
  gap:10px;
  align-items:flex-end;
  flex-wrap: wrap;
  min-width: 0;
}
.ziprow .zip{ flex: 1 1 220px; min-width: 0; }
.ziprow .zipbtn{ flex: 0 0 auto; }
.ziprow input,
.ziprow button{
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.zipstatus{ font-size:12px; color: var(--muted); margin-top:6px; line-height: 1.35; }
.zipstatus.ok{ color: var(--ok); }
.zipstatus.ng{ color: var(--ng); }

/* 画面サイズに関わらず2カラム固定の住所グリッド */
.addrGrid2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
.addrGrid2 .span2{ grid-column: 1 / -1; }
.addrGrid2 > .field{ min-width:0; }

.zipBar{
  display:grid;
  grid-template-columns: 200px 140px;
  gap:10px;
  align-items:end;
}
@media (max-width:420px){
  .zipBar{ grid-template-columns: 1fr 140px; }
}

/* labelを見せない（検索ボタンの上の余白合わせ用） */
.srOnly{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* チェックして同意する行 */
.chk{
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin:16px 0;
  padding:14px 16px;
  border:1.5px solid var(--line);
  border-radius:12px;
  background:#fff;
}
.chk:has(input:checked){ border-color: var(--navy); background: var(--navy-soft); }
.chk input{ margin-top:4px; }
.chk label{ font-weight:500; font-size:14px; line-height:1.7; cursor:pointer; }

/* =========================
 * List / Item (tickets etc.)
 * ========================= */
.list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:14px;
}
.item{
  border:1.5px solid var(--line);
  border-radius:12px;
  padding:14px 16px;
  background:#fff;
}

/* plan表示用のメタ行 */
.meta{
  font-size:13px;
  color: var(--muted);
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:8px;
}

/* empty box */
.empty{
  padding:18px 14px;
  border:1px dashed var(--navy-line);
  border-radius:12px;
  background: var(--navy-soft);
  color: var(--navy-ink);
  font-size:13.5px;
  text-align:center;
}

/* =========================
 * Table
 * ========================= */
.tbl{ width:100%; border-collapse:collapse; }
.tbl th,.tbl td{
  padding:11px 8px;
  border-bottom:1px solid var(--line);
  text-align:left;
  font-size:14px;
}
.tbl th{ font-size:12px; color: var(--muted); font-weight:500; }
.right{ text-align:right; }

@media (max-width:560px){
  .tbl th,.tbl td{ font-size:13px; }
}

/* modal base（キャンセル確認など。ヘッダーの予約種別の窓は header.php 側） */
.rmodal{ position:fixed; inset:0; z-index:9999; display:block; }
.rmodal.is-hidden{ display:none !important; }
.rmodal__backdrop{ position:absolute; inset:0; background:rgba(2,25,54,.5); }
.rmodal__panel{
  position:relative;
  max-width:520px;
  margin:10vh auto 0;
  padding:16px;
}
body.rmodal-open{ overflow:hidden; }

/* =========================
 * ログイン前のページ（新規登録・パスワード再設定）: body class="au"
 * 上にロゴ（parts/auth_brand.php）、その下に細いカード
 * ========================= */
.au .wrap{ max-width:480px; padding:36px 16px 56px; }
.au-brand{
  display:flex; flex-direction:column; align-items:center; line-height:1;
  margin:0 0 22px; color: var(--navy-deep); text-decoration:none;
}
.au-brand b{ font-size:24px; font-weight:700; letter-spacing:.03em; }
.au-brand span{ margin-top:5px; font-size:10.5px; font-weight:500; letter-spacing:.42em; color:#5a7199; }
.au .card{ padding:24px; }
.au .card > .muted{ margin-bottom:6px; }
.au form > div + div, .au form > .grid + div, .au form > .grid + .grid{ margin-top:16px; }
.au label{ margin-top:16px; }
.au form div > label:first-child{ margin-top:0; }
.au .grid label{ margin-top:0; }
.au-links{ margin:18px 0 0; text-align:center; font-size:13.5px; color: var(--muted); }
.au-links a{ color: var(--navy); text-decoration:underline; text-underline-offset:3px; }
@media (max-width:560px){
  .au .wrap{ padding-top:28px; }
  .au .card{ padding:20px; }
  .card{ padding:18px; border-radius:14px; }
}
