/* Service Page Styles */
/* Base styles are loaded from base.css */


/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  --color-primary: #5d7d91;
  --color-primary-light: #8eadc3;
  --color-bg: #fcfcfb;
  --color-white: #ffffff;
  --color-slate-900: #0f172a;
  --color-slate-600: #475569;
  --color-slate-400: #94a3b8;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;

  --font-main: 'Inter', 'Noto Sans JP', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-slate-900);
  line-height: 1.6;
  overflow-x: hidden;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Skip Link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 20px;
  z-index: 9999;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Loading */
.loading {
  position: fixed;
  inset: 0;
  background: var(--color-white);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading__spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--color-slate-100);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 10px 20px rgba(93, 125, 145, 0.2);
}

.btn--primary:hover {
  background-color: #4a6a7e;
  transform: translateY(-2px);
}

.btn--outline {
  background-color: var(--color-white);
  border-color: var(--color-slate-900);
  color: var(--color-slate-900);
}

.btn--outline:hover {
  background-color: var(--color-slate-900);
  color: var(--color-white);
}

.btn--white {
  background-color: var(--color-white);
  color: var(--color-slate-900);
  border: 2px solid var(--color-slate-200);
}

.service-detail {
  padding-top: 80px;
}

.service-detail__nav-top {
  padding: 24px;
}

.price__container {
  padding: 0 18px;
}

/* Header */
.page-header {
  text-align: center;
  padding: 40px 0 100px;
}

@media screen and (max-width : 768px) {
  .page-header {
    padding: 0 0 20px;
  }
}

.page-header__title {
  font-size: 36px;
  margin: 0 0 16px;
}

.page-header__subtitle {
  color: #888;
}

.page-header__line {
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 24px auto 0;
}

/* Sections */
.section-flow {
  margin-bottom: 120px;
}

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading__en {
  display: block;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 14px;
  margin-bottom: 8px;
}

.section-heading__ja {
  font-size: 24px;
  font-weight: 700;
}



.price-note {
  text-align: center;
  font-size: 12px;
  color: #888;
  margin-top: 30px;
}

/* Flow Styles */
.flow-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.flow-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #eee;
  transform: translateX(-50%);
}

@media screen and (max-width : 768px) {
  .flow-line {
    display: block;
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #eee;
    transform: translateX(-50%);
  }
}

.flow-step {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
}

.flow-step__content {
  flex: 1;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  position: relative;
}

.flow-step__number {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 12px;
  display: block;
  margin-bottom: 8px;
}

.flow-step__title {
  font-size: 18px;
  margin: 0 0 12px;
}

.flow-step__desc {
  font-size: 14px;
  color: #666;
}

.flow-step__marker {
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  border: 6px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #eee;
  position: relative;
  z-index: 2;
  margin: 0 30px;
  flex-shrink: 0;
}

@media screen and (max-width : 768px) {
  .flow-step__marker {
    width: 16px;
    height: 16px;
    border: 4px solid #fff;
  }
}

.flow-step__spacer {
  flex: 1;
}

@media screen and (max-width : 768px) {
  .flow-step__spacer {
    flex: 0;
  }
}

/* CTA */
.cta-section {
  text-align: center;
  background-color: rgba(142, 173, 195, 0.1);
  padding: 80px 20px;
  border-radius: 24px;
  margin-bottom: 80px;
}

.cta-section__title {
  font-size: 24px;
  margin-bottom: 16px;
}

.cta-section__desc {
  margin-bottom: 32px;
  color: #666;
}

.button--lg {
  padding: 16px 40px;
  font-size: 18px;
}

@media (max-width: 768px) {
  .flow-step {
    flex-direction: row;
    align-items: center;
  }

  .flow-step__marker {
    margin: 0 16px 0 0;
    order: 1;
  }

  .flow-step__content {
    order: 2;
  }

  .flow-step--reverse {
    flex-direction: row;
  }
}


