@charset "utf-8";

/* =========================================================
   株式会社CHAMA — コーポレートサイト
   VD:「CHAMA Website VD.dc.html」準拠
   SPファースト（390px基準）→ @media (min-width: 960px) で PC（1440px / 本文1120px）
   ========================================================= */

/* ---------- トークン ---------- */
:root {
  --ink:        #14161A;
  --ink-line:   #2c2f35;
  --paper:      #F7F6F4;
  --white:      #fff;

  --gold:       #8C6B2F;   /* 地色の上のアクセント */
  --gold-l:     #C9A961;   /* インク地の上のアクセント */
  --gold-ll:    #D7B968;   /* インク地の上の必須表示・リンク */

  --text:       #3c3a36;
  --muted:      #6b6a66;
  --muted-2:    #8a8782;

  --line:       #e0ddd7;
  --line-soft:  #eae7e2;
  --line-mid:   #d3d0ca;

  --on-ink:     #cfcdc8;
  --on-ink-2:   #a8a6a1;
  --on-ink-3:   #5d5b57;

  --header-h:   60px;
  --gutter:     22px;
  --measure:    1120px;
}

@media (min-width: 960px) {
  :root {
    --header-h: 80px;
    --gutter:   40px;
  }
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  line-break: strict;
}

h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--ink);
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
a:hover { color: var(--gold); }

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

button { font: inherit; color: inherit; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  font-size: 14px;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- レイアウト ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 1440px) {
  /* 1440px 幅で左右 160px ＝ 本文 1120px（VDの基準） */
  :root { --gutter: 160px; }
  .wrap { max-width: 1440px; }
}

.section { padding: 56px 0; }
.section--white { background: var(--white); border-top: 1px solid var(--line); }
.section--ink   { background: var(--ink); }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.section__title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
}

.section__lead {
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
  max-width: 680px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--gold);
}
.eyebrow--gold { color: var(--gold-l); }

.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--muted-2);
}

/* SPのみ改行 */
.br-sp { display: inline; }

@media (min-width: 960px) {
  .section { padding: 112px 0; }
  .section__head { gap: 22px; margin-bottom: 56px; }
  .section__title { font-size: 36px; }
  .section__lead { font-size: 18px; line-height: 2; }
  .eyebrow { font-size: 12px; }
  .label { font-size: 11.5px; }
  .br-sp { display: none; }
}

/* ---------- ヘッダー ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(247, 246, 244, .92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header__logo { display: block; flex: none; }
.header__logo:hover { color: var(--ink); }

.logo { color: var(--ink); width: auto; }
.logo--full { height: 28px; aspect-ratio: 700 / 202; }
.logo--mark { width: 40px; aspect-ratio: 1 / 1; height: auto; }

.nav { display: none; }

.nav__link {
  font-size: 15px;
  letter-spacing: .04em;
  white-space: nowrap;
}

.nav__link--boxed {
  border: 1px solid var(--ink);
  padding: 10px 14px;
  font-size: 13px;
}
.nav__link--boxed:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.header__sp {
  display: flex;
  align-items: center;
  gap: 16px;
}

.burger {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  flex: none;
}
.burger__bar {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform .22s ease, opacity .18s ease;
}
.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

@media (min-width: 960px) {
  .logo--full { height: 40px; }
  .logo--mark { width: 54px; }
  .nav { display: flex; align-items: center; gap: 40px; }
  .nav__link--boxed { padding: 12px 22px; font-size: 15px; }
  .header__sp { display: none; }
}

/* ---------- ドロワー（SP） ---------- */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 110;
  background: var(--paper);
  padding: 8px var(--gutter) 40px;
  overflow-y: auto;
  animation: drawer-in .22s ease both;
}
.drawer[hidden] { display: none; }

@keyframes drawer-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

.drawer__nav { display: flex; flex-direction: column; }

.drawer__link {
  border-bottom: 1px solid var(--line);
  padding: 22px 2px;
  font-size: 17px;
  letter-spacing: .04em;
}
.drawer__link--cta {
  margin-top: 28px;
  border: 0;
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 19px 0;
  font-size: 16px;
}
.drawer__link--cta:hover { color: var(--white); opacity: .88; }

body.is-locked { overflow: hidden; }

@media (min-width: 960px) {
  .drawer { display: none !important; }
}

/* ---------- トップ ---------- */
.hero { padding: 52px 0 56px; }
.hero .wrap { display: flex; flex-direction: column; gap: 28px; }

