/* ============================================================
   サブページ共通スタイル — extends v3-friendly.css
   ============================================================ */

/* page hero */
.subhero {
  padding: 80px var(--pad-x, 60px) 64px;
  background:
    radial-gradient(ellipse at 80% 20%, var(--orange-tint), transparent 60%),
    radial-gradient(ellipse at 20% 80%, var(--blue-tint), transparent 60%),
    var(--bg);
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: var(--nav-h, 78px);
}
.subhero__inner { max-width: 1280px; margin: 0 auto; }
.subhero__crumb {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-soft); margin-bottom: 18px;
  display: flex; gap: 8px; align-items: center;
  letter-spacing: .04em;
}
.subhero__crumb a { color: var(--blue); }
.subhero__crumb a:hover { color: var(--orange); }
.subhero__chap {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--maru); font-weight: 700;
  font-size: 13px;
  color: var(--orange);
  background: var(--orange-tint);
  padding: 6px 16px; border-radius: var(--r-pill);
  margin-bottom: 20px;
}
.subhero__chap-num {
  font-family: var(--en); font-style: italic; font-size: 13px;
  color: var(--orange-deep);
}
.subhero__h {
  font-family: var(--maru);
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 900;
  line-height: 1.25; letter-spacing: -.005em;
  color: var(--ink);
  margin-bottom: 18px;
  text-wrap: balance;
}
.subhero__h em { color: var(--orange); }
.subhero__h .blue { color: var(--blue); font-weight: 900; font-style: normal; font-family: var(--maru); }
.subhero__sub {
  font-size: 16px; color: var(--ink-2);
  line-height: 2; max-width: 720px;
  font-weight: 500;
}

/* generic page section */
.page { padding: 90px var(--pad-x, 60px); }
.page__inner { max-width: 1100px; margin: 0 auto; }
.page__inner.wide { max-width: 1280px; }

/* article-style content */
.article {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 2.05;
  font-weight: 500;
}
.article h3 {
  font-family: var(--maru); font-size: 24px; font-weight: 900;
  color: var(--ink);
  margin-top: 56px; margin-bottom: 18px;
  padding-left: 16px;
  border-left: 5px solid var(--orange);
  line-height: 1.5;
}
.article h3:first-child { margin-top: 0; }
.article h4 {
  font-family: var(--maru); font-size: 17px; font-weight: 800;
  color: var(--ink); margin-top: 32px; margin-bottom: 10px;
}
.article p { margin-bottom: 18px; }
.article ul, .article ol { margin: 8px 0 22px 0; padding-left: 0; }
.article ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 6px;
}
.article ul li::before {
  content: ''; position: absolute;
  left: 0; top: 14px;
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
}
.article ol { counter-reset: ol-c; }
.article ol li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 8px;
  counter-increment: ol-c;
}
.article ol li::before {
  content: counter(ol-c);
  position: absolute; left: 0; top: 4px;
  width: 22px; height: 22px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  font-family: var(--maru); font-weight: 900; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.article a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article a:hover { color: var(--orange); }
.article strong { font-weight: 800; color: var(--ink); }
.article hr { border: none; border-top: 1px dashed var(--line); margin: 40px 0; }

/* company info table */
.info-table {
  width: 100%; border-collapse: collapse;
  background: var(--card);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 2px solid var(--line-soft);
}
.info-table tr { border-bottom: 1px solid var(--line-soft); }
.info-table tr:last-child { border-bottom: none; }
.info-table th, .info-table td {
  padding: 22px 28px;
  text-align: left;
  vertical-align: top;
  font-size: 14.5px;
  line-height: 1.95;
}
.info-table th {
  width: 220px;
  background: var(--bg-2);
  font-family: var(--maru); font-weight: 800;
  color: var(--ink);
}
.info-table td {
  color: var(--ink-2);
  font-weight: 500;
}
.info-table td b { color: var(--ink); font-weight: 800; }

/* news list */
.news-list {
  background: var(--card);
  border-radius: var(--r-lg);
  border: 2px solid var(--line-soft);
  overflow: hidden;
}
.news-row {
  display: grid;
  grid-template-columns: 130px 110px 1fr 32px;
  gap: 20px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
  cursor: pointer;
  transition: background .25s;
}
.news-row:last-child { border-bottom: none; }
.news-row:hover { background: var(--bg-2); }
.news-row:hover .news-arrow { color: var(--orange); transform: translateX(4px); }
.news-date {
  font-family: var(--mono); font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: .04em;
}
.news-tag {
  font-family: var(--maru); font-size: 11px; font-weight: 800;
  padding: 5px 12px; border-radius: var(--r-pill);
  text-align: center;
  background: var(--blue-tint);
  color: var(--blue);
  letter-spacing: .04em;
}
.news-tag.imp { background: var(--orange); color: white; }
.news-tag.svc { background: var(--blue); color: white; }
.news-tag.media { background: var(--orange-tint); color: var(--orange-deep); }
.news-title {
  font-family: var(--maru); font-size: 15.5px; font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
}
.news-arrow {
  color: var(--ink-mute); font-size: 18px;
  transition: color .25s, transform .25s;
  text-align: right;
}

/* pagination */
.pager {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; margin-top: 50px;
}
.pager button, .pager a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--line);
  font-family: var(--maru); font-weight: 700; font-size: 14px;
  color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .25s;
}
.pager button:hover, .pager a:hover {
  border-color: var(--blue); color: var(--blue);
}
.pager button.on, .pager a.on {
  background: var(--orange); color: white;
  border-color: var(--orange);
  box-shadow: 0 3px 0 var(--orange-deep);
}
.pager .arr { width: 80px; border-radius: var(--r-pill); }

