/* ===== 色・基本設定 ===== */
:root {
  --navy: #0e2a3f;
  --navy-deep: #081b29;
  --sea: #2f7f99;
  --sand: #f5f1ea;
  --coral: #d9764a;
  --line: #06c755;
  --text: #22313b;
  --muted: #6b7880;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 42, 63, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.9;
  letter-spacing: 0.04em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1120px, 100% - 40px); margin: 0 auto; }
.center { text-align: center; }
.sp { display: none; }

/* 写真が入るまでの仮の枠 */
.img-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #cfe0e6, #e9eef0);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); }
.btn-primary { background: var(--coral); color: var(--white); }
.btn-ghost { border: 1px solid currentColor; }
.btn-white { background: var(--white); color: var(--navy); }
.btn-line { background: var(--line); color: var(--white); }
.btn-block { display: block; text-align: center; }

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 40px;
  color: var(--white);
  transition: background 0.3s, padding 0.3s, color 0.3s;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--navy);
  padding: 10px 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.logo { display: flex; flex-direction: column; line-height: 1.3; }
.logo-en { font-family: "Cinzel", serif; font-weight: 900; font-size: 3.9rem; letter-spacing: 0.06em; line-height: 1; white-space: nowrap; }
.logo-ja { font-family: "Noto Serif JP", serif; font-weight: 700; font-size: 1.65rem; letter-spacing: 0.12em; margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 20px; font-size: 0.86rem; }
.nav a { position: relative; white-space: nowrap; }
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.25s;
}
.nav a:hover::after { width: 100%; }
.nav-cta { background: var(--coral); color: var(--white); padding: 8px 20px; border-radius: 999px; }

.menu-btn { display: none; }

