
:root {
  --navy: #062f52;
  --navy-deep: #052b4c;
  --red: #b00000;
  --gold: #c99932;
  --gold-dark: #bd8e2a;
  --line: #d7dde7;
  --text: #0a2645;
  --muted: #3f4f61;
  --shadow: rgba(7, 25, 45, 0.08);
  --max: 1861px;
}

* {
  box-sizing: border-box;
}

html {
  background: #e9e9e9;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Noto Serif CJK JP", "Yu Mincho", "Hiragino Mincho ProN", "Songti SC", "SimSun", Georgia, serif;
}

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

.site-shell {
  max-width: var(--max);
  margin: 0 auto;
  background: #fff;
  border: 1px solid #9c9c9c;
  box-shadow: 0 0 4px rgba(0,0,0,.15);
}

.hero {
  width: 100%;
  overflow: hidden;
  background: #fff;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
}

.main-content {
  padding: 0 clamp(20px, 3.2vw, 60px) 18px;
  background: #fff;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 20px 0 18px;
  color: var(--navy);
  font-size: clamp(24px, 1.65vw, 33px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
}

.section-title span {
  width: 52px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.service-grid {
  width: min(100%, 1710px);
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 2.7vw, 48px);
}

.service-card {
  min-height: 128px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(18px, 1.5vw, 32px);
  padding: 22px clamp(24px, 2.2vw, 38px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 7px 8px 0 var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 9px 11px 0 rgba(7,25,45,.10);
}

.service-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  display: inline-grid;
  place-items: center;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .02em;
  font-style: normal;
  white-space: nowrap;
}

.service-icon.blue {
  background: var(--navy);
}

.service-icon.red {
  background: var(--red);
}

.service-icon.large {
  width: 106px;
  height: 106px;
  font-size: 44px;
  flex: 0 0 auto;
}

.service-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-copy strong {
  font-size: clamp(25px, 1.7vw, 31px);
  line-height: 1.1;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: .04em;
}

.service-copy em {
  font-family: "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-style: normal;
  font-size: clamp(15px, .96vw, 18px);
  line-height: 1.42;
  color: #2e3b4e;
}

.service-arrow {
  color: var(--gold);
  font-size: 56px;
  line-height: 1;
  font-family: Georgia, serif;
  font-weight: 700;
}

.reason-box {
  width: min(100%, 1750px);
  margin: 0 auto 0;
  border: 1.5px solid var(--gold);
  border-radius: 7px;
  min-height: 119px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  background: #fff;
  overflow: hidden;
}

.reason-item {
  min-height: 88px;
  padding: 18px clamp(18px, 2vw, 48px);
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 24px;
  position: relative;
}

.reason-item + .reason-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: var(--gold);
  opacity: .65;
}

.reason-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  color: #fff;
  background: var(--gold);
  display: inline-grid;
  place-items: center;
  font-family: "Noto Sans CJK JP", sans-serif;
  font-weight: 800;
  font-size: 23px;
}

.reason-item strong {
  font-size: clamp(22px, 1.25vw, 27px);
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  letter-spacing: .04em;
  white-space: nowrap;
}

.reason-item p {
  margin: 0;
  color: #27394c;
  font-family: "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: clamp(14px, .87vw, 16px);
  line-height: 1.45;
}

.footer {
  margin-top: 0;
  background: var(--navy);
  color: #fff;
  border-top: 3px solid var(--gold);
  min-height: 188px;
  padding: 16px 14px 32px;
  display: grid;
  grid-template-columns: 1.05fr 1.45fr .85fr .95fr;
  align-items: stretch;
}

