:root {
  color-scheme: light;
  --bg: #fffaf0;
  --paper: #ffffff;
  --ink: #202521;
  --muted: #596057;
  --line: #e5d8bd;
  --green: #2f6d4f;
  --green-dark: #193d2d;
  --gold: #d6a62d;
  --gold-soft: #f4df9b;
  --cream: #fff4d7;
  --coral: #c96f45;
  --shadow: 0 16px 36px rgba(38, 32, 20, 0.12);
  font-family: "Yu Gothic", "YuGothic", "Meiryo", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.92), rgba(255, 255, 255, 0.96)),
    repeating-linear-gradient(90deg, rgba(214, 166, 45, 0.06) 0 1px, transparent 1px 36px);
  color: var(--ink);
  line-height: 1.8;
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

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

a {
  color: var(--green-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  z-index: 10;
  background: var(--green-dark);
  color: #fff;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  transform: translateY(0.75rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.notice {
  background: var(--gold);
  color: var(--ink);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.notice p,
.header-contact span,
.header-contact a,
.section-heading p,
.reserve p,
.site-footer p,
.card-mark {
  margin: 0;
}

.site-header {
  background: rgba(255, 250, 240, 0.97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  width: clamp(3rem, 7vw, 4.75rem);
  aspect-ratio: 1;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-kicker {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 0.15rem;
}

.site-name {
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.header-contact {
  display: grid;
  justify-items: end;
  gap: 0.1rem;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--cream);
  color: var(--green-dark);
  padding: 0.18rem 0.72rem;
  font-size: 0.86rem;
  font-weight: 800;
}

.header-phone {
  color: var(--green-dark);
  font-size: 1.32rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem 0.85rem;
}

.nav-toggle {
  display: none;
  width: 100%;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--paper);
  color: var(--green-dark);
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 1rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  border: 1px solid rgba(47, 109, 79, 0.18);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  color: var(--ink);
}

.site-nav a:hover {
  background: var(--gold-soft);
}

.hero {
  min-height: 0;
  display: block;
  overflow: hidden;
  background: #fffaf0;
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.hero-media {
  width: 100%;
  max-width: 1440px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  background:
    var(--cream)
    url("genki-pamphlet-hero.png")
    center / contain
    no-repeat;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: stretch;
  justify-content: space-between;
  gap: 1.1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.35rem 1.25rem 1.65rem;
  color: var(--ink);
}

.hero-copy::before {
  content: none;
}

.hero h1 {
  margin: 0;
  max-width: 12.5em;
  font-size: clamp(2.25rem, 5vw, 4.35rem);
  line-height: 1.16;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 48rem;
  font-size: 1.08rem;
  margin: 0;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
}

.hero-points li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0.32rem 0.78rem;
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.94rem;
}

.hero-call {
  display: grid;
  align-content: center;
  gap: 0.16rem;
  border-radius: 8px;
  background: var(--green-dark);
  color: #fff;
  padding: 1rem 1.1rem;
  border-bottom: 6px solid var(--gold);
}

.hero-call span {
  color: var(--gold-soft);
  font-weight: 800;
  font-size: 0.9rem;
}

.hero-call a {
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 900;
  text-decoration: none;
}

.hero-call small {
  color: rgba(255, 255, 255, 0.86);
}

.section-label {
  color: var(--coral);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero .section-label {
  color: var(--green-dark);
}

.reserve-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 6px;
  padding: 0.65rem 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  color: #17241f;
  box-shadow: 0 10px 22px rgba(100, 73, 10, 0.16);
}

.button.secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--green-dark);
}

section {
  padding: 4.5rem 1.25rem;
}

.section-heading {
  max-width: 1180px;
  margin: 0 auto 1.8rem;
}

h2 {
  margin: 0.1rem 0 0.7rem;
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.22rem;
  line-height: 1.45;
}

.intro-grid,
.course-grid,
.flow-list,
.access-grid,
.news-list,
.instagram-grid {
  max-width: 1180px;
  margin: 0 auto;
}

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

.intro-grid article,
.news-list article,
.instagram-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 6px solid var(--gold);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 10px 20px rgba(38, 32, 20, 0.05);
}