/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing__container {
  max-width: 1100px;
  margin: 0 auto;
}

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.pricing-card {
  background: var(--color-white);
  border-radius: 24px;
  border: 2px solid var(--color-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card--featured {
  border-color: var(--color-primary-light);
  box-shadow: 0 30px 60px rgba(142, 173, 195, 0.2);
  transform: scale(1);
  z-index: 2;
}

.pricing-card__badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: 0 22px 0 16px;
  font-size: 12px;
  font-weight: 900;
}

.pricing-card__header {
  padding: 48px 32px 32px;
  text-align: center;
  border-bottom: 1px solid gray;
}

.pricing-card--featured .pricing-card__header {
  background: rgba(142, 173, 195, 0.1);
}

.pricing-card__title {
  font-size: 18px;
  font-weight: 900;
  color: var(--color-slate-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.pricing-card--featured .pricing-card__title {
  color: var(--color-primary);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.pricing-card__currency {
  font-size: 20px;
  font-weight: 700;
}

.pricing-card__amount {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.pricing-card__unit {
  color: var(--color-slate-400);
  font-weight: 700;
}

.pricing-card__body {
  padding: 40px 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.pricing-card__description {
  font-size: 15px;
  margin-bottom: 32px;
  font-weight: 500;
  color: var(--color-slate-600);
}

.pricing-card__info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--color-white);
  border: 1px solid gray;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 40px;
}

.pricing-card__info--dark {
  background: var(--color-slate-900);
  color: var(--color-white);
  border-color: var(--color-slate-900);
}

.pricing-card__info-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
}

.pricing-card__list-title {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-slate-400);
  letter-spacing: 0.2em;
  text-align: center;
  border-bottom: 1px solid var(--color-slate-100);
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.pricing-card__features {
  margin-bottom: 48px;
  flex-grow: 1;
}

.pricing-card__feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 0;
}

.pricing-card__feature-item::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--color-slate-100);
  color: var(--color-slate-400);
  border-radius: 50%;
  font-size: 10px;
}

.pricing-card--featured .pricing-card__feature-item::before {
  background: var(--color-primary-light);
  color: var(--color-white);
}

.pricing-card__action .btn {
  width: 100%;
}

@media (min-width: 768px) {
  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
    align-items: stretch;
  }

  .pricing-card--featured {
    transform: scale(1.05);
    margin-left: 10px;
  }
}

/* ==========================================================================
   Comparison Table Section
   ========================================================================== */
.comparison {
  padding: 80px 0;
}

.comparison__container {
  max-width: 900px;
  margin: 0 auto;
}

.comparison__header {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.comparison__title {
  font-size: 32px;
  font-weight: 900;
}

.comparison__scroll-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-slate-200);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-slate-400);
}

.comparison__table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--color-white);
  border-radius: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-slate-200);
}

.comparison-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.comparison-table__row {
  border-bottom: 1px solid gray;
}

.comparison-table__row:last-of-type {
  border-bottom: 0;
}

.comparison-table__cell {
  padding: 24px 32px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.comparison-table__cell--head {
  background: var(--color-slate-900);
  color: var(--color-white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 32px;
  border-right: 1px solid #ffffff;
}

.comparison-table__cell--head:last-of-type {
  border-right: none;
}

.comparison-table__cell--featured {
  background: var(--color-primary);
}

.comparison-table__cell--highlight {
  background: rgba(142, 173, 195, 0.08);
  font-weight: 900;
}

.comparison__footer-note {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: var(--color-slate-400);
  font-style: italic;
}

@media (min-width: 768px) {
  .comparison__header {
    flex-direction: row;
    justify-content: space-between;
  }

  .comparison__scroll-hint {
    display: none;
  }

  .comparison__footer-note {
    display: none;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid var(--color-slate-200);
}

.footer__copyright {
  font-size: 12px;
  color: var(--color-slate-400);
  font-weight: 700;
}

/* Utils */
.u-hidden-mobile {
  display: none;
}

@media (min-width: 768px) {
  .u-hidden-mobile {
    display: block;
  }
}