:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #18181b;
  --muted: #6b6b73;
  --line: #e6e4de;
  --accent: #ff4f7b;
  --accent-text: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111113;
    --surface: #1b1b1f;
    --text: #f2f2f3;
    --muted: #a0a0aa;
    --line: #2c2c33;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif; line-height: 1.7; }
a { color: var(--accent); }
.site-head { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.site-head-inner { width: min(100%, 1120px); min-height: 36px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; letter-spacing: .01em; }
.logo img { display: block; width: 118px; height: auto; object-fit: contain; }
.site-head-actions { display: flex; align-items: center; gap: 9px; }
.head-login, .head-signup { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 700; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.head-login:hover { border-color: var(--accent); color: var(--accent); }
.head-signup { border-color: var(--accent); background: var(--accent); color: var(--accent-text); }
.head-signup:hover { filter: brightness(.96); }
.account-menu { position: relative; }
.account-menu > summary { display: grid; width: 42px; height: 42px; place-items: center; list-style: none; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; color: var(--text); }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary:hover, .account-menu[open] > summary { border-color: var(--accent); color: var(--accent); }
.account-menu > summary svg { width: 23px; height: 23px; fill: currentColor; }
.account-menu > summary img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.account-menu nav { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; display: grid; min-width: 180px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 10px 30px rgb(24 24 27 / 14%); }
.account-menu nav a { padding: 10px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; }
.account-menu nav a:hover { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent); }
main.narrow { max-width: 440px; margin: 40px auto; padding: 0 16px; }
main.legal { max-width: 800px; margin: 32px auto 64px; padding: 0 20px; font-size: 16px; line-height: 1.85; }
main.legal h1 { font-size: clamp(28px, 6vw, 36px); line-height: 1.35; margin: 0 0 16px; }
main.legal h2 { font-size: 21px; line-height: 1.45; margin: 36px 0 10px; }
main.legal p { margin: 10px 0 16px; }
main.legal ul { padding-left: 1.4em; }
main.legal li { margin: 8px 0; }
.site-foot { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; padding: 28px 16px; border-top: 1px solid var(--line); font-size: 15px; }
main.landing { width: min(100%, 1120px); margin: 0 auto; padding: 48px 24px 88px; }
.hero { min-height: 540px; padding: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); align-items: center; gap: clamp(30px, 5vw, 64px); overflow: hidden; border-radius: 32px; background: var(--bg) url("/static/pitaso-home-hero.webp") center / cover no-repeat; }
.hero-copy { max-width: 610px; position: relative; z-index: 1; }
.landing h1 { font-size: clamp(38px, 4.5vw, 52px); line-height: 1.28; letter-spacing: -.045em; margin: 0 0 22px; }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; background: var(--accent); color: var(--accent-text); font-weight: 700; padding: 14px 32px; border-radius: 999px; text-decoration: none; border: 0; font-size: 17px; cursor: pointer; box-shadow: 0 10px 28px rgb(255 79 123 / 22%); transition: transform .18s ease, box-shadow .18s ease; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgb(255 79 123 / 28%); }
.hero-product { width: min(100%, 370px); aspect-ratio: 2 / 3; height: auto; justify-self: center; perspective: 1200px; transform-style: preserve-3d; }
.hero-page-preview { display: block; width: 100%; height: 100%; border: 0; background: transparent; object-fit: contain; pointer-events: none; transform: rotateX(2deg) rotateY(-6deg) rotateZ(-1deg); transform-style: preserve-3d; }
.features-section { padding-top: 88px; }
.features-section > h2 { max-width: 720px; margin: 0 auto 28px; text-align: center; font-size: clamp(25px, 3.4vw, 36px); line-height: 1.45; letter-spacing: -.025em; }
.cta.google { display: block; text-align: center; margin: 20px 0; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: left; }
.features li { min-height: 190px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; color: var(--muted); font-size: 16px; line-height: 1.8; box-shadow: 0 8px 24px rgb(34 24 21 / 4%); }
.features b { display: block; color: var(--text); font-size: 19px; line-height: 1.5; margin-bottom: 10px; }
.features span { display: block; }
.note { color: var(--muted); font-size: 15px; }
.error { color: #d93025; font-weight: 600; }
.login-form, .report, .report-start { display: grid; gap: 10px; margin: 20px 0; }
input, textarea, button { font: inherit; }
.login-form label { font-size: 15px; font-weight: 700; }
.login-form input, .report textarea, .report-start input, .report-start textarea, .admin-edit-form input, .admin-edit-form textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
input.auth-code-input { display: block; width: min(100%, 360px); min-height: 64px; margin-inline: auto; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: .45em; text-align: center; }
.auth-code-input::placeholder { font-size: 16px; letter-spacing: 0; color: var(--muted); }
.auth-code-input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.auth-resend { margin-top: 12px; text-align: center; }
.auth-resend button, .auth-switch a { border: 0; padding: 4px; background: none; color: var(--text); font: inherit; text-decoration: underline; cursor: pointer; }
.auth-switch { text-align: center; }
.report textarea { min-height: 110px; }
.login-form button, .report button, .report-start button { padding: 12px; border: 0; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 700; cursor: pointer; }
.login-back { display: inline-block; margin-top: 6px; }
.report label { display: flex; gap: 8px; align-items: center; }
.report-confirm { min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.report-confirm input { width: 22px; height: 22px; flex: none; }
.report-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.report-honeypot input { position: absolute; left: -10000px; }
.report textarea:focus-visible, .report button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.admin-body { min-height: 100vh; background: var(--bg); color: var(--text); }
.admin-topbar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px max(20px, calc((100vw - 1000px) / 2)); border-bottom: 1px solid var(--line); background: var(--surface); }
.admin-top-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.admin-top-actions span { font-size: 15px; overflow-wrap: anywhere; }
.admin-top-actions form { margin: 0; }
.admin-content { width: min(100% - 40px, 1280px); margin: 0 auto; padding: 34px 0 64px; }
.admin-content > h1 { margin: 0 0 6px; font-size: clamp(26px, 5vw, 34px); }
.admin-content > p { margin: 0 0 30px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.admin-content section { margin-top: 32px; }
.admin-content section > h2 { margin: 0 0 14px; font-size: 21px; }
.admin-jump { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; padding: 10px 0; background: var(--bg); }
.admin-jump a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 15px; text-decoration: none; }
.admin-status { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.admin-status > div { display: grid; gap: 4px; padding: 14px 16px; border-right: 1px solid var(--line); }
.admin-status > div:last-child { border-right: 0; }
.admin-status strong, .admin-status span { font-size: 15px; overflow-wrap: anywhere; }
.admin-maintenance { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.admin-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; text-align: left; }
.admin-table th, .admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { background: color-mix(in srgb, var(--surface) 90%, var(--text)); font-weight: 700; white-space: nowrap; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table td a { overflow-wrap: anywhere; }
.admin-table form { margin: 0; }
.admin-table .admin-secondary, .admin-table .admin-danger { min-height: 38px; padding: 6px 10px; white-space: nowrap; font-size: 15px; }
.admin-row-actions { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px; }
.admin-table details > summary { min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; white-space: nowrap; }
.admin-table details[open] > summary { margin-bottom: 10px; }
.admin-table-detail { max-width: 360px; margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-edit-form { min-width: 240px; }
.admin-edit-form input, .admin-edit-form textarea { font-size: 15px; }
.admin-report-list { display: grid; gap: 14px; }
.admin-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.admin-report-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.admin-report-heading h2, .admin-suspended h2 { margin: 0; font-size: 19px; overflow-wrap: anywhere; }
.admin-report-heading p, .admin-suspended p { margin: 5px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.admin-report-heading > span { flex: none; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-weight: 700; }
.admin-report-detail { margin: 18px 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.admin-report-date { margin: 0; color: var(--muted); font-size: 15px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.admin-actions form { margin: 0; }
.admin-secondary, .admin-danger { min-height: 44px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; }
.admin-secondary { background: var(--surface); color: var(--text); }
.admin-danger { border-color: #a52f2f; background: #a52f2f; color: white; }
.admin-empty { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 16px; }
.admin-suspended { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.admin-login .admin-card { width: min(100%, 480px); padding: 28px; }
.admin-login h1 { margin: 28px 0 8px; font-size: 28px; }
.admin-login p { line-height: 1.7; }
.admin-login-form { display: grid; gap: 10px; margin-top: 20px; }
.admin-login-form input { width: 100%; min-height: 48px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.admin-login-form button { min-height: 48px; padding: 10px 14px; border: 0; border-radius: 10px; background: var(--text); color: var(--bg); font: inherit; font-weight: 700; }
.admin-edit-form { display: grid; gap: 10px; }
.admin-edit-form h2, .admin-edit-form p { margin: 0; }
.admin-edit-form label { font-weight: 700; }
.admin-edit-form textarea, .report-start textarea { min-height: 100px; resize: vertical; }
.admin-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; }
.admin-check input { width: 20px; height: 20px; }
.admin-body :focus-visible, .admin-login :focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
main.narrow.contact-page { max-width: 560px; margin: 32px auto; }
.contact-page h1 { font-size: clamp(28px, 6vw, 36px); line-height: 1.35; }
.contact-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; }
.contact-consent input { width: 22px; height: 22px; flex: none; margin: 2px 0 0; }
.contact-card { margin: 20px 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.contact-card h2 { margin: 0 0 8px; font-size: 20px; }
.contact-card p { margin: 0 0 16px; }
.contact-report { margin-top: 24px; }
.contact-report summary { width: fit-content; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.contact-report[open] summary { color: var(--text); }
.report-start label { font-weight: 700; }
@media (max-width: 860px) {
  .hero { min-height: 500px; grid-template-columns: minmax(0, 1fr) minmax(280px, .85fr); gap: 24px; padding: 28px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  main.landing { padding: 34px 16px 64px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 28px; padding: 26px 18px; background-image: none; }
  .hero-copy { text-align: center; margin: 0 auto; }
  .landing h1 { font-size: clamp(34px, 8vw, 46px); line-height: 1.35; margin-bottom: 18px; }
  .hero-product { display: none; }
}
@media (max-width: 640px) {
  .site-head { padding: 10px 12px; }
  .site-head-inner { gap: 6px; }
  .logo { gap: 0; font-size: 18px; }
  .logo img { width: 100px; height: auto; }
  .site-head-actions { gap: 6px; }
  .head-login, .head-signup { min-height: 38px; padding: 6px 9px; font-size: 14px; }
  .cta { width: min(100%, 320px); }
  .features-section { padding-top: 72px; }
  .features-section > h2 { margin-bottom: 22px; }
  .features { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .features li { min-height: 0; padding: 20px; font-size: 15px; }
  .features b { font-size: 18px; }
  .admin-content { width: min(100% - 28px, 1280px); padding-top: 24px; }
  .admin-status { grid-template-columns: minmax(0, 1fr); }
  .admin-status > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-status > div:last-child { border-bottom: 0; }
  .admin-table { min-width: 760px; }
  .admin-table-wrap { overscroll-behavior-inline: contain; }
  .admin-topbar { padding-inline: 14px; }
  .admin-card { padding: 16px; }
  .admin-report-heading { flex-direction: column; }
  .admin-actions { display: grid; }
  .admin-actions button, .admin-suspended button { width: 100%; }
}