.visit-flow {
  background:
    linear-gradient(180deg, #fffaf0, #fff),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(214, 166, 45, 0.1) 34px 36px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 260px);
  align-items: center;
  gap: 1.25rem;
  max-width: 1180px;
  margin: 0 auto;
}

.flow-layout .flow-list {
  max-width: none;
  margin: 0;
}

.flow-illustration {
  display: grid;
  place-items: center;
  min-height: 220px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 54%, rgba(244, 223, 155, 0.82), rgba(255, 250, 240, 0) 63%);
}

.flow-illustration img {
  width: min(100%, 250px);
  filter: drop-shadow(0 12px 18px rgba(38, 32, 20, 0.12));
}

.flow-list li {
  position: relative;
  min-height: 100%;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.25rem 1.25rem 1.25rem 4.2rem;
  box-shadow: 0 10px 20px rgba(38, 32, 20, 0.05);
}

.flow-list span {
  position: absolute;
  left: 1.2rem;
  top: 1.25rem;
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background: var(--green-dark);
  color: var(--gold-soft);
  font-weight: 900;
}

.flow-list strong {
  display: block;
  color: var(--green-dark);
  font-size: 1.08rem;
}

.flow-list p {
  margin: 0.35rem 0 0;
}

.courses {
  background: #f8edcf;
}

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

.course-card {
  min-height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-mark {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.1rem;
  padding: 0.9rem 1.2rem;
  background:
    linear-gradient(90deg, var(--gold), var(--gold-soft));
  color: rgba(32, 37, 33, 0.74);
  font-size: 2.15rem;
  font-weight: 900;
}

.card-mark::after {
  content: "訪問ケア";
  font-size: 0.86rem;
  color: var(--green-dark);
}

.course-card div {
  padding: 1.2rem;
}

.course-card.featured {
  border: 3px solid var(--green);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: 2rem;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.paper-panel {
  display: grid;
  place-items: center;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 240, 0.92)),
    repeating-linear-gradient(0deg, transparent 0 50px, rgba(214, 166, 45, 0.28) 50px 98px, transparent 98px 148px);
  box-shadow: var(--shadow);
  text-align: center;
}

.paper-panel strong {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--gold);
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.2;
}

.paper-panel span {
  color: var(--green-dark);
  font-weight: 800;
}

.check-list {
  padding-left: 1.4rem;
}

.check-list li + li {
  margin-top: 0.25rem;
}

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

.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: 1.25rem;
}

.hours {
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: #fff;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.7rem;
  text-align: center;
}

th {
  background: var(--gold-soft);
}

.news-list {
  display: grid;
  gap: 0.8rem;
}

.instagram-preview {
  background: #fffaf0;
}

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

.instagram-grid article {
  border-top-color: var(--coral);
}

.instagram-grid span {
  display: inline-flex;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--green-dark);
  padding: 0.25rem 0.72rem;
  font-weight: 800;
  font-size: 0.86rem;
}

.reserve {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1180px;
  margin: 4rem auto;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(25, 61, 45, 0.98), rgba(47, 109, 79, 0.94));
  color: #fff;
  border-bottom: 8px solid var(--gold);
}

.reserve .section-label {
  color: var(--gold-soft);
}

.reserve .button.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #fff;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  background: #17241f;
  color: #fff;
  padding: 2rem max(1.25rem, calc((100vw - 1180px) / 2));
}

.site-footer a {
  color: #fff;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-content: start;
}

@media (max-width: 860px) {
  .header-main,
  .site-footer,
  .reserve {
    display: grid;
    justify-items: start;
  }

  .header-contact {
    justify-items: start;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav ul {
    display: none;
    padding-top: 0.75rem;
  }

  .site-nav ul.is-open {
    display: grid;
  }

  .hero {
    display: block;
    padding: 0;
  }

  .hero-media {
    width: 100%;
    max-width: 100%;
    background-size: 62% auto;
  }

  .hero-copy {
    display: grid;
    grid-template-columns: 1fr;
    padding: 1.25rem 1.1rem 1.6rem;
  }

  .hero-points {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-points li {
    border-radius: 8px;
  }

  .intro-grid,
  .course-grid,
  .flow-list,
  .flow-layout,
  .split,
  .access-grid,
  .instagram-grid {
    grid-template-columns: 1fr;
  }

  .flow-illustration {
    min-height: 160px;
  }

  .flow-illustration img {
    width: min(72%, 220px);
  }

  section {
    padding: 3.25rem 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .button {
    width: 100%;
  }

  table {
    min-width: 0;
  }

  th,
  td {
    padding: 0.55rem 0.45rem;
  }
}
