:root {
  --color-bg: #f7f7f4;
  --color-surface: #ffffff;
  --color-text: #222222;
  --color-muted: #666666;
  --color-border: #ddddd6;
  --color-accent: #2f7d6d;
  --color-accent-dark: #236456;
  --shadow-soft: 0 16px 40px rgba(34, 34, 34, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, sans-serif;
  line-height: 1.8;
}

body.illustrated-page {
  --page-background-image: url("../images/CoHAL_web_support_man.png");
  --page-background-mobile-image: url("../images/CoHAL_web_support_man_mobile.png");
  position: relative;
  min-height: 100vh;
  background-color: var(--color-bg);
  isolation: isolate;
}

body.top-page,
body.terms-page {
  --page-background-image: url("../images/CoHAL_web_support_woman.png");
  --page-background-mobile-image: url("../images/CoHAL_web_support_woman_mobile.png");
}

body.illustrated-page::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: var(--page-background-image);
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  opacity: 0.18;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 40px, 960px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 247, 244, 0.92);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.site-logo img {
  display: block;
  width: auto;
  height: 30px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--color-text);
}

.hero {
  padding: 88px 0 72px;
}

.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--color-border);
}

.illustrated-page .site-header,
.illustrated-page main {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-label {
  margin: 0 0 8px;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 8vw, 4rem);
  line-height: 1.18;
}

h2 {
  margin-bottom: 16px;
  font-size: 1.7rem;
  line-height: 1.35;
}

.lead {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.section {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

.document-section {
  padding: 48px 0 64px;
}

.document-body {
  max-width: 760px;
}

.document-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.document-card + .document-card {
  margin-top: 18px;
}

.document-body h2 {
  margin: 36px 0 12px;
  font-size: 1.28rem;
}

.document-card h2 {
  margin-top: 0;
}

.document-card p:last-child {
  margin-bottom: 0;
}

.document-body p {
  color: var(--color-muted);
}

.document-list {
  margin: 0 0 24px;
  padding-left: 1.3em;
  color: var(--color-muted);
}

.document-list li + li {
  margin-top: 8px;
}

.notice-box {
  margin-top: 32px;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.notice-box p {
  margin-bottom: 0;
}

.notice-box .button-link {
  margin-top: 16px;
}

.updated-date {
  margin-bottom: 32px;
  font-size: 0.92rem;
}

.back-link-wrap {
  margin-top: 40px;
}

.section-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.content-panel {
  padding: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.content-panel p {
  margin-bottom: 20px;
  color: var(--color-muted);
}

.text-link {
  color: var(--color-accent-dark);
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.24em;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--color-accent);
  border-radius: 8px;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.button-link:hover {
  background: var(--color-accent-dark);
}

@media (max-width: 720px) {
  body {
    line-height: 1.75;
  }

  body.illustrated-page::before {
    background-image: var(--page-background-mobile-image);
    background-position: center bottom;
    background-size: cover;
    opacity: 0.16;
  }

  .container {
    width: min(100% - 32px, 960px);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: auto;
    padding: 14px 0;
    gap: 12px;
  }

  .site-logo {
    font-size: 1.1rem;
  }

  .site-logo img {
    height: 26px;
  }

  .site-nav {
    width: 100%;
    gap: 8px 14px;
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .hero {
    padding: 54px 0 42px;
  }

  .page-hero {
    padding: 48px 0 36px;
  }

  .eyebrow,
  .section-label {
    margin-bottom: 6px;
    font-size: 0.72rem;
  }

  h1 {
    margin-bottom: 16px;
    font-size: 2.15rem;
  }

  .top-page .hero h1 {
    font-size: clamp(1.68rem, 7.5vw, 1.82rem);
    line-height: 1.25;
    white-space: nowrap;
  }

  h2 {
    margin-bottom: 10px;
    font-size: 1.34rem;
  }

  .lead {
    font-size: 0.98rem;
  }

  .section {
    padding: 30px 0;
  }

  .document-section {
    padding: 36px 0 48px;
  }

  .document-body h2 {
    margin: 30px 0 10px;
    font-size: 1.14rem;
  }

  .document-card {
    padding: 20px;
  }

  .document-card + .document-card {
    margin-top: 14px;
  }

  .document-body p,
  .document-list {
    font-size: 0.95rem;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .content-panel {
    padding: 20px;
    box-shadow: 0 10px 28px rgba(34, 34, 34, 0.06);
  }

  .content-panel p {
    margin-bottom: 16px;
  }

  .button-link {
    width: 100%;
    min-height: 46px;
  }

  .notice-box {
    padding: 18px;
  }

}
