*{box-sizing:border-box}
.main{font-family:'Helvetica Neue',Arial,'Hiragino Kaku Gothic ProN','Hiragino Sans',Meiryo,sans-serif;color:#333;line-height:1.7}

/* ===== FV ===== */
.fv{position:relative;min-height:420px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.fv-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(.45)}
.fv-content{position:relative;z-index:1;text-align:center;color:#fff;padding:3rem 1.5rem;max-width:800px}
.fv h1{font-size:clamp(22px,4vw,36px);font-weight:700;line-height:1.6;margin-bottom:16px;text-shadow:0 2px 8px rgba(0,0,0,.4)}
.fv .lead{font-size:clamp(14px,2vw,17px);opacity:.92;line-height:1.8;text-shadow:0 1px 4px rgba(0,0,0,.3)}

/* ===== Stats ===== */
.stats-bar{display:flex;justify-content:center;gap:clamp(1.5rem,5vw,4rem);padding:1.5rem 1rem;background:#f8f5f5;border-bottom:1px solid #e8e0e0}
.stat{text-align:center}
.stat .num{font-family:'Impact','Arial Black',sans-serif;font-size:clamp(28px,5vw,48px);color:#761815;line-height:1}
.stat .label{font-size:13px;color:#888;margin-top:6px}

/* ===== Common Section ===== */
.section{max-width:960px;margin:0 auto;padding:3rem 1.5rem}
.section-title{font-size:clamp(18px,2.5vw,26px);font-weight:700;margin-bottom:1.5rem;padding-left:14px;border-left:4px solid #761815}
.section-border{border-bottom:1px solid #eee}
.sub-title{font-size:clamp(16px,2vw,20px);font-weight:700;color:#761815;margin:2rem 0 1rem;padding-bottom:8px;border-bottom:2px solid #f0e0e0}

/* ===== Service Cards ===== */
.svc-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:1rem}
.svc-card{border:1px solid #e8e0e0;border-radius:12px;overflow:hidden;background:#fff}
.svc-card-head{background:#761815;color:#fff;padding:14px 16px;font-size:16px;font-weight:700}
.svc-card-img{width:100%;height:200px;object-fit:cover;display:block}
.svc-card-body{padding:16px}
.svc-card-body p{font-size:14px;color:#555;margin-bottom:10px}
.svc-card-link{color:#761815;font-size:13px;font-weight:600;cursor:pointer;text-decoration:none}
.svc-card-link:hover{text-decoration:underline}

/* ===== Flow ===== */
.flow{display:flex;align-items:center;justify-content:center;gap:0;margin:2rem 0;flex-wrap:nowrap}
.flow-step{background:#761815;color:#fff;border-radius:8px;padding:12px 20px;text-align:center;min-width:130px}
.flow-step .step-label{font-size:11px;opacity:.8}
.flow-step .step-name{font-size:15px;font-weight:700}
.flow-arrow{font-size:24px;color:#761815;margin:0 8px}

/* ===== Accordion ===== */
.accordion{border:1px solid #e0e0e0;border-radius:8px;margin-bottom:10px;overflow:hidden}
.accordion-head{padding:14px 16px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-size:15px;font-weight:600;background:#faf7f7;transition:background .2s}
.accordion-head:hover{background:#f0eaea}
.accordion-head .icon{font-size:20px;transition:transform .3s;color:#761815}
.accordion.open .accordion-head .icon{transform:rotate(45deg)}
.accordion-body{padding:0 16px;max-height:0;overflow:hidden;transition:max-height .4s ease,padding .4s ease;font-size:14px;color:#555;line-height:1.8}
.accordion.open .accordion-body{max-height:600px;padding:14px 16px}

/* ===== Effect ===== */
.effect-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-top:1rem}
.effect-card{background:#faf7f7;border-radius:10px;padding:1.2rem;border-left:4px solid #761815}
.effect-card .ef-title{font-weight:700;font-size:15px;color:#761815;margin-bottom:6px}
.effect-card .ef-text{font-size:13px;color:#555;line-height:1.7}

/* ===== Subject Grid ===== */
.subject-grid{display:grid;grid-template-columns:1fr;gap:0;margin-top:1rem;border:1px solid #e0e0e0;border-radius:8px;overflow:hidden}
.subject-item{display:flex;align-items:baseline;padding:.7rem 1rem;border-bottom:1px solid #eee;gap:.8rem}
.subject-item:last-child{border-bottom:none}
.subject-item:nth-child(odd){background:#faf7f7}
.subject-name{font-weight:700;color:#761815;white-space:nowrap;min-width:120px;font-size:14px}
.subject-detail{font-size:13px;color:#555;line-height:1.5}

/* ===== Overview Image ===== */
.overview-img-wrap{margin-top:2.5rem;text-align:center}
.overview-img{width:100%;max-width:860px;border-radius:12px;box-shadow:0 2px 12px rgba(0,0,0,.08)}

/* ===== Testimonial Cards ===== */
.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin-top:1.5rem}
.card{border:1px solid #e8e0e0;border-radius:12px;overflow:hidden;background:#fff}
.card-img{width:100%;height:160px;object-fit:cover}
.card-body{padding:16px}
.card-title{font-weight:700;font-size:15px;margin-bottom:8px;color:#333}
.card-text{color:#555;font-size:13px;line-height:1.7}

/* ===== 導入実績 ===== */
.univ-list{font-size:14px;color:#555;line-height:2;margin-top:1rem}

/* ===== CTA Mid ===== */
.cta-mid{background:#761815;color:#fff;padding:2.5rem 1.5rem;text-align:center}
.cta-mid h2{font-size:clamp(18px,2.5vw,24px);margin-bottom:8px}
.cta-mid p{font-size:14px;opacity:.85;margin-bottom:1rem}

/* ===== CTA 内 問い合わせフォーム ===== */
.cta-form{max-width:640px;margin:1.5rem auto 0;text-align:left}
.cta-form .jcc-form-row{margin-bottom:1rem}
.cta-form label{display:block;color:#fff;font-size:14px;font-weight:700;margin-bottom:.35rem}
.cta-form input[type=text],
.cta-form input[type=email],
.cta-form input[type=tel],
.cta-form select,
.cta-form textarea{
  width:100%;box-sizing:border-box;
  background:#fff;color:#333;
  border:1px solid #d9c3c2;border-radius:6px;
  padding:.6rem .7rem;font-size:15px; /* 15px以上でiOSの自動ズーム抑止 */
}
.cta-form textarea{min-height:120px;resize:vertical}
.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus{outline:2px solid #ffd7d5;outline-offset:1px}
.cta-form .jcc-form-submit{text-align:center;margin-top:1.2rem}
.cta-form input[type=submit]{
  background:#fff;color:#761815;font-weight:700;
  border:none;border-radius:6px;
  padding:.75rem 2.4rem;font-size:16px;cursor:pointer;
  transition:opacity .2s;
}
.cta-form input[type=submit]:hover{opacity:.85}
/* CF7 のバリデーション/応答メッセージを暗赤背景上でも読めるように */
.cta-form .wpcf7-not-valid-tip{color:#ffe08a;font-size:12px}
.cta-form .wpcf7-response-output{
  color:#fff;border-color:#fff;border-radius:6px;margin:1rem 0 0;padding:.6rem .8rem;font-size:14px;
}
.cta-form .cta-form-fallback{color:#fff}
.cta-form .cta-form-fallback a{color:#ffd7d5}
/* Turnstile ウィジェットの配置 */
.cta-form .cf7-turnstile,.cta-form .cf-turnstile{margin:.5rem 0}
@media(max-width:768px){
  .cta-form{padding:0 .25rem}
}

/* ===== Fixed CTA ===== */
.fixed-cta{position:fixed;bottom:0;left:0;right:0;z-index:999;background:#761815;padding:12px 0;text-align:center;box-shadow:0 -2px 12px rgba(0,0,0,.2)}
.fixed-cta a{color:#fff;font-size:17px;font-weight:700;text-decoration:none;display:block}

/* ===== SP ===== */
@media(max-width:768px){
  .fv{min-height:320px}
  .svc-grid{grid-template-columns:1fr}
  .card-grid{grid-template-columns:1fr}
  .flow{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;padding:0 1rem}
  .flow-step{min-width:0;flex:1 1 0;padding:10px 8px}
  .flow-step .step-label{font-size:10px}
  .flow-step .step-name{font-size:12px}
  .flow-arrow{font-size:18px;margin:0 4px;flex-shrink:0}
}

/* ===== 共通ヘッダー非表示（トップページのみ） ===== */
.home .header{display:none}
