:root {
  --ink: #243142;
  --muted: #627282;
  --blue: #1687c9;
  --blue-deep: #0b5f92;
  --teal: #3aa98f;
  --amber: #f4b84a;
  --cream: #fffaf0;
  --mint: #e7f6ef;
  --sky: #e6f4fb;
  --line: #d8e4ea;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream), #f8fcfb 52%, var(--white));
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.76;
}

a, button, input, select, textarea { color: inherit; font: inherit; }
a { text-decoration: none; }
button { border: 0; cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }

.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 0 64px;
}

.brand-logo { display: inline-flex; align-items: center; width: 230px; height: 58px; }
.brand-logo img { display: block; width: 190px; height: auto; }
.top-header nav { display: flex; gap: 30px; align-items: center; font-weight: 900; }
.nav-toggle, .mobile-actions { display: none; }

.header-cta, .form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 900;
}

.header-cta { color: var(--white); background: var(--blue); box-shadow: 0 12px 28px rgba(22,135,201,.18); }
.form-button { color: var(--white); background: var(--blue); box-shadow: 0 14px 30px rgba(22,135,201,.18); }
.text-link { color: var(--blue-deep); font-weight: 900; text-decoration: underline; text-underline-offset: 6px; }

.label { margin-bottom: 18px; color: var(--blue); font-weight: 900; }
.label span { display: block; }
.label small { display: block; margin-top: 3px; color: #8aa1af; font-size: 12px; text-transform: uppercase; }

.contact-hero {
  display: grid;
  grid-template-columns: minmax(660px, 1.08fr) minmax(440px, .92fr);
  gap: 74px;
  align-items: center;
  min-height: 650px;
  padding: 76px 72px 94px;
}

.contact-hero h1 { margin-bottom: 28px; font-size: 50px; line-height: 1.18; }
.lead { max-width: 730px; color: var(--muted); font-size: 19px; }

.contact-process { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.contact-process article { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 18px; align-items: center; min-height: 118px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.contact-process article:last-child { border-bottom: 0; }
.contact-process article:nth-child(2) { box-shadow: inset 6px 0 0 var(--teal); }
.contact-process span { color: var(--amber); font-size: 25px; font-weight: 900; }
.contact-process strong { display: block; font-size: 22px; }
.contact-process p { margin: 3px 0 0; color: var(--muted); font-size: 16px; }

.contact-main {
  display: grid;
  grid-template-columns: minmax(340px, .72fr) minmax(650px, 1.28fr);
  gap: 74px;
  padding: 92px 72px;
  background: var(--white);
}

.contact-guide h2, .form-heading h2 { font-size: 42px; line-height: 1.28; }
.guide-block { padding: 28px 0; border-top: 1px solid var(--line); }
.guide-block > span { color: var(--blue-deep); font-size: 19px; font-weight: 900; }
.guide-block ul { display: grid; gap: 8px; margin: 18px 0 24px; padding: 0; color: var(--muted); list-style: none; }
.guide-block li { position: relative; padding-left: 18px; }
.guide-block li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 6px; background: var(--amber); }
.consultation-scope p { margin: 0; color: var(--muted); font-size: 16px; }

.contact-person { display: flex; gap: 20px; align-items: center; margin-top: 22px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-person img { width: 136px; height: 152px; object-fit: contain; object-position: center bottom; background: linear-gradient(145deg, var(--mint), var(--sky)); border-bottom: 5px solid var(--amber); }
.contact-person p { display: grid; gap: 3px; margin: 0; }
.contact-person small { color: var(--blue); font-size: 15px; font-weight: 900; }
.contact-person strong { font-size: 23px; }
.contact-person span { color: var(--muted); font-size: 16px; }
.post-contract-note { margin-top: 28px; padding: 22px 24px; background: var(--sky); border-left: 5px solid var(--blue); }
.post-contract-note span { display: block; margin-bottom: 7px; color: var(--blue-deep); font-size: 18px; font-weight: 900; }
.post-contract-note p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.72; }

.form-wrap { padding: 42px 46px 48px; background: #f9fcfd; border-top: 6px solid var(--blue); box-shadow: 0 24px 64px rgba(36,49,66,.1); }
.form-heading > p:last-child { color: var(--muted); font-size: 17px; }
.contact-form { display: grid; gap: 24px; margin-top: 34px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-form > label, .field-grid label { display: grid; gap: 8px; }
.contact-form label > span, .contact-form legend { font-weight: 900; }
.contact-form b { padding: 2px 6px; color: #835816; background: #fff2cf; font-size: 12px; }
.contact-form em { color: var(--muted); font-size: 13px; font-style: normal; font-weight: 700; }

input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #b9cbd4;
  border-radius: 0;
}

textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(22,135,201,.2); border-color: var(--blue); }

fieldset { display: grid; gap: 10px; margin: 0; padding: 20px; border: 1px solid var(--line); }
fieldset label { display: flex; gap: 10px; align-items: center; }
input[type="radio"], input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--blue); }
.scope-note { margin: 0; padding: 17px 18px; color: #27586f; background: var(--sky); border-left: 4px solid var(--blue); font-size: 15px; }
.privacy-note { margin: -4px 0 0; color: var(--muted); font-size: 14px; }
.privacy-note a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 4px; }
.dummy-note { margin: 0; padding: 14px 16px; color: #5d4420; background: #fff2cf; border-left: 4px solid var(--amber); font-size: 15px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-message.is-success { color: #176b5a; font-weight: 800; }
.form-message.is-error { color: #a33b32; font-weight: 800; }
.contact-form .form-button:disabled { cursor: wait; opacity: .7; }
.contact-form .form-button { width: fit-content; min-width: 240px; border: 0; }
.form-message { min-height: 28px; margin: 0; color: var(--blue-deep); font-weight: 900; }

.site-footer { display: grid; grid-template-columns: minmax(320px, 1fr) auto; gap: 34px 64px; align-items: end; padding: 52px 72px 34px; color: #dce8ee; background: var(--ink); }
.footer-brand img { display: block; width: 180px; height: auto; }
.footer-brand p { margin: 18px 0 0; font-size: 16px; }
.footer-social { display: flex; gap: 22px; margin-top: 18px; font-weight: 800; }
.footer-social a { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px 28px; font-weight: 800; }
.site-footer small { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); color: #9fb2bf; font-size: 14px; }

@media (max-width: 960px) {
  body { padding-bottom: 72px; }
  .top-header { position: relative; z-index: 20; min-height: 76px; padding: 0 24px; background: var(--cream); }
  .brand-logo { width: 178px; height: 50px; }
  .brand-logo img { width: 154px; }
  .header-cta { display: none; }
  .nav-toggle { display: grid; gap: 5px; width: 46px; height: 46px; padding: 11px 9px; border: 1px solid var(--line); background: var(--white); }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); }
  .top-header nav { position: absolute; left: 0; right: 0; top: 76px; display: none; gap: 0; padding: 12px 24px 22px; background: rgba(255,250,240,.98); border-bottom: 1px solid var(--line); box-shadow: 0 18px 36px rgba(36,49,66,.1); }
  .top-header nav.is-open { display: grid; }
  .top-header nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }

  .contact-hero { grid-template-columns: 1fr; min-height: 0; padding: 58px 28px 72px; }
  .contact-main { grid-template-columns: 1fr; padding: 76px 28px; }
  .contact-guide { display: block; }
  .guide-block { border-bottom: 1px solid var(--line); }

  .site-footer { grid-template-columns: 1fr; padding: 48px 28px 28px; }
  .site-footer nav { justify-content: flex-start; }
  .site-footer small { grid-column: auto; }

  .mobile-actions { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr; gap: 8px; padding: 9px 12px; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -10px 28px rgba(36,49,66,.1); }
  .mobile-actions a { display: grid; place-items: center; min-height: 48px; color: var(--white); background: var(--blue); font-weight: 900; }
  .mobile-actions a { background: var(--blue-deep); }
}

@media (max-width: 680px) {
  .top-header { padding: 0 18px; }
  .contact-hero { gap: 38px; padding: 44px 20px 60px; }
  .contact-hero h1 { font-size: 40px; line-height: 1.2; }
  .lead { font-size: 17px; }
  .contact-process article { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; min-height: 0; padding: 20px 16px; }
  .contact-process strong { font-size: 19px; }

  .contact-main { gap: 52px; padding: 58px 20px; }
  .contact-guide h2, .form-heading h2 { font-size: 34px; }
  .contact-person { align-items: flex-start; }

  .form-wrap { padding: 32px 18px 36px; }
  .field-grid { grid-template-columns: 1fr; }
  fieldset { padding: 18px 14px; }
  .contact-form .form-button { width: 100%; min-width: 0; }

  .site-footer { padding: 42px 20px 26px; }
  .site-footer nav { display: grid; gap: 12px; }
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-lockup .brand-logo { width: 190px; }
.brand-lockup .brand-logo img { width: 176px; }

.brand-signature {
  padding-left: 18px;
  border-left: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .brand-lockup { gap: 12px; }
  .brand-lockup .brand-logo { width: 154px; }
  .brand-lockup .brand-logo img { width: 146px; }
  .brand-signature { padding-left: 12px; font-size: 13px; }
}

@media (max-width: 680px) {
  .brand-lockup { gap: 8px; }
  .brand-lockup .brand-logo { width: 128px; }
  .brand-lockup .brand-logo img { width: 124px; }
  .brand-signature { padding-left: 9px; font-size: 11px; line-height: 1.4; white-space: nowrap; }
}

.contact-hero-person {
  position: relative;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: end;
  min-height: 210px;
  overflow: hidden;
  background: linear-gradient(115deg, var(--sky), #fff 54%, var(--mint));
  border-bottom: 1px solid var(--line);
}

.contact-hero-person::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 20px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 27px 0 0 var(--blue), 54px 0 0 var(--teal);
}

.contact-hero-person img {
  position: relative;
  z-index: 1;
  display: block;
  width: 168px;
  height: 202px;
  object-fit: contain;
  object-position: center bottom;
}

.contact-hero-person p {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 30px 24px 34px 8px;
}

.contact-hero-person small {
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.contact-hero-person strong {
  color: var(--ink);
  font-size: 25px;
  line-height: 1.35;
}

.contact-hero-person span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
}

@media (max-width: 680px) {
  .contact-hero { padding-top: 34px; }

  .contact-hero-person {
    grid-template-columns: 126px minmax(0, 1fr);
    min-height: 164px;
  }

  .contact-hero-person img {
    width: 126px;
    height: 158px;
  }

  .contact-hero-person p { padding: 20px 14px 22px 2px; }
  .contact-hero-person strong { font-size: 20px; }
  .contact-hero-person span { font-size: 13px; line-height: 1.55; }
}

.submission-status[hidden] { display: none; }

.submission-status {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 20px;
  width: min(1120px, calc(100% - 40px));
  margin: 28px auto 0;
  padding: 26px 30px;
  border: 2px solid;
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(36, 49, 66, .12);
  scroll-margin-top: 20px;
}

.submission-status.is-success { border-color: #23866f; background: #ecfaf5; }
.submission-status.is-error { border-color: #b64a42; background: #fff3f1; }

.submission-status-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 32px;
  font-weight: 900;
}

.submission-status.is-success .submission-status-icon { background: #23866f; }
.submission-status.is-error .submission-status-icon { background: #b64a42; }
.submission-status.is-success .submission-status-icon::before { content: "✓"; }
.submission-status.is-error .submission-status-icon::before { content: "!"; }
.submission-status-label { margin: 0 0 3px; color: var(--muted); font-size: 13px; font-weight: 800; }
.submission-status h2 { margin: 0; color: var(--ink); font-size: clamp(25px, 3vw, 36px); line-height: 1.3; }
.submission-status p:not(.submission-status-label) { margin: 8px 0 13px; color: var(--ink); line-height: 1.8; }
.submission-status a { color: var(--blue-deep); font-weight: 900; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 680px) {
  .submission-status {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    width: calc(100% - 28px);
    margin-top: 16px;
    padding: 20px 17px;
  }
  .submission-status-icon { width: 44px; height: 44px; font-size: 25px; }
}

/* 2026-07-30 responsive typography */
body { line-break: strict; word-break: auto-phrase; }
.phrase { display: inline-block; white-space: nowrap; }
h1, h2, h3 { text-wrap: balance; }

@media (min-width: 961px) {
  .contact-main {
    grid-template-columns: minmax(430px, .82fr) minmax(650px, 1.18fr);
    gap: 68px;
  }
  .contact-guide h2 { font-size: 38px; line-height: 1.35; }
}

@media (max-width: 680px) {
  .contact-hero h1 { font-size: clamp(34px, 10vw, 40px); line-height: 1.3; }
  .contact-guide h2, .form-heading h2 { font-size: clamp(29px, 8.4vw, 34px); line-height: 1.4; }
  .contact-process strong { font-size: 18px; line-height: 1.5; }
}
