/* PASSAGE 診断ツール v1.1.3 */
.ps-tool {
  --ps-accent: #F0842C;        /* 選択肢・主ボタン */
  --ps-accent-ink: #B9560E;
  --ps-accent-bg: #FFF7F0;
  --ps-ink: #1F2D3D;
  --ps-sub: #5A6B7B;
  --ps-line: #E3E8EE;
  --ps-panel: #F5F7F9;
  --ps-ok: #2E9E6B;
  --ps-ok-bg: #EEF9F3;
  --ps-radius: 12px;
  font-family: inherit; color: var(--ps-ink); max-width: 600px; margin: 0 auto; box-sizing: border-box;
  font-size: 16px; line-height: 1.6; letter-spacing: 0.02em; text-align: left;
  background: #fff; border: 1px solid var(--ps-line); border-radius: 18px; padding: 18px 16px 20px; box-shadow: 0 8px 28px rgba(31,45,61,.08);
}
.ps-tool *, .ps-tool *::before, .ps-tool *::after { box-sizing: border-box; }
:where(.ps-tool) :where(div, span, a, button, label, b, em, small, strong) { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; text-transform: none; text-decoration: none; font-size: inherit; line-height: inherit; color: inherit; letter-spacing: inherit; }
:where(.ps-tool) :where(div)::before, :where(.ps-tool) :where(div)::after { content: none; }
.ps-tool [role="heading"] { border: 0; background: none; padding: 0; }
.ps-tool button { font: inherit; cursor: pointer; }
.ps-tool button:focus-visible, .ps-tool select:focus-visible, .ps-tool input:focus-visible { outline: 3px solid rgba(240,132,44,.45); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ps-tool * { transition: none !important; animation: none !important; } }

