/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --yellow-400: #facc15;
  --yellow-500: #eab308;
  --yellow-600: #ca8a04;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --green-600: #16a34a;
  --red-500: #ef4444;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

html { font-size: 16px; scroll-behavior: smooth; }

/* Japanese natural line-break rules */
body {
  line-break: strict;
  overflow-wrap: break-word;
  word-break: normal;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container-xl {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-md {
  max-width: 896px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container-xl, .container-md { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .container-xl, .container-md { padding: 0 2rem; }
}

.sm-hidden { display: none; }
.sm-only   { display: none; }

@media (max-width: 639px) {
  .sm-hidden { display: inline; }
  .sm-only   { display: inline; }
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn--sm  { font-size: 0.875rem; padding: 0.5rem 1.25rem; }
.btn--lg  { font-size: 1.125rem; padding: 1rem 2.5rem; }
.btn--full { width: 100%; }

.btn--primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-xl);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-800));
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  transform: scale(1.03);
}

.btn--outline {
  background: rgba(255,255,255,0.9);
  color: var(--blue-600);
  border-color: var(--blue-600);
  box-shadow: var(--shadow-lg);
}
.btn--outline:hover {
  background: var(--blue-50);
  box-shadow: var(--shadow-xl);
}

.btn--white {
  background: var(--white);
  color: var(--blue-600);
  border-color: transparent;
  font-weight: 700;
}
.btn--white:hover { background: var(--blue-50); }

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline-white:hover { background: rgba(255,255,255,0.1); }

/* ===========================
   HEADER
=========================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 100;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header__logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-600);
  letter-spacing: -0.02em;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__nav-link {
  font-size: 0.9375rem;
  color: var(--gray-700);
  font-weight: 500;
  transition: color 0.2s;
}
.header__nav-link:hover { color: var(--blue-600); }

.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 767px) {
  .header__nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
  }
  .header__nav.is-open { display: flex; }
  .header__nav-link { padding: 0.75rem 0; border-bottom: 1px solid var(--gray-100); }
  .header__hamburger { display: flex; }
}

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  padding: 8rem 1rem 5rem;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, rgba(254,249,238,0.3) 100%);
  overflow: hidden;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.7) 50%, rgba(239,246,255,0.8) 100%);
}

.hero__deco {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
}
.hero__deco--yellow {
  top: 5rem; right: 2.5rem;
  width: 18rem; height: 18rem;
  background: rgba(253,224,71,0.2);
}
.hero__deco--blue {
  bottom: 2.5rem; left: 2.5rem;
  width: 24rem; height: 24rem;
  background: rgba(147,197,253,0.2);
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 56rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--blue-600), #3b82f6);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.hero__title {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.hero__highlight {
  color: var(--yellow-600);
  text-decoration: underline;
  text-decoration-color: var(--yellow-500);
  text-decoration-thickness: 4px;
  text-underline-offset: 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.hero__desc {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hero__desc p {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--gray-800);
  font-weight: 500;
  line-height: 1.6;
  text-shadow: 0 1px 1px rgba(0,0,0,0.04);
}
.hero__desc-accent {
  color: var(--yellow-600);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--yellow-500);
  text-decoration-thickness: 4px;
  text-underline-offset: 4px;
}

.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero__check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.95);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  color: var(--gray-700);
  backdrop-filter: blur(4px);
}
.check-icon { color: var(--green-600); flex-shrink: 0; }

/* ===========================
   SECTION COMMON
=========================== */
.section { padding: 5rem 1rem; }
.section--white { background: var(--white); }
.section--gray  { background: var(--white); }
.section--features { background: var(--white); }

.section__label {
  color: var(--blue-600);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 3rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.title--yellow-underline {
  color: var(--yellow-600);
  text-decoration: underline;
  text-decoration-color: var(--yellow-400);
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
}

/* ===========================
   CARD (shared)
=========================== */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-lg); }

.card__icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--blue-50);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--blue-600);
}

.card__number {
  color: var(--gray-300);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.card__title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.card__text {
  color: var(--gray-600);
  line-height: 1.75;
  font-size: 0.9375rem;
}

/* ===========================
   PROBLEMS
=========================== */
.problems__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .problems__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .problems__grid { grid-template-columns: repeat(4, 1fr); }
}

.problems__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--blue-600);
  font-weight: 600;
  font-size: 1rem;
}
.problems__arrow svg { color: var(--blue-600); }

/* ===========================
   COMPARISON
=========================== */
.comparison__wrap {
  overflow-x: auto;
}

.comparison__table {
  min-width: 600px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.comparison__head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--gray-900);
}

.comparison__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.comparison__row--even { background: var(--gray-50); }
.comparison__row--odd  { background: var(--white); }

