:root {
  --bg: #f7fbff;
  --paper: #ffffff;
  --ink: #051a55;
  --ink-soft: #173065;
  --muted: #64749a;
  --line: #dbe6f5;
  --line-soft: #eef4fb;
  --blue: #287df6;
  --blue-dark: #052368;
  --purple: #8f46ef;
  --cyan: #69dfff;
  --shadow: 0 18px 45px rgba(8, 35, 91, 0.12);
  --shadow-soft: 0 12px 30px rgba(8, 35, 91, 0.08);
  --radius: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(219, 230, 245, 0.86);
  box-shadow: 0 8px 28px rgba(8, 35, 91, 0.06);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
  min-height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(5, 26, 85, 0.16);
}

.brand-name,
.brand-ja {
  display: block;
}

.brand-name {
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.1;
}

.brand-ja {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
}

.site-nav,
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.site-nav a,
.footer-nav a {
  display: grid;
  gap: 2px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.site-nav small,
.footer-nav small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.header-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 11px;
  background: var(--blue-dark);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(5, 26, 85, 0.2);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: 112px 0 92px;
  background:
    radial-gradient(circle at 73% 34%, rgba(58, 146, 255, 0.2), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f5fbff 58%, #eef8ff 100%);
}

.hero::before {
  position: absolute;
  right: -10%;
  bottom: -28%;
  width: 78%;
  height: 46%;
  border-radius: 50% 0 0 0;
  background: rgba(212, 235, 255, 0.72);
  content: "";
}

.hero::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff);
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 56px;
  align-items: center;
}

.hero-brand {
  margin: 0;
  color: var(--ink);
  font-size: clamp(4.2rem, 8vw, 6.8rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-kana {
  margin: 12px 0 34px;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 900;
}

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

.hero h1 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(1.78rem, 3.1vw, 2.58rem);
  font-weight: 900;
  line-height: 1.34;
  letter-spacing: 0;
}

.hero-english {
  margin-bottom: 34px;
  color: var(--blue);
  font-size: 1.12rem;
  font-weight: 800;
}

.hero-text {
  max-width: 520px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-weight: 700;
  line-height: 2;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 58px;
  padding: 0 30px;
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
}

.gradient-button {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(40, 125, 246, 0.28);
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 480px;
  place-items: center;
}

.hero-logo {
  position: relative;
  z-index: 2;
  width: min(72%, 320px);
  border-radius: 48px;
  box-shadow: 0 34px 68px rgba(5, 26, 85, 0.26);
}

.compass-ring {
  position: absolute;
  width: min(94%, 470px);
  aspect-ratio: 1;
  border: 1px solid rgba(40, 125, 246, 0.16);
  border-radius: 50%;
}

.compass-ring::before,
.compass-ring::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 118%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(40, 125, 246, 0.24), transparent);
  content: "";
  transform: translate(-50%, -50%);
}

.compass-ring::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.spark {
  position: absolute;
  width: 38px;
  height: 38px;
}

.spark::before,
.spark::after {
  position: absolute;
  inset: 50% auto auto 50%;
  background: rgba(40, 125, 246, 0.22);
  content: "";
  transform: translate(-50%, -50%);
}

.spark::before {
  width: 6px;
  height: 100%;
  border-radius: 999px;
}

.spark::after {
  width: 100%;
  height: 6px;
  border-radius: 999px;
}

.spark-one {
  top: 12%;
  right: 5%;
}

.spark-two {
  left: 4%;
  top: 38%;
  width: 24px;
  height: 24px;
}

.spark-three {
  right: 8%;
  bottom: 10%;
}

.dot-grid {
  position: absolute;
  left: 2%;
  bottom: 12%;
  width: 58px;
  height: 58px;
  background-image: radial-gradient(rgba(40, 125, 246, 0.35) 2px, transparent 2px);
  background-size: 15px 15px;
}

.section {
  padding: 68px 0;
  scroll-margin-top: 24px;
}

.about-section {
  min-height: 360px;
  padding: 92px 0 112px;
  background: #ffffff;
}

