/* 遊漁船サイト：白ベース・海の青・スマホ最優先 */
:root {
  --sea-900: #08325c;
  --sea-700: #0b5394;
  --sea-500: #1c7ed6;
  --sea-100: #e7f1fb;
  --sea-50: #f4f8fc;
  --sand: #fff8e6;
  --ink: #17212b;
  --sub: #5a6876;
  --line: #e3e9ef;
  --ok: #2b8a3e;
  --few: #e67700;
  --ng: #c92a2a;
  --radius: 16px;
  --shadow: 0 2px 10px rgba(8, 50, 92, .08);
  --bottom-nav: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 17px; line-height: 1.7;
  padding-bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: var(--sea-500); }
h1, h2, h3 { line-height: 1.35; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: #fff; padding: 8px; }
:focus-visible { outline: 3px solid #ffd43b; outline-offset: 2px; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; min-height: 56px;
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--sea-900); text-decoration: none; font-weight: 800; font-size: 19px; }
.top-nav { display: none; gap: 18px; align-items: center; }
.top-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.top-nav a:hover { color: var(--sea-500); }
.top-cta { background: var(--sea-700); color: #fff !important; padding: 8px 18px; border-radius: 999px; }
.demo-banner { background: #fff3bf; color: #5c3c00; padding: 8px 16px; font-size: 14px; text-align: center; }

/* 共通レイアウト */
main { min-height: 60vh; outline: none; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.section { padding: 36px 0; }
.section.alt { background: var(--sea-50); }
.section-title { font-size: 24px; margin: 0 0 4px; color: var(--sea-900); }
.section-lead { color: var(--sub); margin: 0 0 18px; font-size: 15px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.more { font-weight: 700; text-decoration: none; white-space: nowrap; }
.page-title { font-size: 26px; margin: 26px 0 6px; color: var(--sea-900); }
.loading, .empty { text-align: center; color: var(--sub); padding: 48px 16px; }
.error-box { background: #fff5f5; border: 1px solid #ffc9c9; color: #a61e1e; padding: 14px 16px; border-radius: 12px; margin: 16px 0; }
.info-box { background: var(--sea-100); padding: 14px 16px; border-radius: 12px; margin: 16px 0; }
.muted { color: var(--sub); }
.small { font-size: 14px; }
.pre { white-space: pre-wrap; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2;
  background: var(--sea-700); color: #fff; transition: transform .05s, background .2s;
}
.btn:active { transform: scale(.98); }
.btn:hover { background: var(--sea-900); }
.btn.outline { background: #fff; color: var(--sea-700); border-color: var(--sea-700); }
.btn.outline:hover { background: var(--sea-100); }
.btn.tel { background: var(--ok); }
.btn.tel:hover { background: #237032; }
.btn.white { background: #fff; color: var(--sea-900); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row .btn { flex: 1 1 200px; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ヒーロー */
.hero { position: relative; min-height: 64vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--sea-900); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg.illust { background-image: url("assets/hero.svg"); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 50, 92, 0) 30%, rgba(8, 50, 92, .78) 100%); }
.hero-inner { position: relative; z-index: 1; width: 100%; padding: 28px 16px 30px; max-width: 1040px; margin: 0 auto; }
.hero-port { display: inline-block; font-size: 14px; background: rgba(255, 255, 255, .18); padding: 3px 12px; border-radius: 999px; margin-bottom: 8px; }
.hero h1 { font-size: clamp(34px, 9vw, 60px); margin: 0 0 6px; letter-spacing: .04em; text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
.hero-copy { font-size: clamp(17px, 4.4vw, 22px); margin: 0 0 18px; font-weight: 600; }
.hero .btn-row .btn { flex: 1 1 160px; }

/* カード */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card-img { aspect-ratio: 16 / 10; background: var(--sea-100) url("assets/fish.svg") center / 46% no-repeat; background-size: cover; }
.card-img.placeholder { background-size: 46%; }
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card-title { font-size: 19px; margin: 0; color: var(--sea-900); }
.card a.stretch { text-decoration: none; color: inherit; }
.tag { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--sea-100); color: var(--sea-700); font-weight: 700; margin: 0 4px 4px 0; }
.tag.season { background: #fff0d9; color: #a35a00; }
.price { font-size: 22px; font-weight: 800; color: var(--sea-900); }
.price small { font-size: 14px; font-weight: 600; color: var(--sub); }

/* 便リスト */
.trip-list { display: grid; gap: 10px; }
.trip {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: inherit;
}
.trip-date { text-align: center; min-width: 56px; line-height: 1.2; }
.trip-date b { display: block; font-size: 22px; color: var(--sea-900); }
.trip-date span { font-size: 13px; color: var(--sub); }
.trip-name { font-weight: 700; }
.trip-seat { text-align: right; font-weight: 800; white-space: nowrap; }
.mark { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 900; font-size: 17px; }
.st-open .mark, .mark.st-open { background: #ebfbee; color: var(--ok); }
.st-few .mark, .mark.st-few { background: #fff4e6; color: var(--few); }
.st-full .mark, .mark.st-full { background: #ffe3e3; color: var(--ng); }
.st-closed .mark, .st-cancelled .mark, .mark.st-closed, .mark.st-cancelled { background: #f1f3f5; color: #868e96; }
.trip.st-full, .trip.st-closed, .trip.st-cancelled { opacity: .7; }

/* カレンダー */
.cal { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 10px; background: var(--sea-700); color: #fff; }
.cal-head h3 { margin: 0; font-size: 20px; }
.cal-head button { width: 48px; height: 44px; border-radius: 10px; border: none; background: rgba(255, 255, 255, .15); color: #fff; font-size: 22px; cursor: pointer; }
.cal-head button[disabled] { opacity: .3; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow { text-align: center; font-size: 13px; padding: 6px 0; background: var(--sea-50); font-weight: 700; }
.cal-dow.sun, .cal-day.sun .d { color: var(--ng); }
.cal-dow.sat, .cal-day.sat .d { color: var(--sea-500); }
.cal-day {
  min-height: 62px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 4px 2px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; font: inherit; color: inherit; cursor: pointer;
  border-right: none; border-bottom: none;
}
.cal-day:nth-child(7n + 1) { border-left: none; }
.cal-day.blank { background: #fafbfc; cursor: default; }
.cal-day.past { color: #adb5bd; background: #fafbfc; cursor: default; }
.cal-day .d { font-size: 15px; font-weight: 700; }
.cal-day .m { font-size: 20px; font-weight: 900; line-height: 1; }
.cal-day.st-open .m { color: var(--ok); }
.cal-day.st-few .m { color: var(--few); }
.cal-day.st-full .m { color: var(--ng); }
.cal-day.st-closed .m, .cal-day.st-cancelled .m { color: #adb5bd; }
.cal-day.selected { background: var(--sea-100); box-shadow: inset 0 0 0 3px var(--sea-500); }
.cal-day.today .d { background: var(--sea-700); color: #fff; border-radius: 999px; padding: 0 7px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--sub); margin: 10px 2px; }
.legend b { font-size: 17px; }

/* フォーム */
.form { display: grid; gap: 18px; }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: 6px; }
.req { color: #fff; background: var(--ng); font-size: 12px; padding: 1px 7px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; }
.opt { color: var(--sub); background: #f1f3f5; font-size: 12px; padding: 1px 7px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field select, .field textarea {
  width: 100%; font-size: 18px; padding: 14px; border: 1.5px solid #c5d0db; border-radius: 12px; background: #fff; color: var(--ink); font-family: inherit;
}
.field textarea { min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sea-500); outline: none; box-shadow: 0 0 0 3px rgba(28, 126, 214, .2); }
.field .hint { font-size: 14px; color: var(--sub); margin-top: 4px; }
.field.invalid input, .field.invalid select { border-color: var(--ng); }
.field .err { color: var(--ng); font-size: 14px; margin-top: 4px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; margin: 0; font-weight: 600; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 16px; border: 1.5px solid #c5d0db; border-radius: 999px; cursor: pointer; min-height: 46px; }
.chips input:checked + span { background: var(--sea-700); color: #fff; border-color: var(--sea-700); }
.chips input:focus-visible + span { outline: 3px solid #ffd43b; }
.agree { display: flex; gap: 12px; align-items: flex-start; background: var(--sand); padding: 14px; border-radius: 12px; }
.agree input { width: 26px; height: 26px; flex: 0 0 auto; margin-top: 2px; }
details.rules { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; }
details.rules summary { cursor: pointer; font-weight: 700; color: var(--sea-700); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.selected-trip { border: 2px solid var(--sea-500); background: var(--sea-50); border-radius: 14px; padding: 14px; }

/* 予約完了 */
.done { text-align: center; padding: 30px 16px; }
.done .check { width: 72px; height: 72px; border-radius: 50%; background: #ebfbee; color: var(--ok); display: inline-flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 900; }
.done-no { font-size: 30px; font-weight: 900; letter-spacing: .05em; color: var(--sea-900); margin: 4px 0 12px; }
.done-table { margin: 18px auto; border-collapse: collapse; text-align: left; min-width: 260px; }
.done-table th, .done-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.done-table th { color: var(--sub); font-weight: 600; white-space: nowrap; }

/* 詳細表 */
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 34%; color: var(--sub); font-weight: 600; font-size: 15px; white-space: nowrap; }

/* 釣果 */
.catch-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--sub); }
.filter { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; -webkit-overflow-scrolling: touch; }
.filter button { flex: 0 0 auto; border: 1.5px solid #c5d0db; background: #fff; padding: 8px 16px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; }
.filter button.on { background: var(--sea-700); color: #fff; border-color: var(--sea-700); }
.ig-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: #c13584; margin-top: 4px; }

/* アクセス */
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); background: var(--sea-100); }

/* フッター */
.site-footer { background: var(--sea-900); color: #dbe7f3; padding: 30px 16px 26px; font-size: 15px; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: grid; gap: 8px; }
.site-footer .f-name { font-size: 20px; font-weight: 800; color: #fff; }

/* スマホ下部の固定メニュー */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--bottom-nav) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 14px rgba(0, 0, 0, .06);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--sub); font-size: 12px; font-weight: 700; }
.bottom-nav svg { width: 26px; height: 26px; fill: currentColor; }
.bottom-nav a.on { color: var(--sea-700); }
.bottom-nav a.bn-cta { color: #fff; background: var(--sea-700); margin: 6px 4px; border-radius: 14px; }
.bottom-nav a[data-nav=tel] { color: var(--ok); }

@media (min-width: 720px) {
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .booking-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .cal-day { min-height: 76px; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .top-nav { display: flex; }
  .hero { min-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.field .err:empty { display: none; }
.roster-note { background: var(--sea-50); border: 1px solid var(--sea-100); border-radius: 12px; padding: 12px 14px; }
.roster-note p { margin: 4px 0 0; }
.companion { border: 1.5px solid #c5d0db; border-radius: 14px; padding: 12px; margin-top: 10px; display: grid; gap: 10px; }
.companion-title { font-weight: 800; color: var(--sea-700); }
.companion input[type=text] { width: 100%; font-size: 18px; padding: 12px; border: 1.5px solid #c5d0db; border-radius: 12px; font-family: inherit; }
.companion input[hidden] { display: none; }
.inline-check { display: flex !important; align-items: center; gap: 10px; font-weight: 600 !important; margin: 0 !important; }
.inline-check input { width: 22px; height: 22px; }
