/* ===== Design tokens ===== */
:root {
  --navy: #0d1f4e;
  --accent: #e05a20;
  --bg: #ffffff;
  --surface: #f8f9fc;
  --border: #e8e8e8;
  --text: #0d1f4e;
  --max-width: 960px;
  --nav-height: 60px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Shared layout ===== */
.section {
  padding: 72px 24px;
  border-bottom: 1px solid var(--border);
}
.section--surface { background: var(--surface); }
.section__inner { max-width: var(--max-width); margin: 0 auto; }

.section__label {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 6px;
}
.section__title {
  color: var(--navy);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 28px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.btn:hover { opacity: 0.88; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: #ccc; }

/* ===== Accent rule ===== */
.accent-rule {
  width: 40px;
  height: 2px;
  background: var(--accent);
  border: 0;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 2px solid var(--navy);
}
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: var(--nav-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--navy);
  font-size: 1.05rem;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__links a {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--navy);
  opacity: 0.7;
  transition: opacity 0.15s ease;
}
.nav__links a:hover { opacity: 1; }
.nav__cta {
  background: var(--accent);
  color: #fff !important;
  opacity: 1 !important;
  padding: 7px 14px;
  border-radius: 3px;
}
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
}

/* ===== Language toggle (i18n) ===== */
html[lang="ja"] .i18n-en { display: none !important; }
html[lang="en"] .i18n-ja { display: none !important; }

.nav__right { display: flex; align-items: center; gap: 20px; }
.lang-switch { display: inline-flex; align-items: center; gap: 4px; }
.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--navy);
  background: none;
  border: none;
  border-radius: 4px;
  padding: 4px 7px;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.lang-switch__btn:hover { opacity: 0.8; }
.lang-switch__btn.is-active { opacity: 1; background: var(--surface); }
.lang-switch__btn .flag {
  width: 20px;
  height: 13px;
  display: block;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--border);
}

@media (max-width: 768px) {
  .nav__right { gap: 10px; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 0; width: 100%; }
}

/* ===== Hero ===== */
.hero {
  background: #fff;
  padding: 96px 24px 80px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero__inner { max-width: var(--max-width); margin: 0 auto; }
.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: var(--navy);
  opacity: 0.35;
  margin-bottom: 18px;
}
.hero__title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--navy);
  margin-bottom: 14px;
}
.hero__subtitle {
  font-size: 0.95rem;
  color: var(--navy);
  opacity: 0.45;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__rule { margin: 32px auto 0; }

@media (max-width: 768px) {
  .hero__title { font-size: 1.8rem; }
}

/* ===== Mission ===== */
.mission__body-ja {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--navy);
  opacity: 0.8;
  max-width: 680px;
  margin-bottom: 14px;
}
.mission__body-en {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--navy);
  opacity: 0.8;
  max-width: 680px;
}

/* ===== Service ===== */
.service__intro { max-width: 760px; margin-bottom: 36px; }
.service__intro-ja {
  font-size: 1rem;
  line-height: 1.95;
  color: var(--navy);
  opacity: 0.82;
  margin-bottom: 14px;
}
.service__intro-en {
  font-size: 1rem;
  line-height: 1.95;
  color: var(--navy);
  opacity: 0.82;
}

.service__list { display: flex; flex-direction: column; gap: 20px; }
.service-card {
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  padding: 0;
  cursor: pointer;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.service-card:hover {
  box-shadow: 0 6px 22px rgba(13, 31, 78, 0.12);
  transform: translateY(-2px);
}
.service-card:hover .service-card__more { opacity: 1; }
.service-card__head {
  background: var(--navy);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.service-card__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card__heading { flex: 1; min-width: 0; }
.service-card__name { display: block; color: #fff; font-size: 1.05rem; font-weight: 700; }
.service-card__tagline { display: block; color: rgba(255,255,255,0.55); font-size: 0.78rem; }
.service-card__more {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.service-card__body { display: block; padding: 18px 20px; }
.service-card__desc-ja {
  display: block;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--navy);
  opacity: 0.8;
  margin-bottom: 8px;
}
.service-card__desc-en {
  display: block;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--navy);
  opacity: 0.8;
}

@media (max-width: 768px) {
  .service-card__head { flex-wrap: wrap; }
  .service-card__more { margin-left: 50px; }
}

/* ===== Service modal ===== */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.service-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 31, 78, 0.55);
  backdrop-filter: blur(2px);
}
.service-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 760px;
  max-height: 86vh;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.service-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
}
.service-modal__close:hover { background: rgba(255, 255, 255, 0.3); }
.service-modal__layout {
  display: flex;
  max-height: 86vh;
}
.service-modal__nav {
  flex: 0 0 180px;
  background: var(--navy);
  padding: 26px 16px;
  overflow-y: auto;
}
.service-modal__nav-label {
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  padding: 0 10px;
  margin-bottom: 14px;
}
.service-modal__nav-item {
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.service-modal__nav-item:hover { color: #fff; }
.service-modal__nav-item.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--accent);
}
.service-modal__content {
  flex: 1;
  padding: 40px 36px 36px;
  overflow-y: auto;
}
.service-modal__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.service-modal__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-modal__name { font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.service-modal__tagline { font-size: 0.8rem; color: var(--navy); opacity: 0.5; }
.service-modal__overview-ja,
.service-modal__overview-en {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--navy);
  opacity: 0.85;
  margin-bottom: 24px;
}
.service-modal__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.service-modal__feature {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-left: 18px;
  position: relative;
}
.service-modal__feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.service-modal__feature-ja,
.service-modal__feature-en { font-size: 0.9rem; color: var(--navy); font-weight: 600; }
.service-modal__cta { align-self: flex-start; }