.comparison__cell {
  padding: 1rem 1.5rem;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comparison__cell--blue {
  background: var(--blue-600);
  text-align: center;
  justify-content: center;
}

.comparison__cell--label {
  font-weight: 600;
  color: var(--gray-900);
}

.comparison__cell--ours {
  background: rgba(239,246,255,0.5);
  color: var(--gray-900);
  justify-content: center;
}

.comparison__cell--other {
  color: var(--gray-600);
  justify-content: center;
}

.icon-check { color: var(--blue-600); flex-shrink: 0; }
.icon-x     { color: var(--red-500);  flex-shrink: 0; }

/* ===========================
   FEATURES
=========================== */
.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .features__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Feature card accent variants */
.card--blue {
  background: var(--blue-600);
  border-color: transparent;
}
.card--blue .card__number { color: rgba(255,255,255,0.5); }
.card--blue .card__icon-wrap {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}
.card--blue .card__title { color: var(--white); }
.card--blue .card__text  { color: rgba(255,255,255,0.85); }

.card--dark {
  background: #0f172a;
  border-color: transparent;
}
.card--dark .card__number { color: rgba(255,255,255,0.3); }
.card--dark .card__icon-wrap {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.card--dark .card__title { color: var(--white); }
.card--dark .card__text  { color: rgba(255,255,255,0.7); }

/* ===========================
   HOW IT WORKS
=========================== */
.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 18rem;
}

.step__num {
  width: 4rem;
  height: 4rem;
  background: var(--blue-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.step__icon-wrap {
  width: 4rem;
  height: 4rem;
  background: var(--blue-50);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--blue-600);
}

.step__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.step__text {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.step__arrow {
  font-size: 1.5rem;
  color: var(--gray-300);
  display: none;
}

@media (min-width: 768px) {
  .steps {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
  }
  .step__arrow { display: block; margin-top: 1.5rem; }
}

/* ===========================
   PRICING
=========================== */
.section--pricing { background: var(--gray-50); }

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
}

.pricing__card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
}

.pricing__card--featured {
  border-color: var(--blue-600);
  border-width: 4px;
}

.pricing__badge {
  position: absolute;
  top: -0.875rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-600);
  color: var(--white);
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing__label {
  text-align: center;
  color: var(--gray-600);
  font-weight: 600;
  margin-bottom: 1rem;
}

.pricing__price {
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 2rem;
}
.pricing__price--gray { color: var(--gray-900); }
.pricing__price--blue { color: var(--blue-600); }

.pricing__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.pricing__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-700);
}
.pricing__list .icon-check { color: var(--green-600); }

.pricing__note {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-top: 2rem;
}

/* ===========================
   FAQ
=========================== */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq__item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 0 1.5rem;
  overflow: hidden;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  list-style: none;
  gap: 1rem;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--blue-600);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq__item[open] .faq__question::after {
  content: '−';
}

.faq__answer {
  color: var(--gray-600);
  line-height: 1.75;
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
}

/* ===========================
   CTA
=========================== */
.cta {
  background: linear-gradient(to bottom, var(--blue-600), var(--blue-700));
  color: var(--white);
}

.cta__header {
  text-align: center;
  margin-bottom: 3rem;
}

.cta__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta__sub {
  font-size: 1.25rem;
  color: #bfdbfe;
}

.cta__accent {
  color: var(--yellow-400);
  text-decoration: underline;
  text-decoration-color: var(--yellow-400);
  text-decoration-thickness: 4px;
  text-underline-offset: 4px;
}

.cta__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cta__grid { grid-template-columns: repeat(3, 1fr); }
}

.cta__card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.cta__icon-wrap {
  width: 4rem;
  height: 4rem;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  margin-bottom: 0.25rem;
}

.cta__card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.cta__card p {
  color: #bfdbfe;
  font-size: 0.9375rem;
  line-height: 1.6;
  flex: 1;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 3rem 1rem 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer__inner { grid-template-columns: repeat(3, 1fr); }
}

.footer__logo {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer__heading {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__links a { transition: color 0.2s; }
.footer__links a:hover { color: #60a5fa; }

.footer__mail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}
.footer__mail:hover { color: #60a5fa; }

.footer__bottom {
  border-top: 1px solid var(--gray-800);
  padding: 2rem 0;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* ===========================
   RESPONSIVE TWEAKS
=========================== */
@media (max-width: 639px) {
  .hero { padding: 6rem 1rem 4rem; }
  .hero__btns { flex-direction: column; }
  .btn--lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
  .section { padding: 3.5rem 1rem; }
  .section__title { margin-bottom: 2rem; }
  .comparison__cell { padding: 0.75rem 1rem; font-size: 0.875rem; }
}