/* ===== メインビジュアル ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: grid;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
/* 背景の月夜と漁火は script.js で .sea-canvas に描画。.hero-bg は描画前の下地 */
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #01040a 0%, #0f1d2e 68%, #050d17 100%);
}
.sea-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hero-inner { position: relative; width: min(1120px, 100% - 40px); margin: 0 auto; }
.hero-sub { font-family: "Cormorant Garamond", serif; letter-spacing: 0.3em; font-size: 0.95rem; opacity: 0.9; }
.hero-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.4;
  margin: 10px 0 20px;
  letter-spacing: 0.1em;
}
.hero-text { opacity: 0.9; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.scroll-down {
  position: absolute;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  padding-bottom: 50px;
}
.scroll-down::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 1px; height: 40px;
  background: var(--white);
  animation: scrollLine 2s infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== セクション共通 ===== */
.section { padding: 110px 0; }
.section-tint { background: var(--sand); }
.section-dark { background: var(--navy); color: var(--white); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-en {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: var(--sea);
  font-size: 1.2rem;
  margin: 0;
  letter-spacing: 0.1em;
}
.section-dark .section-en, .reserve .section-en { color: #9fd1e0; }
.section-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 4px 0 0;
  letter-spacing: 0.12em;
}
.section-desc { color: var(--muted); margin-top: 14px; }
.note { font-size: 0.8rem; color: var(--muted); margin-top: 24px; text-align: center; }

/* ふわっと表示 */
.fade { opacity: 0; transform: translateY(30px); transition: opacity 0.8s, transform 0.8s; }
.fade.show { opacity: 1; transform: none; }

/* ===== 船について ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
/* 船の写真は4:3。文字（遊漁船 勝運丸）が切れないよう全体を表示する */
.about-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.lead { font-family: "Noto Serif JP", serif; font-size: 1.4rem; line-height: 1.7; margin-top: 0; }
.features { list-style: none; padding: 0; margin: 30px 0 0; }
.features li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid #e3e8ea; }
.features span { font-family: "Cormorant Garamond", serif; color: var(--coral); font-size: 1.2rem; }

/* ===== 料金プラン ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 780px; margin: 0 auto; }
.cards-1 { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  position: relative;
}
.card-accent { border: 2px solid var(--coral); }
.card-label {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--sand);
  padding: 2px 12px;
  border-radius: 999px;
  margin: 0;
}
.card-accent .card-label { background: var(--coral); color: var(--white); }
.card-title { font-family: "Noto Serif JP", serif; font-size: 1.3rem; margin: 12px 0 6px; }
.price { font-size: 2rem; font-weight: 700; color: var(--navy); margin: 0 0 16px; }
.price small { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.card-list { padding-left: 1.2em; margin: 0; font-size: 0.92rem; }
.card-sub { font-weight: 700; color: var(--sea); font-size: 0.88rem; margin: 18px 0 4px; padding-top: 14px; border-top: 1px solid #e3e8ea; }
.price + .card-sub { margin-top: 0; padding-top: 0; border-top: 0; }
/* 料金プラン：釣りものごとの見出しと、各便の時間・ひとこと */
.plan-group {
  font-family: "Noto Serif JP", serif;
  font-size: 1.35rem;
  color: var(--navy);
  text-align: center;
  margin: 0 0 22px;
}
.plan-group::after { content: ""; display: block; width: 40px; height: 2px; margin: 10px auto 0; background: var(--coral); }
.cards + .plan-group { margin-top: 56px; }
.plan-time { font-weight: 700; color: var(--sea); font-size: 1.05rem; margin: 0 0 10px; }
.plan-desc { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ===== 出船カレンダー ===== */
.calendar { max-width: 900px; margin: 0 auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.calendar iframe { display: block; width: 100%; height: 600px; border: 0; }

/* ===== 船長名 ===== */
.captain { font-family: "Noto Serif JP", serif; text-align: right; color: var(--navy); }

/* ===== 釣果 ===== */
.choka[hidden], .choka-more[hidden] { display: none; }
.choka-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 36px; }
.choka { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.choka-photo { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; display: block; }
.choka-nophoto {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #1d5b75, var(--navy));
  color: rgba(255, 255, 255, 0.85);
  font-family: "Noto Serif JP", serif;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
}
.choka-body { padding: 20px 24px 24px; }
.choka-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 0.8rem; color: var(--muted); }
.choka-date { font-family: "Cormorant Garamond", serif; font-size: 1.1rem; color: var(--navy); letter-spacing: 0.06em; }
.choka-plan { background: var(--sand); padding: 0 10px; border-radius: 999px; }
.choka-fish { font-family: "Noto Serif JP", serif; font-size: 1.2rem; margin: 8px 0 2px; }
.choka-count { font-weight: 700; color: var(--coral); margin: 0; }
.choka-comment { font-size: 0.88rem; color: var(--text); margin: 10px 0 0; line-height: 1.8; }
.choka-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); }

/* ===== 季節 ===== */
.season-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 860px; margin: 0 auto; }
/* 押せるボタンに見えないよう、枠や色の変化はつけず文字だけで見せる */
.season { text-align: center; padding: 20px 16px; }
.season a { color: inherit; text-decoration: none; pointer-events: none; }
.season-name { font-family: "Noto Serif JP", serif; font-size: 2rem; color: var(--sea); margin: 0; }

/* ===== Instagram ===== */
.insta { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: center; max-width: 860px; margin: 0 auto; }
.insta-qr { width: 100%; height: auto; border-radius: var(--radius); }
.insta-text .section-title { margin-bottom: 16px; }
.btn-insta {
  margin-top: 10px;
  background: linear-gradient(90deg, #5b7fe0, #8a3fc7);
  color: var(--white);
}
.insta-hint { font-size: 0.8rem; color: var(--muted); margin: 14px 0 0; }

/* ===== 動画 ===== */
.movie-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 44px; }
.movie, .movie-grid iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
/* 動画が1本のときは、大きめに真ん中へ */
.movie-grid-1 { grid-template-columns: 1fr; max-width: 820px; margin-left: auto; margin-right: auto; }
/* 動画が2本のときは、横に2つ並べる（スマホでは縦に並ぶ） */
.movie-grid-2 { grid-template-columns: repeat(2, 1fr); }
.movie-swipe { display: none; }
/* 動画コーナーは紺の背景なので、文字は白にする */
.movie-note { margin: 0; font-size: 0.95rem; color: var(--white); line-height: 1.9; }