@media (max-width: 768px) {
  .service-modal { padding: 12px; }
  .service-modal__layout { flex-direction: column; }
  .service-modal__nav {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    overflow-x: auto;
  }
  .service-modal__nav-label { margin-bottom: 0; padding: 0; white-space: nowrap; }
  .service-modal__nav-item { width: auto; white-space: nowrap; padding: 6px 12px; }
  .service-modal__nav-item.is-active { box-shadow: inset 0 -3px 0 var(--accent); }
  .service-modal__content { padding: 26px 22px; }
}

/* ===== News ===== */
.news__list { list-style: none; }
.news__item { border-bottom: 1px solid var(--border); }
.news__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.news__link:hover .news__title { opacity: 1; }
.news__date {
  font-size: 0.78rem;
  color: var(--navy);
  opacity: 0.4;
  white-space: nowrap;
}
.news__category {
  font-size: 0.68rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 2px 8px;
  white-space: nowrap;
}
.news__title {
  font-size: 0.92rem;
  color: var(--navy);
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.news__more {
  margin-top: 20px;
  background: none;
  border: 1px solid #ccc;
  color: var(--navy);
  font-size: 0.82rem;
  padding: 9px 22px;
  border-radius: 4px;
  cursor: pointer;
}
.news__more:hover { border-color: var(--accent); color: var(--accent); }

/* ===== About ===== */
.about__lead { max-width: 760px; margin-bottom: 40px; }
.about__lead-ja {
  font-size: 1rem;
  line-height: 1.95;
  color: var(--navy);
  opacity: 0.82;
  margin-bottom: 14px;
}
.about__lead-ja strong,
.about__lead-en strong {
  font-weight: 700;
  color: var(--accent);
  opacity: 1;
}
.about__lead-en {
  font-size: 1rem;
  line-height: 1.95;
  color: var(--navy);
  opacity: 0.82;
}

.about__table {
  width: 100%;
  max-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.about__table th,
.about__table td {
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.about__table th {
  width: 140px;
  font-weight: 400;
  color: var(--navy);
  opacity: 0.4;
}
.about__table td { color: var(--navy); }

@media (max-width: 768px) {
  .about__table th { width: 100px; }
}

/* ===== Contact ===== */
[x-cloak] { display: none !important; }
.contact__form {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact__honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.contact__field { display: flex; flex-direction: column; gap: 6px; }
.contact__label {
  font-size: 0.78rem;
  color: var(--navy);
  opacity: 0.6;
}
.contact__form input,
.contact__form textarea {
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--navy);
  background: #fff;
  border: 1px solid #d0d4dc;
  border-radius: 4px;
  padding: 10px 12px;
  resize: vertical;
}
.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact__submit { align-self: flex-start; margin-top: 4px; }
.contact__privacy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--navy);
  opacity: 0.6;
}
.contact__privacy a { color: inherit; text-decoration: underline; }
.contact__error {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}
.contact__again {
  margin-top: 16px;
  padding: 0;
  font: inherit;
  font-size: 0.85rem;
  color: var(--navy);
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}
.contact__thanks {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 24px;
  max-width: 520px;
}
.contact__thanks-ja,
.contact__thanks-en { color: var(--navy); font-weight: 600; }

/* ===== Footer ===== */
.footer { background: var(--navy); }
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__brand {
  color: #fff;
  opacity: 0.8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.footer__copy { color: rgba(255,255,255,0.4); font-size: 0.72rem; }

@media (max-width: 768px) {
  .footer__inner { flex-direction: column; gap: 8px; text-align: center; }
}
