/*
 * ショートルLP スタイル
 *
 * 前半（「WordPress / Contact Form 7 用の追加」より上）は静的版
 * shortoru-lp/index.html の <style> と同一です。見た目を変える場合は両方を揃えてください。
 */
:root {
  --lp-w: 430px;
  --ink: #111318;
  --ink-2: #4a4f5c;
  --muted: #8a8f9c;
  --line: #e3e5ec;
  --bg-out: #eef0f4;
  --white: #ffffff;
  --pink: #ff1f78;
  --pink-d: #e0005f;
  --cyan: #12c8f0;
  --purple: #8a3cff;
  --error: #d6143c;
  --grad: linear-gradient(90deg, var(--pink), var(--purple) 55%, var(--cyan));
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg-out);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ===== Layout ===== */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--lp-w) minmax(0, 1fr);
  min-height: 100vh;
}
.side { position: relative; }
.side__inner { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 32px; }
.side--left .side__inner { align-items: flex-end; }
.side--right .side__inner { align-items: flex-start; }
.lp {
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(17,19,24,.04), 0 10px 40px rgba(17,19,24,.10);
  min-width: 0;
}

/* ===== LP sections (images) ===== */
.lp-section { position: relative; margin: 0; scroll-margin-top: 0; }
.lp-section img { display: block; width: 100%; height: auto; object-fit: contain; }
.lp-img-link { display: block; transition: filter .2s ease, transform .12s ease; }
.lp-img-link:hover { filter: brightness(1.05); }
.lp-img-link:active { transform: translateY(1px); filter: brightness(.97); }
.lp-img-link:focus-visible { outline-offset: -4px; }



