:root {
  --color-primary: #2f8a87;
  --color-primary-dark: #1f6b68;
  --color-primary-light: #e8f4f3;
  --color-accent: #c4a052;
  --color-bg: #fafbfc;
  --color-surface: #ffffff;
  --color-text: #1a2b48;
  --color-muted: #5e6d77;
  --color-border: #e5e9ef;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(26, 43, 72, 0.06);
  --shadow: 0 4px 20px rgba(26, 43, 72, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 43, 72, 0.12);
  --container: 1200px;
  --font: "Inter", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  --text-base: 1rem;
  --text-sm: 0.875rem;
  --text-lg: 1.125rem;
  --leading: 1.65;
  --tap: 44px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: var(--leading);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary-dark);
  text-underline-offset: 2px;
}

a:hover { color: var(--color-primary); }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.top-bar {
  background: var(--color-text);
  color: rgba(255,255,255,0.85);
  font-size: var(--text-sm);
}

.top-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding: 0.5rem 0;
}

.top-bar a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.top-bar a:hover { color: #fff; }

.top-bar strong {
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  margin-right: 0.25rem;
}

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.875rem 0;
}

.logo img {
  max-height: 48px;
  width: auto;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  min-height: var(--tap);
  padding: 0 1rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

.main-nav { flex: 1; }

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-muted);
  padding: 0.375rem 0;
  display: inline-block;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-primary);
}

.main-nav a[aria-current="page"] {
  font-weight: 600;
}

.header-cta { margin-left: auto; flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn--large {
  padding: 0.75rem 1.5rem;
  font-size: var(--text-base);
}

.btn--block {
  width: 100%;
  margin-bottom: 0.625rem;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--light {
  background: #fff;
  color: var(--color-primary-dark);
}

.btn--light:hover { background: var(--color-primary-light); }

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  padding-left: 0;
  padding-right: 0;
  min-height: auto;
}

.btn--ghost:hover { color: var(--color-primary-dark); }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.hero--home {
  min-height: 520px;
  display: flex;
  align-items: center;
  background: var(--color-text);
}

.hero--home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-text);
  background-image:
    linear-gradient(105deg, rgba(26,43,72,0.88) 0%, rgba(47,138,135,0.5) 100%),
    url("/assets/images/hero/happy-golfer-hero.png");
  background-position: center, 78% 12%;
  background-size: cover, cover;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero--detail,
.hero--listing,
.hero--simple {
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary-dark) 100%);
  padding: 2.5rem 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.hero--detail h1,
.hero--listing h1,
.hero--simple h1 {
  max-width: 28ch;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  overflow-wrap: anywhere;
}

.hero__lead {
  margin: 0;
  max-width: 36rem;
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.88);
  font-weight: 400;
}

.hero__price {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-accent);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: var(--color-surface);
}

.section-header {
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.section-intro {
  margin: 0;
  font-size: var(--text-base);
  color: var(--color-muted);
}

.section-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card__image-link {
  display: block;
  overflow: hidden;
}

.card__image-link img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card__image-link img {
  transform: scale(1.03);
}

.card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.card__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}

.card__title a {
  text-decoration: none;
  color: var(--color-text);
}

.card__title a:hover { color: var(--color-primary); }

.card__price {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
}

.card__excerpt {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.6;
}

.card .btn--secondary {
  margin-top: auto;
  align-self: flex-start;
}

/* Detail */
.breadcrumb {
  padding: 1.25rem 0 0;
  font-size: var(--text-sm);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--color-muted);
}

.breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--color-primary); }

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  opacity: 0.4;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0 4rem;
}

.detail-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gallery {
  min-width: 0;
}

.gallery__main {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-border);
}

