/*
Theme Name: Grande Marinetopia Villas
Theme URI: https://grande-marinetopia-villas.com/
Author: Grande Marinetopia
Description: 宮津湾ヴィラコレクション4棟を、ゲストの目的別に振り分けるハブサイト用テーマ。
Version: 1.0
Text Domain: grande-marinetopia-villas
*/

:root {
  --bg: #12100e;
  --surface: #1c1916;
  --surface-2: #26221d;
  --ink: #ede6d8;
  --ink-soft: #c9c0ac;
  --muted: #948c78;
  --line: #35302a;
  --line-strong: #4d463c;
  --accent: #cda468;
  --accent-soft: #34291a;
  --accent2: #4c6b64;
  --accent2-soft: #1b2624;
  --on-accent2: #f3ede0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Noto Sans JP", "Meiryo", sans-serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  font-weight: 600;
  text-wrap: balance;
  color: var(--ink);
  margin: 0;
}

a { color: inherit; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 12px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 13.5px;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.site-nav a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 108px 24px 96px;
  background:
    radial-gradient(ellipse 900px 480px at 18% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    linear-gradient(160deg, var(--accent2) 0%, color-mix(in srgb, var(--accent2) 78%, var(--bg)) 55%, var(--bg) 100%);
  color: var(--on-accent2);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media.hero-image { background-size: cover; background-position: center; }

.hero-media.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

.hero.has-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(10, 20, 18, 0.6), rgba(10, 20, 18, 0.4));
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.5;
  color: var(--on-accent2);
  text-wrap: balance;
}

.hero p {
  margin: 22px auto 0;
  font-size: 15.5px;
  color: color-mix(in srgb, var(--on-accent2) 82%, transparent);
  white-space: nowrap;
}

.wave-divider {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
  z-index: 2;
}

.wave-divider svg { width: 100%; height: 60px; display: block; }

/* ---------- generic section scaffolding ---------- */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 88px 24px;
}

.section + .section { border-top: 1px solid var(--line); }

.section-head {
  max-width: 62ch;
  margin: 0 0 40px;
}

#faq .section-head { max-width: none; }

.section-head h2 {
  font-size: 26px;
  margin-bottom: 14px;
}

.no-wrap { white-space: nowrap; }

.section-head p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}

/* ---------- lead ---------- */
.lead-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 8px;
}

.lead-points div {
  border-top: 2px solid var(--accent);
  padding-top: 14px;
}

.lead-points h3 { font-size: 15px; margin-bottom: 8px; }
.lead-points p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- diagnosis cards ---------- */
.diag-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.diag-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.diag-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--ink) 40%, transparent);
}

.diag-media {
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}

.diag-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.diag-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}

.diag-card .who {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent2);
  margin-bottom: 10px;
}

.diag-card .villa-name {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  font-size: 18px;
  margin-bottom: 10px;
}

.diag-card p.desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0 0 16px;
  flex: 1;
}

.diag-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.diag-card .tags span {
  font-size: 11px;
  background: var(--surface-2);
  color: var(--ink-soft);
  padding: 3px 9px;
  border-radius: 20px;
}

.diag-card .go {
  display: inline-block;
  align-self: flex-start;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.diag-card .go:hover { color: var(--accent2); }

/* ---------- villa list (image slider + card) ---------- */
.villa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.villa-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.villa-media {
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
}

.villa-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.villa-body { padding: 18px 20px 20px; }

.villa-card .vname {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  font-size: 17px;
  margin-bottom: 6px;
  display: block;
}

.villa-card .vfeat {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 16px;
}

/* ---------- area ---------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.area-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.area-media {
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}

.area-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.area-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.area-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.area-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0 0 18px;
  flex: 1;
}

/* ---------- shared: image placeholder / button / spot cards ---------- */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  background: var(--surface-2);
}

.btn {
  display: inline-block;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

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

.spot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.spot-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.spot-media { aspect-ratio: 3 / 2; background: var(--surface-2); }
.spot-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.spot-body { padding: 16px 18px 18px; }

.spot-card h3 { font-size: 15px; margin-bottom: 8px; }
.spot-card p { font-size: 13px; color: var(--ink-soft); margin: 0; }

.spot-card .meta {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0 0 8px;
}

/* ---------- sub pages (sightseeing / activity / dining) ---------- */
.page-hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px 0;
}

.back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 20px;
}

.back-link:hover { color: var(--accent); }

.page-hero h1 { font-size: 30px; margin-bottom: 14px; }
.page-hero p.intro { color: var(--ink-soft); font-size: 15px; margin: 0; white-space: nowrap; }

.spot-contact-note {
  margin: 40px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.spot-contact-note a { color: var(--accent); }

/* ---------- faq ---------- */
.faq-list { border-top: 1px solid var(--line); }

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 16px 4px;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 400;
  flex-shrink: 0;
}

.faq-list details[open] summary::after { content: "–"; }

.faq-list .a {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---------- access ---------- */
.access-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.access-stack > p { font-size: 14px; color: var(--ink-soft); margin: 0; }

.access-routes {
  margin: 0;
  border-top: 1px solid var(--line);
}

.access-route {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.access-route dt {
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
}

.access-route dd {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-align: right;
}

.access-note {
  background: var(--surface-2);
  border-radius: 6px;
  padding: 18px 20px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg);
  color: var(--ink);
  padding: 56px 24px 32px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding-bottom: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.footer-links a {
  text-decoration: none;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.footer-links a:hover { text-decoration: underline; color: var(--accent); }

.footer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .diag-grid, .lead-points, .area-grid { grid-template-columns: 1fr; }
  .page-hero p.intro { white-space: normal; }
  .access-route { flex-direction: column; gap: 4px; }
  .access-route dd { text-align: left; }
  .section { padding: 64px 20px; }
  .hero { padding: 88px 20px 76px; }
  .hero p { white-space: normal; }
  .no-wrap { white-space: normal; }
  .page-hero { padding: 48px 20px 0; }
}