/* 入口 */
.ps-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.ps-chips span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #1E7A50; background: var(--ps-ok-bg); border-radius: 999px; padding: 4px 10px 4px 8px; line-height: 1.4; }
.ps-chips span::before { content: ""; width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translate(1px, -1px); }
.ps-title { font-size: 21px; font-weight: 700; line-height: 1.45; color: var(--ps-ink); margin: 0 0 4px; }
.ps-lead { font-size: 13.5px; color: var(--ps-sub); line-height: 1.6; margin: 0 0 14px; }
.ps-kicker { display: none; }
.ps-count { margin: 0 0 10px; font-size: 12.5px; color: var(--ps-sub); }
.ps-count b { color: var(--ps-ink); font-size: 14px; }
.ps-intents { display: grid; gap: 10px; margin-top: 4px; }
.ps-intent { text-align: left; border: 2px solid var(--ps-accent); background: #fff; color: var(--ps-accent-ink); border-radius: var(--ps-radius); padding: 14px 16px; line-height: 1.35; }
.ps-intent span { display: block; font-size: 17px; font-weight: 700; }
.ps-intent small { display: block; font-size: 12px; margin-top: 3px; color: var(--ps-sub); }
.ps-intent.is-primary { background: var(--ps-accent); color: #fff; }
.ps-intent.is-primary small { color: rgba(255,255,255,.9); }

/* ヘッダー・進捗 */
.ps-top { display: flex; justify-content: space-between; align-items: center; min-height: 24px; }
.ps-back { border: 0; background: none; color: var(--ps-sub); font-size: 13px; padding: 2px 4px; }
.ps-rem { font-size: 12.5px; color: var(--ps-sub); }
.ps-prog { height: 6px; background: #ECEFF3; border-radius: 3px; overflow: hidden; margin: 8px 0 14px; }
.ps-prog span { display: block; height: 100%; background: var(--ps-accent); border-radius: 3px; transition: width .3s ease; }
.ps-q { margin: 6px 0 12px; font-size: 19px; line-height: 1.45; font-weight: 700; color: var(--ps-ink); }
.ps-q-lg { font-size: 22px; }
.ps-hint { margin: -6px 0 12px; font-size: 13px; line-height: 1.6; color: var(--ps-sub); }
.ps-loading { font-size: 14px; color: var(--ps-sub); }

/* 選択肢 */
.ps-opts { display: grid; gap: 8px; }
.ps-grid2 { grid-template-columns: 1fr 1fr; }
.ps-grid3 { grid-template-columns: repeat(3, 1fr); }
.ps-list { grid-template-columns: 1fr; }
.ps-opt { position: relative; border: 2px solid var(--ps-accent); background: var(--ps-accent-bg); color: var(--ps-accent-ink); border-radius: var(--ps-radius); min-height: 56px; padding: 12px 10px; font-size: 15px; font-weight: 700; line-height: 1.3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.ps-list .ps-opt { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 52px; }
.ps-opt.is-muted { border-color: #C9D1DA; background: #fff; color: var(--ps-sub); }
.ps-opt.is-selected { background: var(--ps-accent); color: #fff; border-color: var(--ps-accent); }
.ps-opt.is-selected .ps-ic { color: #fff; }
.ps-ic { width: 24px; height: 24px; color: var(--ps-accent); flex: 0 0 auto; }
.ps-symp .ps-opt { min-height: 60px; }
.ps-symp .ps-opt img { width: 100%; height: 64px; object-fit: cover; border-radius: 8px; }
.ps-next { margin-top: 12px; width: 100%; border: 0; border-radius: var(--ps-radius); background: var(--ps-ink); color: #fff; font-weight: 700; font-size: 16px; padding: 14px; }
.ps-next:disabled { opacity: .4; cursor: default; }

/* セレクト */
.ps-selwrap { position: relative; }
.ps-select { width: 100%; appearance: none; -webkit-appearance: none; font-size: 16px; padding: 14px 44px 14px 14px; border: 2px solid var(--ps-accent); border-radius: var(--ps-radius); background: #fff; color: var(--ps-ink); }
.ps-selwrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ps-accent-ink); border-bottom: 2px solid var(--ps-accent-ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

/* 計算中 */
.ps-calc { text-align: center; padding: 28px 0 20px; }
.ps-spin { width: 36px; height: 36px; border: 4px solid #ECEFF3; border-top-color: var(--ps-accent); border-radius: 50%; margin: 0 auto 14px; animation: ps-rot .9s linear infinite; }
@keyframes ps-rot { to { transform: rotate(360deg); } }
.ps-calcmsg { font-size: 15px; color: var(--ps-sub); margin: 0; }

/* 結果 */
.ps-result { }
.ps-rlabel { margin: 0 0 2px; font-size: 13px; color: var(--ps-sub); }
.ps-rbig { margin: 0 0 4px; font-size: 28px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.ps-rbig-sm { font-size: 17px; line-height: 1.5; }
.ps-rnote { margin: 0 0 12px; font-size: 12px; color: var(--ps-sub); line-height: 1.6; }
.ps-badge { display: inline-block; margin-left: 6px; font-size: 10px; background: #FDE8E6; color: #B03A2E; border-radius: 10px; padding: 1px 7px; vertical-align: middle; }
.ps-grades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 12px; }
.ps-grades > div { position: relative; border: 1px solid var(--ps-line); border-radius: 10px; padding: 10px 6px 8px; text-align: center; font-size: 12px; }
.ps-grades > div b { display: block; font-size: 13px; margin-bottom: 2px; }
.ps-grades > div.is-rec { border-color: var(--ps-accent); background: var(--ps-accent-bg); }
.ps-grades em { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; background: var(--ps-accent); color: #fff; padding: 1px 7px; border-radius: 8px; white-space: nowrap; }
.ps-gap { background: var(--ps-panel); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.65; margin: 0 0 10px; }
.ps-info { background: var(--ps-ok-bg); border: 1px solid #BFE5CF; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.65; margin: 0 0 10px; }
.ps-info b { color: #1E7A50; }
.ps-cmt { background: var(--ps-panel); border-radius: 10px; padding: 9px 12px; font-size: 13px; line-height: 1.6; margin: 0 0 8px; }
.ps-cmt b { color: var(--ps-accent-ink); margin-right: 4px; }
.ps-usp, .ps-trust { margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.ps-usp > div { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.6; }
.ps-tool .ps-usp > div::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--ps-ok); }
.ps-trust { grid-template-columns: repeat(3, 1fr); }
.ps-trust > div { font-size: 11.5px; border: 1px solid var(--ps-line); border-radius: 20px; padding: 5px 6px; text-align: center; color: var(--ps-sub); }
.ps-disc { margin: 10px 0 0; font-size: 11px; color: var(--ps-sub); line-height: 1.6; }
.ps-tel { display: block; margin-top: 12px; text-align: center; border: 2px solid var(--ps-ok); border-radius: var(--ps-radius); padding: 11px; color: var(--ps-ok); font-weight: 700; text-decoration: none; font-size: 15px; }
.ps-tel span { display: block; font-size: 12px; font-weight: 400; color: var(--ps-sub); margin-top: 2px; }

/* フォーム(CF7) */
.ps-tool .wpcf7 p { margin: 0; padding: 0; font-size: inherit; line-height: inherit; }
.ps-tool .wpcf7 br { display: none; }
.ps-tool .wpcf7 p.ps-consent, .ps-tool .ps-consent { font-size: 11px; color: var(--ps-sub); line-height: 1.6; margin: 10px 0 0; }
.ps-tool .ps-consent a { color: #2F6FB3; text-decoration: underline; }
.ps-form { margin: 14px 0 6px; border: 2px solid var(--ps-accent); border-radius: 14px; padding: 14px 14px 12px; background: #fff; }
.ps-ftitle { margin: 0 0 4px; font-size: 16px; line-height: 1.45; font-weight: 700; color: var(--ps-ink); }
.ps-fsub { margin: 0 0 10px; font-size: 12.5px; color: var(--ps-sub); line-height: 1.6; }
.ps-form .wpcf7 form { margin: 0; }
.ps-form .ps-f { margin: 0 0 8px; }
.ps-form .wpcf7-form-control-wrap { display: block; }
.ps-form input[type="email"], .ps-form input[type="tel"], .ps-form input[type="text"], .ps-form select {
  width: 100%; font-size: 16px; padding: 13px 12px; border: 2px solid #C9D1DA; border-radius: 10px; background: #fff; color: var(--ps-ink);
}
.ps-form input:focus { border-color: var(--ps-accent); }
.ps-form input[type="submit"], .ps-form button[type="submit"] { width: 100%; border: 0; border-radius: var(--ps-radius); background: var(--ps-accent); color: #fff; font-weight: 700; font-size: 16px; padding: 15px; margin-top: 4px; }
.ps-form .wpcf7-spinner { display: none; }
.ps-form .wpcf7-response-output { font-size: 12.5px; border: 0 !important; margin: 8px 0 0 !important; padding: 0 !important; color: var(--ps-sub); }
.ps-form .wpcf7-not-valid-tip { font-size: 12px; color: #B03A2E; }
.ps-domains { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ps-dom { border: 1px solid var(--ps-line); background: var(--ps-panel); color: var(--ps-ink); border-radius: 14px; font-size: 12px; padding: 5px 9px; }
.ps-typo button, .ps-toggle { background: none; border: 0; color: #2F6FB3; text-decoration: underline; font-size: 13px; padding: 0; }
.ps-typo { margin: 6px 0 0; font-size: 13px; }
.ps-fnote { margin: 8px 0 0; font-size: 12px; color: var(--ps-sub); line-height: 1.6; }
.ps-toggle { display: block; margin: 10px auto 0; }
.ps-err { margin: 6px 0 0; font-size: 12.5px; color: #B03A2E; }
.ps-done .ps-dt { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: var(--ps-ok); }
.ps-done .ps-dd { margin: 0 0 10px; font-size: 14px; line-height: 1.7; }

@media (max-width: 400px) {
  .ps-tool { padding: 16px 12px 18px; }
  .ps-grid3 { grid-template-columns: 1fr 1fr 1fr; }
  .ps-opt { font-size: 14px; }
  .ps-rbig { font-size: 25px; }
}

/* PC・タブレットでは少しゆったり */
@media (min-width: 768px) {
  .ps-tool { max-width: 640px; padding: 26px 28px 28px; }
  .ps-title { font-size: 24px; }
  .ps-lead { font-size: 14.5px; margin-bottom: 18px; }
  .ps-intent { padding: 16px 20px; }
  .ps-intent span { font-size: 18px; }
  .ps-q { font-size: 21px; }
  .ps-opt { min-height: 60px; font-size: 16px; }
  .ps-rbig { font-size: 32px; }
}


/* ===== お家の診療所 入口(ヒーロー) v1.2.0 ===== */
.ps-tool.is-entry { background: linear-gradient(180deg, #EEF6FF 0%, #F8FBFF 55%, #FFFFFF 100%); border-color: #DCE9F7; }
.ps-hero { position: relative; }
.ps-hero > :not(.ps-hero-img) { position: relative; z-index: 1; }
.ps-hero-img { position: absolute; z-index: 0; right: -12px; top: 12px; width: 38%; aspect-ratio: 326 / 478; background-size: cover; background-position: center top; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 58% 45%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 75% 70% at 58% 45%, #000 62%, transparent 100%); }
.ps-nw { white-space: nowrap; }
.ps-tool .ps-hero-h { font-size: clamp(22px, 7.2vw, 30px); line-height: 1.32; font-weight: 900; color: #0E2E6B; letter-spacing: 0; margin: 2px 0 12px;
  text-shadow: 0 0 2px #fff, 0 0 6px rgba(255,255,255,.9); }
.ps-tool .ps-hero-badge { display: inline-block; background: linear-gradient(180deg, #3B8FE6 0%, #1E6BCB 100%); color: #fff; font-weight: 800; font-size: 16px; line-height: 1.3; padding: 8px 18px; border-radius: 999px; margin: 0 0 12px; box-shadow: 0 4px 10px rgba(30,107,203,.25); }
.ps-tool .ps-hero-sub { font-size: 15px; font-weight: 700; line-height: 1.7; color: #1F2D3D; margin: 0 0 12px; text-shadow: 0 0 4px #fff, 0 0 8px rgba(255,255,255,.95); }
.ps-hero-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 14px; }
.ps-hero-chips span { display: flex; align-items: center; gap: 6px; background: #EAF7EF; border-radius: 12px; padding: 10px 8px; font-size: 12.5px; white-space: nowrap; font-weight: 800; line-height: 1.35; color: #163F33; }
.ps-hero-chips span::before { content: ""; flex: 0 0 20px; height: 20px; border-radius: 50%; background: #22AE4C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ps-tool .ps-hero-cta, .ps-tool .ps-hero-sec { position: relative; display: block; width: 100%; text-align: center; border-radius: 14px; font-weight: 900; letter-spacing: 0.02em; line-height: 1.3; }
.ps-tool .ps-hero-cta { border: 0; background: linear-gradient(180deg, #FF9B3D 0%, #F2700F 100%); color: #fff; font-size: 19px; padding: 17px 40px 17px 24px; margin: 0 0 10px; box-shadow: 0 6px 16px rgba(242,112,15,.32), inset 0 -3px 0 rgba(0,0,0,.08); }
.ps-tool .ps-hero-sec { border: 2px solid #1E6BCB; background: #fff; color: #14448F; font-size: 16.5px; padding: 13px 40px 13px 24px; }
.ps-tool .ps-hero-cta::after, .ps-tool .ps-hero-sec::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-top: 3px solid currentColor; border-right: 3px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.ps-tool .ps-hero-sec::after { border-color: #1E6BCB; }
.ps-tool .ps-hero-cta:active, .ps-tool .ps-hero-sec:active { transform: translateY(1px); }
.ps-tool .ps-hero-safe { display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; font-size: 13.5px; color: #33475B; margin: 14px 0 4px; }
.ps-tool .ps-hero-safe::before { content: ""; flex: 0 0 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231F6FCF'%3E%3Cpath d='M7 10V8a5 5 0 0 1 10 0v2h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1h1zm2 0h6V8a3 3 0 0 0-6 0v2zm3 4a1.5 1.5 0 0 0-.75 2.8V18h1.5v-1.2A1.5 1.5 0 0 0 12 14z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ps-tool .ps-hero-note { font-size: 11px; color: #6B7B8B; text-align: center; line-height: 1.6; }
@media (max-width: 380px) {
  .ps-hero-chips span { font-size: 11.5px; }
  .ps-tool .ps-hero-cta { font-size: 17px; }
}
@media (min-width: 768px) {
  .ps-hero-img { width: 31%; top: 0; right: -10px; }
  .ps-tool .ps-hero-h { font-size: 40px; }
  .ps-tool .ps-hero-badge { font-size: 19px; padding: 9px 22px; }
  .ps-tool .ps-hero-sub { font-size: 18px; }
  .ps-hero-chips span { font-size: 16px; padding: 12px 14px; }
  .ps-tool .ps-hero-cta { font-size: 23px; padding: 20px 48px 20px 28px; }
  .ps-tool .ps-hero-sec { font-size: 19px; padding: 15px 48px 15px 28px; }
  .ps-tool .ps-hero-safe { font-size: 15px; }
}
