/* 就キャスゼミ 予約システム — デザインシステム v5
   方向性: 提供ヒーロー画像のトーン = 暖色・親しみやすいポップLP × プロ品質
   ブランド: 青#0B5FD6 / 緑#1FA23A / 黄#FFD42E / オレンジCTA#F2701F / 濃紺#15233F */

@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@500;700;800&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

:root {
  --blue: #0B5FD6;
  --blue-700: #0a52bd;
  --blue-050: #eaf2ff;
  --green: #1FA23A;
  --green-050: #e8f7ec;
  --yellow: #FFD42E;
  --orange: #F2701F;
  --orange-700: #e0640f;
  --navy: #15233F;
  --ink: #1c2b48;
  --slate: #5b6883;
  --slate-300: #9aa3b6;
  --line: #ece7dd;
  --line-2: #f1ede4;
  --bg: #fffaf1;
  --card: #ffffff;

  --round: 'M PLUS Rounded 1c', system-ui, sans-serif;
  --body: 'Zen Kaku Gothic New', system-ui, sans-serif;

  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --pill: 999px;

  --sh-sm: 0 2px 10px rgba(31, 25, 12, .05);
  --sh: 0 12px 30px rgba(31, 38, 63, .08);
  --sh-lg: 0 26px 60px rgba(31, 38, 63, .16);
  --sh-orange: 0 12px 26px rgba(242, 112, 31, .34);
  --ring: 0 0 0 4px rgba(11, 95, 214, .16);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.75; min-height: 100svh; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(60% 50% at 88% -5%, #fff3da 0%, rgba(255,243,218,0) 60%),
    radial-gradient(55% 45% at 0% 4%, #eaf2ff 0%, rgba(234,242,255,0) 55%),
    var(--bg);
}
h1, h2, h3 { font-family: var(--round); font-weight: 800; line-height: 1.32; letter-spacing: .005em; margin: 0; color: var(--navy); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--slate); }
.small { font-size: 13px; }
.center { text-align: center; }
.hl { background: linear-gradient(transparent 60%, #ffe478 60%); padding: 0 .08em; border-radius: 3px; }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 470px; }
.stack > * + * { margin-top: 15px; }

/* ===== ヘッダー ===== */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 12px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a, .nav button { font-family: var(--round); font-weight: 700; font-size: 14px; color: var(--navy); text-decoration: none; padding: 9px 15px; border-radius: var(--pill); border: none; background: transparent; cursor: pointer; transition: background .15s, color .15s; }
.nav a:hover, .nav button:hover { background: var(--blue-050); color: var(--blue); text-decoration: none; }
.nav a.active { background: var(--navy); color: #fff; }

/* ===== ボタン ===== */
.btn { font-family: var(--round); font-weight: 800; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 24px; border-radius: var(--pill); border: 2px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.15; transition: transform .14s cubic-bezier(.34,1.5,.64,1), box-shadow .2s, background .15s, border-color .15s, filter .15s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary, .btn-orange { background: var(--orange); color: #fff; box-shadow: var(--sh-orange); }
.btn-primary:hover, .btn-orange:hover { background: var(--orange-700); transform: translateY(-2px); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 12px 24px rgba(11,95,214,.28); }
.btn-blue:hover { background: var(--blue-700); transform: translateY(-2px); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 12px 22px rgba(31,162,58,.26); }
.btn-green:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-050); }
.btn-danger { background: #fff; color: #d5384f; border-color: #f1d2d8; }
.btn-danger:hover { background: #d5384f; color: #fff; border-color: #d5384f; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none; }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 9px 17px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 17px; }
.btn-cta { font-size: 18px; padding: 16px 30px; }

/* ===== カード ===== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); padding: 24px; }
.card-pad-lg { padding: 30px 28px; }
.card.hoverable { transition: transform .16s, box-shadow .2s, border-color .2s; }
.card.hoverable:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: #ffd9b8; }

/* ===== アイコンチップ ===== */
.chip { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.chip-blue { background: var(--blue-050); }
.chip-green { background: var(--green-050); }
.chip-yellow { background: #fff4cf; }
.chip-orange { background: #ffe9d8; }

/* ===== フォーム ===== */
.field > label { display: block; font-family: var(--round); font-weight: 700; font-size: 13.5px; margin: 0 0 6px 2px; color: var(--navy); }
.input, select.input { width: 100%; font-family: var(--body); font-size: 16px; color: var(--ink); padding: 13px 15px; border: 2px solid var(--line); border-radius: var(--r-sm); background: #fff; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%235b6883' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 40px; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
.input::placeholder { color: var(--slate-300); }

.tabs { display: flex; gap: 5px; background: #f4eee2; padding: 6px; border-radius: var(--pill); margin-bottom: 22px; }
.tabs button { flex: 1; font-family: var(--round); font-weight: 800; font-size: 15px; color: var(--slate); border: none; background: transparent; padding: 11px; border-radius: var(--pill); cursor: pointer; transition: all .15s; }
.tabs button.active { background: #fff; color: var(--navy); box-shadow: var(--sh-sm); }

/* ===== バッジ ===== */
.badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--round); font-weight: 800; font-size: 12.5px; padding: 5px 12px; border-radius: var(--pill); }
.badge-seats { background: var(--green-050); color: var(--green); }
.badge-few { background: #fff4cf; color: #97700a; }
.badge-full { background: #f0eee8; color: var(--slate); }
.badge-zoom { background: var(--blue-050); color: var(--blue); }
.badge-booked { background: #ffe9d8; color: var(--orange-700); }
.badge-cancelled { background: #f0eee8; color: var(--slate); }

/* ===== セッションカード ===== */
.session { display: flex; align-items: center; gap: 18px; }
.session .date { text-align: center; min-width: 66px; background: linear-gradient(165deg, #eaf2ff, #dfeaff); border-radius: var(--r); padding: 12px 8px; line-height: 1.04; border: 1px solid #d4e3ff; }
.session .date .d { font-family: var(--round); font-weight: 800; font-size: 27px; color: var(--blue); }
.session .date .m { font-size: 11px; font-weight: 700; color: #5a78b0; margin-top: 3px; }
.session .info { flex: 1; min-width: 0; }
.session .info .t { font-family: var(--round); font-weight: 800; font-size: 17px; color: var(--navy); }
.session .info .sub { color: var(--slate); font-size: 13.5px; margin-top: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.session .action { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }

/* ===== 見出し ===== */
.section-title { display: flex; align-items: baseline; gap: 12px; margin: 30px 2px 16px; }
.section-title h2 { font-size: 21px; }
.section-title .sub { color: var(--slate); font-size: 13.5px; }
.empty { text-align: center; color: var(--slate); padding: 46px 16px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 18px 0; }
.err-line { color: #d5384f; font-size: 13.5px; font-weight: 700; margin: 6px 2px 0; min-height: 1.2em; }
.foot { text-align: center; color: var(--slate-300); font-size: 12.5px; padding: 38px 0 46px; }

/* ===== トースト ===== */
#toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(18px); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .24s, transform .24s; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-inner { font-family: var(--round); font-weight: 800; color: #fff; background: var(--navy); padding: 13px 21px; border-radius: var(--pill); box-shadow: var(--sh-lg); font-size: 14.5px; }
.toast-inner.ok { background: var(--green); }
.toast-inner.err { background: #d5384f; }

.spin { width: 24px; height: 24px; border: 3px solid var(--blue-050); border-top-color: var(--orange); border-radius: 50%; animation: spin .7s linear infinite; margin: 38px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.reveal { opacity: 0; transform: translateY(12px); animation: rise .5s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ===== モーダル ===== */
.modal-bg { position: fixed; inset: 0; background: rgba(21,35,63,.5); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 80; padding: 18px; }
.modal-bg.show { display: flex; }
.modal { background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-lg); max-width: 440px; width: 100%; padding: 28px; animation: pop .22s cubic-bezier(.34,1.5,.64,1); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal h3 { font-size: 21px; margin: 0 0 4px; }
.modal .actions { display: flex; gap: 10px; margin-top: 22px; }
.modal .actions .btn { flex: 1; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14.5px; margin: 16px 0 4px; }
.kv dt { color: var(--slate); font-weight: 700; font-family: var(--round); white-space: nowrap; }
.kv dd { margin: 0; }
.zoom-box { background: var(--blue-050); border: 1px solid #d4e3ff; border-radius: var(--r); padding: 13px 15px; margin-top: 12px; }
.zoom-box a { font-weight: 700; word-break: break-all; }
.tick { width: 58px; height: 58px; border-radius: 50%; background: var(--green-050); display: grid; place-items: center; margin: 0 auto 12px; box-shadow: 0 0 0 8px #eef9f1; }

/* ===== ランディング ===== */
.lp-hero { padding: 26px 0 4px; position: relative; }
.lp-hero .frame { border-radius: 26px; overflow: hidden; box-shadow: var(--sh-lg); border: 1px solid var(--line); background: #fff; }
.lp-hero img { width: 100%; display: block; }
.lp-deco { position: absolute; border-radius: 50%; pointer-events: none; opacity: .85; }
.lp-deco.d1 { width: 16px; height: 16px; background: var(--blue); top: 12px; left: 7%; }
.lp-deco.d2 { width: 22px; height: 22px; background: var(--yellow); bottom: 16px; right: 5%; }
.lp-deco.d3 { width: 13px; height: 13px; background: var(--green); top: 42%; left: 1.5%; }
.lp-login { max-width: 470px; margin: 0 auto; }
.lp-login h2 { text-align: center; font-size: 22px; }
.lp-login .lead { text-align: center; color: var(--slate); margin: 6px 0 18px; }

/* ===== モーション ===== */
.bob { animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.float-slow { animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.fade-up.in { opacity: 1; transform: none; }
.zoom-in { opacity: 0; transform: scale(.965); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.3,1); }
.zoom-in.in { opacity: 1; transform: none; }

@media (max-width: 560px) {
  .session { flex-wrap: wrap; gap: 14px; }
  .session .action { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .nav a, .nav button { padding: 8px 11px; font-size: 13px; }
  .brand img { height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .001ms !important; }
  .reveal, .fade-up, .zoom-in { opacity: 1; transform: none; }
}
