/* サンクスページ専用（page-thanks.php でのみ読み込む） */
/* 送信後のページなので、ヘッダーの相談ボタンと画面下の固定相談バーは出さない */
body.tk-thanks header.site .btn-cta, body.tk-thanks .mobile-cta-bar{ display:none !important; }
/* ===== サンクスページ ===== */
body.tk-thanks{ background:#fff; }
.ty a[x-apple-data-detectors]{ color:inherit !important; text-decoration:none !important; pointer-events:none; }
.ty-hero{ position:relative; overflow:hidden; text-align:center; padding:64px 24px 120px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,178,92,.20) 0, rgba(255,178,92,0) 42%),
    radial-gradient(circle at 86% 30%, rgba(21,92,162,.14) 0, rgba(21,92,162,0) 46%),
    linear-gradient(180deg,#F3F7FC 0%,#FFFFFF 100%); }
.ty-hero::after{ content:""; position:absolute; left:-5%; right:-5%; bottom:-1px; height:70px;
  background:#fff; border-radius:50% 50% 0 0 / 100% 100% 0 0; }
.ty-check{ width:92px; height:92px; margin:0 auto 22px; border-radius:50%; background:var(--accent);
  display:flex; align-items:center; justify-content:center; position:relative;
  box-shadow:0 14px 32px rgba(245,130,31,.32); animation:tyPop .55s cubic-bezier(.2,1.4,.4,1) both; }
.ty-check::before{ content:""; position:absolute; inset:-10px; border-radius:50%; border:2px solid rgba(245,130,31,.28);
  animation:tyRing 1.6s ease-out .4s both; }
.ty-check svg{ width:46px; height:46px; }
.ty-check path{ fill:none; stroke:#fff; stroke-width:3.2; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:40; stroke-dashoffset:40; animation:tyDraw .45s ease-out .45s forwards; }
@keyframes tyPop{ from{ transform:scale(.4); opacity:0; } to{ transform:scale(1); opacity:1; } }
@keyframes tyRing{ from{ transform:scale(.85); opacity:1; } to{ transform:scale(1.35); opacity:0; } }
@keyframes tyDraw{ to{ stroke-dashoffset:0; } }
.ty-eyebrow{ display:inline-block; font-size:12.5px; font-weight:700; letter-spacing:.14em; color:var(--blue);
  background:#fff; border:1px solid #CFE0F2; border-radius:999px; padding:5px 16px; margin:0 0 16px; }
.ty-hero h1{ font-family:"Zen Kaku Gothic New","Hiragino Sans","Noto Sans JP",sans-serif; font-weight:900;
  font-size:36px; line-height:1.45; color:var(--blue-dark); margin:0 0 14px; letter-spacing:.04em; }
.ty-hero .ty-lead{ font-size:16px; color:var(--text-light); margin:0; line-height:1.9; }

.ty-main{ max-width:760px; margin:-78px auto 0; padding:0 24px 72px; position:relative; z-index:2; }

/* お電話カード */
.ty-call{ background:#fff; border-radius:22px; box-shadow:0 18px 48px rgba(14,63,114,.13); border:1px solid #E6EDF5;
  padding:34px 36px 30px; display:grid; grid-template-columns:132px 1fr; gap:28px; align-items:center; }
.ty-call-photo{ position:relative; width:132px; height:132px; }
.ty-call-photo img{ width:132px; height:132px; border-radius:50%; object-fit:cover; object-position:center;
  border:5px solid #fff; box-shadow:0 8px 22px rgba(14,63,114,.18); display:block; }
.ty-call-photo .ty-badge{ position:absolute; right:-6px; bottom:4px; width:42px; height:42px; border-radius:50%;
  background:var(--blue); border:4px solid #fff; display:flex; align-items:center; justify-content:center; }
.ty-call-photo .ty-badge svg{ width:18px; height:18px; fill:#fff; }
.ty-call-kicker{ font-size:13px; font-weight:700; color:var(--accent); letter-spacing:.08em; margin:0 0 6px; }
.ty-call-title{ font-family:"Zen Kaku Gothic New","Hiragino Sans","Noto Sans JP",sans-serif; font-weight:900;
  font-size:30px; line-height:1.4; color:var(--blue-dark); margin:0 0 10px; }
.ty-call-title em{ font-style:normal; color:var(--accent); background:linear-gradient(transparent 62%, rgba(255,178,92,.32) 62%); padding:0 2px; }
.ty-call-text{ font-size:14.5px; line-height:1.85; color:#3D4854; margin:0 0 18px; }
.ty-from{ background:#F4F7FB; border-radius:14px; padding:14px 18px; display:flex; flex-wrap:wrap; align-items:center; gap:6px 16px; }
.ty-from-label{ font-size:12px; font-weight:700; color:var(--text-light); letter-spacing:.04em; }
.ty-from-name{ font-size:14px; font-weight:700; color:var(--blue-dark); }
.ty-from-num{ font-family:"Zen Kaku Gothic New","Hiragino Sans",sans-serif; font-size:24px; font-weight:900; letter-spacing:.06em;
  color:var(--blue-dark); line-height:1.3; white-space:nowrap; -webkit-user-select:text; user-select:text; cursor:default; }
.ty-from-note{ flex-basis:100%; font-size:12px; color:var(--text-light); margin:2px 0 0; }

/* セクション共通 */
.ty-sec{ margin-top:56px; }
.ty-sec-head{ text-align:center; margin:0 0 26px; }
.ty-sec-head p{ font-size:12.5px; font-weight:700; letter-spacing:.14em; color:var(--blue); margin:0 0 6px; }
.ty-sec-head h2{ font-family:"Zen Kaku Gothic New","Hiragino Sans","Noto Sans JP",sans-serif; font-weight:900;
  font-size:26px; color:var(--blue-dark); margin:0; line-height:1.5; }

/* このあとの流れ */
.ty-flow{ list-style:none; margin:0; padding:0; position:relative; }
.ty-flow::before{ content:""; position:absolute; left:27px; top:28px; bottom:28px; width:2px;
  background:repeating-linear-gradient(180deg,#C9D9EA 0 6px,transparent 6px 12px); }
.ty-step{ position:relative; display:grid; grid-template-columns:56px 1fr; gap:20px; align-items:start; padding:0 0 18px; }
.ty-step:last-child{ padding-bottom:0; }
.ty-step-num{ width:56px; height:56px; border-radius:50%; background:#fff; border:2px solid #C9D9EA; color:var(--blue);
  display:flex; flex-direction:column; align-items:center; justify-content:center; position:relative; z-index:1;
  font-family:"Zen Kaku Gothic New",sans-serif; font-weight:900; line-height:1; }
.ty-step-num small{ font-size:9px; letter-spacing:.1em; margin-bottom:3px; font-weight:700; }
.ty-step-num b{ font-size:20px; }
.ty-step.is-done .ty-step-num{ background:var(--accent); border-color:var(--accent); color:#fff; box-shadow:0 6px 16px rgba(245,130,31,.3); }
.ty-step.is-done .ty-step-num svg{ width:24px; height:24px; }
.ty-step.is-done .ty-step-num path{ fill:none; stroke:#fff; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.ty-step-body{ background:#fff; border:1px solid #E3E8EE; border-radius:16px; padding:16px 20px; box-shadow:0 2px 10px rgba(15,40,80,.04); }
.ty-step.is-done .ty-step-body{ background:#FFF7EF; border-color:#FBD9B6; }
.ty-step-title{ font-size:16.5px; font-weight:800; color:var(--blue-dark); margin:0 0 4px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.ty-tag{ font-size:11px; font-weight:700; color:#fff; background:var(--accent); border-radius:999px; padding:3px 10px; letter-spacing:.06em; }
.ty-tag.is-blue{ background:var(--blue); }
.ty-step-text{ font-size:14px; color:#3D4854; margin:0; line-height:1.8; }

/* 準備 */
.ty-prep{ background:linear-gradient(135deg,#F3F7FC 0%,#EEF4FA 100%); border-radius:20px; padding:30px 32px; }
.ty-prep-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:0; padding:0; list-style:none; }
.ty-prep-item{ background:#fff; border-radius:14px; padding:20px 16px 18px; text-align:center; box-shadow:0 2px 10px rgba(15,40,80,.05); }
.ty-prep-ico{ width:52px; height:52px; margin:0 auto 10px; border-radius:14px; background:#E8F1FB; display:flex; align-items:center; justify-content:center; }
.ty-prep-ico svg{ width:26px; height:26px; fill:none; stroke:var(--blue); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.ty-prep-item b{ display:block; font-size:15px; color:var(--blue-dark); margin:0 0 4px; }
.ty-prep-item span{ display:block; font-size:12.5px; color:var(--text-light); line-height:1.6; }
.ty-prep-note{ text-align:center; font-size:14px; font-weight:700; color:var(--blue-dark); margin:18px 0 0; }
.ty-prep-note .nb{ display:inline-block; }
.ty-prep-note::before{ content:"✓"; color:var(--accent); margin-right:6px; }

/* 安心 */
.ty-promise{ margin-top:56px; border-radius:20px; overflow:hidden; display:grid; grid-template-columns:1fr 1fr;
  background:var(--blue-dark); color:#fff; box-shadow:0 14px 36px rgba(14,63,114,.18); }
.ty-promise-photo{ min-height:240px; background:url('img/office-staff-work.jpg') center/cover no-repeat; position:relative; }
.ty-promise-photo::after{ content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(14,63,114,0) 55%,rgba(14,63,114,1) 100%); }
.ty-promise-body{ padding:32px 32px 30px 12px; }
.ty-promise-body h2{ font-family:"Zen Kaku Gothic New","Hiragino Sans",sans-serif; font-weight:900; font-size:22px; line-height:1.55; margin:0 0 16px; }
.ty-promise-body h2 em{ font-style:normal; color:#FFB25C; }
.ty-promise-list{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.ty-promise-list li{ position:relative; padding-left:28px; font-size:14.5px; line-height:1.7; color:#E3EEF9; }
.ty-promise-list li::before{ content:""; position:absolute; left:0; top:4px; width:18px; height:18px; border-radius:50%;
  background:#FFB25C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230E3F72' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* 記事 */
.ty-articles{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.ty-article{ display:block; background:#fff; border:1px solid #E3E8EE; border-radius:14px; overflow:hidden; transition:transform .15s, box-shadow .15s; }
.ty-article:hover{ transform:translateY(-3px); box-shadow:0 10px 24px rgba(14,63,114,.12); }
.ty-article img{ display:block; width:100%; height:auto; aspect-ratio:3/2; object-fit:cover; }
.ty-article div{ padding:12px 14px 14px; }
.ty-article small{ display:block; font-size:11px; font-weight:700; color:var(--blue); margin:0 0 4px; }
.ty-article p{ display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; margin:0; font-size:13.5px; font-weight:700; line-height:1.6; color:var(--text); }

/* 書類の写真（任意） */
.ty-up[hidden]{ display:none; }
.ty-up-card{ background:#fff; border:1px solid #E3E8EE; border-radius:20px; padding:28px 32px; box-shadow:0 2px 10px rgba(15,40,80,.05); }
.ty-up-lead{ font-size:14.5px; line-height:1.85; color:#3D4854; margin:0 0 18px; }
.ty-up-done{ background:#FFF7EF; border:1px solid #FBD9B6; border-radius:14px; padding:14px 18px; margin:0 0 18px;
  font-size:14.5px; font-weight:700; color:var(--blue-dark); line-height:1.7; }
.ty-up-done[hidden], .ty-up-form[hidden], .ty-up-list[hidden], .ty-up-error[hidden]{ display:none; }
.ty-up-input{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); border:0; }
.ty-up-pick{ display:flex; align-items:center; justify-content:center; gap:12px; width:100%; min-height:64px; padding:14px 20px;
  background:var(--blue); color:#fff; border-radius:16px; font-size:18px; font-weight:800; letter-spacing:.04em; cursor:pointer;
  box-shadow:0 8px 20px rgba(21,92,162,.25); -webkit-tap-highlight-color:transparent; transition:background .15s; }
.ty-up-pick:hover{ background:var(--blue-dark); }
.ty-up-input:focus-visible + .ty-up-pick{ outline:3px solid #FFB25C; outline-offset:3px; }
.ty-up-pick svg{ width:28px; height:28px; fill:none; stroke:#fff; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.ty-up-hint{ font-size:12.5px; color:var(--text-light); text-align:center; margin:10px 0 0; line-height:1.7; }
.ty-up-hint span{ font-weight:700; color:var(--blue-dark); white-space:nowrap; }
.ty-up-list{ list-style:none; margin:18px 0 0; padding:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(92px,1fr)); gap:12px; }
.ty-up-item{ position:relative; aspect-ratio:1/1; border-radius:12px; overflow:hidden; background:#F4F7FB; border:1px solid #E3E8EE;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; }
.ty-up-item img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.ty-up-item svg{ width:34px; height:34px; fill:none; stroke:var(--blue); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.ty-up-item b{ font-size:13px; color:var(--blue-dark); letter-spacing:.06em; }
.ty-up-del{ position:absolute; top:4px; right:4px; width:36px; height:36px; border:0; border-radius:50%; padding:0;
  background:rgba(14,63,114,.86); cursor:pointer; display:flex; align-items:center; justify-content:center; }
.ty-up-del svg{ width:16px; height:16px; stroke:#fff; stroke-width:2.4; }
.ty-up-del:focus-visible{ outline:3px solid #FFB25C; outline-offset:2px; }
.ty-up-error{ background:#FDECEC; border:1px solid #F3B8B8; color:#9B1C1C; border-radius:12px; padding:12px 16px; margin:16px 0 0;
  font-size:13.5px; font-weight:700; line-height:1.7; }
.ty-up-consent{ font-size:12.5px; color:var(--text-light); line-height:1.8; margin:20px 0 12px; background:#F4F7FB; border-radius:12px; padding:12px 16px; }
.ty-up-agree{ display:flex; align-items:flex-start; gap:12px; min-height:44px; font-size:14px; font-weight:700; color:var(--blue-dark); line-height:1.6; cursor:pointer; }
.ty-up-agree input{ flex:none; width:24px; height:24px; margin:0; accent-color:var(--accent); cursor:pointer; }
.ty-up-agree a{ color:var(--blue); text-decoration:underline; }
.ty-up-send{ display:block; width:100%; min-height:58px; margin-top:16px; padding:14px 20px; border:0; border-radius:999px; cursor:pointer;
  background:var(--accent); color:#fff; font-family:inherit; font-size:17px; font-weight:800; letter-spacing:.06em;
  box-shadow:0 10px 24px rgba(245,130,31,.32); transition:filter .15s; }
.ty-up-send:hover:not(:disabled){ filter:brightness(1.06); }
.ty-up-send:disabled{ background:#D5DBE2; color:#fff; box-shadow:none; cursor:not-allowed; }

.ty-swipe-hint{ display:none; text-align:right; font-size:12px; color:var(--text-light); margin:-14px 0 10px; }
.ty-home{ text-align:center; margin-top:44px; }
.ty-home a{ display:inline-flex; align-items:center; gap:8px; font-size:14.5px; font-weight:700; color:var(--blue);
  border:1.5px solid #BFD5EC; background:#fff; border-radius:999px; padding:12px 28px; transition:background .15s; }
.ty-home a:hover{ background:#F3F7FC; }

@media (max-width:768px){
  body.tk-thanks{ padding-bottom:0; }
  .ty-hero{ padding:44px 20px 100px; }
  .ty-check{ width:76px; height:76px; margin-bottom:18px; }
  .ty-check svg{ width:38px; height:38px; }
  .ty-hero h1{ font-size:25px; }
  .ty-hero .ty-lead{ font-size:14px; }
  .ty-main{ margin-top:-70px; padding:0 16px 52px; }
  .ty-call{ grid-template-columns:1fr; gap:14px; padding:26px 20px 22px; text-align:center; }
  .ty-call-photo{ margin:0 auto; width:112px; height:112px; }
  .ty-call-photo img{ width:112px; height:112px; }
  .ty-call-title{ font-size:24px; }
  .ty-call-text{ font-size:14px; text-align:left; }
  .ty-from{ justify-content:center; text-align:center; flex-direction:column; gap:2px; }
  .ty-from-num{ font-size:22px; }
  .ty-sec{ margin-top:44px; }
  .ty-sec-head h2{ font-size:21px; }
  .ty-flow::before{ left:23px; }
  .ty-step{ grid-template-columns:48px 1fr; gap:12px; }
  .ty-step-num{ width:48px; height:48px; }
  .ty-step-num b{ font-size:17px; }
  .ty-step-body{ padding:14px 16px; }
  .ty-step-title{ font-size:15.5px; }
  .ty-step-text{ font-size:13.5px; }
  .ty-prep{ padding:24px 16px; }
  .ty-prep-grid{ grid-template-columns:1fr; gap:10px; }
  .ty-prep-item{ display:grid; grid-template-columns:48px 1fr; gap:4px 14px; text-align:left; padding:14px 16px; align-items:center; }
  .ty-prep-ico{ grid-row:span 2; width:48px; height:48px; margin:0; }
  .ty-prep-item b{ margin:0; }
  .ty-promise{ grid-template-columns:1fr; margin-top:44px; }
  .ty-promise-photo{ min-height:180px; }
  .ty-promise-photo::after{ background:linear-gradient(180deg,rgba(14,63,114,0) 50%,rgba(14,63,114,1) 100%); }
  .ty-promise-body{ padding:6px 22px 26px; }
  .ty-promise-body h2{ font-size:19px; }
  /* スマホは横スワイプのカード（サムネの文字が読める大きさを確保） */
  .ty-articles{ display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch;
    margin:0 -16px; padding:0 16px 8px; scroll-padding:0 16px; scrollbar-width:none; }
  .ty-articles::-webkit-scrollbar{ display:none; }
  .ty-article{ flex:0 0 78%; scroll-snap-align:start; }
  .ty-article:hover{ transform:none; }
  .ty-article div{ padding:10px 12px 12px; }
  .ty-swipe-hint{ display:block; }
  .ty-up-card{ padding:22px 16px; }
  .ty-up-lead{ font-size:14px; }
  .ty-up-list{ grid-template-columns:repeat(3,1fr); gap:10px; }
}
@media (prefers-reduced-motion:reduce){
  .ty-check, .ty-check::before, .ty-check path{ animation:none; stroke-dashoffset:0; }
}