.services-section,
.profile-section,
.contact-section {
  background: linear-gradient(180deg, #f7fbff, #eef7ff);
}

.focus-section {
  background: #ffffff;
}

.split-row {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 58px;
  align-items: start;
}

.section-title {
  position: relative;
  padding-left: 22px;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-title::before {
  position: absolute;
  top: 9px;
  left: 0;
  width: 4px;
  height: 32px;
  border-radius: 999px;
  background: #a8c9ff;
  content: "";
}

.section-label {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.85rem, 3.2vw, 2.42rem);
  font-weight: 900;
  line-height: 1.16;
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 800;
}

.body-copy {
  max-width: 820px;
  color: var(--ink-soft);
  font-weight: 700;
  line-height: 2.05;
}

.body-copy p:last-child {
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}

.service-card,
.focus-card,
.profile-list {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.service-card {
  display: grid;
  justify-items: center;
  min-height: 318px;
  padding: 38px 24px 28px;
  border-radius: var(--radius);
  text-align: center;
}

.service-card h2,
.focus-card h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.62;
}

.service-card p,
.focus-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.icon-shell {
  display: grid;
  width: 74px;
  height: 74px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #f0f7ff, #f7f1ff);
}

.site-icon {
  width: 46px;
  height: 46px;
  overflow: visible;
  fill: none;
  stroke: url("#iconGradient");
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-shell .site-icon,
.focus-icon .site-icon,
.mail-svg {
  color: var(--blue);
  stroke: currentColor;
}

.service-card:nth-child(2n) .site-icon,
.focus-card:nth-child(2n) .site-icon {
  color: var(--purple);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 42px;
}

.focus-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 170px;
  padding: 26px;
  border-radius: var(--radius);
}

.focus-icon {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f2ff, #f3eaff);
}

.focus-icon .site-icon {
  width: 34px;
  height: 34px;
}

.focus-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 70px;
  margin: 42px 0 0;
  padding: 26px 46px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.profile-list div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  min-height: 56px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.profile-list div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

dt {
  color: var(--ink);
  font-weight: 900;
}

dd {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 260px;
  gap: 34px;
  align-items: center;
}

.contact-copy {
  color: var(--ink-soft);
  font-weight: 800;
}

.contact-copy p {
  margin-bottom: 22px;
}

.mail-art {
  position: relative;
  display: grid;
  min-height: 150px;
  place-items: center;
}

.mail-art::before {
  position: absolute;
  left: -28px;
  right: -18px;
  top: 74px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(40, 125, 246, 0.2), transparent);
  content: "";
  transform: rotate(-9deg);
}

.mail-svg {
  position: relative;
  z-index: 1;
  width: 112px;
  height: 112px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.site-footer {
  background:
    radial-gradient(circle at 12% 18%, rgba(40, 125, 246, 0.28), transparent 12rem),
    #021d59;
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
  padding: 34px 0 24px;
}

.footer-brand {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
}

.footer-brand img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  font-size: 1.08rem;
  line-height: 1.1;
}

.footer-brand span {
  font-size: 0.86rem;
  font-weight: 800;
}

.footer-brand p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
}

.footer-nav {
  justify-content: flex-end;
  gap: 28px;
}

.footer-nav a {
  color: #ffffff;
}

.footer-nav small {
  color: rgba(255, 255, 255, 0.72);
}

.copyright {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  text-align: center;
}

.policy-hero {
  padding: 84px 0 56px;
  background:
    radial-gradient(circle at 76% 26%, rgba(40, 125, 246, 0.16), transparent 24rem),
    linear-gradient(180deg, #ffffff, #eef8ff);
}

.policy-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 40px;
  align-items: center;
}

.policy-hero h1 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.14;
}

.policy-hero p {
  color: var(--ink-soft);
  font-weight: 750;
}

.policy-badge {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.policy-badge img {
  width: 96px;
  height: 96px;
  border-radius: 24px;
}

.policy-badge span {
  color: var(--ink);
  font-weight: 900;
}

.policy-section {
  background: linear-gradient(180deg, #eef8ff, #ffffff);
}

.narrow {
  width: min(100% - 48px, 860px);
  margin: 0 auto;
}

.policy-card {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.policy-card section + section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.policy-card h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.36rem;
}

.policy-card p {
  color: var(--ink-soft);
  font-weight: 700;
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    gap: 18px;
  }

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

  .focus-grid,
  .contact-grid,
  .policy-hero-grid {
    grid-template-columns: 1fr;
  }

  .mail-art {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 820px) {
  .container,
  .narrow {
    width: min(100% - 30px, var(--container));
  }

  .header-inner {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 14px 0;
  }

  .site-nav {
    width: 100%;
    gap: 10px 18px;
  }

  .site-nav a {
    text-align: left;
  }

  .header-contact {
    width: 100%;
  }

  .hero {
    padding: 56px 0 66px;
  }

  .hero-grid,
  .split-row {
    grid-template-columns: 1fr;
  }

  .hero-brand {
    font-size: clamp(3.1rem, 16vw, 4.4rem);
  }

  .hero h1 br {
    display: none;
  }

  .hero-art {
    min-height: 330px;
  }

  .hero-logo {
    width: min(70%, 245px);
    border-radius: 36px;
  }

  .section {
    padding: 54px 0;
  }

  .service-grid,
  .focus-grid,
  .profile-list {
    grid-template-columns: 1fr;
  }

  .profile-list {
    padding: 22px;
  }

  .profile-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .profile-list div:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .profile-list div:last-child {
    border-bottom: 0;
  }

  .contact-grid {
    gap: 24px;
  }

  .button {
    width: 100%;
  }

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

@media (max-width: 520px) {
  .brand-logo {
    width: 42px;
    height: 42px;
  }

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

  .hero-brand {
    font-size: 3.1rem;
  }

  .hero h1 {
    font-size: 1.62rem;
  }

  .hero-text {
    line-height: 1.85;
  }

  .service-card {
    min-height: auto;
  }

  .focus-card {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .policy-card {
    padding: 24px;
  }
}
