/* =========================================================
   NewMexico.co.jp / site.css
   空と土と祈りのニューメキシコ
   ========================================================= */

:root {
  --ink: #241816;
  --ink-soft: #5e4740;
  --paper: #f6efe3;
  --paper-warm: #fff8ed;
  --sand: #dfc49b;
  --adobe: #b86543;
  --adobe-dark: #7c3f2b;
  --chile-red: #9f2f22;
  --chile-green: #4f6f3a;
  --turquoise: #1f9a9c;
  --sky: #8fc9d5;
  --night: #17222a;
  --cream: #fff3dd;
  --line: rgba(36, 24, 22, 0.16);
  --line-light: rgba(255, 248, 237, 0.28);
  --shadow: 0 24px 70px rgba(46, 28, 19, 0.18);
  --shadow-soft: 0 14px 38px rgba(46, 28, 19, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --max: 1180px;
  --serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", "Times New Roman", serif;
  --sans: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
}

/* =========================================================
   Base
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.9;
  letter-spacing: 0.02em;
  background:
    radial-gradient(circle at 12% 5%, rgba(143, 201, 213, 0.34), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(159, 47, 34, 0.16), transparent 25rem),
    linear-gradient(180deg, #fbf4e8 0%, #f4ead8 46%, #efe0c6 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1.1rem;
}

strong {
  color: var(--ink);
  font-weight: 800;
}

::selection {
  background: rgba(31, 154, 156, 0.22);
}

/* =========================================================
   Layout Helpers
   ========================================================= */

.wrap,
.container {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
}

.section {
  padding: 76px 0;
}

.section-tight {
  padding: 46px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--adobe-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--turquoise);
}

.lead {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 2;
}

.kicker {
  color: var(--adobe-dark);
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 0.86rem;
}

.muted {
  color: var(--ink-soft);
}

.center {
  text-align: center;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 36px 0;
}

/* =========================================================
   Header / Navigation
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(246, 239, 227, 0.88);
  border-bottom: 1px solid var(--line);
}

.navbar {
  width: min(var(--max), calc(100% - 30px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--adobe-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 800;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--cream);
  background: var(--adobe-dark);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--cream);
  background: var(--night);
}

.hero.hero-short {
  min-height: 54vh;
}

.hero-media,
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(23, 34, 42, 0.82) 0%, rgba(23, 34, 42, 0.56) 42%, rgba(23, 34, 42, 0.18) 100%),
    linear-gradient(0deg, rgba(23, 34, 42, 0.82) 0%, rgba(23, 34, 42, 0.1) 52%, rgba(23, 34, 42, 0.28) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 128px 0 82px;
}

.hero-card {
  max-width: 780px;
}

.hero .eyebrow {
  color: #f3d9b5;
}

.hero .eyebrow::before {
  background: var(--turquoise);
}

.hero h1 {
  margin: 18px 0 22px;
  font-family: var(--serif);
  font-size: clamp(2.55rem, 7vw, 6.8rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.hero p {
  max-width: 720px;
  color: rgba(255, 248, 237, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  line-height: 1.2;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.btn-primary {
  color: var(--cream);
  background: var(--chile-red);
}

.btn-secondary {
  color: var(--cream);
  border-color: rgba(255, 248, 237, 0.42);
  background: rgba(255, 248, 237, 0.08);
  backdrop-filter: blur(12px);
}

.btn-dark {
  color: var(--cream);
  background: var(--night);
}

.btn-light {
  color: var(--ink);
  background: var(--cream);
}

/* =========================================================
   Intro / Magazine Blocks
   ========================================================= */

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.intro-copy h2,
.section-title,
.feature-title {
  margin: 12px 0 18px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.intro-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--sand);
}

.intro-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.caption {
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.7;
}

.image-caption {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

/* =========================================================
   Cards / Grids
   ========================================================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 248, 237, 0.72);
  box-shadow: 0 10px 26px rgba(46, 28, 19, 0.08);
  transition: 0.22s ease;
}

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

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  padding: 22px;
}

.card h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.28;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.card-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--adobe-dark);
  font-weight: 900;
}

.card-link::after {
  content: "→";
  margin-left: 0.45rem;
}

/* =========================================================
   Feature Panels
   ========================================================= */

.panel {
  border-radius: var(--radius-xl);
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 248, 237, 0.88), rgba(223, 196, 155, 0.42)),
    radial-gradient(circle at 100% 0%, rgba(31, 154, 156, 0.12), transparent 24rem);
  box-shadow: var(--shadow-soft);
}

.panel-dark {
  color: var(--cream);
  background:
    linear-gradient(135deg, rgba(23, 34, 42, 0.96), rgba(124, 63, 43, 0.88)),
    radial-gradient(circle at 80% 0%, rgba(31, 154, 156, 0.28), transparent 24rem);
}

