:root {
  --navy: #082f54;
  --deep-navy: #062d50;
  --red: #b00000;
  --gold: #cfa137;
  --text: #102236;
  --muted: #2f3a49;
  --line: #e7eaf0;
  --shadow: 0 8px 16px rgba(10, 28, 48, .12);
  --max: 1672px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f6f7f9;
  color: var(--text);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.35;
}
a { color: inherit; text-decoration: none; }
.site-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 22px rgba(0,0,0,.08);
  overflow: hidden;
}

/* Hero: same extracted PPT background image, then HTML text/buttons layered above it. */
.hero {
  position: relative;
  min-height: clamp(340px, 24.6vw, 418px);
  background: url("assets/hero-background.png") center top / cover no-repeat;
  isolation: isolate;
}
.brand-block {
  position: absolute;
  top: clamp(20px, 2.15vw, 36px);
  left: clamp(26px, 2.85vw, 48px);
  padding: 4px 10px 8px 0;
  background: linear-gradient(90deg, rgba(255,255,255,.92), rgba(255,255,255,.68), transparent);
}
.brand-title {
  margin: 0 0 7px;
  color: #a40000;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.05vw, 52px);
  line-height: .95;
  font-weight: 800;
  letter-spacing: .01em;
}
.brand-subtitle {
  margin: 0;
  padding-left: .8em;
  border-left: 4px solid var(--gold);
  color: #111827;
  font-size: clamp(17px, 1.65vw, 28px);
  font-weight: 600;
}
.hero-copy {
  position: absolute;
  left: 33.3%;
  top: 50%;
  transform: translateY(-42%);
  width: min(620px, 42vw);
  padding: clamp(8px, 1.1vw, 16px) clamp(10px, 1.4vw, 18px);
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(1px);
  text-align: center;
}
.hero-label {
  display: none;
  margin: 0 0 .4rem;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}
