:root {
  --navy: #123f75;
  --blue: #148bd0;
  --blue-dark: #075d9d;
  --blue-pale: #edf7fd;
  --green: #06c755;
  --yellow: #f6d52f;
  --red: #d91f33;
  --text: #13263a;
  --text-mid: #48647e;
  --border: #cfe0ed;
  --bg: #f7fbfe;
  --white: #ffffff;
  --shadow: 0 12px 32px rgba(15, 61, 104, 0.12);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--white);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

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

button {
  border: 0;
  cursor: pointer;
}

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

.section-inner {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  min-height: 74px;
  padding: 8px max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.brand img {
  width: 56px;
  height: 44px;
  object-fit: contain;
}

.brand-name {
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
}

.desktop-nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 700;
}

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

.header-cta {
  margin-left: 28px;
  padding: 10px 18px;
  color: var(--white);
  background: var(--blue-dark);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}

.hero {
  color: var(--white);
  background: var(--navy);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 60px;
  align-items: center;
  width: min(calc(100% - 40px), var(--max));
  min-height: 560px;
  margin-inline: auto;
  padding: 72px 0 64px;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.hero .eyebrow {
  color: #acdfff;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.35;
}

.hero h1 span {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.88em;
  color: var(--yellow);
}

.hero-lead {
  max-width: 650px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  min-width: 148px;
  padding: 13px 18px;
  border-radius: 6px;
  font-weight: 800;
  text-align: center;
}

.button-line {
  color: var(--white);
  background: var(--green);
}

.button-light {
  color: var(--navy);
  background: var(--white);
}

.button-outline {
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-brand {
  display: grid;
  place-items: center;
  min-height: 330px;
  padding: 44px;
  color: var(--navy);
  background: var(--white);
  border-left: 8px solid var(--blue);
  box-shadow: var(--shadow);
}

.hero-brand img {
  width: min(100%, 330px);
}

.hero-brand p {
  margin: 18px 0 0;
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.hero-service-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--blue);
}

.hero-service-bar span {
  padding: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

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

.trust-list {
  display: flex;
  justify-content: center;
  gap: 34px;
  padding-block: 16px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
}

.trust-list span::before {
  content: "✓";
  margin-right: 6px;
  color: var(--green);
}

.section {
  padding: 88px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 38px;
}

.section-heading h2,
.contact-heading h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.4;
}

.section-heading > p:last-child,
.contact-heading > p:last-child {
  margin: 0;
  color: var(--text-mid);
}

.troubles {
  background: var(--bg);
}

.trouble-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.trouble-item {
  display: flex;
  flex-direction: column;
  min-height: 130px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: transform 0.2s, border-color 0.2s;
}

.trouble-item:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
}

.trouble-item strong {
  margin-bottom: 8px;
  font-size: 17px;
}

.trouble-item span {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
}

.services {
  background: var(--navy);
}

.heading-light h2,
.heading-light > p:last-child {
  color: var(--white);
}

.heading-light > p:last-child {
  opacity: 0.76;
}

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

.service-item {
  padding: 26px;
  background: var(--white);
  border-top: 5px solid var(--blue);
  border-radius: 0 0 8px 8px;
}

.service-number {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.service-item h3 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 21px;
}

.service-item ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-mid);
  font-size: 14px;
}

.service-item li {
  padding: 7px 0;
  border-top: 1px solid var(--border);
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.strength-grid article {
  padding-top: 22px;
  border-top: 2px solid var(--border);
}

.strength-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  font-weight: 900;
}

.strength-grid h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.strength-grid p {
  margin: 0;
  color: var(--text-mid);
  font-size: 14px;
}

.cases {
  background: var(--blue-pale);
}

.case-placeholder {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  min-height: 280px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.case-placeholder-mark {
  display: grid;
  place-items: center;
  align-self: stretch;
  color: var(--white);
  background: var(--blue);
  font-size: 24px;
  font-weight: 900;
}

.case-placeholder div:last-child {
  padding: 36px;
}

.case-placeholder h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.case-placeholder p {
  margin: 0;
  color: var(--text-mid);
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  position: relative;
  min-height: 220px;
  padding: 22px 18px;
  background: var(--bg);
  border-top: 4px solid var(--blue);
}

.flow-list li > span {
  display: block;
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
}

.flow-list h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.flow-list p {
  margin: 0;
  color: var(--text-mid);
  font-size: 13px;
}

.faq {
  background: var(--bg);
}

.faq-inner {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 64px;
}

.faq-list details {
  margin-bottom: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.faq-list summary {
  padding: 18px 44px 18px 20px;
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--text-mid);
  font-size: 14px;
}

.contact {
  padding: 88px 0;
  color: var(--white);
  background: var(--navy);
}

.contact-heading {
  margin-bottom: 34px;
}

.contact-heading h2,
.contact-heading > p:last-child {
  color: var(--white);
}

.contact-heading > p:last-child {
  opacity: 0.8;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.contact-methods {
  display: grid;
  gap: 10px;
}

.contact-method {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 17px 20px;
  color: var(--text);
  background: var(--white);
  border-radius: 8px;
  text-align: left;
}

.contact-method.line {
  color: var(--white);
  background: var(--green);
}

.line-add-image {
  width: auto;
  height: 36px;
  margin-bottom: 5px;
}

.contact-method strong {
  font-size: 18px;
}

.contact-method span {
  font-size: 13px;
  opacity: 0.76;
}

.form-area {
  min-height: 100%;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
}

.form-fallback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  color: var(--text);
  background: var(--blue-pale);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 800;
}

.form-fallback a {
  padding: 8px 12px;
  color: var(--white);
  background: var(--blue-dark);
  border-radius: 6px;
  white-space: nowrap;
}

.form-placeholder {
  display: grid;
  align-content: center;
  min-height: 100%;
  padding: 42px;
  color: var(--text);
  border: 2px dashed var(--border);
  border-radius: 8px;
}

.form-label {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
}

.form-placeholder h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.form-placeholder p:last-child {
  margin: 0;
  color: var(--text-mid);
}

#google-form {
  width: 100%;
  min-height: 1742px;
  border: 0;
}