.hero__rule {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero__line {
  height: 1px;
  background: var(--line-mid);
  flex: 1;
}

.hero__title {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .005em;
  color: var(--ink);
}

.hero__lead {
  font-size: 16px;
  line-height: 2;
  color: var(--text);
  max-width: 640px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 6px;
}

.btn {
  font-size: 16px;
  letter-spacing: .04em;
  display: inline-block;
}
.btn--solid {
  background: var(--ink);
  color: var(--white);
  padding: 19px 0;
  text-align: center;
}
.btn--solid:hover { color: var(--white); opacity: .86; }

.btn--underline {
  align-self: center;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 6px;
  letter-spacing: .02em;
}
.btn--underline:hover { color: var(--ink); border-color: var(--ink); }

@media (min-width: 960px) {
  .hero { padding: 136px 0 128px; }
  .hero .wrap { gap: 44px; }
  .hero__rule { gap: 20px; }
  .hero__title { font-size: clamp(44px, 4.45vw, 64px); line-height: 1.4; }
  .hero__lead { font-size: 18px; }
  .hero__actions {
    flex-direction: row;
    align-items: center;
    gap: 36px;
    padding-top: 12px;
  }
  .btn--solid { padding: 19px 36px; }
  .btn--underline { align-self: auto; padding-bottom: 5px; }
}

/* ---------- 事業内容 ---------- */
.services {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service {
  border-top: 1px solid var(--ink);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service__num {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted-2);
  line-height: 1;
}

.service__title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: .01em;
  color: var(--ink);
}

.service__desc {
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
}

.service__list { display: flex; flex-direction: column; }
.service__list .label { padding-bottom: 12px; }
.service__list li {
  border-top: 1px solid var(--line-soft);
  padding: 13px 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

.service__note {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

@media (min-width: 960px) {
  /* 1px の gap を罫線に見せる VD の手法をそのまま採用 */
  .services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .service {
    background: var(--white);
    border-top: 0;
    padding: 52px 48px 52px 0;
    gap: 26px;
  }
  .service + .service { padding: 52px 0 52px 48px; }
  .service__num { font-size: 44px; }
  .service__title { font-size: 26px; }
  .service__desc { font-size: 16px; line-height: 2; }
  .service__list { padding-top: 8px; }
  .service__list .label { padding-bottom: 14px; }
  .service__list li { padding: 15px 0; line-height: 1.8; }
}

/* ---------- 進め方 ---------- */
.approach { display: flex; flex-direction: column; }

.approach__row {
  border-top: 1px solid var(--line-mid);
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.approach__row:first-child { border-top-color: var(--ink); }
.approach__row:last-child { border-bottom: 1px solid var(--line-mid); }

.approach__num {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--muted-2);
}

.approach__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .01em;
  color: var(--ink);
}

.approach__desc {
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
  max-width: 600px;
}

@media (min-width: 960px) {
  .approach__row {
    display: grid;
    grid-template-columns: 90px minmax(0, 340px) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    padding: 42px 0;
  }
  .approach__num { font-size: 15px; padding-top: 8px; }
  .approach__title { font-size: 23px; }
  .approach__desc { font-size: 17px; line-height: 2; }
}

/* ---------- 私たちについて ---------- */
.about__block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.about__block + .about__block { margin-top: 40px; }

.about__aside { display: flex; flex-direction: column; gap: 8px; }
.about__role { font-size: 14px; letter-spacing: .08em; color: var(--muted); }
.about__name {
  font-size: 27px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.3;
  color: var(--ink);
}
.about__subtitle {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
}

.about__body { display: flex; flex-direction: column; }
.about__body > .label { padding-bottom: 14px; }

.table { display: flex; flex-direction: column; }
.table__row {
  border-top: 1px solid var(--line-soft);
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.table__row:first-child { border-top-color: var(--ink); }
.table__row:last-child { border-bottom: 1px solid var(--line-soft); }

.table--career dt {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .01em;
  color: var(--ink);
}
.table--career dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

.table--company dt {
  font-size: 13.5px;
  letter-spacing: .04em;
  color: var(--muted);
}
.table--company dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink);
}

@media (min-width: 960px) {
  .about__block {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 72px;
    align-items: start;
  }
  .about__block + .about__block { margin-top: 72px; }
  .about__aside { gap: 12px; }
  .about__name { font-size: 34px; }
  .about__subtitle { font-size: 22px; }
  .about__body > .label { padding-bottom: 18px; }

  .table__row {
    display: grid;
    gap: 24px;
    padding: 24px 0;
  }
  .table--career .table__row  { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
  .table--company             { max-width: 720px; }
  .table--company .table__row { grid-template-columns: 200px minmax(0, 1fr); }

  .table--career dt { font-size: 18px; }
  .table--career dd { font-size: 16px; }
  .table--company dt { font-size: 15px; }
  .table--company dd { font-size: 17px; line-height: 2; }
}

/* ---------- お問い合わせ ---------- */
.contact {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact__intro { display: flex; flex-direction: column; gap: 18px; }

.contact__title {
  font-size: 25px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .01em;
  color: var(--white);
}

.contact__lead {
  font-size: 16px;
  line-height: 1.95;
  color: var(--on-ink);
  max-width: 440px;
}

.contact__notice {
  border-left: 2px solid var(--on-ink-3);
  padding-left: 14px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--on-ink-2);
  max-width: 400px;
}

.form { display: flex; flex-direction: column; gap: 22px; }

.field { display: flex; flex-direction: column; gap: 9px; }

.field__label {
  font-size: 14.5px;
  color: var(--on-ink);
}

.tag { font-size: 12.5px; color: var(--muted-2); }
.tag--req { font-weight: 700; color: var(--gold-ll); }

.field__input {
  width: 100%;
  height: 52px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 0;
  padding: 0 16px;
  font-family: inherit;
  font-size: 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field__input--area {
  height: 150px;
  padding: 14px 16px;
  line-height: 1.85;
  resize: vertical;
}
.field__input:focus {
  outline: none;
  border-color: var(--gold-l);
  box-shadow: 0 0 0 2px rgba(201, 169, 97, .5);
}
.field__input[aria-invalid="true"] {
  border-color: #E2A0A0;
  box-shadow: 0 0 0 2px rgba(226, 160, 160, .35);
}

.field__error {
  font-size: 13px;
  line-height: 1.6;
  color: #E7AFAF;
}

.consent {
  display: flex;
  align-items: center;
  gap: 11px;
}
.consent__box {
  width: 20px;
  height: 20px;
  flex: none;
  margin: 0;
  border: 1px solid var(--on-ink-2);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-content: center;
  -webkit-appearance: none;
  appearance: none;
}
.consent__box::before {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 1.8px solid var(--ink);
  border-bottom: 1.8px solid var(--ink);
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform .14s ease;
}
.consent__box:checked {
  background: var(--gold-ll);
  border-color: var(--gold-ll);
}
.consent__box:checked::before { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.consent__box[aria-invalid="true"] { border-color: #E2A0A0; }

.consent__label {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--on-ink);
  cursor: pointer;
}

.link-gold {
  border: 0;
  border-bottom: 1px solid var(--gold-l);
  background: none;
  padding: 0;
  color: var(--gold-ll);
  font-size: inherit;
  cursor: pointer;
}
.link-gold:hover { color: var(--white); border-color: var(--white); }

.form__note {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted-2);
}

.form__submit {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--white);
  border-radius: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 20px 0;
  cursor: pointer;
  transition: opacity .18s ease;
}
.form__submit:hover { opacity: .86; }
.form__submit[disabled] { opacity: .5; cursor: default; }

.form__status:empty { display: none; }
.form__status {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gold-ll);
}
.form__status[data-state="error"] { color: #E7AFAF; }

@media (min-width: 960px) {
  .contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 96px;
    align-items: start;
  }
  .contact__intro { gap: 28px; }
  .contact__title { font-size: 38px; line-height: 1.5; }
  .contact__lead { font-size: 17px; line-height: 2; }
  .contact__notice { padding-left: 18px; font-size: 14px; }

  .form { gap: 26px; }
  .field { gap: 10px; }
  .field__label { font-size: 15px; }
  .tag { font-size: 13px; }
  .field__input { height: 54px; }
  .field__input--area { height: 170px; }
  .consent { gap: 13px; padding-top: 6px; }
  .consent__label { font-size: 15px; }
  .form__note { font-size: 13px; }
  .form__submit { font-size: 17px; padding: 21px 0; margin-top: 8px; }
}

/* ---------- フッター ---------- */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--ink-line);
  padding: 38px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer__logo { color: var(--white); }
