/* ====================================================================
   WorClean — sub-pages (Contact / Thanks / Company)
   Builds on styles.css
   ==================================================================== */

.page{background:#fff;}

/* ---------- Orange title band + breadcrumb ---------- */
.page-hero{position:relative;background:var(--orange);overflow:hidden;}
.page-hero-inner{max-width:var(--maxw);margin:0 auto;padding:46px 24px;}
.page-hero-title{font-family:"Noto Sans JP",var(--jp);font-weight:400;font-size:40px;line-height:1.2;color:#fff;letter-spacing:.06em;}
.page-hero-title::after{content:"";display:block;width:36px;height:4px;background:#fff;margin-top:10px;border-radius:2px;}
.breadcrumb{border-bottom:1px solid #f0f0f0;}
.breadcrumb-inner{max-width:var(--maxw);margin:0 auto;padding:14px 24px;display:flex;align-items:center;gap:8px;font-family:var(--jp);font-size:12px;color:#4e4e4e;}
.breadcrumb-inner a:hover{color:var(--orange);text-decoration:underline;}
.breadcrumb-inner .sep{color:#cbd5e1;}
.breadcrumb-inner .cur{color:#94a3b8;}

/* ---------- Section header (eyebrow + title) ---------- */
.page-section{padding:80px 0 96px;}
.page-head{text-align:center;max-width:840px;margin:0 auto 56px;}
.page-eyebrow{font-family:"Geist",var(--en);font-weight:700;font-size:14px;letter-spacing:.16em;color:var(--orange);text-transform:none;margin-bottom:14px;padding-top:20px;}
.page-title-contact{font-family:"Gothic A1",var(--jp);font-weight:700;font-size:48px;line-height:1.25;color:var(--ink);}
.page-lead{font-family:"Gothic A1",var(--jp);font-weight:600;font-size:20px;color:var(--ink);margin-top:24px;}
.page-sub{font-family:"Gothic A1",var(--jp);font-weight:400;font-size:16px;line-height:1.8;color:#475569;margin-top:14px;}

/* ====================================================================
   CONTACT FORM
   ==================================================================== */
.contact-grid{max-width:1280px;margin:0 auto;display:grid;grid-template-columns:440px 1fr;gap:80px;align-items:start;}

.info-box{background:#fff9f2;border-radius:16px;padding:40px;}
.info-box h2{font-family:"Gothic A1",var(--jp);font-weight:700;font-size:18px;color:var(--ink);margin-bottom:24px;}
.info-box ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px;}
.info-box li{display:flex;align-items:flex-start;gap:12px;font-family:"Gothic A1",var(--jp);font-size:15px;line-height:1.6;color:var(--ink);}
.info-check{flex:0 0 20px;width:20px;height:20px;border-radius:10px;background:var(--orange);display:inline-flex;align-items:center;justify-content:center;margin-top:2px;}
.info-check::before{content:"";width:9px;height:5px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg) translateY(-1px);}

.contact-form{display:flex;flex-direction:column;gap:24px;}
.field{display:flex;flex-direction:column;gap:8px;}
.field-label{display:flex;align-items:center;gap:8px;font-family:"Gothic A1",var(--jp);font-weight:700;font-size:14px;color:var(--ink);}
.req{background:#ef4444;color:#fff;font-family:"Gothic A1",var(--jp);font-weight:700;font-size:10px;border-radius:4px;padding:2px 6px;line-height:1;}
.opt{background:#e2e8f0;color:#64748b;font-weight:700;font-size:10px;border-radius:4px;padding:2px 6px;line-height:1;}
.field input,.field select,.field textarea{
  width:100%;font-family:"Gothic A1",var(--jp);font-size:14px;color:var(--slate);
  background:#fff;border:1px solid #e2e8f0;border-radius:8px;outline:none;transition:border-color .15s,box-shadow .15s;
}
.field input,.field select{height:48px;padding:0 16px;}
.field textarea{min-height:120px;padding:12px 16px;resize:vertical;line-height:1.6;}
.field input::placeholder,.field textarea::placeholder{color:#94a3b8;}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--orange);box-shadow:0 0 0 3px rgba(255,138,0,.12);}
.field select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;color: var(--slate);}
.field select.filled{color:var(--slate);}
.field .invalid{border-color:#ef4444;}
.field-error{display:none;font-family:"Gothic A1",var(--jp);font-size:12px;color:#ef4444;}
.field.show-error .field-error{display:block;}
.field.show-error input,.field.show-error select,.field.show-error textarea{border-color:#ef4444;}

.consent{display:flex;align-items:center;gap:12px;padding:12px 0;font-family:"Gothic A1",var(--jp);font-size:14px;color:var(--ink);cursor:pointer;}
.consent input{width:20px;height:20px;accent-color:var(--orange);cursor:pointer;}

.submit-btn{height:56px;border:0;border-radius:8px;background:var(--orange);color:#fff;font-family:"Gothic A1",var(--jp);font-weight:700;font-size:16px;cursor:pointer;transition:filter .15s,transform .15s;display:inline-flex;align-items:center;justify-content:center;gap:10px;}
.submit-btn:hover{filter:brightness(1.05);transform:translateY(-1px);}
.submit-btn.ghost{background:#fff;color:var(--ink);border:1px solid #cbd5e1;}
.submit-btn.ghost:hover{background:#f8fafc;}
.form-note{font-family:"Gothic A1",var(--jp);font-size:13px;color:#94a3b8;text-align:center;}

/* ---------- Confirm step ---------- */
.confirm-wrap{max-width:1000px;margin:0 auto;}
.summary-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;}
.summary-table tr{border-bottom:1px solid #e2e8f0;}
.summary-table th,.summary-table td{padding:24px;text-align:left;font-family:"Gothic A1",var(--jp);font-size:15px;vertical-align:top;}
.summary-table th{width:280px;background:#f8fafc;font-weight:700;color:var(--ink);border-right:1px solid #e2e8f0;}
.summary-table td{color:var(--slate);white-space:pre-wrap;line-height:1.7;}
.summary-table tr:last-child{border-bottom:0;}
.confirm-actions{display:flex;justify-content:center;gap:24px;margin-top:24px;}
.confirm-actions .submit-btn{min-width:200px;}

/* ---------- Sending overlay ---------- */
.sending-overlay{position:fixed;inset:0;z-index:200;background:rgba(255,255,255,.92);display:none;flex-direction:column;align-items:center;justify-content:center;gap:20px;}
.sending-overlay.show{display:flex;}
.spinner{width:64px;height:64px;border:6px solid #ffe3c2;border-top-color:var(--orange);border-radius:50%;animation:spin 1s linear infinite;}
@keyframes spin{to{transform:rotate(360deg);}}
.sending-overlay h2{font-family:"Gothic A1",var(--jp);font-weight:700;font-size:24px;color:var(--ink);}
.sending-overlay p{font-family:"Gothic A1",var(--jp);font-size:15px;color:#64748b;}

/* ---------- Step visibility ---------- */
.step{display:none;}
.step.active{display:block;}

/* ====================================================================
   THANK YOU
   ==================================================================== */
.thanks{text-align:center;max-width:760px;margin:0 auto;padding:24px 24px 0;}
.thanks-check{width:100px;height:100px;border-radius:50%;background:var(--orange);display:flex;align-items:center;justify-content:center;margin:0 auto 40px;box-shadow:0 12px 30px rgba(255,138,0,.3);}
.thanks-check::before{content:"";width:40px;height:22px;border-left:6px solid #fff;border-bottom:6px solid #fff;transform:rotate(-45deg) translateY(-4px);}
.thanks .page-eyebrow{margin-bottom:10px;}
.thanks h1{font-family:"Gothic A1",var(--jp);font-weight:700;font-size:40px;line-height:1.3;color:var(--ink);}
.thanks-lead{font-family:"Gothic A1",var(--jp);font-weight:600;font-size:20px;color:var(--ink);margin-top:40px;}
.thanks-sub{font-family:"Gothic A1",var(--jp);font-size:16px;line-height:1.9;color:#475569;margin-top:14px;}
.thanks-back{display:inline-flex;align-items:center;gap:10px;margin-top:48px;height:56px;padding:0 40px;border:1px solid #cbd5e1;border-radius:8px;font-family:"Arimo","Gothic A1",var(--jp);font-weight:700;font-size:16px;color:var(--ink);transition:background .15s,border-color .15s;}
.thanks-back:hover{background:#fff9f2;border-color:var(--orange);color:var(--orange);}

/* ====================================================================
   COMPANY
   ==================================================================== */
.company-wrap{max-width:1000px;margin:0 auto;}
.company-h2{font-family:"Gothic A1",var(--jp);font-weight:700;font-size:24px;color:var(--ink);margin:0 0 24px;padding-left:14px;border-left:4px solid var(--orange);line-height:1.2;}
.company-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;}
.company-table tr{border-bottom:1px solid #e2e8f0;}
.company-table tr:last-child{border-bottom:0;}
.company-table th,.company-table td{padding:22px 28px;text-align:left;font-family:"Gothic A1",var(--jp);font-size:15px;vertical-align:top;}
.company-table th{width:284px;background:#f8fafc;font-weight:700;color:var(--ink);border-right:1px solid #e2e8f0;}
.company-table td{color:var(--slate);line-height:1.9;}
.company-table td ul{margin:0;padding-left:1.1em;}
.company-table .links a{color:var(--orange);}
.company-table .links a:hover{text-decoration:underline;}

/* ====================================================================
   Responsive
   ==================================================================== */
@media (max-width:1100px){
  .contact-grid{grid-template-columns:1fr;gap:40px;max-width:760px;}
  .info-box{order:2;}
}
@media (max-width:980px){
  .page-hero-inner{padding:32px 20px;}
  .page-hero-title{font-size:30px;}
  .page-section{padding:56px 0 72px;}
  .page-head{margin-bottom:40px;}
  .page-title{font-size:32px;}
  .page-lead{font-size:17px;}
  .page-sub{font-size:14px;}
  .summary-table th,.company-table th{width:120px;padding:16px;font-size:13px;}
  .summary-table td,.company-table td{padding:16px;font-size:14px;}
  .confirm-actions{flex-direction:column;gap:14px;}
  .confirm-actions .submit-btn{width:100%;}
  .thanks h1{font-size:28px;}
  .thanks-check{width:84px;height:84px;}
  .thanks-check::before{width:34px;height:18px;}
}
@media (max-width:560px){
  .container{padding:0 16px;}
  .summary-table th,.company-table th{display:block;width:auto;border-right:0;border-bottom:1px solid #e2e8f0;}
  .summary-table td,.company-table td{display:block;}
  .summary-table tr,.company-table tr{display:block;}
}

/* ====================================================================
   Contact Form 7（+ add confirm）
   html_class="contact-form" を付与しているので .field 等は流用される。
   ここでは CF7 が独自に出力する要素だけを補正する。
   ==================================================================== */
.contact-form .wpcf7-form-control-wrap{display:block;}
/* 各項目のバリデーションメッセージ */
.contact-form .wpcf7-not-valid-tip{display:block;margin-top:6px;font-family:"Gothic A1",var(--jp);font-size:12px;color:#ef4444;}
.contact-form input.wpcf7-not-valid,
.contact-form select.wpcf7-not-valid,
.contact-form textarea.wpcf7-not-valid{border-color:#ef4444;}
/* フォーム全体のレスポンス（送信エラー・必須漏れ等）の通知バー */
.contact-form .wpcf7-response-output{margin:8px 0 0;border-radius:8px;padding:12px 16px;border-width:1px;font-family:"Gothic A1",var(--jp);font-size:14px;line-height:1.6;}
/* 送信中スピナー（CF7 標準）はボタン横に */
.contact-form .wpcf7-spinner{margin:0 0 0 12px;}
/* 確認画面で値が表示される入力欄（クラス名はプラグイン版により異なる場合あり） */
.contact-form .wpcf7c-conf,
.contact-form [readonly]{background:#f8fafc;color:var(--slate);}

/* --- 送信 / 確認 / 戻る ボタン ---
   CF7 はこれらを <input> で出力するため .submit-btn の inline-flex が効かない。
   add confirm の class: 指定も版により反映されないことがあるので、
   生成クラスに依存せず .confirm-actions 内のボタンをまとめて整える。 */
.contact-form .confirm-actions input[type="submit"],
.contact-form .confirm-actions input[type="button"],
.contact-form .confirm-actions button{
  -webkit-appearance:none;appearance:none;
  height:56px;min-width:200px;padding:0 28px;
  border:0;border-radius:8px;
  background:var(--orange);color:#fff;
  font-family:"Gothic A1",var(--jp);font-weight:700;font-size:16px;line-height:1;
  cursor:pointer;transition:filter .15s,transform .15s;
}
.contact-form .confirm-actions input[type="submit"]:hover,
.contact-form .confirm-actions input[type="button"]:hover,
.contact-form .confirm-actions button:hover{filter:brightness(1.05);transform:translateY(-1px);}
/* 「戻る（入力内容を修正する）」だけゴースト（白）に。
   ※ボタンの文言を変えた場合はこの value を合わせるか、class:ghost を付与して .ghost で指定 */
.contact-form .confirm-actions input[value="入力内容を修正する"],
.contact-form .confirm-actions .ghost{
  background:#fff;color:var(--ink);border:1px solid #cbd5e1;
}
.contact-form .confirm-actions input[value="入力内容を修正する"]:hover,
.contact-form .confirm-actions .ghost:hover{background:#f8fafc;filter:none;}
/* CF7 の送信スピナーがボタン横で改行されないように */
.contact-form .confirm-actions .wpcf7-spinner{margin-left:12px;vertical-align:middle;}

@media (max-width:980px){
  .contact-form .confirm-actions input[type="submit"],
  .contact-form .confirm-actions input[type="button"],
  .contact-form .confirm-actions button{width:100%;}
}