:root {
  --bg: #f7f3ea;
  --surface: #fffdf8;
  --surface-2: #f2ece0;
  --text: #20201b;
  --muted: #5f5c53;
  --brand: #1f6f62;
  --brand-strong: #125349;
  --accent: #c8602f;
  --accent-soft: #f2c8aa;
  --line: #d8d0c2;
  --ok: #1f7a43;
  --shadow: 0 14px 34px rgba(32, 32, 27, 0.12);
  --radius: 16px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(242, 200, 170, 0.36), transparent 36%),
    radial-gradient(circle at 90% 10%, rgba(31, 111, 98, 0.16), transparent 38%),
    var(--bg);
  line-height: 1.7;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5rem;
  line-height: 1.3;
  font-family: "Shippori Mincho B1", "Yu Mincho", serif;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--brand-strong);
}

a:hover,
a:focus-visible {
  text-decoration-thickness: 2px;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
  z-index: 2000;
  background: var(--text);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: transform 0.28s ease;
}

.site-header.hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.brand strong {
  color: var(--brand);
  font-size: 1.07rem;
}

.header-meta {
  display: none;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.phone-link {
  font-weight: 700;
  color: var(--brand-strong);
  text-decoration: none;
}

.nav-toggle {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 0.5rem 0.7rem;
  font-weight: 700;
}

.global-nav {
  display: none;
  width: 100%;
  padding: 0.5rem 0 1rem;
}

.global-nav.open {
  display: block;
}

.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.global-nav a {
  display: block;
  padding: 0.62rem 0.74rem;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}

.global-nav a[aria-current="page"] {
  background: var(--surface-2);
  font-weight: 700;
}

.header-cta {
  display: none;
}

.hero {
  padding: 3.6rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  gap: 1.2rem;
}

.hero-copy h1 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
}

.hero-kicker {
  color: var(--brand-strong);
  font-weight: 700;
}

.hero-media {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    linear-gradient(130deg, rgba(31, 111, 98, 0.5), rgba(31, 111, 98, 0.05)),
    url("assets/home-hero.png") center/cover;
}

.hero-media span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  color: #fff;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #a84c24;
}

.btn-outline {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}

.section {
  padding: 2.2rem 0;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title small {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.card h3,
.card h4 {
  margin-bottom: 0.4rem;
}

.badge {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.slider {
  position: relative;
}

.slide {
  display: none;
}

.slide.active {
  display: block;
}

.slide figure {
  margin: 0;
}

.slide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.slider-controls {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.slider-controls button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: var(--surface);
}

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

th {
  background: var(--surface-2);
}

.timeline {
  border-left: 3px solid var(--line);
  margin-left: 0.4rem;
  padding-left: 1rem;
}

.timeline-item {
  margin-bottom: 1rem;
}

.timeline-item strong {
  color: var(--brand-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.8rem 0;
  font-weight: 700;
}

.faq-a {
  padding: 0 0 0.8rem;
  color: var(--muted);
}

.form-row {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

label {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.6rem 0.7rem;
  font: inherit;
}

textarea {
  min-height: 130px;
}

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.notice {
  border-left: 4px solid var(--ok);
  background: #eff9f2;
  color: #144d2a;
  padding: 0.7rem;
  border-radius: 8px;
  margin-top: 0.8rem;
}

.footer-cta {
  padding: 2.3rem 0;
  text-align: center;
  background: linear-gradient(135deg, #f6e8d8, #f1d4be);
}

.site-footer {
  background: #1f1c18;
  color: #f1ece2;
  padding: 2rem 0 1rem;
}

.footer-grid {
  display: grid;
  gap: 1rem;
}

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

.map-embed {
  width: 100%;
  border: 0;
  border-radius: 12px;
  min-height: 220px;
}

.copy {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  color: #d9d2c6;
}

.hero-blog {
  padding: 3.8rem 0 2.7rem;
  background: linear-gradient(140deg, rgba(31, 111, 98, 0.14), rgba(200, 96, 47, 0.12));
}

.blog-list {
  margin: 0;
  padding-left: 1.1rem;
}

.blog-card-popular {
  border-top: 4px solid var(--accent);
}

.blog-article section {
  margin-top: 1.35rem;
}

.blog-article-cta {
  margin-top: 1.4rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.line-fixed-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  border-radius: 999px;
  background: #14a247;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.72rem 1rem;
  box-shadow: 0 8px 20px rgba(20, 162, 71, 0.35);
}

.line-fixed-cta:hover,
.line-fixed-cta:focus-visible {
  background: #0f8238;
}

.line-popup {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 4.6rem;
  z-index: 1200;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.85rem;
}

.line-popup p {
  margin-bottom: 0.6rem;
}

.line-popup-close {
  margin-top: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@media (min-width: 780px) {
  .nav-toggle {
    display: none;
  }

  .header-inner {
    gap: 0.8rem;
  }

  .header-meta {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .global-nav {
    display: block;
    width: auto;
    padding: 0;
    margin-left: auto;
  }

  .global-nav ul {
    display: flex;
    align-items: center;
    gap: 0.1rem;
  }

  .global-nav a {
    padding: 0.5rem 0.65rem;
    font-size: 0.95rem;
  }

  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }

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

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

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

  .line-popup {
    left: auto;
    right: 1rem;
    width: min(360px, calc(100% - 2rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto;
  }
}
