:root {
  --ink: #1f3340;
  --muted: #5f727c;
  --paper: #f2f8fb;
  --white: #ffffff;
  --line: #d7e8ef;
  --teal: #007a9a;
  --teal-dark: #005f79;
  --accent: #54b8d4;
  --gold: #54b8d4;
  --plum: #4e6d78;
  --soft: #e8f4f8;
  --shadow: 0 14px 36px rgba(31, 51, 64, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 112px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  line-height: 1.7;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 54px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(31, 51, 64, 0.08);
  backdrop-filter: blur(14px);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 28px rgba(23, 33, 29, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.94rem;
  line-height: 1.2;
}

.brand small {
  color: currentColor;
  font-size: 0.75rem;
  opacity: 0.74;
}

.desktop-nav {
  display: flex;
  gap: 24px;
  color: currentColor;
  font-size: 0.9rem;
}

.desktop-nav a {
  opacity: 0.88;
}

.desktop-nav a:hover {
  opacity: 1;
}

.header-language {
  display: inline-grid;
  grid-template-columns: repeat(3, 36px);
  min-height: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.header-language a {
  display: grid;
  place-items: center;
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.header-language a.active {
  color: var(--white);
  background: var(--teal);
}

.site-header.scrolled .header-language {
  border-color: var(--line);
  background: rgba(20, 92, 87, 0.08);
}

.site-header.scrolled .header-language a.active {
  color: var(--white);
  background: var(--teal);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.header-cta {
  padding: 0 18px;
  color: var(--white);
  background: var(--teal);
}

.site-header.scrolled .header-cta {
  color: var(--white);
  background: var(--teal);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
}

.hero-image {
  position: absolute;
  inset: 90px 0 0 auto;
  width: min(58vw, 900px);
  height: calc(100% - 90px);
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #ffffff 0%, #ffffff 46%, rgba(255, 255, 255, 0.78) 68%, rgba(255, 255, 255, 0.2) 100%),
    linear-gradient(0deg, var(--paper), rgba(242, 248, 251, 0) 45%);
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding-top: 78px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 4.4vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.24rem);
}

.hero-language {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 28px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(31, 51, 64, 0.08);
}

.hero-language span {
  padding: 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-language a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
}

.hero-language a.active {
  color: var(--white);
  background: var(--teal);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.button {
  padding: 0 22px;
}

.button.primary {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.84);
  border-color: var(--teal);
}

.messenger-actions,
.contact-messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.messenger-actions {
  margin-bottom: 34px;
}

.messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  color: var(--white);
  font-weight: 900;
  line-height: 1;
}

.messenger.wechat {
  background: #1b8da7;
}

.messenger.line {
  background: #31b7c9;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(760px, 100%);
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 12px 34px rgba(31, 51, 64, 0.08);
}

.hero-stats div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.hero-stats dt {
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
}

.hero-stats dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
}

.trust-band {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.band-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  padding: 22px 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.operator-section {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.operator-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(46px, 6vw, 72px) 0;
  align-items: start;
}

.operator-inner h2 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.since {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 900;
}

.operator-copy {
  display: grid;
  gap: 14px;
}

.operator-copy p {
  margin: 0;
  color: var(--muted);
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) 0;
}

.split-section,
.checklist-section,
.language-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.06rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.section p,
.contact-section p {
  color: var(--muted);
}

.issue-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.issue-card,
.service-grid article,
.flow-line article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(31, 51, 64, 0.05);
}

.issue-card {
  min-height: 188px;
  padding: 22px;
}

.icon-dot {
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(84, 184, 212, 0.18);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.service-section {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100vw - 1120px) / 2));
  padding-left: max(18px, calc((100vw - 1120px) / 2));
  background: var(--soft);
}

.service-grid article {
  padding: 26px;
}

.step-label {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--plum);
  font-size: 0.86rem;
  font-weight: 900;
}

.checklist-section {
  align-items: center;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 16px 18px 16px 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 21px;
  width: 14px;
  height: 8px;
  border-bottom: 3px solid var(--teal);
  border-left: 3px solid var(--teal);
  transform: rotate(-45deg);
}

