@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500;600;700&display=swap");

:root {
  --deera-mincho: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --deera-paper: #f7f3ed;
  --deera-ink: #172338;
  --deera-navy-soft: #21344e;
  --deera-gold-soft: #c8a35b;
  --deera-border: rgba(200, 163, 91, 0.22);
  --deera-shadow: 0 24px 60px rgba(17, 30, 52, 0.10);
}

html, body,
button, input, select, textarea,
nav, a, p, span, li, dt, dd, small, label,
h1, h2, h3, h4, h5, h6 {
  font-family: var(--deera-mincho) !important;
}

body {
  color: var(--deera-ink);
  letter-spacing: 0.01em;
}

p, li, dd, dt, span, a, button, input, select, textarea, summary {
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-wrap: balance;
}

.hero-title-kw,
.hero-title-main,
.hero-title-sub {
  font-family: var(--deera-mincho) !important;
}

.section-label,
.about-label,
.deera-v9-eyebrow {
  letter-spacing: 0.18em;
  font-weight: 700;
}

.features,
.services,
.deera-v9-section,
.about,
.pricing-faq,
.contact-section {
  padding-top: clamp(5rem, 8vw, 8rem) !important;
  padding-bottom: clamp(5rem, 8vw, 8rem) !important;
}

.deera-v9-section + .features,
.features + .services,
.services + .about,
.about + .deera-v9-note,
.deera-v9-note + .pricing-faq {
  margin-top: 0 !important;
}

.features .section-container,
.services .section-container,
.about .about-inner,
.deera-v9-inner,
.pricing-faq .section-container,
.contact-section .section-container {
  max-width: 1180px;
  margin-inline: auto;
}

.features .section-label,
.features .section-title,
.features .section-title-line,
.services .section-label,
.services .section-title,
.services .section-title-line,
.services .deera-v11-service-guide {
  text-align: center !important;
  justify-self: center;
  margin-left: auto;
  margin-right: auto;
}

.features {
  background: linear-gradient(180deg, #14233a 0%, #1f314f 100%);
}

.features .section-container {
  display: block;
}

.features-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
}

.feature-btn {
  padding: 1.75rem 1.5rem;
}

.feature-btn h3 {
  font-size: 1.15rem;
}

.feature-body {
  padding: 0 1.5rem 1.5rem;
}

.services {
  background: linear-gradient(180deg, #fbfaf7 0%, #f5f1ea 100%);
}

.services .section-container {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-areas:
    "label label"
    "title title"
    "line line"
    "guide guide"
    "tabs panel";
  column-gap: 1.5rem;
  row-gap: 1rem;
  align-items: start;
}

.services .section-label { grid-area: label; }
.services .section-title { grid-area: title; }
.services .section-title-line { grid-area: line; }
.services .deera-v11-service-guide { grid-area: guide; max-width: 48rem; font-size: 0.98rem; color: #5f6670; margin-bottom: 1rem; }
.services .client-tabs { grid-area: tabs; }
.services .client-panel.active { grid-area: panel; }

.client-tabs {
  display: grid;
  gap: 0.9rem;
  align-self: start;
  background: #f7f2ea;
  border: 1px solid var(--deera-border);
  border-radius: 30px;
  padding: 1rem;
  box-shadow: var(--deera-shadow);
  position: sticky;
  top: 108px;
}

.client-tab {
  min-height: 64px;
  border-radius: 18px;
  border: 1px solid rgba(33,52,78,0.10);
  background: rgba(255,255,255,0.92);
  color: var(--deera-ink);
  font-size: 1rem;
  font-weight: 600;
  justify-content: flex-start;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 20px rgba(18, 29, 45, 0.04);
  transition: all .25s ease;
}

.client-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(200,163,91,0.50);
}

.client-tab.active,
.client-tab[aria-selected="true"] {
  background: linear-gradient(135deg, #182942 0%, #2e4a6b 100%);
  border-color: rgba(24,41,66,0.85);
  color: #fff;
  box-shadow: 0 18px 28px rgba(24, 41, 66, 0.22);
}

.client-panel {
  background: #fff;
  border-radius: 32px;
  border: 1px solid rgba(200,163,91,0.18);
  padding: 1.1rem;
  box-shadow: var(--deera-shadow);
}

.svc-item {
  border: 1px solid rgba(200,163,91,0.16);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fbf8f3 100%);
  box-shadow: 0 10px 22px rgba(19, 31, 49, 0.05);
}

.svc-item + .svc-item {
  margin-top: 1rem;
}

.svc-btn {
  padding: 1.35rem 1.4rem;
  gap: 1rem;
}

.svc-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f3ebdd 0%, #ead6ae 100%);
  color: #9d7332;
  flex: 0 0 54px;
}

.svc-btn-text h3 {
  font-size: 1.18rem;
  margin-bottom: 0.35rem;
}

.svc-btn-text p {
  margin: 0;
  font-size: 0.95rem;
  color: #5d6470;
}

.svc-body-inner {
  padding: 0 1.4rem 1.35rem 5.4rem;
}

.svc-detail-link {
  margin-top: 0.8rem;
}

.deera-v9-note {
  background: linear-gradient(180deg, #f8f4ec 0%, #f3eee6 100%);
}

.deera-v9-note .deera-v9-inner,
.deera-v9-section .deera-v9-inner {
  text-align: center;
}

.about {
  background: #ffffff;
}

.about-heading,
.about-label {
  text-align: center;
}

.about-divider {
  margin-inline: auto;
}

.about-message-grid {
  margin-top: 3rem;
  gap: 2.5rem;
}

.about-text-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-block {
  padding: 1.25rem 1.35rem;
  border-radius: 18px;
  background: #faf8f3;
  border: 1px solid rgba(200,163,91,0.16);
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .services .section-container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "title"
      "line"
      "guide"
      "tabs"
      "panel";
  }

  .client-tabs {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .features,
  .services,
  .deera-v9-section,
  .about,
  .pricing-faq,
  .contact-section {
    padding-top: 4.25rem !important;
    padding-bottom: 4.25rem !important;
  }

  .client-tabs {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 24px;
  }

  .client-tab {
    min-height: 56px;
    font-size: 0.92rem;
    padding: 0.85rem 0.95rem;
  }

  .client-panel {
    padding: 0.8rem;
    border-radius: 24px;
  }

  .svc-btn {
    padding: 1.1rem;
    align-items: flex-start;
  }

  .svc-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .svc-btn-text h3 {
    font-size: 1.05rem;
  }

  .svc-body-inner {
    padding: 0 1.1rem 1.1rem 1.1rem;
  }

  .features .section-title,
  .services .section-title,
  .about-heading,
  .deera-v9-title {
    font-size: clamp(1.9rem, 7vw, 2.3rem);
  }
}
