:root {
  --ink: #193044;
  --muted: #617383;
  --soft: #eef5f9;
  --soft-2: #f7fbfd;
  --line: #dbe9f0;
  --accent: #4e84a1;
  --accent-dark: #2f667f;
  --white: #ffffff;
  --gold: #c89a4b;
  --shadow: 0 24px 70px rgba(25, 48, 68, 0.11);
  --radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.9;
  background: var(--white);
}

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

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

p { margin: 0 0 1.1em; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219,233,240,.75);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  letter-spacing: .03em;
  font-weight: 700;
}

.logo span:first-child {
  font-family: Georgia, "Times New Roman", "Yu Mincho", serif;
  font-size: 20px;
}

.logo span:last-child {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .14em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}

.nav a:hover { color: var(--accent-dark); }

.nav .nav-button {
  color: var(--white);
  background: var(--accent);
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(78,132,161,.18);
}

.nav .nav-button:hover { color: var(--white); background: var(--accent-dark); }

.hero {
  position: relative;
  padding: 84px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 16%, rgba(238,245,249,.9), transparent 28%),
    #fff;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background:
    linear-gradient(90deg, rgba(238,245,249,.16), rgba(238,245,249,.02)),
    url("../img/top-invoice.jpg") center center / cover no-repeat;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 46px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--accent-dark);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--accent);
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.42;
}

h1 {
  font-family: Georgia, "Times New Roman", "Yu Mincho", serif;
  font-size: clamp(34px, 5vw, 61px);
  letter-spacing: .03em;
  font-weight: 500;
}

.hero-catch {
  max-width: 720px;
}

.hero-lead {
  margin-top: 26px;
  color: var(--muted);
  font-size: 17px;
  max-width: 620px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--accent);
  color: var(--accent-dark);
  background: var(--white);
  transition: .2s ease;
}

.button.primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(78,132,161,.24);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(25,48,68,.12);
}

.hero-visual {
  position: relative;
  min-height: 500px;
}

.hero-visual img {
  display: none;
}

.float-card {
  position: absolute;
  right: 16px;
  bottom: 30px;
  width: min(360px, 82%);
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(219, 233, 240, 0.72);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(25,48,68,.14);
  backdrop-filter: blur(10px);
  text-align: left;
}

.float-card b {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  color: var(--ink);
}

.float-card span {
  color: var(--ink);
  font-size: 14px;
}

.section {
  padding: 98px 0;
}

.section.soft { background: var(--soft); }

.section-head {
  max-width: 760px;
  margin-bottom: 46px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: block;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .2em;
  font-weight: 700;
  margin-bottom: 14px;
}

h2 {
  font-family: Georgia, "Times New Roman", "Yu Mincho", serif;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
}

.section-head p {
  margin-top: 20px;
  color: var(--muted);
}

.story-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: stretch;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: 0 18px 50px rgba(25,48,68,.07);
}