.footer__logo:hover { color: var(--on-ink); }
.footer .logo { color: currentColor; height: 28px; }

.footer__copy {
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--muted-2);
}

@media (min-width: 960px) {
  .footer { padding: 44px 0; }
  .footer__inner { flex-direction: row; justify-content: space-between; }
  .footer .logo { height: 32px; }
  .footer__copy { font-size: 13px; }
}

/* ---------- モーダル ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 26, .62);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: fade-in .18s ease both;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.modal__panel {
  position: relative;
  width: min(100%, 720px);
  max-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  animation: panel-in .22s ease both;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px var(--gutter) 20px;
  border-bottom: 1px solid var(--line);
}

.modal__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
}

.modal__close {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.modal__close:hover { color: var(--gold); }

.modal__body {
  overflow-y: auto;
  padding: 24px var(--gutter) 32px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--text);
  -webkit-overflow-scrolling: touch;
}
.modal__body h3 {
  margin: 26px 0 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
}
.modal__body h3:first-of-type { margin-top: 0; }

.modal__draft {
  border-left: 2px solid var(--gold);
  padding-left: 14px;
  margin-bottom: 26px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.modal__date {
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--muted);
}

@media (min-width: 960px) {
  .modal { padding: 40px; }
  .modal__head { padding: 28px 40px 22px; }
  .modal__body { padding: 28px 40px 40px; font-size: 15.5px; }
  .modal__title { font-size: 22px; }
}

/* ---------- 固定ヘッダー分のスクロール余白 ---------- */
[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---------- 印刷 ---------- */
@media print {
  .header, .drawer, .modal, .skip-link, .hero__actions, .form { display: none !important; }
  body { background: #fff; }
  .section--ink, .footer { background: #fff !important; }
  .contact__title, .footer__logo { color: #000 !important; }
}
