/* Attend サービスLP。Medical Attend の style.css には依存しない独立スタイル。
 * 角丸ルール: ボタン・入力 8px / 面 12px。アクセントは --accent の1色のみ。 */

:root {
  --ink: #15222b;
  --ink-sub: #4d5b63;
  --ink-mute: #6b777d;
  --line: #e1e6e7;
  --surface: #ffffff;
  --surface-2: #f4f6f6;
  --accent: #0f766e;
  --accent-ink: #0b5a54;
  --accent-soft: #e7f2f0;
  --wrap: 1160px;
  --font: 'IBM Plex Sans JP', 'Hiragino Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--surface); line-height: 1.85; font-size: 16px; -webkit-font-smoothing: antialiased; font-feature-settings: 'palt'; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
section[id] { scroll-margin-top: 80px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 0; border-radius: 8px; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s ease, transform .1s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.link-arrow { font-weight: 700; color: var(--accent-ink); text-decoration: none; }
.link-arrow::after { content: ' \2192'; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* header */
.hdr { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.logo strong { font-size: 22px; font-weight: 700; letter-spacing: .01em; }
.logo span { font-size: 11px; color: var(--ink-mute); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-sub); }
.nav a:hover { color: var(--ink); }

/* hero */
.hero { padding: 72px 0 80px; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: 52px; line-height: 1.32; font-weight: 700; letter-spacing: -.01em; }
.hero-sub { margin-top: 24px; max-width: 30em; color: var(--ink-sub); font-size: 17px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; }
.visual { position: relative; border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.visual img { width: 100%; height: 100%; object-fit: cover; }
.visual-hero { aspect-ratio: 4 / 3; }

/* proof */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-list { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-list li { padding: 32px 32px 32px 0; }
.proof-list li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.proof-num { display: block; font-size: 30px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.proof-label { display: block; margin-top: 6px; color: var(--ink-sub); font-size: 14px; }

/* common section */
.sec { padding: 112px 0; }
.sec-tint { background: var(--surface-2); }
.h2 { font-size: 36px; line-height: 1.45; font-weight: 700; letter-spacing: -.005em; }
.lead { margin-top: 20px; max-width: 38em; color: var(--ink-sub); }

/* pains */
.pains-in { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.pains-list li { padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 500; }
.pains-list li:first-child { padding-top: 0; }
.pains-close { margin-top: 28px; color: var(--ink-sub); }

/* services index */
.index { margin-top: 48px; border-top: 1px solid var(--ink); }
.index a { display: grid; grid-template-columns: 220px 1fr auto 24px; gap: 32px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .2s ease; }
.index a:hover { background: var(--surface-2); }
.index-name { font-size: 22px; font-weight: 700; }
.index-desc { color: var(--ink-sub); font-size: 15px; }
.index-price { font-weight: 700; font-size: 15px; white-space: nowrap; }
.index-arrow { color: var(--accent); font-weight: 700; }
.note { margin-top: 16px; color: var(--ink-mute); font-size: 13px; }

/* consulting */
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.ladder li { position: relative; padding: 32px; }
.ladder li + li { border-left: 1px solid var(--line); }
.ladder li + li::before { content: ''; position: absolute; left: -8px; top: 40px; width: 14px; height: 14px; background: var(--surface); border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: rotate(45deg); }
.ladder-kind { font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.ladder-title { margin-top: 6px; font-size: 19px; font-weight: 700; line-height: 1.5; }
.ladder-price { margin-top: 16px; font-size: 28px; font-weight: 700; line-height: 1.2; }
.ladder-price small { margin-left: 2px; font-size: 14px; }
.ladder-body { margin-top: 12px; color: var(--ink-sub); font-size: 14px; }
.ladder li.is-goal { background: var(--accent-soft); border-radius: 0 12px 12px 0; }
.consult-foot { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; margin-top: 56px; align-items: start; }
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.groups h3 { font-size: 15px; font-weight: 700; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.groups li { padding-top: 12px; font-size: 15px; }
.why { color: var(--ink-sub); font-size: 15px; }
.why strong { display: block; margin-bottom: 8px; color: var(--ink); font-size: 15px; }
.why .btn { margin-top: 24px; }

/* split sections (ads / system) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-rev .split-media { order: -1; }
.visual-ads { aspect-ratio: 3 / 2; }
.shot { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
.shot figcaption { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink-mute); font-size: 13px; }
.inline-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.inline-list li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: var(--surface); }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.price-row .amount { font-size: 30px; font-weight: 700; line-height: 1.2; }
.price-row .amount small { font-size: 14px; }
.price-row .terms { color: var(--ink-sub); font-size: 14px; flex-basis: 100%; }
.split .btn { margin-top: 28px; }

/* profile */
.profile { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.profile-body { font-size: 17px; line-height: 2.05; max-width: 40em; }
.profile-role { margin-top: 12px; color: var(--ink-mute); font-size: 14px; }

/* flow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 48px; counter-reset: flow; }
.flow li { padding: 20px 24px 0 0; border-top: 2px solid var(--ink); counter-increment: flow; font-weight: 700; }
.flow li + li { padding-left: 24px; }
.flow li::before { content: counter(flow); display: block; margin-bottom: 6px; color: var(--accent); font-size: 14px; }
.flow li span { display: block; margin-top: 6px; color: var(--ink-sub); font-size: 14px; font-weight: 400; }

/* faq */
.faq-in { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-weight: 700; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--accent); font-weight: 700; }
.faq-list details[open] summary::after { content: '\2212'; }
.faq-list p { padding: 0 0 22px; color: var(--ink-sub); font-size: 15px; }

/* contact */
.contact-in { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.contact-points { margin-top: 28px; color: var(--ink-sub); font-size: 15px; }
.contact-points li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.form { padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { padding: 0; font-size: 14px; font-weight: 700; }
.req { margin-left: 6px; color: #b42318; font-size: 12px; font-weight: 700; }
.opt { margin-left: 6px; color: var(--ink-mute); font-size: 12px; font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1px solid #c3cbce; border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.6; }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6b777d; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.checks label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #c3cbce; border-radius: 8px; font-size: 15px; cursor: pointer; }
.checks label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.checks input, .consent input { width: 18px; height: 18px; accent-color: var(--accent); }
.consent { display: flex; align-items: center; gap: 10px; margin: 4px 0 24px; font-size: 14px; color: var(--ink-sub); }
.consent a { color: var(--accent-ink); font-weight: 700; }
.form .btn { width: 100%; }
.form .btn:disabled { opacity: .6; cursor: wait; }
.form-error { margin-bottom: 20px; padding: 12px 14px; border-radius: 8px; background: #fef3f2; color: #b42318; font-size: 14px; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* footer */
.ftr { padding: 40px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-sub); }
.ftr-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.ftr-links { display: flex; flex-wrap: wrap; gap: 24px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--ink); text-decoration: underline; }

/* thanks */
.thanks { padding: 120px 0; text-align: center; }
.thanks p { margin: 20px auto 0; max-width: 32em; color: var(--ink-sub); }
.thanks-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin-top: 36px; }

@media (max-width: 960px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .hdr-in { gap: 16px; height: 60px; }
  .hdr .btn { margin-left: auto; }
  .logo span { display: none; }
  .hero { padding: 40px 0 56px; }
  .hero-in, .pains-in, .consult-foot, .split, .profile, .faq-in, .contact-in { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-wrap: wrap; gap: 20px; }
  .proof-list { grid-template-columns: 1fr; }
  .proof-list li, .proof-list li + li { padding: 20px 0; border-left: 0; }
  .proof-list li + li { border-top: 1px solid var(--line); }
  .sec { padding: 72px 0; }
  .h2 { font-size: 27px; }
  .pains-list li { font-size: 17px; padding: 16px 0; }
  .index a { grid-template-columns: 1fr 24px; gap: 6px 16px; padding: 22px 0; }
  .index-name { grid-column: 1; }
  .index-arrow { grid-column: 2; grid-row: 1 / span 3; }
  .index-desc, .index-price { grid-column: 1; }
  .ladder { grid-template-columns: 1fr; }
  .ladder li + li { border-left: 0; border-top: 1px solid var(--line); }
  .ladder li + li::before { left: 32px; top: -8px; transform: rotate(135deg); }
  .ladder li.is-goal { border-radius: 0 0 12px 12px; }
  .groups { grid-template-columns: 1fr; gap: 24px; }
  .split-rev .split-media { order: 0; }
  .flow { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .flow li:nth-child(3) { padding-left: 0; }
  .form { padding: 24px 18px; }
  .grid-2, .checks { grid-template-columns: 1fr; }
}