.site-footer {
  padding: 34px 0 90px;
  color: rgba(255, 255, 255, 0.65);
  background: #0b2f58;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 74px;
  height: 56px;
  object-fit: contain;
  padding: 5px;
  background: var(--white);
  border-radius: 4px;
}

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

.footer-brand strong {
  color: var(--white);
  font-size: 19px;
}

.footer-brand span,
.site-footer address {
  font-size: 13px;
  font-style: normal;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

.footer-links {
  grid-column: 1 / -1;
}

.footer-links a {
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-page {
  min-height: 100vh;
  background: var(--bg);
}

.policy-main {
  padding: 64px 0 88px;
}

.policy-content {
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.policy-content h1 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 34px;
}

.policy-content > p {
  color: var(--text-mid);
}

.policy-content section {
  margin-top: 34px;
}

.policy-content h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.policy-content ul {
  margin: 0;
  padding-left: 1.4em;
  color: var(--text-mid);
}

.policy-back {
  display: inline-block;
  margin-top: 32px;
  padding: 11px 18px;
  color: var(--white);
  background: var(--blue-dark);
  border-radius: 6px;
  font-weight: 800;
}

.mobile-contact {
  display: none;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: 320px;
  padding: 12px 16px;
  color: var(--white);
  background: var(--text);
  border-radius: 6px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-only {
  display: none;
}

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

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

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: auto;
    padding: 58px 0 46px;
  }

  .hero-brand {
    min-height: 250px;
  }

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

  .strength-grid {
    gap: 20px;
  }

  .flow-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .faq-inner,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .section-inner,
  .hero-inner {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-header {
    min-height: 62px;
    padding: 7px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 44px;
    height: 36px;
  }

  .brand-name {
    font-size: 16px;
  }

  .header-cta {
    padding: 8px 11px;
    font-size: 12px;
  }

  .hero-inner {
    padding: 44px 0 34px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero h1 span {
    font-size: 0.85em;
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button {
    min-width: 0;
    padding: 12px 8px;
    font-size: 13px;
  }

  .button-outline {
    grid-column: 1 / -1;
  }

  .hero-brand {
    min-height: 210px;
    padding: 28px;
  }

  .hero-brand img {
    width: 250px;
  }

  .hero-service-bar span {
    padding: 10px 4px;
    font-size: 11px;
  }

  .trust-list {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding-block: 12px;
    white-space: nowrap;
  }

  .section,
  .contact {
    padding: 60px 0;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .section-heading h2,
  .contact-heading h2 {
    font-size: 27px;
  }

  .trouble-grid,
  .service-grid,
  .strength-grid,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .trouble-item {
    min-height: 0;
    padding: 18px;
  }

  .service-item {
    padding: 22px;
  }

  .strength-grid {
    gap: 24px;
  }

  .case-placeholder {
    grid-template-columns: 1fr;
  }

  .case-placeholder-mark {
    min-height: 130px;
  }

  .case-placeholder div:last-child {
    padding: 24px;
  }

  .flow-list li {
    display: grid;
    grid-template-columns: 46px 1fr;
    min-height: 0;
    padding: 18px;
  }

  .flow-list li > span {
    margin: 0;
  }

  .form-placeholder {
    min-height: 260px;
    padding: 26px;
  }

  .form-fallback {
    align-items: stretch;
    flex-direction: column;
  }

  .form-fallback a {
    text-align: center;
  }

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

  .policy-main {
    padding: 40px 0 72px;
  }

  .policy-content {
    padding: 24px 20px;
  }

  .policy-content h1 {
    font-size: 27px;
  }

  .site-footer {
    padding-bottom: 92px;
  }

  .mobile-contact {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1.25fr 1.25fr 0.8fr;
    gap: 7px;
    padding: 8px;
    background: var(--white);
    border-top: 1px solid var(--border);
  }

  .mobile-contact a,
  .mobile-contact button {
    padding: 10px 5px;
    color: var(--white);
    background: var(--blue-dark);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
  }

  .mobile-contact button {
    background: var(--green);
  }

  .mobile-only {
    display: initial;
  }
}
