:root {
  --text: #1c1f28;
  --muted: #5b5749;
  --accent: #5c1721;
  --border: rgba(28, 31, 40, 0.18);
  --light-border: rgba(28, 31, 40, 0.12);
  --background: #ffffff;
  --subtle-background: #faf6ec;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: "Yu Gothic Medium", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.02em;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
.container { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.text-column { max-width: 760px; }
.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  color: #ffffff;
  background: var(--text);
  border: 2px solid var(--text);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 10; background: #ffffff; border-bottom: 1px solid var(--border); }
.header-inner { width: min(1320px, calc(100% - 48px)); min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-name { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: "Shippori Mincho", "Yu Mincho", "YuMincho", "游明朝", "Hiragino Mincho ProN", serif; font-size: 18px; font-weight: 600; text-decoration: none; letter-spacing: 0.01em; white-space: nowrap; }
.site-logo { display: block; width: 44px; height: auto; flex: 0 0 auto; }
.main-navigation ul { display: flex; flex-wrap: nowrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.main-navigation a { display: block; padding: 7px 7px; color: var(--text); font-size: 14px; font-weight: 500; line-height: 1.4; text-decoration: none; border-radius: 3px; white-space: nowrap; }
.main-navigation a:hover { color: var(--accent); text-decoration: underline; }
.main-navigation a[aria-current="page"],
body .main-navigation a[aria-current="page"] {
  color: #5c1721;
  background: #e6cdc8;
  font-weight: 700;
  text-decoration: none;
}
body.profile-page .main-navigation a[aria-current="page"] { text-decoration: none; }
.main-navigation a[aria-current="location"],
body .main-navigation a[aria-current="location"] {
  color: #5c1721;
  background: #e6cdc8;
  font-weight: 700;
  text-decoration: none;
}
.menu-button {
  display: none;
  min-height: 42px;
  padding: 7px 12px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--text);
  border-radius: 2px;
  font-weight: 700;
  cursor: pointer;
}

.first-view { padding: 82px 0 74px; border-bottom: 1px solid var(--border); }
.intro-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}
.intro-label::before { width: 34px; height: 2px; background: var(--accent); content: ""; flex: 0 0 auto; }
h1, h2, h3 { margin-top: 0; color: var(--text); font-weight: 700; letter-spacing: 0.01em; }
h1, h2 { font-family: "Shippori Mincho", "Yu Mincho", "YuMincho", "游明朝", "Hiragino Mincho ProN", serif; font-weight: 600; }
h1 { max-width: 920px; margin-bottom: 30px; font-size: clamp(38px, 4.8vw, 52px); line-height: 1.42; }
.hero-title-line { display: block; }
.hero-title-mobile-line { display: inline; white-space: normal; }
h2 { margin-bottom: 25px; font-size: clamp(28px, 3.2vw, 34px); line-height: 1.5; }
h3 { margin-bottom: 9px; font-size: 21px; line-height: 1.55; }
.heading-line { display: inline; }
#services-title .heading-line + .heading-line { margin-left: -0.015625px; }
p { margin-top: 0; margin-bottom: 19px; }
.first-view-text { max-width: 750px; }
.primary-link, .submit-button {
  display: inline-block;
  min-height: 50px;
  padding: 10px 22px;
  color: #ffffff;
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 2px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.primary-link:hover, .submit-button:hover { color: var(--accent); background: #ffffff; }

.content-section { padding: 68px 0; border-bottom: 1px solid var(--border); }
.plain-list { margin: 22px 0 28px; padding: 4px 0 4px 1.6em; border-left: 2px solid var(--accent); }
.plain-list li { margin-bottom: 8px; padding-left: 5px; }
.plain-list li:last-child { margin-bottom: 0; }
.section-introduction { margin-bottom: 34px; }
.top-page #support .support-introduction { margin-bottom: 38px; }
.top-page #support .support-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--accent);
}
.top-page #support .support-step { min-width: 0; padding: 31px 34px 5px 0; }
.top-page #support .support-step + .support-step { padding-left: 34px; border-left: 1px solid #d8d0c2; }
.top-page #support .support-step:last-child { padding-right: 0; }
.top-page #support .support-step-number {
  margin-bottom: 13px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.06em;
}
.top-page #support .support-step h3 {
  margin-bottom: 17px;
  font-size: 24px;
  line-height: 1.5;
  text-wrap: balance;
  line-break: strict;
  word-break: normal;
}
.top-page #support .support-step > p:last-child { max-width: 290px; margin-bottom: 0; text-wrap: pretty; }

.top-page #services .service-columns {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  border-top: 2px solid var(--accent);
}
.top-page #services .service-columns section { display: flex; min-width: 0; padding: 32px 52px 8px 0; flex-direction: column; }
.top-page #services .service-columns section + section { padding-right: 0; padding-left: 52px; border-left: 1px solid #d8d0c2; }
.top-page #services .service-kicker { margin-bottom: 10px; color: var(--accent); line-height: 1.5; }
.top-page #services .service-kicker small { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.top-page #services .service-columns h3 {
  margin-bottom: 20px;
  font-size: 26px;
  line-height: 1.5;
  text-wrap: balance;
  line-break: strict;
  word-break: normal;
}
.top-page #services .service-description { max-width: 520px; margin-bottom: 25px; text-wrap: pretty; }
.top-page #services .service-action { margin-top: auto; margin-bottom: 0; padding-top: 5px; }
.service-columns a, .owner-link a, #profile a { text-decoration-line: underline; }
.top-page #services .owner-link { margin: 34px 0 0; padding-top: 18px; border-top: 1px solid #d8d0c2; font-size: 14px; }
.profile-name { margin-bottom: 24px; padding-bottom: 15px; border-bottom: 1px solid var(--light-border); }
#profile .text-column { max-width: 1040px; }
.profile-layout { display: grid; grid-template-columns: 200px minmax(0, 760px); gap: 36px; align-items: start; }
.profile-photo { display: block; width: 200px; height: auto; }
.profile-copy { min-width: 0; }