/* ===== Left nav ===== */
.side-nav { width: 220px; }
.brand { display: inline-block; text-decoration: none; margin-bottom: 4px; }
.brand__tag { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--pink); margin-bottom: 2px; }
.brand__name {
  display: block; font-size: 34px; font-weight: 900; font-style: italic; letter-spacing: -.02em; line-height: 1.1;
  color: var(--ink);
}
.brand__bar { display: block; height: 4px; width: 100%; margin-top: 6px; border-radius: 2px; background: var(--grad); }
.side-nav__list { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: nav; }
.side-nav__list li { counter-increment: nav; }
.side-nav__link {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px; text-decoration: none;
  font-size: 14px; font-weight: 700; color: var(--ink-2);
  transition: background-color .2s ease, color .2s ease;
}
.side-nav__link::before {
  content: counter(nav, decimal-leading-zero); font-size: 11px; font-weight: 900; color: var(--muted);
  font-style: italic; width: 18px; transition: color .2s ease;
}
.side-nav__link::after {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px;
  background: var(--grad); opacity: 0; transform: scaleY(.3); transition: opacity .25s ease, transform .25s ease;
}
.side-nav__link:hover { background: rgba(18,200,240,.08); color: var(--ink); }
.side-nav__link.is-active { background: var(--white); color: var(--ink); box-shadow: 0 2px 10px rgba(17,19,24,.06); }
.side-nav__link.is-active::before { color: var(--pink); }
.side-nav__link.is-active::after { opacity: 1; transform: none; }
.side-nav__cta {
  display: block; margin-top: 22px; padding: 12px 14px; border-radius: 999px; text-align: center; text-decoration: none;
  font-size: 13px; font-weight: 700; color: var(--white); background: var(--ink);
  transition: background-color .2s ease, transform .12s ease;
}
.side-nav__cta:hover { background: #2a2e38; }
.side-nav__cta:active { transform: translateY(1px); }

/* ===== Right price card ===== */
.price-card {
  width: 284px; padding: 22px 20px 20px; border-radius: 20px; color: var(--white);
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(255,31,120,.35), transparent 60%),
    radial-gradient(100% 60% at 0% 100%, rgba(18,200,240,.25), transparent 60%),
    #12131a;
  box-shadow: 0 14px 40px rgba(17,19,24,.22);
  position: relative; overflow: hidden;
}
.price-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.price-card__label {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--pink); letter-spacing: .02em;
}
.price-card__name { margin: 8px 0 0; font-size: 22px; font-weight: 900; font-style: italic; letter-spacing: -.01em; }
.price-card__price { margin: 14px 0 0; line-height: 1.2; }
.price-card__price small { display: block; font-size: 12px; font-weight: 700; color: #c9ccd6; }
.price-card__price strong { font-size: 34px; font-weight: 900; letter-spacing: -.02em; background: linear-gradient(180deg, #fff3a8, #ffcf33); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-card__price span { font-size: 15px; font-weight: 900; }
.price-card__price em { font-style: normal; font-size: 11px; color: #c9ccd6; margin-left: 2px; }
.price-card__list { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; }
.price-card__list li { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; }
.price-card__list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); transform: translateY(-2px); }
.price-card__list b { color: var(--white); }
.price-card__note { margin: 8px 0 0; font-size: 11px; color: #a9adb9; }
.btn-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; min-height: 52px; padding: 12px 18px; border-radius: 999px;
  text-decoration: none; font-weight: 900; font-size: 15px; white-space: nowrap; color: var(--white);
  background: linear-gradient(180deg, #ff4f97, var(--pink-d));
  box-shadow: 0 6px 18px rgba(255,31,120,.40), inset 0 1px 0 rgba(255,255,255,.35);
  transition: filter .2s ease, transform .12s ease, box-shadow .2s ease;
}
.btn-cta:hover { filter: brightness(1.08); }
.btn-cta:active { transform: translateY(1px); box-shadow: 0 3px 10px rgba(255,31,120,.35); }
.btn-cta__arrow { width: 22px; height: 22px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.btn-cta__arrow svg { width: 12px; height: 12px; }

/* ===== Mobile sticky CTA ===== */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 8px 8px calc(8px + var(--safe-b));
  background: transparent;
  display: none;
  transform: translateY(110%); opacity: 0; visibility: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease, visibility 0s linear .35s;
}
.sticky-cta.is-shown { transform: none; opacity: 1; visibility: visible; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease; }
.sticky-cta a { display: block; max-width: calc(var(--lp-w) - 16px); margin: 0 auto; border-radius: 16px; filter: drop-shadow(0 -2px 10px rgba(17,19,24,.18)); transition: filter .2s ease, transform .12s ease; }
.sticky-cta a:hover { filter: drop-shadow(0 -2px 10px rgba(17,19,24,.18)) brightness(1.06); }
.sticky-cta a:active { transform: translateY(1px); }
.sticky-cta img { display: block; width: 100%; height: auto; }

/* ===== Contact form ===== */
.contact { padding: 36px 24px 56px; background: var(--white); scroll-margin-top: 0; }
.contact__head { text-align: center; }
.contact__title {
  display: inline-block; margin: 0; font-size: 26px; font-weight: 900; line-height: 1.4; letter-spacing: .02em;
  background: linear-gradient(90deg, #e8447f 0%, #b04fd9 55%, #4f6ff0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact__lead { margin: 14px auto 0; max-width: 34em; font-size: 14px; line-height: 1.75; color: #6b6f7b; text-align: center; text-wrap: pretty; }
.form-card { margin-top: 32px; }
.dev-notice {
  margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; font-size: 12.5px; line-height: 1.6;
  background: #fff8e1; border: 1px dashed #e6a700; color: #6b4e00;
}
.dev-notice code { font-size: 12px; background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; }
.field { margin-bottom: 26px; }
.field__label { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 16px; font-weight: 700; color: var(--ink); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1; padding: 5px 9px; border-radius: 6px; color: var(--white); }
.badge--req { background: #e8447f; }
.badge--opt { background: #9a9eab; }
.input, .select, .textarea {
  display: block; width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #f8f8fb; border: 1px solid #dfe0e7; border-radius: 12px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  -webkit-appearance: none; appearance: none;
}
.input, .select { height: 56px; padding: 0 16px; }
.select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 7'%3E%3Cpath d='M0 0h12L6 7z' fill='%234a4f5c'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 12px 7px;
}
.select:invalid { color: #6b6f7b; }
.textarea { min-height: 150px; padding: 14px 16px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: #b3b6c0; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; background-color: var(--white); border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(18,200,240,.18);
}
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--error); background-color: #fff6f8; }
.field__error { display: block; min-height: 0; margin-top: 6px; font-size: 12.5px; font-weight: 500; color: var(--error); }
.field__error:empty { display: none; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--pink); cursor: pointer; }
.consent a { color: var(--pink-d); font-weight: 700; }
.btn-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 58px; margin-top: 8px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 17px; font-weight: 900; color: var(--white);
  background: linear-gradient(180deg, #ff4f97, var(--pink-d));
  box-shadow: 0 8px 22px rgba(255,31,120,.35), inset 0 1px 0 rgba(255,255,255,.35);
  transition: filter .2s ease, transform .12s ease, opacity .2s ease;
}
.btn-submit:hover { filter: brightness(1.08); }
.btn-submit:active { transform: translateY(1px); }
.btn-submit[disabled] { opacity: .65; cursor: progress; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; display: none; }
.btn-submit.is-loading .spinner { display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin-top: 16px; padding: 14px; border-radius: 10px; font-size: 14px; line-height: 1.6; }
.form-status[hidden] { display: none; }
.form-status--success { background: #e9fbf3; border: 1px solid #44c48a; color: #0f5a37; }
.form-status--error { background: #fff0f3; border: 1px solid #f08aa2; color: #8a0f2c; }
.form-status--warn { background: #fff8e1; border: 1px solid #e6a700; color: #6b4e00; }
.form-foot { margin: 14px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

/* ===== Footer ===== */
.footer { padding: 28px 20px calc(28px + var(--safe-b)); background: #12131a; color: #c9ccd6; font-size: 12.5px; }
.footer__brand { font-size: 20px; font-weight: 900; font-style: italic; color: var(--white); }
.footer__brand small { display: block; font-size: 11px; font-style: normal; font-weight: 500; color: #a9adb9; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; padding: 0; list-style: none; }
.footer__links a { color: var(--white); text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__copy { margin: 18px 0 0; font-size: 11px; color: #8a8f9c; }

/* ===== Privacy policy dialog ===== */
.policy {
  width: min(560px, calc(100vw - 24px)); max-height: min(86vh, 860px); padding: 0;
  border: 0; border-radius: 16px; color: var(--ink); background: var(--white);
  box-shadow: 0 20px 60px rgba(17,19,24,.35);
}
.policy::backdrop { background: rgba(17,19,24,.55); }
.policy__inner { display: flex; flex-direction: column; max-height: inherit; }
.policy__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.policy__title { margin: 0; font-size: 18px; font-weight: 900; }
.policy__close {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: #f1f2f6; color: var(--ink); font-size: 22px; line-height: 1;
}
.policy__close:hover { background: #e6e8ee; }
.policy__body { overflow-y: auto; padding: 18px 20px 24px; font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }
.policy__body h3 { margin: 22px 0 6px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.policy__body h3:first-of-type { margin-top: 14px; }
.policy__body p { margin: 0; }
.policy__body ul { margin: 6px 0 0; padding-left: 1.3em; }
.policy__body li { margin: 2px 0; }
.policy__date { margin-top: 24px !important; text-align: right; font-size: 12.5px; }

/* ===== Responsive ===== */
@media (max-width: 1099px) {
  .layout { grid-template-columns: 1fr; justify-items: center; }
  .side { display: none; }
  .lp { width: 100%; max-width: var(--lp-w); }
  .sticky-cta { display: block; }
}
@media (max-width: 767px) {
  body { background: var(--white); }
  .lp { max-width: none; box-shadow: none; }
}
@media (min-width: 1400px) {
  .side__inner { padding: 40px 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =====================================================================
   WordPress / Contact Form 7 用の追加
   ===================================================================== */

/* 管理バー表示中（ログイン時）：固定要素とスクロール位置をバーの下にずらす */
.admin-bar .side__inner { top: 32px; height: calc(100vh - 32px); }
.admin-bar .lp-section, .admin-bar .contact { scroll-margin-top: 32px; }
@media (max-width: 782px) {
  .admin-bar .lp-section, .admin-bar .contact { scroll-margin-top: 46px; }
}

/* CF7 の基本スタイル（プラグインCSSはこのページでは読み込まない） */
.contact .wpcf7 { margin: 0; }
.contact .wpcf7 form { margin: 0; }
.contact .wpcf7 .screen-reader-response {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.contact .wpcf7 .hidden-fields-container { display: none; }
.contact .wpcf7-form-control-wrap { display: block; }
.contact .wpcf7-spinner { display: none !important; }
/* エラーはテーマ側（.field__error）にまとめて表示するので、CF7標準の吹き出しは隠す */
.contact .wpcf7-not-valid-tip { display: none !important; }

/* 同意チェック：CF7の入れ子spanを透過させて、静的版と同じ並びにする */
.consent .wpcf7-form-control-wrap,
.consent .wpcf7-form-control,
.consent .wpcf7-list-item { display: contents; }

/* CF7の select* は required 属性を付けないため、未選択時のグレー表示を :has で再現 */
.select:has(option[value=""]:checked) { color: #6b6f7b; }

/* サーバー側で不正と判定された項目 */
.input.wpcf7-not-valid, .select.wpcf7-not-valid, .textarea.wpcf7-not-valid { border-color: var(--error); background-color: #fff6f8; }

/* 送信中 */
.contact .wpcf7-form.submitting .btn-submit { opacity: .65; cursor: progress; pointer-events: none; }

/* 送信結果メッセージ（静的版の .form-status と同じ見た目） */
.contact .wpcf7-response-output {
  margin: 16px 0 0; padding: 14px; border-radius: 10px; font-size: 14px; line-height: 1.6;
  background: #fff8e1; border: 1px solid #e6a700; color: #6b4e00;
}
.contact .wpcf7-response-output:empty,
.contact .wpcf7-form.init .wpcf7-response-output,
.contact .wpcf7-form.resetting .wpcf7-response-output,
.contact .wpcf7-form.submitting .wpcf7-response-output,
.contact .wpcf7-form.invalid .wpcf7-response-output,
.contact .wpcf7-form.unaccepted .wpcf7-response-output { display: none; }
.contact .wpcf7-form.sent .wpcf7-response-output { background: #e9fbf3; border-color: #44c48a; color: #0f5a37; }
.contact .wpcf7-form.failed .wpcf7-response-output,
.contact .wpcf7-form.aborted .wpcf7-response-output,
.contact .wpcf7-form.spam .wpcf7-response-output { background: #fff0f3; border-color: #f08aa2; color: #8a0f2c; }

/* フォーム未設定時の案内 */
.form-unavailable { margin: 0; padding: 18px; border-radius: 12px; background: #f8f8fb; border: 1px solid #dfe0e7; font-size: 14px; text-align: center; color: var(--ink-2); }
