/* サイト共通（全ページ）。2026-11-24 にマイページと同じ見た目へそろえた（オーナー判断）。
   見た目の文法は BUB RESORT の HP（bub-resort.com）に合わせる：太い見出し（700）、標準の字間、本文 400、
   角丸 12px、墨色（#2F2F2F）で塗ったボタン、淡い面（#E7ECEC 系）。欧文と数字は Inter、和文は Zen Kaku Gothic New。
   大きな黒い面・影・グラデーションは使わない。
   マイページだけの部品は mypage.css。 */
:root {
  --paper: #FCFCFC; --mist: #E7ECEC; --ink: #2F2F2F;
  --sub: rgba(47,47,47,.72); --faint: rgba(47,47,47,.68); /* HP の --muted（70%）相当。小さな文字でも読める濃さ */
  --soft: #F3F6F6; /* HP の surface-subtle（紙 60% + ASAMOYA） */
  --rule: rgba(47,47,47,.12); --rule-strong: rgba(47,47,47,.82);
  --book: #2F2F2F; --must: #D56E59; /* 予約へ進む操作は HP と同じ墨色。MUCHU は「必須」だけ */
  --f: Inter, "Zen Kaku Gothic New", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --col: 56px; --row: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* 横に広い画面では全体を少し大きく（オーナーの画面は約2280px） */
@media (min-width: 1800px) { html { zoom: 1.12; } :root { --zoom: 1.12; } }
@media (min-width: 2100px) { html { zoom: 1.28; } :root { --zoom: 1.28; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 14px/1.8 var(--f); letter-spacing: 0; font-feature-settings: "palt"; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
p, h1, h2, h3, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 4px; border-radius: 12px; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, 100% - 96px); margin: 0 auto; }
.n { font-feature-settings: "tnum", "palt"; letter-spacing: 0; }
.label { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--sub); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
br.sp { display: none; }

/* 矢印（細い丸）。リンクに重ねると予約色で塗られる */
.arw { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(47,47,47,.24); display: grid; place-content: center; transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease); }
.arw i { width: 6px; height: 6px; border-right: 1.2px solid currentColor; border-top: 1.2px solid currentColor; transform: rotate(45deg); margin-left: -2px; }
a:hover .arw { background: var(--book); border-color: var(--book); color: var(--paper); }
.arw.book { background: var(--book); border-color: var(--book); color: var(--paper); }
.arw i { transition: transform .35s var(--ease); }
a:hover .arw i { transform: translateX(2px) rotate(45deg); }
a:hover .arw.book { background: #4A4A4A; border-color: #4A4A4A; }
.cta { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.more { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sub); letter-spacing: 0; transition: color .3s; white-space: nowrap; }
.more:hover { color: var(--ink); }
.more i { width: 5px; height: 5px; border-right: 1.2px solid currentColor; border-top: 1.2px solid currentColor; transform: rotate(45deg); }

/* 区画の見出し（全区画共通） */
.ph { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; position: relative; }
.ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule-strong); transform-origin: left; }
.ph h2 { font-size: 20px; font-weight: 700; letter-spacing: 0; line-height: 1.5; }

/* ── ヘッダー ── */
.top { padding: 28px 0 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; }
.logo { display: block; position: relative; overflow: hidden; width: 132px; height: 22px; }
.logo img { position: absolute; max-width: none; width: 196px; left: -32px; top: -42px; }
.top nav { display: flex; gap: 28px; font-size: 14px; letter-spacing: 0; color: var(--sub); white-space: nowrap; }
.top nav a:hover { color: var(--ink); }

/* ── フッター ── */
.end { margin-top: var(--row); border-top: 1px solid var(--rule); padding: 26px 0 32px; font-size: 13px; color: var(--sub); letter-spacing: 0; }
.end .wrap { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.end .sign { display: flex; align-items: center; gap: 16px; }
.end .logo { width: 96px; height: 16px; }
.end .logo img { width: 143px; left: -23.5px; top: -31px; }
.end .sign b { font-weight: 700; font-size: 13px; letter-spacing: 0; color: var(--ink); }
.end .links { display: grid; gap: 6px; justify-items: end; }
.end nav { display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: flex-end; }
.end a:hover { color: var(--ink); }

/* ── 動き：軽く。transform と opacity だけで、配置は動かさない ── */
.js [data-in] { opacity: 0; transform: translateY(14px); }
.js [data-in].in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js .ph::after { transform: scaleX(0); }
.js .ph.in::after { transform: scaleX(1); transition: transform 1.2s var(--ease) .1s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-in] { opacity: 1; transform: none; }
  .js .ph::after { transform: none; }
}
@media (max-width: 1080px) {
  :root { --col: 36px; }
}
@media (max-width: 767px) {
  :root { --row: 56px; }
  .wrap { width: calc(100% - 40px); }
  .top { padding-top: 20px; }
  .logo { width: 114px; height: 19px; }
  .logo img { width: 169px; left: -27.5px; top: -36.5px; }
  .top nav { gap: 16px; font-size: 13px; }
  .top nav .home { display: none; } /* ロゴがマイページへ戻る */
  .ph { flex-wrap: wrap; row-gap: 4px; }
  .ph .more { white-space: normal; text-wrap: balance; }
  .arw { width: 32px; height: 32px; }
  .end .wrap { flex-direction: column; }
  .end .sign { flex-wrap: wrap; gap: 6px 14px; }
  .end .sign span:last-child { flex-basis: 100%; }
  .end .links { justify-items: start; }
  .end nav { justify-content: flex-start; }
  br.sp { display: inline; }
}