.contact-section { background: var(--subtle-background); }
.contact-introduction { margin-bottom: 38px; }
form { max-width: 800px; }
.form-row.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.form-field { margin-bottom: 23px; }
.form-field label { display: block; margin-bottom: 6px; font-weight: 700; }
.form-field label span { color: var(--accent); font-size: 13px; }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--text);
  border-radius: 1px;
}
input::placeholder, textarea::placeholder { font-weight: 400; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
input[aria-invalid="true"] { border: 2px solid var(--accent); }
.consent-field { margin: 3px 0 24px; }
.consent-field label { display: flex; align-items: flex-start; gap: 10px; }
.consent-field input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 6px; }
.field-error { margin: 5px 0 0; color: var(--accent); font-size: 14px; font-weight: 700; }
.form-status { display: none; margin: 0 0 20px; padding: 11px 0; border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); font-weight: 700; }
.form-status.is-visible { display: block; }
.submit-button { min-width: 180px; }
.submit-button:disabled { cursor: wait; opacity: 0.65; }
.site-footer { padding: 36px 0; background: #ffffff; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; }
.footer-inner p { margin-bottom: 0; }
.footer-inner a { color: var(--text); }

/* Top page color unification (scoped to avoid changing money.html). */
.top-page,
.top-page .site-header,
.top-page .first-view,
.top-page .content-section,
.top-page .contact-section,
.top-page .site-footer,
.top-page .main-navigation,
.top-page .menu-button {
  background: #f0eadd;
}
.top-page .site-header,
.top-page .first-view,
.top-page .content-section,
.top-page .site-footer,
.top-page .main-navigation,
.top-page .support-process,
.top-page .support-step + .support-step,
.top-page .service-columns,
.top-page .service-columns section + section,
.top-page .profile-name,
.top-page .main-navigation li + li {
  border-color: #d8d0c2;
}
.top-page input,
.top-page select,
.top-page textarea {
  background: #ffffff;
}
.top-page .primary-link:hover,
.top-page .submit-button:hover {
  background: #f0eadd;
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (max-width: 1179px) {
  .header-inner { min-height: 66px; }
  .menu-button { display: block; }
  .main-navigation { display: none; position: absolute; top: 66px; left: 0; width: 100%; padding: 10px 32px 18px; background: #ffffff; border-bottom: 1px solid var(--border); }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { display: block; }
  .main-navigation li + li { border-top: 1px solid var(--light-border); }
  .main-navigation a { display: block; padding: 9px 10px; }
}

@media (max-width: 820px) {
  .top-page #support .support-process { grid-template-columns: 1fr; margin-left: 5px; padding-left: 28px; border-top: 0; border-left: 2px solid var(--accent); }
  .top-page #support .support-step,
  .top-page #support .support-step + .support-step { padding: 0 0 27px; border-left: 0; }
  .top-page #support .support-step + .support-step { padding-top: 27px; border-top: 1px solid #d8d0c2; }
  .top-page #support .support-step:last-child { padding-bottom: 0; }
  .top-page #support .support-step > p:last-child { max-width: 620px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.9; }
  .container { width: min(100% - 32px, 1080px); }
  .header-inner { width: min(100% - 32px, 1320px); }
  .heading-line { display: block; }
  #services-title .heading-line + .heading-line { margin-left: 0; }
  .first-view { padding: 58px 0 54px; }
  .intro-label { align-items: flex-start; font-size: 14px; }
  .intro-label::before { margin-top: 0.85em; }
  .site-name { gap: 8px; font-size: 15px; }
  .site-logo { width: 34px; }
  .header-inner { gap: 12px; }
  .menu-button { padding: 6px 8px; font-size: 13px; }
  h1 { font-size: clamp(30px, 9.5vw, 36px); line-height: 1.48; }
  .hero-title-mobile-line { display: block; white-space: normal; }
  h2 { font-size: 27px; }
  h3 { font-size: 20px; }
  .content-section { padding: 52px 0; }
  .plain-list { padding-left: 1.45em; }
  .form-row.two-columns { grid-template-columns: 1fr; }
  .top-page #support .support-introduction { margin-bottom: 32px; }
  .top-page #support .support-step h3 { margin-bottom: 13px; font-size: 22px; }
  .top-page #services .service-columns { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; gap: 24px; }
  .profile-photo { width: 180px; }
  .top-page #services .service-columns section,
  .top-page #services .service-columns section + section { padding: 27px 0 29px; border-left: 0; }
  .top-page #services .service-columns section + section { border-top: 1px solid #d8d0c2; }
  .top-page #services .service-columns h3 { margin-bottom: 16px; font-size: 23px; }
  .top-page #services .service-description { max-width: none; margin-bottom: 20px; }
  .top-page #services .owner-link { margin-top: 24px; }
  .primary-link, .submit-button { width: 100%; }
  .contact-introduction br { display: none; }
  .footer-inner { display: block; }
  .footer-inner p { margin-bottom: 16px; }
}

@media (max-width: 360px) {
  h1 { font-size: 29px; }
  h2 { font-size: 25px; }
  #support-title, #services-title { width: calc(100% + 16px); }
  #services-title { letter-spacing: -0.05em; }
  .main-navigation { padding-inline: 16px; }
}