/* news article meta */
.article-meta {
  display: flex; gap: 16px; align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}

/* contact form */
.form {
  background: var(--card);
  border-radius: var(--r-xl);
  padding: 50px 52px;
  border: 2px solid var(--line-soft);
  box-shadow: var(--shadow-card);
}
.form__row {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px dashed var(--line);
  align-items: flex-start;
}
.form__row:first-child { padding-top: 0; }
.form__row:last-child { border-bottom: none; }
.form__label {
  font-family: var(--maru); font-weight: 800;
  font-size: 15px; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  line-height: 1.5;
}
.form__req {
  font-family: var(--maru); font-size: 10px; font-weight: 800;
  color: white; background: var(--orange);
  padding: 3px 8px; border-radius: var(--r-sm);
  letter-spacing: .04em;
}
.form__opt {
  font-family: var(--maru); font-size: 10px; font-weight: 800;
  color: var(--ink-mute); background: var(--bg-3);
  padding: 3px 8px; border-radius: var(--r-sm);
}
.form__input, .form__textarea, .form__select {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 2px solid var(--line);
  background: var(--bg);
  font-family: var(--gothic); font-size: 15px;
  color: var(--ink);
  transition:
    border-color .25s var(--ease-out, ease),
    background .25s var(--ease-out, ease),
    box-shadow .25s var(--ease-out, ease);
}
.form__input:hover, .form__textarea:hover, .form__select:hover {
  border-color: var(--ink-mute);
}
.form__input:focus, .form__textarea:focus, .form__select:focus {
  outline: none;
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 4px var(--blue-tint);
}
.form__input:invalid:not(:placeholder-shown),
.form__textarea:invalid:not(:placeholder-shown) {
  border-color: var(--orange);
  background: var(--orange-tint);
}
.form__input:invalid:not(:placeholder-shown):focus,
.form__textarea:invalid:not(:placeholder-shown):focus {
  box-shadow: 0 0 0 4px var(--orange-soft);
}
.form__textarea { resize: vertical; min-height: 140px; line-height: 1.85; }
.form__hint {
  font-size: 12px; color: var(--ink-mute);
  margin-top: 8px; font-weight: 500;
}
.form__radios { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.form__radio {
  padding: 12px 22px;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--maru); font-weight: 700; font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  transition:
    background .25s var(--ease-out, ease),
    color .25s var(--ease-out, ease),
    border-color .25s var(--ease-out, ease),
    box-shadow .25s var(--ease-out, ease),
    transform .2s var(--ease-out, ease);
}
.form__radio:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.form__radio:active { transform: translateY(0); }
.form__radio.on {
  background: var(--orange); color: white;
  border-color: var(--orange);
  box-shadow: 0 3px 0 var(--orange-deep);
}
.form__radio.on:hover { color: white; transform: translateY(-1px); box-shadow: 0 5px 0 var(--orange-deep); }
.form__check {
  display: flex; align-items: center; gap: 12px;
  font-size: 14.5px; color: var(--ink-2);
  cursor: pointer;
  font-family: var(--maru); font-weight: 700;
  padding: 16px 22px;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  transition:
    background .25s var(--ease-out, ease),
    border-color .25s var(--ease-out, ease);
}
.form__check:hover { border-color: var(--ink-mute); background: var(--bg-2); }
.form__check:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-tint);
}
.form__check input { width: 20px; height: 20px; accent-color: var(--orange); flex-shrink: 0; }
.form__check span {
  display: inline-flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.form__check a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; font-weight: 800; }
.form__check a:hover { color: var(--orange); }
.form__check .form__req { font-size: 10px; }