/* ════ マイページ以外のページ（ログイン・再設定・アカウント編集・BAC・規約・404） ════ */
/* 2列の骨組み（マイページと同じ 5：7） */
.grid2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--col); }
.page-main { padding-top: 64px; align-items: start; }
.page-main > * { animation: rise .9s var(--ease) both; }
.page-main > * + * { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.h1 { margin-top: 10px; font-size: 32px; line-height: 1.4; font-weight: 700; letter-spacing: 0; }
.lead { margin-top: 14px; font-size: 15px; line-height: 1.8; color: var(--sub); text-wrap: pretty; }
.nb { display: inline-block; }
.doc .h1 { font-size: 28px; letter-spacing: 0; }
.chev { flex: none; width: 6px; height: 6px; border-right: 1.2px solid currentColor; border-top: 1.2px solid currentColor; transform: rotate(45deg); }
/* 行のリンク（TOPへ戻る・ログアウト・規約の一覧など） */
.rows { margin-top: 32px; border-top: 1px solid var(--rule); }
.rows a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 2px 15px 0; border-bottom: 1px solid var(--rule); font-size: 14px; letter-spacing: 0; color: var(--sub); transition: color .3s; }
.rows a:hover { color: var(--ink); }
.rows.big { margin-top: 0; border-top-color: var(--rule-strong); }
.rows.big a { padding: 22px 2px 22px 0; font-size: 16px; font-weight: 700; letter-spacing: 0; color: var(--ink); }