.flow-section {
  border-top: 1px solid var(--line);
}

.flow-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.flow-line article {
  padding: 22px;
}

.flow-line span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-weight: 900;
}

.language-section {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100vw - 1120px) / 2));
  padding-left: max(18px, calc((100vw - 1120px) / 2));
  background: var(--soft);
  color: var(--ink);
}

.language-section h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.language-section p {
  color: var(--muted);
}

.language-tabs {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(31, 51, 64, 0.05);
}

.tab-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.tab-button {
  min-height: 48px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.tab-button.active {
  color: var(--white);
  background: var(--teal);
}

.tab-panel {
  display: none;
  padding: 28px;
}

.tab-panel.active {
  display: block;
}

.tab-panel h3 {
  font-size: 1.36rem;
}

.faq-section {
  border-bottom: 1px solid var(--line);
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 22px 20px;
}

.scope-section {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.scope-grid span {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
  line-height: 1.35;
}

.contact-section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) 0;
}

.office-info {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-style: normal;
  font-weight: 700;
}

.office-info a,
.site-footer a {
  text-decoration: underline;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.contact-link-card label,
.contact-link-card select,
.contact-link-card input,
.contact-link-card textarea,
.contact-link-card button,
.contact-link-card > .form-note:last-child {
  display: none;
}

.contact-link-card {
  align-content: start;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fffefa;
}

.contact-form textarea {
  resize: vertical;
}

.form-button {
  width: 100%;
  cursor: pointer;
}

.contact-messengers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-messengers .messenger {
  min-height: 46px;
  color: var(--white);
}

.wechat-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.wechat-card img {
  width: 96px;
  height: 96px;
  border-radius: 6px;
}

.wechat-card p {
  margin: 0;
}

.wechat-card strong,
.wechat-card span {
  display: block;
}

.wechat-card span {
  margin-top: 4px;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--teal-dark);
}

.form-note {
  margin: 0;
  font-size: 0.82rem;
}

.site-footer {
  padding: 34px 18px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--teal-dark);
  text-align: center;
}

.site-footer p {
  margin: 0;
  overflow-wrap: anywhere;
}

.site-footer p + p {
  margin-top: 6px;
}

.articles-page {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 128px 0 64px;
}

.articles-hero {
  padding: 34px 0 28px;
  border-bottom: 1px solid var(--line);
}

.articles-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
}

.articles-hero p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.article-list {
  display: grid;
  gap: 18px;
  padding-top: 28px;
}

.article-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.article-card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.article-card p {
  margin: 0;
  color: var(--muted);
}

.article-meta {
  margin-bottom: 8px !important;
  color: var(--teal-dark) !important;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .site-header {
    padding: 12px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .header-language {
    grid-template-columns: repeat(3, 32px);
    min-height: 34px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 14px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-image {
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.24;
  }

  .hero-content {
    padding-top: 76px;
  }

  .hero-stats,
  .split-section,
  .checklist-section,
  .language-section,
  .scope-grid,
  .contact-section,
  .operator-inner {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    max-width: 520px;
  }

  .flow-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand strong {
    max-width: 155px;
    font-size: 0.82rem;
  }

  .header-language {
    order: 3;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  .header-cta {
    margin-left: auto;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-content {
    padding-top: 118px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.86)),
      linear-gradient(0deg, rgba(242, 248, 251, 0.96), rgba(242, 248, 251, 0.35));
  }

  .hero-actions {
    display: grid;
  }

  .messenger-actions,
  .contact-messengers {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-language {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 448px;
  }

  .hero-language span {
    padding: 4px 6px 0;
  }

  .hero-stats,
  .issue-grid,
  .service-grid,
  .flow-line,
  .tab-buttons {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    padding: 13px 14px;
  }

  .section,
  .contact-section {
    width: min(100% - 28px, 1120px);
  }

  .contact-form {
    padding: 20px;
  }
}
