/* =========================================================
   Michigan.co.jp / site.css
   Japanese travel magazine system
   Visual rule: Japanese woodblock print style imagery
   Image base path used in HTML: https://michigan.co.jp/images/
   ========================================================= */

:root {
  --ink: #17202a;
  --ink-soft: #41505d;
  --muted: #6f7b84;
  --paper: #f7f1e7;
  --paper-deep: #eee2d0;
  --paper-light: #fffaf1;
  --lake: #1f5f7a;
  --lake-deep: #123f56;
  --pine: #284b3f;
  --cedar: #486457;
  --sand: #d8b979;
  --rust: #9d4d35;
  --red: #a3342d;
  --snow: #fbfbf6;
  --line: rgba(23, 32, 42, 0.14);
  --shadow: 0 18px 45px rgba(23, 32, 42, 0.13);
  --shadow-soft: 0 10px 30px rgba(23, 32, 42, 0.08);

  --font-serif: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", "Times New Roman", serif;
  --font-sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1180px;
  --wide: 1380px;
  --radius: 26px;
  --radius-sm: 16px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

/* ------------------------------
   Base
------------------------------ */

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

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(31, 95, 122, 0.10), transparent 34rem),
    radial-gradient(circle at 90% 8%, rgba(157, 77, 53, 0.08), transparent 30rem),
    linear-gradient(180deg, var(--paper-light), var(--paper) 42%, var(--paper-deep));
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(23, 32, 42, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 42, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.65;
}

body > * {
  position: relative;
  z-index: 1;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

p {
  margin: 0 0 1.15rem;
}

strong {
  font-weight: 800;
}

::selection {
  background: rgba(216, 185, 121, 0.55);
}

/* ------------------------------
   Layout helpers
------------------------------ */

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

.wide {
  width: min(calc(100% - 40px), var(--wide));
  margin-inline: auto;
}

.section {
  padding: clamp(56px, 8vw, 112px) 0;
}

.section-tight {
  padding: clamp(34px, 5vw, 74px) 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.lede {
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: clamp(1.13rem, 2vw, 1.42rem);
  line-height: 2;
}

.small {
  color: var(--muted);
  font-size: 0.93rem;
}

.center {
  text-align: center;
}

.grid {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
}

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

.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

/* ------------------------------
   Header / Navigation
------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(23, 32, 42, 0.1);
  background: rgba(255, 250, 241, 0.88);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(calc(100% - 28px), var(--wide));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(23, 32, 42, 0.18);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(31, 95, 122, 0.95), rgba(18, 63, 86, 0.95)),
    var(--lake);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,0.16);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 26px);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
}

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

.nav-toggle {
  display: none;
  border: 1px solid rgba(23, 32, 42, 0.18);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

/* ------------------------------
   Hero
------------------------------ */

.hero {
  position: relative;
  min-height: clamp(560px, 76vh, 840px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--lake-deep);
}

.hero.hero-small {
  min-height: clamp(420px, 56vh, 640px);
}

.hero-image,
.hero picture,
.hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image,
.hero picture img {
  object-fit: cover;
  filter: saturate(0.92) contrast(0.98);
  transform: scale(1.01);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 27, 38, 0.82), rgba(12, 27, 38, 0.38) 48%, rgba(12, 27, 38, 0.16)),
    linear-gradient(0deg, rgba(12, 27, 38, 0.82), transparent 54%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
  padding: clamp(80px, 13vw, 150px) 0 clamp(58px, 8vw, 100px);
  color: white;
}

.hero-content.narrow {
  max-width: 860px;
  margin-left: max(20px, calc((100vw - var(--max)) / 2));
  margin-right: auto;
}

.hero .kicker {
  color: #f2d69a;
}

.hero h1 {
  max-width: 920px;
  margin: 0 0 1.35rem;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 7.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.hero.hero-small h1 {
  font-size: clamp(2.7rem, 6vw, 5.7rem);
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2.1rem;
}

/* ------------------------------
   Typography
------------------------------ */

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.03em;
}

h2 {
  margin-bottom: 1.15rem;
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  text-wrap: balance;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.34rem, 2.6vw, 2rem);
}

h4 {
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
}

.section-head {
  max-width: 820px;
  margin-bottom: clamp(28px, 5vw, 54px);
}

.section-head.center {
  margin-inline: auto;
}

/* ------------------------------
   Buttons / Links
------------------------------ */

.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.78rem 1.1rem;
  border: 1px solid rgba(23, 32, 42, 0.18);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

.btn:hover,
.button:hover {
  color: white;
  background: var(--lake-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn.secondary,
.button.secondary {
  background: rgba(255, 250, 241, 0.88);
  color: var(--ink);
}

.btn.secondary:hover,
.button.secondary:hover {
  color: var(--ink);
  background: white;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--lake-deep);
  font-weight: 800;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform 180ms var(--ease);
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* ------------------------------
   Cards
------------------------------ */

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.78);
  box-shadow: var(--shadow-soft);
}

.card.pad {
  padding: clamp(22px, 3vw, 34px);
}

.card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.card-link:hover {
  color: inherit;
  transform: translateY(-5px);
}

.card-link:hover .card-image img {
  transform: scale(1.045);
}

.card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
}

.card-image.wide {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.card-image.tall {
  aspect-ratio: 3 / 4;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms var(--ease);
}

.card-body {
  padding: clamp(20px, 3vw, 30px);
}

.card-body p:last-child {
  margin-bottom: 0;
}

.card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0.75rem;
  color: var(--rust);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card h3 {
  margin-bottom: 0.65rem;
}

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

/* ------------------------------
   Feature panels
------------------------------ */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(320px, 0.98fr) minmax(0, 1.02fr);
}