.panel-dark p,
.panel-dark .muted {
  color: rgba(255, 248, 237, 0.78);
}

.panel-dark .eyebrow {
  color: #f4d6ad;
}

.panel-dark .eyebrow::before {
  background: var(--turquoise);
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 34px;
  align-items: center;
}

.split-panel img {
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
}

/* =========================================================
   Destination / Page Index
   ========================================================= */

.destination-list {
  display: grid;
  gap: 16px;
}

.destination-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 248, 237, 0.66);
}

.destination-row img {
  width: 140px;
  height: 96px;
  object-fit: cover;
  border-radius: 16px;
}

.destination-row h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 1.32rem;
}

.destination-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* =========================================================
   Article Pages
   ========================================================= */

.article {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0;
}

.article-wide {
  width: min(var(--max), calc(100% - 36px));
}

.article h1,
.article h2,
.article h3 {
  font-family: var(--serif);
  font-weight: 900;
  line-height: 1.25;
}

.article h1 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  margin: 0 0 22px;
}

.article h2 {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  margin: 56px 0 18px;
}

.article h3 {
  font-size: 1.45rem;
  margin: 34px 0 12px;
}

.article p {
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 2.15;
}

.article .lead {
  font-size: clamp(1.15rem, 2vw, 1.36rem);
  color: var(--ink-soft);
}

.article figure {
  margin: 42px 0;
}

.article figure img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.article figcaption {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.7;
}

.pullquote {
  margin: 48px 0;
  padding: 28px 32px;
  border-left: 6px solid var(--turquoise);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: rgba(255, 248, 237, 0.72);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.65;
  color: var(--adobe-dark);
}

/* =========================================================
   Real Places / Listings
   ========================================================= */

.place-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.place-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 248, 237, 0.74);
  box-shadow: 0 8px 24px rgba(46, 28, 19, 0.07);
}

.place-card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.45rem;
}

.place-meta {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

.place-card a {
  color: var(--adobe-dark);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* =========================================================
   Gallery
   ========================================================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sand);
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.045);
}

.gallery-item span,
.gallery-label {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--cream);
  background: rgba(23, 34, 42, 0.72);
  backdrop-filter: blur(10px);
  font-size: 0.86rem;
  font-weight: 900;
}

/* =========================================================
   CTA
   ========================================================= */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(34px, 6vw, 72px);
  color: var(--cream);
  background:
    linear-gradient(135deg, rgba(159, 47, 34, 0.92), rgba(23, 34, 42, 0.94)),
    radial-gradient(circle at 80% 0%, rgba(31, 154, 156, 0.36), transparent 25rem);
  box-shadow: var(--shadow);
}

.cta h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 1.12;
}

.cta p {
  max-width: 760px;
  color: rgba(255, 248, 237, 0.82);
  font-size: 1.06rem;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  margin-top: 72px;
  padding: 54px 0 34px;
  color: rgba(255, 248, 237, 0.78);
  background:
    linear-gradient(180deg, #1b242b 0%, #12181d 100%);
}

.footer-grid {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
}

.footer-brand {
  font-family: var(--serif);
  color: var(--cream);
  font-size: 1.65rem;
  font-weight: 900;
}

.footer-heading {
  color: var(--cream);
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 248, 237, 0.72);
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-bottom {
  width: min(var(--max), calc(100% - 36px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 248, 237, 0.16);
  color: rgba(255, 248, 237, 0.56);
  font-size: 0.86rem;
}

/* =========================================================
   Utilities
   ========================================================= */

.bg-paper {
  background: var(--paper);
}

.bg-warm {
  background: var(--paper-warm);
}

.bg-night {
  color: var(--cream);
  background: var(--night);
}

.rounded {
  border-radius: var(--radius-lg);
}

.shadow {
  box-shadow: var(--shadow);
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 12px; }
.mt-4 { margin-top: 24px; }
.mt-6 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 24px; }
.mb-6 { margin-bottom: 36px; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {
  .navbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .intro-grid,
  .split-panel {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .card-grid.two,
  .card-grid.four,
  .place-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .wrap,
  .container,
  .hero-inner,
  .article,
  .article-wide,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, var(--max));
  }

  .hero {
    min-height: 72vh;
  }

  .hero-inner {
    padding: 96px 0 54px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 4.3rem);
  }

  .section {
    padding: 52px 0;
  }

  .card-grid,
  .card-grid.two,
  .card-grid.four,
  .place-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

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

  .destination-row img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .destination-row .btn {
    width: 100%;
  }

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

  .nav-links a {
    padding: 8px 10px;
    font-size: 0.82rem;
  }
}

@media (max-width: 420px) {
  body {
    letter-spacing: 0.01em;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .btn {
    justify-content: center;
  }

  .panel,
  .cta {
    border-radius: 22px;
  }
}
