body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 300;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--color-text);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding-sp);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--container-padding-tb);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--container-padding-pc);
  }
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  position: relative;
  padding-block: var(--section-gap-sp);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--section-gap-tb);
  }
}

@media (min-width: 1024px) {
  .section {
    padding-block: var(--section-gap-pc);
  }
}

.section--surface {
  background: var(--color-surface);
}

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

.section--fullbleed {
  width: 100%;
}

.section-seam {
  position: relative;
  width: 100%;
  height: var(--seam-h);
  background: var(--color-bg);
  overflow: hidden;
  line-height: 0;
}

.section-seam[data-to="surface"] {
  background: var(--color-surface);
}

.section-seam::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-surface);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.section-seam[data-from="bg"]::before {
  background: var(--color-bg);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 55%, white);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  width: 154px;
  height: auto;
}

@media (min-width: 768px) {
  .site-logo img {
    width: 180px;
  }
}

@media (min-width: 1024px) {
  .site-logo img {
    width: 275px;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 8px 32px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-desktop a:not(.btn) {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}

.nav-desktop a:not(.btn):hover {
  color: var(--color-primary-dark);
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (min-width: 1024px) {
  .header-actions {
    display: none;
  }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 0;
  background: var(--color-primary-soft);
  font-size: 22px;
  line-height: 1;
  color: var(--color-text);
}

.menu-toggle__bars {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  box-shadow: 0 -6px 0 var(--color-text), 0 6px 0 var(--color-text);
}

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

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  background: var(--color-surface);
  padding: 12px 20px max(16px, env(safe-area-inset-bottom));
}

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

.nav-mobile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.nav-mobile__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.nav-mobile__list a {
  display: block;
  padding: 10px 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 50%, white);
}

.nav-mobile__cta {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 12px;
}

body.is-menu-open {
  overflow: hidden;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 16px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.btn--compact {
  min-height: 40px;
  padding: 10px 18px;
  font-size: 15px;
}

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

.btn--line:hover {
  background: var(--color-line-dark);
}

/* SPでは非表示（.btn の display より後・詳細度高め） */
.btn.header-actions__line {
  display: none;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .btn.header-actions__line {
    display: inline-flex;
  }
}

.btn--ghost-light {
  border: 1.5px solid #fff;
  color: #fff;
  background: transparent;
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--entry-light {
  background: #fff;
  color: var(--color-line);
  min-height: 56px;
  padding: 16px 40px;
  font-size: 18px;
}

.btn--entry-light:hover {
  opacity: 0.92;
}

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

.btn--primary:hover {
  background: var(--color-primary-dark);
}

.btn--block {
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal][data-reveal-delay="1"] {
  transition-delay: 80ms;
}

[data-reveal][data-reveal-delay="2"] {
  transition-delay: 160ms;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