/* 同意行はラベル列を取らずフル幅 */
.form__row--agree {
  grid-template-columns: 1fr;
  padding-top: 22px;
}
.form__submit {
  display: flex; justify-content: center; margin-top: 36px;
}
.form__submit button {
  font-family: var(--maru); font-weight: 900;
  background: var(--orange); color: white;
  padding: 22px 64px; border-radius: var(--r-pill);
  font-size: 17px;
  box-shadow: 0 5px 0 var(--orange-deep), 0 8px 22px rgba(243,152,0,.32);
  transition: all .25s;
  display: inline-flex; align-items: center; gap: 10px;
}
.form__submit button:not(:disabled):hover {
  background: var(--orange-light); transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--orange-deep), 0 12px 28px rgba(243,152,0,.4);
}
.form__submit button:not(:disabled):active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--orange-deep), 0 4px 12px rgba(243,152,0,.3);
}
.form__submit button:disabled {
  cursor: not-allowed;
  box-shadow: 0 3px 0 var(--orange-deep), 0 4px 10px rgba(243,152,0,.18);
}
.form__spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* contact channels */
.channels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-bottom: 60px;
}
.channel {
  background: var(--card);
  border: 2px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  text-align: center;
  transition: all .35s;
}
.channel:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.channel__icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  background: var(--orange-tint); color: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--maru); font-size: 22px; font-weight: 900;
}
.channel:nth-child(2) .channel__icon { background: var(--blue-tint); color: var(--blue); }
.channel__t {
  font-family: var(--maru); font-weight: 800; font-size: 17px;
  margin-bottom: 8px;
}
.channel__v {
  font-family: var(--maru); font-weight: 900; font-size: 24px;
  color: var(--blue); margin-bottom: 4px;
  letter-spacing: -.005em;
}
.channel__h {
  font-size: 12px; color: var(--ink-mute); font-weight: 500;
}

/* TOC for policy */
.toc {
  background: var(--bg-2);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  margin-bottom: 50px;
  border: 1px dashed var(--line);
}
.toc__t {
  font-family: var(--maru); font-weight: 800; font-size: 14px;
  color: var(--ink-soft); margin-bottom: 14px;
  letter-spacing: .04em;
}
.toc ol { padding-left: 0; counter-reset: toc-c; }
.toc ol li {
  counter-increment: toc-c;
  padding: 6px 0 6px 32px;
  position: relative;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 600;
}
.toc ol li::before {
  content: counter(toc-c, decimal-leading-zero);
  position: absolute; left: 0; top: 6px;
  font-family: var(--mono); font-size: 12px;
  color: var(--orange); font-weight: 700;
}
.toc a { color: var(--ink-2); transition: color .25s; }
.toc a:hover { color: var(--orange); }

/* page CTA */
.page-cta {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: white;
  border-radius: var(--r-xl);
  padding: 56px 60px;
  text-align: center;
  margin: 80px auto;
  max-width: 1100px;
  position: relative;
  overflow: hidden;
}
.page-cta::before, .page-cta::after {
  content: ''; position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.page-cta::before { top: -60px; left: -40px; width: 180px; height: 180px; }
.page-cta::after { bottom: -80px; right: -40px; width: 220px; height: 220px; }
.page-cta__t {
  font-family: var(--maru); font-size: 36px; font-weight: 900;
  margin-bottom: 14px; line-height: 1.4; position: relative;
}
.page-cta__s {
  font-family: var(--maru); font-weight: 600;
  font-size: 15px; margin-bottom: 28px;
  opacity: .92; position: relative;
}
.page-cta__row {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  position: relative;
}
.page-cta .btn-pri {
  background: white; color: var(--orange-deep);
  box-shadow: 0 4px 0 rgba(0,0,0,.15);
}
.page-cta .btn-pri:hover {
  background: var(--orange-tint);
  box-shadow: 0 6px 0 rgba(0,0,0,.18);
}
.page-cta .btn-ghost {
  background: transparent; color: white;
  border-color: rgba(255,255,255,.5);
}
.page-cta .btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: white; color: white;
}

/* about — values */
.values {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 30px;
}
.value-card {
  background: var(--card);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  border: 2px solid var(--line-soft);
  text-align: center;
}
.value-card__n {
  font-family: var(--en); font-style: italic;
  font-size: 14px; color: var(--orange);
  margin-bottom: 8px;
  letter-spacing: .04em;
}
.value-card__t {
  font-family: var(--maru); font-size: 22px; font-weight: 900;
  color: var(--ink); margin-bottom: 14px;
  line-height: 1.4;
}
.value-card__d {
  font-size: 14px; color: var(--ink-2);
  line-height: 1.95; font-weight: 500;
}