/* ===== 通販 ===== */
.shop-notice {
  display: inline-block;
  margin: 18px 0 0;
  padding: 6px 22px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 760px; margin: 0 auto; }
.product { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
/* 写真の枠は全商品で同じ高さ（4:3）。写真は文字が切れないよう全体を表示し、
   余った部分には同じ写真をぼかして敷く */
.product-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); }
.product-photo::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: var(--photo) center / cover no-repeat;
  filter: blur(18px) brightness(0.85);
}
.product-photo img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.product-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-family: "Noto Serif JP", serif; margin: 4px 0 8px; font-size: 1.25rem; }
.product-body p { margin: 0 0 10px; font-size: 0.92rem; }
.product-season { color: var(--sea); font-size: 0.8rem !important; }
.product-price { font-size: 1.3rem !important; font-weight: 700; color: var(--navy); margin-top: auto !important; }
.product-price small { font-size: 0.75rem; font-weight: 400; color: var(--muted); }

/* ===== おすすめ釣具 ===== */
.pr-note { font-size: 0.8rem; color: var(--muted); text-align: right; margin: 16px 0 0; }
.gear-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gear {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}
.gear:hover { transform: translateY(-4px); }
.pr-tag {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 1;
  font-size: 0.65rem;
  background: var(--navy);
  color: var(--white);
  padding: 0 8px;
  border-radius: 4px;
}
.gear-photo { aspect-ratio: 1; border-radius: 8px; margin-bottom: 12px; }
.gear-cat { font-size: 0.75rem; color: var(--sea); margin: 0; }
.gear-name { font-weight: 700; margin: 2px 0 6px; }
.gear-comment { font-size: 0.82rem; color: var(--muted); margin: 0; line-height: 1.7; }

/* ===== アクセス ===== */
.access-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: start; }
.map, .access-grid iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); }
.map-open { display: block; text-align: center; margin-top: 14px; color: var(--navy); }
.info { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 0; }
.info dt, .info dd { padding: 16px 0; border-bottom: 1px solid #e3e8ea; margin: 0; }
.info dt { font-weight: 700; padding-right: 24px; color: var(--navy); font-size: 0.9rem; }

.route { margin-top: 50px; padding: 36px 40px; background: var(--sand); border-radius: var(--radius); }
.route-title { font-family: "Noto Serif JP", serif; font-size: 1.15rem; margin: 0 0 16px; color: var(--navy); }
.route-list { margin: 0; padding-left: 1.4em; }
.route-list li { padding: 4px 0; }
.route-note { font-size: 0.88rem; color: var(--muted); margin: 18px 0 0; }

/* ===== 予約 ===== */
.reserve {
  background: linear-gradient(135deg, var(--sea), var(--navy));
  color: var(--white);
}
.reserve-text { margin: 20px 0 34px; }
.reserve-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.reserve .note { color: rgba(255, 255, 255, 0.75); }

/* ご予約の方法を選ぶ画面（スマホでは下から出てくる） */
.reserve-sheet[hidden] { display: none; }
.reserve-sheet { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(8, 27, 41, 0.55); opacity: 0; transition: opacity 0.25s; }
.sheet-panel {
  position: relative;
  width: min(480px, 100%);
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 26px 20px calc(20px + env(safe-area-inset-bottom));
  display: grid;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 0.25s ease-out;
}
.reserve-sheet.show .sheet-backdrop { opacity: 1; }
.reserve-sheet.show .sheet-panel { transform: none; }
.sheet-title { font-family: "Noto Serif JP", serif; font-weight: 700; color: var(--navy); text-align: center; margin: 0 0 4px; }
.sheet-btn {
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  color: var(--white);
}
.sheet-btn small { font-weight: 400; font-size: 0.75rem; opacity: 0.9; line-height: 1.5; }
.sheet-tel { background: var(--coral); }
.sheet-sms { background: var(--sea); }
.sheet-cancel {
  margin-top: 4px;
  padding: 12px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
body.sheet-open { overflow: hidden; }
/* パソコンでは画面の真ん中に出す */
@media (min-width: 901px) {
  .reserve-sheet { align-items: center; }
  .sheet-panel { border-radius: 20px; transform: translateY(20px); opacity: 0; transition: transform 0.25s, opacity 0.25s; }
  .reserve-sheet.show .sheet-panel { opacity: 1; }
}

/* ===== フッター ===== */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.8); padding: 50px 0 30px; text-align: center; }
.footer-logo { font-family: "Noto Serif JP", serif; font-size: 1.2rem; color: var(--white); }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px; font-size: 0.82rem; margin: 20px 0; }
.footer-nav a:hover { color: var(--white); }
.copy { font-size: 0.72rem; opacity: 0.6; }