.gallery__main img {
  width: 100%;
  max-height: min(52vw, 520px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery__thumbs {
  display: flex;
  gap: 0.625rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.gallery__thumbs img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.gallery__thumbs img:hover {
  border-color: var(--color-primary);
}

.content-panel {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--color-border);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.content-panel img,
.content-panel iframe,
.content-panel table,
.content-panel video {
  max-width: 100%;
  height: auto;
}

.content-panel table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}

.content-panel p {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

.content-panel p:last-child { margin-bottom: 0; }

.content-panel__heading {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 650;
  color: var(--color-text);
}

.content-panel > .content-panel__heading:first-child,
.rates > .content-panel__heading:first-child,
.about-block:first-child .content-panel__heading {
  margin-top: 0;
}

.rates__block {
  margin-bottom: 1.75rem;
}

.rates__title {
  margin: 0 0 0.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.rates__dates {
  margin: 0 0 0.75rem;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.rates__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.rates__table-wrap table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.rates__table-wrap th,
.rates__table-wrap td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.rates__table-wrap th {
  background: var(--color-primary-light);
  font-weight: 600;
  color: var(--color-text);
}

.rates__table-wrap tr:last-child td {
  border-bottom: none;
}

.info-block {
  margin-top: 1.5rem;
}

.facilities__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem 1rem;
}

.facilities__list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.facilities__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.lang-switch {
  display: inline-flex;
  gap: 0.5rem;
  margin-left: auto;
  font-size: var(--text-sm);
}

.lang-switch a {
  color: inherit;
  text-decoration: none;
  opacity: 0.75;
  font-weight: 600;
}

.lang-switch a[aria-current="true"],
.lang-switch a:hover {
  opacity: 1;
  text-decoration: underline;
}

.card-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.location-block {
  margin-top: 2rem;
}

.top-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.about-block:last-child {
  margin-bottom: 0;
}

.booking-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 100px;
  align-self: start;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  width: 100%;
}

.booking-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
}

.booking-panel p {
  margin: 0 0 1.25rem;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* Article */
.article-layout {
  padding: 2rem 0 4rem;
  max-width: 760px;
}

.article-header h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.article-intro {
  font-size: var(--text-lg);
  color: var(--color-muted);
  margin: 0;
}

.article-hero {
  margin: 2rem 0;
}

.article-hero img {
  width: 100%;
  border-radius: var(--radius);
}

/* Trust band */
.trust-band {
  background: var(--color-text);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 0;
}

.trust-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.trust-band h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.trust-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: var(--text-base);
}

.trust-list li {
  padding-left: 1.25rem;
  position: relative;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* FAQ */
.section--faq {
  background: var(--color-bg-alt);
}

.faq-list {
  margin: 2rem 0 0;
  display: grid;
  gap: 1.5rem;
}

.faq-item dt {
  font-weight: 600;
  font-size: var(--text-lg);
  margin-bottom: 0.5rem;
}

.faq-item dd {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: #111d2e;
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 0 1.5rem;
}

.footer-heading {
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: var(--text-sm);
}

.footer-links a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-grid p {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  font-size: var(--text-sm);
}

/* Detail: tablet / narrow laptop */
@media (max-width: 1100px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.5rem;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .main-nav.is-open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }

  .main-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    min-height: var(--tap);
    display: flex;
    align-items: center;
  }

  .header-cta { display: none; }

  .header__inner { flex-wrap: wrap; gap: 1rem; }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.25rem 0 3rem;
  }

  .booking-panel {
    position: static;
    order: -1;
  }

  .gallery__main img {
    max-height: 240px;
  }

  .content-panel {
    padding: 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid { grid-template-columns: 1fr; }

  .hero--home { min-height: 420px; }

  .hero--home::before {
    background-position: center, 70% 8%;
  }

  .hero__inner { padding: 3.5rem 0; }

  .section { padding: 3rem 0; }

  .card-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .card:hover { transform: none; }
  .card:hover .card__image-link img { transform: none; }
}

@media (prefers-contrast: more) {
  :root {
    --color-border: #999;
    --color-muted: #333;
  }
  .btn--primary { border: 2px solid #000; }
}

/* Booking forms */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: var(--text-base);
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.booking-form__hint {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.booking-form__status {
  font-size: var(--text-sm);
  min-height: 1.25rem;
}

.booking-form__status--error { color: #b91c1c; }
.booking-form__status--success { color: var(--color-primary-dark); }

.btn--whatsapp {
  background: #25d366;
  color: #fff;
  gap: 0.5rem;
}

.btn--whatsapp:hover,
.btn--whatsapp:focus-visible {
  background: #1da851;
  color: #fff;
}

.btn__icon { flex-shrink: 0; }

.booking-panel__alt {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  padding: 2rem 0 4rem;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.contact-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.contact-card p {
  margin: 0 0 1rem;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list a {
  text-decoration: none;
  font-size: var(--text-sm);
}

.contact-card--license {
  background: var(--color-primary-light);
  border-color: transparent;
}

.contact-card--license p {
  margin: 0;
  font-size: var(--text-sm);
}

/* WhatsApp floating button */
.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.05);
  color: #fff;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}
