/* ===== Design tokens ===== */
:root {
  --color-primary: #ff7a59;
  --color-primary-dark: #e8613f;
  --color-accent: #3a8fb7;
  --color-bg: #fffaf5;
  --color-bg-alt: #fff1e6;
  --color-text: #3a2e2a;
  --color-text-light: #7a6a63;
  --color-white: #ffffff;
  --color-border: #f0ddd0;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(58, 46, 42, 0.08);
  --max-width: 1100px;
  --font-base: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.sp-only { display: inline; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 122, 89, 0.35);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
}
.btn-outline {
  background: #fff;
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-bg-alt);
}
.btn-header-call {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 16px;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.header-call-number {
  display: none;
}
.header-inner {
  flex-wrap: nowrap;
}
.logo {
  min-width: 0;
}
.logo-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 245, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.logo-icon {
  font-size: 1.5rem;
}
.logo-text strong {
  color: var(--color-primary-dark);
}
.site-nav {
  display: none;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
}
.site-nav a {
  text-decoration: none;
  color: var(--color-text);
}
.site-nav a:hover {
  color: var(--color-primary-dark);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, var(--color-bg-alt) 0%, var(--color-bg) 60%);
  padding: 56px 0 48px;
  text-align: center;
}
.hero-eyebrow {
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
  font-size: 0.9rem;
}
.hero h1 {
  font-size: 2rem;
  line-height: 1.4;
  margin: 0 0 16px;
  color: var(--color-text);
}
.hero-sub {
  font-size: 1.05rem;
  margin: 0 0 12px;
  color: var(--color-text-light);
}
.hero-tag {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-primary-dark);
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.hero-actions .btn {
  width: 100%;
  max-width: 320px;
}

/* ===== Sections ===== */
.section {
  padding: 56px 0;
}
.section-alt {
  background: var(--color-bg-alt);
}
.section-title {
  text-align: center;
  font-size: 1.5rem;
  margin: 0 0 12px;
  position: relative;
}
.section-lead {
  text-align: center;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto 32px;
}
.area-list {
  font-weight: 700;
  color: var(--color-text);
  font-size: 1.1rem;
}

/* ===== Grid / Cards ===== */
.grid {
  display: grid;
  gap: 20px;
}
.grid-4 {
  grid-template-columns: 1fr;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  text-align: center;
}
.card h3 {
  margin: 4px 0 8px;
  font-size: 1.05rem;
}
.card p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.95rem;
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.card-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  margin-bottom: 12px;
}
.card-recommend p {
  color: var(--color-text);
  font-weight: 600;
}

/* ===== Price table ===== */
.table-wrap {
  overflow-x: auto;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.price-table th,
.price-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}
.price-table thead th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.price-table tbody tr:last-child td {
  border-bottom: none;
}
.price-table .row-featured {
  background: var(--color-bg-alt);
}
.course-name {
  font-weight: 700;
}
.price {
  font-weight: 700;
  color: var(--color-primary-dark);
  white-space: nowrap;
}
.menu-note {
  color: var(--color-text-light);
  font-size: 0.85rem;
  margin-top: 16px;
  text-align: center;
}

/* Mobile stacked table */
@media (max-width: 640px) {
  .price-table thead {
    display: none;
  }
  .price-table, .price-table tbody, .price-table tr, .price-table td {
    display: block;
    width: 100%;
  }
  .price-table tr {
    padding: 16px;
    border-bottom: 8px solid var(--color-bg);
  }
  .price-table td {
    border: none;
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  .price-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--color-text-light);
    flex-shrink: 0;
  }
}

/* ===== Flow ===== */
.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  counter-reset: flow;
}
.flow-list li {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  position: relative;
  padding-top: 44px;
}
.flow-num {
  position: absolute;
  top: -14px;
  left: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.flow-list h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}
.flow-list p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.92rem;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.contact-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}
.contact-card h3 {
  margin: 4px 0 6px;
  font-size: 1rem;
}
.contact-value {
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.contact-value-small {
  font-size: 0.85rem;
  word-break: break-all;
}
.contact-cta {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.booking-panel,
.form-panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  margin-bottom: 24px;
}
.booking-panel h3,
.form-panel h3 {
  margin-top: 0;
  font-size: 1.1rem;
}
.booking-note {
  color: var(--color-text-light);
  font-size: 0.92rem;
}

/* ===== Form ===== */
.form-row {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-row label {
  font-weight: 700;
  font-size: 0.9rem;
}
.required {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
  font-weight: 700;
}
.form-row input,
.form-row textarea {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-bg);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}
.btn-form-submit {
  width: 100%;
  border: none;
}
.form-note {
  color: var(--color-text-light);
  font-size: 0.8rem;
  margin-top: 12px;
  margin-bottom: 0;
}

/* ===== Footer ===== */
.site-footer {
  background: #2f2622;
  color: #e9dcd4;
  padding: 40px 0;
  text-align: center;
}
.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}
.footer-inner p {
  margin: 4px 0;
  font-size: 0.9rem;
}
.footer-inner a {
  display: inline-block;
  margin-top: 8px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}
.footer-copy {
  margin-top: 16px !important;
  color: #a8968c;
  font-size: 0.8rem !important;
}

/* ===================================================
   Tablet / Desktop (PC) breakpoint
   =================================================== */
@media (min-width: 768px) {
  .sp-only { display: none; }

  .site-nav {
    display: block;
  }

  .header-call-number {
    display: inline;
  }

  .hero {
    padding: 88px 0 72px;
  }
  .hero h1 {
    font-size: 2.75rem;
  }
  .hero-sub {
    font-size: 1.2rem;
  }
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
  .hero-actions .btn {
    width: auto;
  }

  .section-title {
    font-size: 1.9rem;
  }

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

  .flow-list {
    grid-template-columns: repeat(4, 1fr);
  }

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

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.1rem;
  }
}