/* ── 入力フォーム ── */
.form-content, .bac-field { display: block; }
.form-content + .form-content { margin-top: 22px; }
.form-content__title, .bac-field__label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; line-height: 1.6; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], select, textarea {
  display: block; width: 100%; height: 50px; margin: 0; padding: 0 14px; border: 1px solid rgba(47,47,47,.28); border-radius: 12px; background: var(--paper);
  color: var(--ink); font: 400 16px/1.4 var(--f); letter-spacing: 0; -webkit-appearance: none; appearance: none; transition: border-color .3s;
}
textarea { height: auto; padding: 12px 14px; line-height: 1.8; resize: vertical; }
.pw { display: block; position: relative; }
.pw input { padding-right: 44px; }
.pw-toggle { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 40px; height: 50px; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--sub); cursor: pointer; transition: color .3s; }
.pw-toggle:hover { color: var(--ink); }
.pw-toggle:focus-visible { outline-offset: -6px; }
.pw-toggle .off, .pw-toggle[aria-pressed="true"] .on { display: none; }
.pw-toggle[aria-pressed="true"] .off { display: block; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: rgba(47,47,47,.5); }
input:focus, select:focus, textarea:focus { outline: 1px solid var(--ink); outline-offset: -1px; border-color: var(--ink); border-radius: 12px; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fields-2 .form-content + .form-content { margin-top: 0; }
.fields-2 + .form-content { margin-top: 22px; }
.form-rule { margin: 32px 0; border: 0; border-top: 1px solid var(--rule); }
/* ボタン：HP の .btn-primary と同じ（墨色の塗り・角丸 12px） */
.button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 11px 24px; border: 1px solid transparent; border-radius: 12px; background: var(--ink); color: var(--paper); cursor: pointer; font: 500 16px/24px var(--f); letter-spacing: 0; transition: background-color .15s ease; }
.button:hover { background: #4A4A4A; }
.button:active { background: #595959; }
.button:disabled { opacity: .5; cursor: default; }
.form-content > .button, .bac-form__send .button { margin-top: 10px; }
.form-link { margin-top: 22px; text-align: center; font-size: 14px; letter-spacing: 0; }
.form-link a, .lead a { color: var(--sub); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .3s; }
.form-link a:hover, .lead a:hover { color: var(--ink); }
.form-message { margin-bottom: 22px; padding: 14px 16px; border-radius: 12px; background: var(--mist); font-size: 14px; line-height: 1.8; }
.form-message.is-error { background: #F7E9E5; color: #8E3F2E; }

/* ── ログイン・パスワード再設定：左に入力、右に写真 ── */
.auth { align-items: center; padding-top: 56px; }
.auth-form { max-width: 440px; }
.auth-form .owner-auth__form { margin-top: 36px; }
.auth-photo { height: min(66vh, 620px); min-height: 420px; overflow: hidden; border-radius: 12px; background: var(--mist); }
.auth-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── アカウント編集・BAC：左に見出し、右に入力 ── */
.side .photo { margin-top: 32px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 12px; background: var(--mist); }
.side .photo img { width: 100%; height: 100%; object-fit: cover; }
.bac-form__group { margin: 0 0 48px; padding: 0; border: 0; min-width: 0; }
.bac-form__group legend { display: block; width: 100%; margin-bottom: 24px; padding: 0 0 14px; border-bottom: 1px solid var(--rule-strong); font-size: 20px; font-weight: 700; letter-spacing: 0; line-height: 1.5; }
.bac-form__fields { display: grid; gap: 24px; }
.bac-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bac-field__label em { margin-left: 6px; font-style: normal; font-size: 11px; font-weight: 700; color: var(--must); }
.bac-field__label small { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--sub); }
.bac-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bac-choices--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bac-choice { position: relative; display: block; cursor: pointer; }
.bac-choice input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.bac-choice > span { display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 10px 14px; border: 1px solid rgba(47,47,47,.22); border-radius: 12px; font-size: 15px; font-weight: 500; letter-spacing: 0; line-height: 1.5; transition: border-color .3s, background-color .3s; }
.bac-choice small { font-size: 12px; font-weight: 400; color: var(--sub); }
.bac-choice:hover > span { border-color: rgba(47,47,47,.5); }
.bac-choice input:checked + span { background: var(--mist); border-color: var(--ink); outline: 1px solid var(--ink); outline-offset: -2px; }
.bac-choice input:focus-visible + span { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.bac-choice.is-full > span { opacity: .45; }
.bac-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bac-date > span { display: block; margin-bottom: 6px; font-size: 12px; color: var(--sub); line-height: 1.6; }
.bac-field__note { margin-top: 10px; font-size: 12px; color: #8E3F2E; }
.bac-select { position: relative; display: block; }
.bac-select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 1.2px solid var(--ink); border-bottom: 1.2px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.bac-request__done { position: relative; padding: 56px 32px; border-radius: 12px; background: var(--mist); text-align: center; }
.bac-request__done-title { margin-bottom: 14px; font-size: 22px; font-weight: 700; letter-spacing: 0; }
.bac-request__done p { font-size: 15px; line-height: 1.8; color: var(--sub); }

/* ── 規約・約款：左に目次、右に本文 ── */
.toc { margin-top: 32px; border-top: 1px solid var(--rule-strong); }
.toc a { display: block; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 13px; letter-spacing: 0; color: var(--sub); transition: color .3s; }
.toc a:hover { color: var(--ink); }
.owner-legal { max-width: 760px; font-size: 15px; line-height: 1.9; letter-spacing: 0; }
.owner-legal > * + * { margin-top: 10px; }
.owner-legal h2 { margin-top: 48px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); font-size: 18px; font-weight: 700; letter-spacing: 0; line-height: 1.7; scroll-margin-top: 24px; }
.owner-legal h2:first-child { margin-top: 0; }
.owner-legal__table { margin: 16px 0; overflow-x: auto; }
.owner-legal table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.9; }
.owner-legal td, .owner-legal th { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.owner-legal tr:first-child > * { border-top: 1px solid var(--rule-strong); }
.owner-legal td:first-child { white-space: nowrap; color: var(--sub); }
.owner-legal td p + p { margin-top: 6px; }
.doc-back { max-width: 760px; margin-top: 56px; }

/* ── 404 ── */
.notfound { min-height: 52vh; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; animation: rise .9s var(--ease) both; }
.notfound b { font: 700 96px/1 var(--f); letter-spacing: -.02em; }
.notfound .button { width: 280px; margin-top: 14px; }

@media (min-width: 1081px) {
  /* 拡大（zoom）中は 100vh も拡大されるので、割り戻して画面の高さに収める */
  .doc .side { position: sticky; top: 24px; max-height: calc(100vh / var(--zoom, 1) - 48px); overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .page-main > *, .notfound { animation: none; }
}
@media (max-width: 1080px) {
  .grid2 { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .auth-form { max-width: none; }
  .auth-photo { order: -1; height: auto; min-height: 0; aspect-ratio: 5 / 2; }
  .doc .toc { display: none; }
}
@media (max-width: 767px) {
  .page-main, .auth { padding-top: 36px; }
  .h1, .doc .h1 { font-size: 26px; }
  .bac-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bac-field-grid, .fields-2, .bac-dates { grid-template-columns: 1fr; }
  /* 表は列をつぶさず、横にスクロールして読む */
  .owner-legal td { min-width: 96px; }
  .owner-legal td:first-child { min-width: 0; }
  .notfound b { font-size: 72px; }
}