.footer-col {
  border-left: 2px solid var(--gold);
  padding: 14px clamp(22px, 2.6vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-brand h2 {
  margin: 0 0 14px;
  font-size: clamp(25px, 1.6vw, 32px);
  line-height: 1.1;
  color: #fff;
  letter-spacing: .02em;
}

.footer-brand p {
  margin: 0;
  font-size: clamp(20px, 1.25vw, 27px);
  text-align: center;
  color: #fff;
}

.footer h3 {
  margin: 0 0 14px;
  text-align: center;
  font-size: clamp(20px, 1.28vw, 27px);
  letter-spacing: .04em;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.contact-lines {
  min-width: 260px;
}

.contact-lines p {
  margin: 3px 0;
  font-family: "Noto Sans CJK JP", sans-serif;
  font-size: clamp(14px, .92vw, 16px);
  line-height: 1.25;
}

.qr {
  width: 126px;
  height: 126px;
  object-fit: cover;
  flex: 0 0 auto;
}

.language-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(22px, 2vw, 36px);
  font-family: "Noto Sans CJK JP", sans-serif;
  font-size: clamp(15px, 1vw, 18px);
  white-space: nowrap;
}

.language-links a {
  opacity: .92;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.language-links a:hover,
.language-links a.current {
  color: #fff;
  border-bottom-color: var(--gold);
}

.footer-openclaw {
  align-items: center;
}

.consult-card {
  width: min(100%, 300px);
  min-height: 95px;
  border: 2px solid var(--gold);
  border-radius: 11px;
  background: #fff;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 16px 20px;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset;
}

.consult-card strong {
  display: block;
  font-size: clamp(18px, 1.1vw, 22px);
  margin-bottom: 7px;
  color: var(--gold-dark);
}

.consult-card small {
  display: block;
  color: #4b4b4b;
  font-family: "Noto Sans CJK JP", sans-serif;
  font-size: 12px;
}

.headset {
  font-size: 28px;
  opacity: .7;
}

/* sub pages */
.subpage {
  padding-top: 28px;
  padding-bottom: 36px;
}

.breadcrumb {
  width: min(100%, 1710px);
  margin: 0 auto 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-family: "Noto Sans CJK JP", sans-serif;
  font-size: 15px;
}

.breadcrumb a {
  color: var(--navy);
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover {
  border-bottom-color: var(--gold);
}

.sub-hero-card {
  width: min(100%, 1710px);
  margin: 0 auto 26px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 7px 8px 0 var(--shadow);
  padding: clamp(26px, 3vw, 48px);
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 52px);
}

.sub-hero-card h1 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(32px, 2.5vw, 48px);
  line-height: 1.2;
  letter-spacing: .04em;
}

.sub-hero-card p {
  margin: 0;
  max-width: 880px;
  color: #26394f;
  font-family: "Noto Sans CJK JP", sans-serif;
  font-size: clamp(16px, 1.08vw, 20px);
  line-height: 1.8;
}

.detail-grid {
  width: min(100%, 1710px);
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 2.6vw, 48px);
}

.detail-panel {
  border: 1.5px solid var(--gold);
  border-radius: 10px;
  padding: clamp(22px, 2.4vw, 38px);
  background: #fff;
}

.detail-panel h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(24px, 1.55vw, 31px);
}

.detail-panel ul {
  margin: 0;
  padding-left: 1.3em;
  font-family: "Noto Sans CJK JP", sans-serif;
  font-size: clamp(16px, 1vw, 18px);
  line-height: 1.9;
}

.detail-panel p {
  margin: 0;
  color: #26394f;
  font-family: "Noto Sans CJK JP", sans-serif;
  font-size: clamp(16px, 1vw, 18px);
  line-height: 1.85;
}

.service-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1180px;
}

@media (max-width: 1200px) {
  .service-grid {
    grid-template-columns: 1fr;
    width: min(760px, 100%);
  }
  .reason-box {
    grid-template-columns: 1fr 1fr;
  }
  .reason-item:nth-child(3)::before {
    display: none;
  }
  .footer {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col {
    min-height: 150px;
  }
}

@media (max-width: 760px) {
  html {
    background: #fff;
  }
  .site-shell {
    border: 0;
    box-shadow: none;
  }
  .main-content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero {
    overflow-x: auto;
  }
  .hero img {
    min-width: 900px;
  }
  .section-title {
    margin: 22px 0 16px;
    gap: 16px;
  }
  .section-title span {
    width: 34px;
  }
  .service-card {
    min-height: auto;
    padding: 20px 22px;
    gap: 16px;
  }
  .service-icon {
    width: 62px;
    height: 62px;
    font-size: 26px;
  }
  .service-icon.large {
    width: 78px;
    height: 78px;
    font-size: 30px;
  }
  .service-arrow {
    font-size: 42px;
  }
  .reason-box {
    grid-template-columns: 1fr;
  }
  .reason-item {
    grid-template-columns: 62px 1fr;
    gap: 18px;
    padding: 18px 20px;
  }
  .reason-icon {
    width: 62px;
    height: 62px;
    font-size: 20px;
  }
  .reason-item + .reason-item::before {
    top: 0;
    bottom: auto;
    left: 20px;
    right: 20px;
    width: auto;
    height: 1px;
  }
  .footer {
    grid-template-columns: 1fr;
    padding: 8px 12px 22px;
  }
  .footer-col {
    border-left: 0;
    border-top: 1px solid rgba(201,153,50,.75);
    padding: 24px 14px;
    min-height: unset;
  }
  .footer-col:first-child {
    border-top: 0;
  }
  .footer-brand p {
    text-align: left;
  }
  .contact-row {
    flex-direction: column;
  }
  .contact-lines {
    min-width: 0;
    width: 100%;
    text-align: center;
  }
  .language-links {
    gap: 26px;
  }
  .sub-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .detail-grid,
  .service-grid.compact {
    grid-template-columns: 1fr;
  }
}
