/* =========================================================================
   pages.css — inner-page layouts (page hero, services, message, company,
   contact form, privacy)
   ========================================================================= */

/* ---------- Page hero (sub pages) ---------- */
.page-hero { position: relative; padding-block: clamp(118px, 16vw, 188px) clamp(40px, 6vw, 72px); overflow: hidden; }
.page-hero--sub { background: var(--bg-sub); }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero__title { font-weight: 900; font-size: clamp(36px, 6.4vw, 84px); line-height: 1.06; letter-spacing: 0; margin: 0; }
.page-hero__lead { margin: 24px 0 0; font-size: clamp(15px, 1.6vw, 19px); line-height: 1.95; color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.page-hero__ghost { position: absolute; right: -2%; top: 50%; transform: translateY(-50%); z-index: 0;
  font-family: var(--latin); font-weight: 800; font-size: clamp(120px, 26vw, 360px); color: var(--accent);
  opacity: .05; letter-spacing: 0; line-height: .8; pointer-events: none; white-space: nowrap; user-select: none; }

/* breadcrumb */
.crumb { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-3);
  font-family: var(--latin); letter-spacing: .04em; margin-bottom: 26px; position: relative; z-index: 2; }
.crumb a { color: var(--ink-3); transition: color .2s; }
.crumb a:hover { color: var(--accent); }
.crumb span { color: var(--ink-3); }

/* ---------- Services detail ---------- */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 80px); align-items: center; }
.svc + .svc { margin-top: clamp(70px, 10vw, 140px); }
.svc--rev .svc__media { order: 2; }
.svc__media { position: relative; }
.svc__media .ph { aspect-ratio: 4/3; border-radius: var(--radius); }
.svc__no { position: absolute; top: -18px; left: -10px; font-family: var(--latin); font-weight: 800;
  font-size: clamp(64px, 9vw, 130px); line-height: 1; color: var(--accent); opacity: .14; z-index: 2; }
