/*
Theme Name: Numazu Cruise Theme
Theme URI: https://example.com/numazu-cruise-theme
Author: Excellent Marine
Author URI: https://hondashop.jp/excellent/
Description: 沼津発着クルージングサービス向けの1ページテーマ
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: numazu-cruise
*/

:root {
  --bg: #f2f6fb;
  --surface: #ffffff;
  --navy: #0a2b4a;
  --navy-deep: #061b2e;
  --accent: #1f7ed6;
  --cta: #ff8b00;
  --text: #1a2430;
  --muted: #5f6f80;
  --border: #d7e2ed;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 27, 46, 0.9);
  backdrop-filter: blur(6px);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand {
  margin: 0;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-name {
  font-size: 0.92rem;
  line-height: 1.2;
}

.nav {
  display: flex;
  gap: 22px;
  color: #d7e7f8;
  font-size: 0.95rem;
}

.floating-cta {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 40;
  background: var(--cta);
  color: #fff;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(255, 139, 0, 0.35);
}

.floating-cta:hover {
  filter: brightness(1.05);
}

.nav a:hover {
  color: #fff;
}

.site-main {
  display: block;
}

.hero {
  position: relative;
  min-height: 76vh;
  background-image: url("assets/hero.jpg");
  background-size: cover;
  background-position: center;
  display: grid;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(6, 27, 46, 0.88), rgba(10, 43, 74, 0.55));
}

.hero-content {
  position: relative;
  color: #fff;
  padding: 70px 0;
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.08em;
  color: #b7d8f8;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.15;
}

.hero-copy {
  margin: 18px 0 30px;
  font-size: 1.12rem;
  color: #dbeaf8;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badges span {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-primary {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  min-height: 48px;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.section {
  padding: 72px 0;
}

.reserve {
  background: var(--surface);
}

.calendar-card {
  background: #f7faff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.calendar-title {
  margin: 0;
  font-weight: 800;
  color: var(--navy);
}

.calendar-nav {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-weekdays {
  margin-bottom: 8px;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}

.calendar-cell {
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 58px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
}

.calendar-cell .day {
  color: var(--navy);
}

.calendar-cell .status {
  font-size: 0.78rem;
  color: #2f8a4a;
}

.calendar-cell.is-full .status {
  color: #d04b4b;
}

.calendar-cell.is-selected {
  background: #dff0ff;
  border-color: var(--accent);
}

.calendar-cell.is-past,
.calendar-cell.is-full {
  opacity: 0.45;
  cursor: not-allowed;
}

.calendar-cell.is-blank {
  border: 0;
  background: transparent;
  min-height: 0;
}

.calendar-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.reserve-form {
  background: #f7faff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: end;
}

.reserve-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--navy);
}

.reserve-form input,
.reserve-form select {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0 12px;
  font: inherit;
}

.reserve-submit-wrap {
  grid-column: 1 / -1;
}

.reserve-submit-wrap .btn-primary {
  width: 100%;
}

.steps-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.reserve-message {
  margin-top: 12px;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 700;
  display: none;
}

.reserve-message.is-info,
.reserve-message.is-success,
.reserve-message.is-error {
  display: block;
}

.reserve-message.is-info {
  background: #e7f2ff;
  color: #164b7e;
}

.reserve-message.is-success {
  background: #e8f8ee;
  color: #1c6b3a;
}

.reserve-message.is-error {
  background: #ffecec;
  color: #8e2222;
}

.intro {
  background: var(--surface);
}

.strength-grid,
.benefit-grid,
.price-grid,
.voice-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.price-grid {
  grid-template-columns: repeat(2, 1fr);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  color: var(--navy);
  line-height: 1.35;
}

.section-title {
  margin: 0 0 26px;
  text-align: center;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.metric {
  margin: 0 0 8px;
  font-size: 1.55rem;
  color: var(--navy);
  font-weight: 800;
}

.plan-tag {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

h3 {
  margin: 8px 0;
  color: var(--navy);
}

.time {
  margin: 0 0 8px;
  font-weight: 700;
}

.plan-price-highlight {
  margin: 0 0 10px;
}

.price-before {
  margin: 0;
  color: #8b97a6;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-right: 4px;
}

.price-before::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  border-top: 2px solid #d42828;
  transform: rotate(-14deg);
  transform-origin: center;
}

.price-after {
  margin: 4px 0 0;
  color: #d42828;
  font-weight: 800;
  font-size: 1.08rem;
}

.set-plan {
  background: linear-gradient(180deg, #ecf4fc 0%, #f7faff 100%);
}

.voice-card {
  text-align: center;
}

.voice-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}

.stars {
  margin: 0 0 8px;
  color: #f3b533;
  font-weight: 800;
}

.price-note {
  margin: 16px 0 0;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
}

.gallery {
  background: #f7faff;
}

.photo-slider {
  overflow: hidden;
  border-radius: 16px;
  position: relative;
}

.photo-track {
  display: flex;
  gap: 12px;
  transform: translateX(0);
  transition: transform 0.45s ease;
  will-change: transform;
}

.photo-item {
  margin: 0;
  flex: 0 0 calc((100% - 24px) / 3);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  position: relative;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  transform-origin: center;
  z-index: 1;
}

.photo-item:hover {
  transform: scale(1.06);
  z-index: 4;
  box-shadow: 0 18px 34px rgba(6, 27, 46, 0.24);
}

.photo-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 27, 46, 0.62) 8%, rgba(6, 27, 46, 0));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.photo-item:hover::after {
  opacity: 1;
}

.photo-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease;
}

.photo-item:hover img {
  transform: scale(1.08);
}

.photo-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: 0.93rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2;
}

.photo-item:hover .photo-overlay {
  opacity: 1;
  transform: translateY(0);
}

.faq .container > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}

.faq .container {
  display: grid;
  gap: 12px;
}

.site-footer {
  background: var(--navy-deep);
  color: #d8e8f7;
  padding: 44px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
}

.footer-title {
  margin: 0 0 6px;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .brand-logo img {
    width: 48px;
    height: 48px;
  }

  .brand-name {
    display: none;
  }

  .strength-grid,
  .benefit-grid,
  .price-grid,
  .voice-grid,
  .plan-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .photo-item {
    flex-basis: calc((100% - 12px) / 2);
  }

  .photo-item img {
    height: 230px;
  }

  .reserve-form {
    grid-template-columns: 1fr;
  }

  .calendar-cell {
    min-height: 52px;
  }

  .hero {
    min-height: 64vh;
  }

  .floating-cta {
    top: auto;
    bottom: 14px;
    right: 14px;
    left: 14px;
    text-align: center;
    padding: 14px 16px;
  }
}

@media (max-width: 640px) {
  .photo-item {
    flex-basis: 100%;
  }

  .photo-item img {
    height: 220px;
  }
}