/* timeline (history) */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: ''; position: absolute;
  top: 8px; bottom: 8px; left: 9px;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--orange) 0 6px, transparent 6px 10px);
}
.tl-row { padding: 14px 0 26px; position: relative; }
.tl-row::before {
  content: ''; position: absolute;
  top: 22px; left: -36px;
  width: 14px; height: 14px;
  background: var(--orange);
  border: 3px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--orange);
}
.tl-row:nth-child(2n)::before { background: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.tl-date {
  font-family: var(--mono); font-size: 12px;
  color: var(--orange); font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.tl-row:nth-child(2n) .tl-date { color: var(--blue); }
.tl-t {
  font-family: var(--maru); font-size: 17px; font-weight: 800;
  color: var(--ink); margin-bottom: 4px;
}
.tl-d {
  font-size: 13.5px; color: var(--ink-2);
  line-height: 1.85; font-weight: 500;
}

/* sidebar layout */
.with-side {
  display: grid; grid-template-columns: 1fr 280px;
  gap: 60px;
}
.side-card {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  border: 2px solid var(--line-soft);
  margin-bottom: 16px;
}
.side-card__t {
  font-family: var(--maru); font-weight: 800; font-size: 14px;
  color: var(--ink); margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.side-card ul li {
  font-size: 13px; padding: 6px 0;
  color: var(--ink-2);
  cursor: pointer;
  transition: color .25s, padding .25s;
  font-weight: 500;
}
.side-card ul li {
  transition: color .25s var(--ease-out, ease), padding-left .25s var(--ease-out, ease);
}
.side-card ul li:hover { color: var(--orange); padding-left: 4px; }
.side-card ul li .d {
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  display: block; margin-bottom: 2px;
}

/* news row hover */
.news-row {
  transition:
    background .25s var(--ease-out, ease),
    transform .25s var(--ease-out, ease);
}
.news-row:hover { transform: translateX(4px); }
.news-row .news-arrow { transition: color .25s var(--ease-out, ease), transform .35s var(--ease-spring, ease); }

/* page-cta motion */
.page-cta {
  transition: transform .35s var(--ease-out, ease);
}
.page-cta::before, .page-cta::after {
  transition: transform .8s var(--ease-out, ease);
}
.page-cta:hover::before { transform: scale(1.15) translate(20px, 10px); }
.page-cta:hover::after { transform: scale(1.1) translate(-15px, -10px); }
.page-cta .btn-pri {
  transition:
    background .25s var(--ease-out, ease),
    transform .25s var(--ease-out, ease),
    box-shadow .25s var(--ease-out, ease);
}

/* timeline marker pulse */
@keyframes tlPulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--orange); }
  50% { box-shadow: 0 0 0 5px var(--orange-soft); }
}
.tl-row:first-child::before {
  animation: tlPulse 2.4s var(--ease-in-out, ease) infinite;
}

/* ──────────────────────────────────────────────
   Responsive
   ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .with-side {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .with-side aside {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .subhero { padding: 60px var(--pad-x, 22px) 48px; }
  .page { padding: 56px var(--pad-x, 22px); }
  .article { font-size: 14.5px; }
  .article h3 { font-size: 20px; margin-top: 40px; }

  .info-table th, .info-table td { padding: 16px 18px; font-size: 13.5px; }
  .info-table th { width: 110px; }

  .news-row {
    grid-template-columns: 90px 80px 1fr;
    gap: 10px 14px;
    padding: 16px 18px;
  }
  .news-arrow { display: none; }
  .news-date { font-size: 11.5px; }
  .news-title { grid-column: 1 / -1; font-size: 14.5px; }

  .channels { grid-template-columns: 1fr !important; }

  .form { padding: 32px 22px; }
  .form__row { grid-template-columns: 1fr; gap: 10px; padding: 16px 0; }
  .form__label { padding-top: 0; }

  .form__submit button { padding: 18px 36px; font-size: 15px; }

  .values { grid-template-columns: 1fr; gap: 16px; }
  .value-card { padding: 28px 24px; }

  .timeline { padding-left: 32px; }
  .tl-row::before { left: -28px; }

  .with-side aside {
    grid-template-columns: 1fr;
  }

  .toc { padding: 22px 24px; }

  .page-cta { padding: 40px 26px; margin: 60px auto; }
  .page-cta__t { font-size: 24px; }
  .page-cta__row { gap: 12px; }
  .page-cta .btn-pri.lg, .page-cta .btn-ghost.lg { width: 100%; justify-content: center; }

  .pager { gap: 4px; flex-wrap: wrap; }
  .pager .arr { width: auto; padding: 0 14px; }
}

@media (max-width: 480px) {
  .info-table th, .info-table td { display: block; width: 100%; padding: 12px 16px; }
  .info-table th { background: var(--bg-3); font-size: 12.5px; padding-top: 14px; }
  .info-table td { padding-top: 0; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
  .info-table tr:last-child td { border-bottom: none; }
}