.svc__cat { font-family: var(--latin); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.svc__title { font-weight: 800; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.3; margin: 0 0 20px; }
.svc__desc { color: var(--ink-2); font-size: 16px; line-height: 2.05; margin: 0 0 22px; max-width: 52ch; }
.svc__list { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.svc__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.svc__list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 9px; }
.svc__sns { display: flex; flex-wrap: wrap; gap: 12px; }
.svc__sns a { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px;
  border: 1.5px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 700; transition: border-color .25s, background .25s, transform .2s; }
.svc__sns a:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.svc__sns svg { width: 18px; height: 18px; fill: var(--accent); }
@media (max-width: 820px){ .svc { grid-template-columns: 1fr; gap: 26px; } .svc--rev .svc__media { order: 0; } .svc__no { top: -10px; } }

/* ---------- Message page (full) ---------- */
.profile { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.profile__photo { position: sticky; top: 100px; }
.profile__photo .ph { aspect-ratio: 4/5; border-radius: var(--radius); }
.profile__id { margin-top: 22px; }
.profile__id b { font-size: 22px; font-weight: 800; display: block; }
.profile__id .role { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.profile__id .romaji { font-family: var(--latin); color: var(--ink-3); font-size: 13px; letter-spacing: .06em; margin-top: 2px; }
.profile__quote { font-weight: 800; font-size: clamp(24px, 3.6vw, 42px); line-height: 1.5; letter-spacing: 0; margin: 0 0 36px; text-wrap: balance; }
.profile__quote .accent { color: var(--accent); }
.profile h3.block-h { font-weight: 800; font-size: 20px; margin: 44px 0 18px; padding-top: 26px; border-top: 1px solid var(--line); }
.profile h3.block-h:first-of-type { border-top: 0; padding-top: 0; }
.profile p { color: var(--ink-2); font-size: 16px; line-height: 2.1; margin: 0 0 20px; }
.stats { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 8px; }
.stat { flex: 1; min-width: 150px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.stat b { font-family: var(--latin); font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1; color: var(--accent); display: block; }
.stat span { font-size: 13px; color: var(--ink-2); margin-top: 8px; display: block; }
@media (max-width: 820px){ .profile { grid-template-columns: 1fr; gap: 30px; } .profile__photo { position: static; max-width: 420px; } }

/* ---------- Company page (full table) ---------- */
.dl--full .dl__row { grid-template-columns: 200px 1fr; padding: 22px 4px; }
@media (max-width: 700px){ .dl--full .dl__row { grid-template-columns: 1fr; gap: 6px; } }
.company-service-link {
  flex-wrap: wrap;
  gap: 0 8px;
  line-height: 1.7;
}
.company-service-link span:not(:last-of-type)::after {
  content: "／";
  margin-left: 8px;
  color: currentColor;
}
.company-service-break {
  display: none;
}
.map-embed { width: 100%; aspect-ratio: 16/8; border: 0; border-radius: var(--radius); display: block; }
.map-note { font-size: 12.5px; color: var(--ink-3); margin: 12px 0 0; }

/* ---------- Contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 76px); align-items: start; }
.form-aside h2 { font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.4; margin: 0 0 18px; }
.form-aside p { color: var(--ink-2); font-size: 15px; line-height: 2; margin: 0 0 16px; }
.form-aside .mail { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--accent); font-size: 16px; margin-top: 6px; }
.form-aside .mail svg { width: 16px; }
@media (max-width: 820px){ .form-grid { grid-template-columns: 1fr; gap: 28px; } }

.contact-form-shell { overflow-anchor: none; }
.form-error {
  margin: 0 0 18px;
  padding: 13px 15px;
  border: 1px solid rgba(210,59,59,.25);
  border-radius: 8px;
  background: rgba(210,59,59,.07);
  color: #b72f2f;
  font-size: 13.5px;
  line-height: 1.7;
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field { margin-bottom: 20px; }
.field > label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; margin-bottom: 9px; }
.req { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--accent); border-radius: 4px; padding: 2px 7px; }
.opt { font-size: 11px; font-weight: 600; color: var(--ink-3); border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px; }
.input, .textarea, .select {
  width: 100%; box-sizing: border-box; font-family: var(--jp); font-size: 15.5px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 14px 16px; outline: none;
  transition: border-color .2s, box-shadow .2s; line-height: 1.6;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.textarea { min-height: 156px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23666' d='M0 0h12L6 8z'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; cursor: pointer; }
.input.err, .textarea.err, .select.err { border-color: #d23b3b; box-shadow: 0 0 0 4px rgba(210,59,59,.1); }
.err-msg { color: #d23b3b; font-size: 12.5px; margin-top: 7px; display: none; }
.err-msg.show { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); cursor: pointer; }
.check a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.turnstile-wrap { margin-top: 22px; }
.turnstile-box { min-height: 65px; }
.form-actions { margin-top: 28px; }
.form-actions .btn { width: 100%; }
.form-actions .btn:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

/* thank-you state */
.thanks { text-align: center; padding: clamp(40px, 7vw, 80px) 0; }
.thanks__icon { width: 76px; height: 76px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; margin: 0 auto 26px; }
.thanks__icon svg { width: 34px; height: 34px; stroke: var(--accent); fill: none; stroke-width: 2.4; }
.thanks h2 { font-weight: 800; font-size: clamp(24px, 3vw, 34px); margin: 0 0 14px; }
.thanks p { color: var(--ink-2); font-size: 16px; line-height: 2; max-width: 46ch; margin: 0 auto 28px; }

/* ---------- Privacy / legal article ---------- */
.legal { max-width: 800px; }
.legal .updated { font-family: var(--latin); font-size: 13px; color: var(--ink-3); letter-spacing: .04em; margin: 0 0 40px; }
.legal h2 { font-weight: 800; font-size: clamp(19px, 2.2vw, 24px); margin: 46px 0 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal p { color: var(--ink-2); font-size: 15.5px; line-height: 2.05; margin: 0 0 16px; }
.legal ul { margin: 0 0 16px; padding-left: 1.2em; color: var(--ink-2); font-size: 15.5px; line-height: 2; }
.legal li { margin-bottom: 8px; }
.legal .box { background: var(--bg-sub); border-radius: var(--radius); padding: 24px 28px; font-size: 15px; line-height: 2; color: var(--ink-2); }
.legal .box b { color: var(--ink); }

@media (max-width: 600px) {
  .page-hero {
    padding-block: 92px 44px;
  }

  .page-hero .eyebrow {
    margin-bottom: 14px;
  }

  .page-hero__title {
    font-size: clamp(32px, 10vw, 44px);
    line-height: 1.14;
  }

  .page-hero__lead {
    max-width: 100%;
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.9;
    text-wrap: wrap;
    overflow-wrap: anywhere;
  }

  .page-hero__ghost {
    right: -18%;
    top: 54%;
    font-size: clamp(84px, 28vw, 132px);
  }

  .crumb {
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 22px;
    font-size: 11.5px;
  }

  .svc {
    gap: 22px;
  }

  .svc + .svc {
    margin-top: 64px;
  }

  .svc__media .ph {
    aspect-ratio: 4/3;
  }

  .svc__no {
    top: 8px;
    left: 10px;
    font-size: clamp(56px, 18vw, 78px);
    opacity: .18;
  }

  .svc__cat {
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: .14em;
  }

  .svc__title {
    font-size: clamp(23px, 7vw, 30px);
    line-height: 1.35;
  }

  .svc__desc {
    font-size: 15px;
    line-height: 1.95;
    overflow-wrap: anywhere;
  }

  .svc__list {
    gap: 10px;
  }

  .svc__list li {
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.75;
  }

  .svc__list li::before {
    width: 7px;
    height: 7px;
    margin-top: 10px;
  }

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

  .svc__sns a {
    width: 100%;
    justify-content: center;
  }

  .profile {
    gap: 28px;
  }

  .profile__photo {
    max-width: 360px;
  }

  .profile__id {
    margin-top: 18px;
  }

  .profile__quote {
    margin-bottom: 28px;
    font-size: clamp(23px, 7.5vw, 32px);
    line-height: 1.45;
    text-wrap: wrap;
  }

  .profile h3.block-h {
    margin: 36px 0 16px;
    padding-top: 22px;
    font-size: 18px;
  }

  .profile h3.block-h span {
    display: block;
    margin: 4px 0 0 !important;
  }

  .profile p {
    font-size: 15px;
    line-height: 1.95;
    overflow-wrap: anywhere;
  }

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

  .stat {
    min-width: 0;
    padding: 20px;
  }

  .dl--full .dl__row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 17px 0;
  }

  .dl__row dd,
  .dl__row dd a {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .dl__row .tlink {
    display: block;
    line-height: 1.7;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .dl__row .company-service-link {
    display: block;
    word-break: keep-all;
  }

  .company-service-link span {
    white-space: nowrap;
  }

  .company-service-break {
    display: block;
  }

  .company-service-link span:not(:last-of-type)::after {
    margin-left: 7px;
  }

  .dl__row .tlink .arr {
    display: inline-block;
    margin-left: 4px;
    vertical-align: -1px;
  }

  .map-embed {
    aspect-ratio: 4/3;
    border-radius: var(--radius);
  }

  .form-grid {
    gap: 30px;
  }

  .form-aside h2 {
    font-size: clamp(22px, 7vw, 28px);
  }

  .form-aside p {
    font-size: 14.5px;
    line-height: 1.9;
    overflow-wrap: anywhere;
  }

  .form-aside .mail {
    max-width: 100%;
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .field {
    margin-bottom: 18px;
  }

  .field > label {
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    line-height: 1.6;
  }

  .req,
  .opt {
    margin-top: 1px;
    white-space: nowrap;
  }

  .input,
  .textarea,
  .select {
    min-height: 50px;
    padding: 13px 14px;
    border-radius: 9px;
    font-size: 16px;
  }

  .textarea {
    min-height: 150px;
  }

  .check {
    gap: 10px;
    font-size: 13.5px;
  }

  .form-actions {
    margin-top: 24px;
  }

  .thanks {
    padding-block: 30px 10px;
  }

  .thanks__icon {
    width: 66px;
    height: 66px;
    margin-bottom: 22px;
  }

  .thanks p {
    font-size: 15px;
    line-height: 1.9;
    overflow-wrap: anywhere;
  }

  .legal .updated {
    margin-bottom: 30px;
  }

  .legal h2 {
    margin: 38px 0 14px;
    padding-top: 24px;
  }

  .legal p,
  .legal ul {
    font-size: 15px;
    line-height: 1.95;
    overflow-wrap: anywhere;
  }

  .legal .box {
    padding: 20px;
    font-size: 14.5px;
    line-height: 1.9;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .page-hero__title {
    font-size: 31px;
  }

  .svc__sns a {
    height: 44px;
    padding-inline: 14px;
  }
}