.panel.emphasis {
  background: linear-gradient(145deg, #ffffff, #f3f9fc);
}

.lead-text {
  font-size: 19px;
  color: var(--ink);
  font-weight: 700;
}

.list {
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--muted);
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 12px;
  height: 1px;
  background: var(--accent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  min-height: 192px;
  box-shadow: 0 12px 34px rgba(25,48,68,.06);
}

.card-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.card p, .card li { color: var(--muted); font-size: 14px; }

.feature-list {
  display: grid;
  gap: 36px;
}

.feature {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 46px;
  align-items: center;
}

.feature:nth-child(even) { grid-template-columns: 1.1fr .9fr; }
.feature:nth-child(even) .feature-image { order: 2; }

.feature-image {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-text {
  padding: 14px 0;
}

.feature-label {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  letter-spacing: .16em;
  margin-bottom: 10px;
}

.feature h3 {
  font-size: clamp(23px, 2.4vw, 32px);
  margin-bottom: 16px;
}

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

.cta-section {
  padding: 90px 0;
  background: linear-gradient(135deg, #eff7fb, #ffffff);
}

.cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 48px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.cta-box h2 { font-size: clamp(26px, 3vw, 38px); }
.cta-box p { margin-top: 14px; color: var(--muted); }

.page-hero {
  padding: 76px 0;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 52%, var(--soft) 52%, var(--soft) 100%);
}

.page-hero-inner {
  max-width: 900px;
}

.page-hero h1 { font-size: clamp(34px, 4.8vw, 56px); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.flow {
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.flow-item {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}

.flow-item::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
}

.flow-item h3 { font-size: 18px; margin-bottom: 4px; }
.flow-item p { color: var(--muted); margin: 0; }

.notice {
  padding: 26px 30px;
  background: #fffaf0;
  border: 1px solid #f1ddb7;
  border-radius: 22px;
  color: #665234;
}

.site-footer {
  padding: 56px 0;
  background: #182c3d;
  color: rgba(255,255,255,.74);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
}

.footer-logo {
  color: var(--white);
  font-family: Georgia, "Times New Roman", "Yu Mincho", serif;
  font-size: 22px;
  margin-bottom: 10px;
}

.footer-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.footer-nav a:hover { color: #fff; }

.small { font-size: 13px; color: var(--muted); }


.company-hero {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 48%, var(--soft) 48%, var(--soft) 100%);
}

.company-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.company-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.company-table th,
.company-table td {
  padding: 24px 28px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

.company-table th {
  width: 220px;
  color: var(--accent-dark);
  background: var(--soft-2);
  text-align: left;
  font-weight: 700;
  letter-spacing: .05em;
}

.company-table td {
  color: var(--ink);
}

.company-table .en {
  color: var(--muted);
  letter-spacing: .05em;
}

.cta-section.compact {
  padding: 70px 0;
}

@media (max-width: 920px) {
  .hero-grid,
  .story-box,
  .two-col,
  .cta-box { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .feature,
  .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-image { order: 0; }
  .hero { background: linear-gradient(180deg, #fff, var(--soft)); }
  .hero::after { display: none; }
  .hero-visual { min-height: 0; }
  .hero-visual img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 34px;
    box-shadow: var(--shadow);
  }
  .float-card {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: min(360px, calc(100% - 28px));
    margin-top: 0;
    padding: 18px 20px;
  }
}

@media (max-width: 680px) {

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }
  .company-table th {
    padding: 18px 22px 8px;
    border-bottom: none;
  }
  .company-table td {
    padding: 0 22px 20px;
  }
  .container { width: min(100% - 28px, 1120px); }
  .header-inner { min-height: 68px; }
  .nav { gap: 14px; font-size: 12px; }
  .nav a:not(.nav-button) { display: none; }
  .logo span:first-child { font-size: 16px; }
  .hero, .section, .cta-section, .page-hero { padding: 58px 0; }
  .panel, .cta-box { padding: 26px; }
  .card-grid { grid-template-columns: 1fr; }
  .flow-item { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}


/* Smartphone hamburger menu */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 10px 24px rgba(25,48,68,.08);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 680px) {
  .site-header { z-index: 100; }

  .header-inner {
    position: relative;
    gap: 12px;
  }

  .logo {
    flex: 1;
    min-width: 0;
  }

  .logo span:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    font-size: 14px;
    color: var(--ink);
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a,
  .nav a:not(.nav-button) {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(219,233,240,.75);
    color: var(--ink);
  }

  .nav a:last-child { border-bottom: none; }

  .nav .nav-button {
    justify-content: center;
    min-height: 48px;
    margin-top: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    color: var(--white);
  }
}

/* Fixed smartphone hamburger menu visibility */
@media (max-width: 768px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 12px;
  }

  .logo {
    flex: 1 1 auto;
    min-width: 0;
  }

  .logo span:first-child {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
  }

  .logo span:last-child {
    font-size: 10px;
  }

  .menu-toggle {
    display: inline-flex !important;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(25,48,68,.12);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1002;
  }

  .menu-toggle span {
    display: block !important;
    width: 22px;
    height: 2px;
    min-height: 2px;
    border-radius: 999px;
    background: var(--ink);
    opacity: 1;
    transform-origin: center;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 1001;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    margin: 0;
    background: rgba(255,255,255,.98);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    color: var(--ink);
    font-size: 15px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a,
  .nav a:not(.nav-button),
  .nav .nav-button {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    min-height: 48px;
    padding: 10px 14px;
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(219,233,240,.8);
    background: transparent;
    box-shadow: none;
    color: var(--ink);
  }

  .nav a:last-child,
  .nav .nav-button:last-child {
    border-bottom: none;
  }

  .nav .nav-button {
    margin-top: 6px;
    justify-content: center;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(78,132,161,.18);
    border-bottom: none;
  }
}