.hero-copy h2 { text-align: center;
  margin: 0;
  color: #062d50;
  font-size: clamp(34px, 3.9vw, 62px);
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: .02em;
}
.hero-description {
  margin: clamp(12px, 1.35vw, 22px) 0 clamp(20px, 2.05vw, 32px);
  font-size: clamp(12px, 1.02vw, 17px);
  font-weight: 800;
  white-space: nowrap;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 1.25vw, 22px);
}
.btn {
  min-width: clamp(186px, 14.8vw, 250px);
  height: clamp(52px, 4vw, 66px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 11px;
  color: #fff;
  font-size: clamp(16px, 1.25vw, 22px);
  font-weight: 800;
  box-shadow: 0 3px 0 rgba(0,0,0,.06), 0 8px 16px rgba(0,0,0,.11);
}
.btn-red { background: #b50000; cursor: pointer; }
.btn-blue { background: #062f55; }
.btn-icon { font-weight: 400; }
.search-icon { transform: translateY(-1px); font-size: 1.28em; }

.content-section {
  padding-inline: clamp(24px, 4.1vw, 68px);
  background: #fff;
}
.services-section { padding-top: clamp(12px, 1.5vw, 22px); padding-bottom: clamp(16px, 1.7vw, 26px); }
.section-title-row {
  width: fit-content;
  margin: 0 auto clamp(16px, 1.35vw, 24px);
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--deep-navy);
  font-weight: 900;
  font-size: clamp(23px, 1.9vw, 34px);
  letter-spacing: .02em;
}
.section-title-row span {
  width: clamp(38px, 3.2vw, 58px);
  height: 2px;
  background: var(--gold);
  display: inline-block;
}
.section-title-row.compact { margin-bottom: clamp(12px, 1.1vw, 18px); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 2.75vw, 46px);
}
.service-card {
  min-height: clamp(104px, 7.6vw, 128px);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow);
  padding: clamp(18px, 1.5vw, 24px) clamp(22px, 1.9vw, 30px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: clamp(20px, 1.8vw, 30px);
}
.circle {
  width: clamp(64px, 5.2vw, 78px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: clamp(25px, 2vw, 35px);
  font-weight: 900;
  flex: 0 0 auto;
}
.circle-blue { background: var(--navy); }
.circle-red { background: var(--red); }
.card-copy h3,
.reason-item h3 {
  margin: 0 0 5px;
  color: var(--deep-navy);
  font-weight: 900;
  letter-spacing: .03em;
}
.card-copy h3 { font-size: clamp(22px, 1.85vw, 33px); }
.card-copy p,
.reason-item p {
  margin: 0;
  color: #1f2937;
  font-weight: 600;
}
.card-copy p { font-size: clamp(14px, 1.1vw, 19px); }
.arrow {
  color: var(--gold);
  font-size: clamp(44px, 3vw, 56px);
  line-height: 1;
  font-weight: 900;
}

.reasons-section { padding-bottom: clamp(14px, 1.25vw, 22px); }
.reason-panel {
  border: 2px solid #e1c17d;
  border-radius: 9px;
  min-height: clamp(92px, 6.6vw, 112px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  background: #fff;
  overflow: hidden;
}
.reason-item {
  min-width: 0;
  padding: clamp(13px, 1.1vw, 20px) clamp(18px, 1.5vw, 26px);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: clamp(15px, 1.3vw, 24px);
  position: relative;
}
.reason-item + .reason-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 2px;
  background: #ebd7a7;
}
.reason-icon {
  width: clamp(54px, 4.65vw, 70px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: clamp(18px, 1.55vw, 26px);
  font-weight: 900;
}
.reason-item h3 { font-size: clamp(17px, 1.5vw, 25px); }
.reason-item p { font-size: clamp(12px, .92vw, 16px); }

.footer {
  margin-top: clamp(0px, .6vw, 8px);
  background: linear-gradient(135deg, #052a4b, #07335a);
  color: #fff;
  border-top: 3px solid var(--gold);
  padding: clamp(26px, 2vw, 38px) clamp(34px, 4.1vw, 68px) clamp(24px, 1.9vw, 36px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 2fr 1.5fr 1.5fr;
  gap: clamp(22px, 2.1vw, 36px);
  align-items: stretch;
}
.footer-brand,
.footer-col,
.consult-card { min-width: 0; cursor: pointer; }
.footer-brand {
  padding-right: clamp(22px, 2.2vw, 36px);
  border-right: 2px solid rgba(255,255,255,.35);
  display: flex;
  justify-content: center;
  flex-direction: column;
  overflow-wrap: break-word;
  word-break: break-word;
}
.footer-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 1.9vw, 32px);
  line-height: 1.05;
  text-align: center;
  margin-bottom: 4px;
}
.footer-brand span {
  margin-top: 8px;
  padding-left: .8em;
  border-left: 4px solid var(--gold);
  font-size: clamp(16px, 1.35vw, 25px);
  font-weight: 600;
  text-align: center;
}
.footer-col {
  padding-left: clamp(8px, 1vw, 16px);
  padding-right: clamp(16px, 1.5vw, 28px);
  border-right: 2px solid rgba(255,255,255,.35);
}
.footer-col h2 { text-align: center;
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(18px, 1.45vw, 25px);
  line-height: 1;
}
.footer-col p,
.footer-col a {
  font-size: clamp(13px, .98vw, 18px);
  color: #fff;
  white-space: nowrap;
}
.footer-col p { margin: 3px 0; text-align: left; }
.quick-links nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 15px;
}
.language-col p {
  margin-top: clamp(25px, 2.2vw, 36px);
  white-space: nowrap;
}
.consult-card {
  grid-column: span 1;
  align-self: center;
  min-height: clamp(72px, 5.3vw, 92px); cursor: pointer;
  border: 2px solid #d9a235;
  border-radius: 12px;
  background: #fff;
  color: var(--gold);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(13px, 1.2vw, 20px);
  padding: clamp(13px, 1.25vw, 22px) clamp(12px, 1.2vw, 20px);
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.headset { font-size: clamp(27px, 2.2vw, 38px); }
.consult-card strong {
  display: block;
  font-size: clamp(17px, 1.25vw, 21px);
  color: var(--gold);
  white-space: nowrap;
}
.consult-card p {
  margin: 5px 0 0;
  color: #1f2937;
  font-size: clamp(12px, .9vw, 15px);
  white-space: normal;
}

/* Large monitors: keep the same PPT proportions instead of stretching infinitely. */
@media (min-width: 1673px) {
  body { padding: 18px; }
  .site-shell { border-radius: 3px; }
}

@media (max-width: 1180px) {
  .hero-copy {
    left: 31%;
    width: min(560px, 48vw);
  }
  .hero-description { white-space: normal; }
  .cards-grid { gap: 20px; }
  .service-card {
    padding: 18px;
    column-gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
  .footer-col:nth-of-type(4),
.footer-col:last-of-type { border-right: 0; }
  .consult-card { grid-column: span 1; justify-self: stretch; }
}

@media (max-width: 900px) {
  .hero {
    min-height: 520px;
    background-position: 43% top;
  }
  /* .hero::after removed */
  .brand-block {
    left: 24px;
    top: 22px;
    background: rgba(255,255,255,.86);
    border-radius: 10px;
    padding: 12px 14px;
  }
  .hero-copy {
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    width: min(640px, calc(100% - 36px));
    background: rgba(255,255,255,.9);
  }
  .hero-label { display: block; }
  .hero-actions { flex-wrap: wrap; }
  .cards-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 112px; }
  .reason-panel { grid-template-columns: 1fr 1fr; }
  .reason-item:nth-child(3)::before { display: none; }
  .reason-item { border-top: 1px solid rgba(207,161,55,.26); }
  .reason-item:nth-child(-n+2) { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:nth-of-type(2) { border-right: 0; }
  .footer-brand, .footer-col { border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 20px; }
  .consult-card { grid-column: span 1; justify-self: stretch; }
}

@media (max-width: 560px) {
  .hero { min-height: 600px; background-position: 54% top; }
  .brand-block { left: 16px; right: 16px; }
  .brand-title { font-size: 32px; }
  .brand-subtitle { font-size: 18px; }
  .hero-copy { top: 62%; width: calc(100% - 40px); left: 20px; }
  .hero-copy h2 { text-align: center; font-size: 26px; }
  .btn { width: 100%; min-width: 0; cursor: pointer; }
  .content-section { padding-inline: 16px; }
  .section-title-row { gap: 14px; }
  .service-card {
    grid-template-columns: auto 1fr;
    row-gap: 10px;
  }
  .service-card .arrow {
    grid-column: 2;
    justify-self: end;
    margin-top: -42px;
  }
  .card-copy h3 { font-size: 23px; }
  .reason-panel { grid-template-columns: 1fr; }
  .reason-item + .reason-item::before { display: none; }
  .reason-item { border-top: 1px solid rgba(207,161,55,.26) !important; }
  .reason-item:first-child { border-top: 0 !important; }
  .footer { padding-inline: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-col { border-bottom: 1px solid rgba(255,255,255,.25); padding-left: 0; }
  .quick-links nav { grid-template-columns: 1fr 1fr; }
  .language-col p { white-space: normal; }
  .consult-card { grid-column: auto; }
  .consult-card p, .consult-card strong { white-space: normal; }
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.chat-toggle {
  background: #d9a235;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  font-size: 16px;
}
.chat-toggle:hover { background: #c4922a; }
.chat-icon { font-size: 18px; }
.chat-window {
  display: none;
  flex-direction: column;
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 320px;
  height: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  overflow: hidden;
}
.chat-header {
  background: #d9a235;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}
.chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #f8f8f8;
}
.chat-message {
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}
.chat-message.bot {
  background: #e8e8e8;
  color: #333;
  align-self: flex-start;
}
.chat-message.user {
  background: #d9a235;
  color: #fff;
  margin-left: auto;
}
.chat-input {
  display: flex;
  padding: 10px;
  border-top: 1px solid #eee;
  gap: 8px;
}
.chat-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
}
.chat-input button {
  background: #d9a235;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
}
.chat-input button:hover { background: #c4922a; }
@media (max-width: 480px) {
  .chat-window {
    width: calc(100vw - 20px);
    right: -10px;
  }
}