.sp-fixed { display: none; }

/* ===== スマホ・タブレット ===== */
/* メニューが入りきらない幅では、ハンバーガーメニューにする */
@media (max-width: 1440px) {
  .menu-btn {
    display: block;
    width: 44px; height: 44px;
    background: none;
    border: 0;
    position: relative;
    z-index: 110;
    color: inherit;
    cursor: pointer;
  }
  .menu-btn span {
    position: absolute;
    left: 10px;
    width: 24px; height: 2px;
    background: currentColor;
    transition: 0.3s;
  }
  .menu-btn span:nth-child(1) { top: 14px; }
  .menu-btn span:nth-child(2) { top: 21px; }
  .menu-btn span:nth-child(3) { top: 28px; }
  .menu-open .menu-btn { color: var(--white); }
  .menu-open .menu-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    background: var(--navy);
    color: var(--white);
    font-size: 1.05rem;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
}

@media (max-width: 900px) {
  .header, .header.scrolled { padding: 12px 20px; }
  .logo-en { font-size: min(2.6rem, 9vw); }
  .logo-ja { font-size: 1.15rem; margin-top: 2px; }

  .section { padding: 80px 0; }
  .about-grid, .access-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards, .shop-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .choka-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  /* スマホの動画：小さめにして横に並べ、指で横にスワイプして見る（次の動画が少しのぞく） */
  .movie-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 10px;
    padding-bottom: 6px;
  }
  .movie-grid iframe { scroll-snap-align: start; }
  .movie-grid-1 { grid-auto-columns: 100%; }
  .movie-swipe { display: block; text-align: center; font-size: 0.75rem; color: rgba(255, 255, 255, 0.7); margin: 0 0 28px; }
  .movie-grid-1 + .movie-swipe { display: none; }
  .gear-grid { grid-template-columns: repeat(2, 1fr); }
  .pr-note { font-size: 0.66rem; letter-spacing: 0; margin-top: 12px; }
  .season-grid { grid-template-columns: 1fr; max-width: 420px; }
  /* スマホでは文字とボタンを先に、QRコードはその下に小さめに */
  .insta { grid-template-columns: 1fr; gap: 28px; text-align: center; max-width: 480px; }
  .insta-text { order: -1; }
  .insta-qr { width: 200px; margin: 0 auto; }
  .insta .btn-insta { display: block; }
  .calendar iframe { height: 460px; }
  .route { padding: 26px 22px; }

  /* 画面下の固定予約ボタン */
  .sp-fixed {
    display: grid;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 90;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.12);
  }
  .sp-fixed a { padding: 15px 0; background: var(--coral); color: var(--white); }
  .sp-fixed .sp-line { background: var(--line); }
  .footer { padding-bottom: 90px; }
}

@media (max-width: 520px) {
  .sp { display: inline; }
  .hero-btns .btn { width: 100%; text-align: center; }
  .choka-grid { grid-template-columns: 1fr; }
  .reserve-btns .btn { width: 100%; }
}