.split.reverse .split-media {
  order: -1;
}

.split-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-deep);
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  height: 100%;
  max-height: 680px;
  object-fit: cover;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.52), rgba(255,255,255,0.16)),
    rgba(255, 250, 241, 0.72);
  padding: clamp(26px, 4vw, 52px);
  box-shadow: var(--shadow-soft);
}

/* ------------------------------
   Article pages
------------------------------ */

.article {
  width: min(calc(100% - 40px), 880px);
  margin-inline: auto;
  padding: clamp(48px, 8vw, 96px) 0;
}

.article h2 {
  margin-top: 3.2rem;
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.article h3 {
  margin-top: 2.2rem;
}

.article p,
.article li {
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: clamp(1.04rem, 1.7vw, 1.19rem);
  line-height: 2.08;
}

.article ul,
.article ol {
  padding-left: 1.3rem;
  margin: 0 0 1.5rem;
}

.article blockquote {
  margin: 2.4rem 0;
  padding: clamp(22px, 4vw, 40px);
  border-left: 5px solid var(--lake);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255,255,255,0.42);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.85;
}

.article figure {
  margin: clamp(34px, 6vw, 64px) 0;
}

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

figcaption,
.caption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ------------------------------
   Directory / practical information
------------------------------ */

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

.info-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 250, 241, 0.74);
  padding: 18px 20px;
}

.info-item h3,
.info-item h4 {
  margin-bottom: 0.3rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
}

.info-item p {
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.75;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 1rem 0 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.25rem 0.72rem;
  border: 1px solid rgba(23, 32, 42, 0.13);
  border-radius: 999px;
  background: rgba(255,255,255,0.42);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

/* ------------------------------
   Image gallery blocks
------------------------------ */

.image-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(16px, 2.5vw, 28px);
}

.image-band figure {
  margin: 0;
}

.image-band img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

/* ------------------------------
   Callouts
------------------------------ */

.callout {
  border: 1px solid rgba(31, 95, 122, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(31, 95, 122, 0.11), rgba(216, 185, 121, 0.16)),
    rgba(255, 250, 241, 0.82);
  padding: clamp(24px, 4vw, 44px);
}

.callout h2,
.callout h3 {
  margin-bottom: 0.85rem;
}

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

/* ------------------------------
   Breadcrumbs
------------------------------ */

.breadcrumbs {
  width: min(calc(100% - 40px), var(--max));
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.breadcrumbs a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--lake);
}

/* ------------------------------
   Footer
------------------------------ */

.site-footer {
  margin-top: clamp(40px, 8vw, 90px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(18, 63, 86, 0.96), rgba(12, 27, 38, 0.98));
  color: rgba(255,255,255,0.86);
}

.footer-inner {
  width: min(calc(100% - 40px), var(--wide));
  margin-inline: auto;
  padding: clamp(42px, 7vw, 76px) 0;
  display: grid;
  grid-template-columns: 1.15fr 1.85fr;
  gap: clamp(30px, 5vw, 80px);
}

.footer-brand h2 {
  color: white;
  margin-bottom: 0.7rem;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.footer-brand p {
  color: rgba(255,255,255,0.75);
  max-width: 520px;
}

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

.footer-links h3 {
  color: #f2d69a;
  margin-bottom: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.76);
  margin: 0.35rem 0;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.13);
  padding: 18px 0;
  color: rgba(255,255,255,0.58);
  font-size: 0.82rem;
}

.footer-bottom .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

/* ------------------------------
   Reveal animation
------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------
   Back to top
------------------------------ */

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(23, 32, 42, 0.18);
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ------------------------------
   Tables
------------------------------ */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,250,241,0.74);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(31,95,122,0.08);
  color: var(--lake-deep);
  font-weight: 900;
}

tr:last-child td {
  border-bottom: 0;
}

/* ------------------------------
   Forms / search controls
------------------------------ */

.input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(23, 32, 42, 0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.58);
  color: var(--ink);
  padding: 0.8rem 1rem;
  font: inherit;
}

textarea {
  min-height: 140px;
  border-radius: var(--radius-sm);
}

/* ------------------------------
   Responsive
------------------------------ */

@media (max-width: 960px) {
  .two,
  .three,
  .four,
  .split,
  .split.reverse,
  .footer-inner,
  .footer-links,
  .image-band {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(23, 32, 42, 0.12);
    border-radius: 18px;
    background: rgba(255, 250, 241, 0.98);
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(23, 32, 42, 0.08);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 620px;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(12, 27, 38, 0.88), rgba(12, 27, 38, 0.28)),
      linear-gradient(90deg, rgba(12, 27, 38, 0.58), rgba(12, 27, 38, 0.18));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }

  .wrap,
  .container,
  .wide,
  .article,
  .hero-content,
  .breadcrumbs {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav {
    width: min(calc(100% - 24px), var(--wide));
    min-height: 68px;
  }

  .nav-links {
    top: 68px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding-bottom: 52px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 14vw, 4.9rem);
  }

  .hero p {
    font-size: 1.04rem;
  }

  .card-body,
  .card.pad,
  .panel,
  .callout {
    padding: 22px;
  }

  .footer-bottom .wrap {
    display: block;
  }

  .footer-bottom p {
    margin-bottom: 0.4rem;
  }
}

/* ------------------------------
   Print
------------------------------ */

@media print {
  .site-header,
  .site-footer,
  .back-to-top,
  .nav-toggle {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  a {
    color: black;
  }

  .hero {
    min-height: auto;
    background: white;
    color: black;
  }

  .hero-image,
  .hero::after {
    display: none;
  }

  .hero-content,
  .article,
  .wrap,
  .container {
    width: 100%;
  }
}
