*{box-sizing:border-box;margin:0;padding:0;}
:root{
  --primary:#2d4a6b;--pl:#3d6a9a;--accent:#e8612e;--al:#f07040;
  --bg:#f7f5f0;--white:#fff;--text:#1e1e1e;--muted:#666;--border:#dddad4;
  --serif:'Noto Serif JP',serif;--pop:'Zen Maru Gothic',var(--sans);--sans:'Noto Sans JP',sans-serif;--radius:6px;
}
body{font-family:var(--sans);color:var(--text);background:var(--bg);font-size:15px;line-height:1.7;min-height:100vh;}

.hdr{background:var(--white);border-bottom:1px solid var(--border);padding:0 4%;}
.hdr-in{max-width:900px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;height:64px;}
.logo{font-family:var(--serif);font-size:20px;font-weight:700;color:var(--primary);text-decoration:none;letter-spacing:0.05em;}
.logo span{color:var(--accent);}
.hdr-nav{display:flex;align-items:center;gap:18px;}
.hdr-nav a{font-size:16px;color:var(--muted);text-decoration:none;}
.hdr-cta{background:var(--accent);color:white!important;padding:10px 22px;border-radius:10px;font-weight:700;font-size:14px;}
@media (max-width:600px){.hdr-nav a:not(.hdr-cta){display:none;}}

.bc{background:var(--white);border-bottom:1px solid var(--border);padding:8px 4%;font-size:15px;color:var(--muted);}
.bc-in{max-width:900px;margin:0 auto;display:flex;gap:5px;flex-wrap:wrap;}
.bc a{color:var(--muted);text-decoration:none;}

.hero{background:linear-gradient(150deg,#1a2f45,#2d4a6b);color:white;padding:36px 4%;text-align:center;}
.hero h1{font-family:var(--serif);font-size:clamp(20px,4vw,28px);font-weight:700;margin-bottom:8px;}
.hero p{font-size:17px;color:rgba(255,255,255,.75);}

.main{max-width:900px;margin:0 auto;padding:36px 4% 80px;display:grid;grid-template-columns:1fr 260px;gap:32px;align-items:start;}
@media (max-width:720px){.main{grid-template-columns:1fr;padding-bottom:90px;}}

/* FORM */
.form-card{background:var(--white);border:1px solid var(--border);border-radius:10px;overflow:hidden;}
.form-body{padding:28px;}
@media (max-width:480px){.form-body{padding:18px;}}

.field{margin-bottom:20px;}
.field:last-child{margin-bottom:0;}
label{display:block;font-size:16px;font-weight:500;margin-bottom:6px;}
label .req{color:var(--accent);font-size:15px;margin-left:4px;}
label .opt{color:var(--muted);font-size:15px;margin-left:4px;}
input[type=text],input[type=email],input[type=tel],textarea{
  width:100%;padding:12px 14px;border:1px solid var(--border);border-radius:10px;
  font-family:var(--sans);font-size:16px;color:var(--text);background:white;
  transition:border-color .2s,box-shadow .2s;appearance:none;-webkit-appearance:none;
}
input:focus,textarea:focus{outline:none;border-color:var(--pl);box-shadow:0 0 0 3px rgba(46,122,181,.12);}
textarea{resize:vertical;min-height:160px;line-height:1.7;font-size:15px;}

.notice{background:#fff9f5;border:1px solid #f0d5c5;border-radius:10px;padding:12px 14px;font-size:16px;color:#8a4a2a;line-height:1.8;margin-bottom:20px;}
.notice strong{color:var(--accent);}

.submit-wrap{padding:20px 28px;background:#f5f3ef;border-top:1px solid var(--border);}
.submit-btn{width:100%;background:var(--accent);color:white;border:none;padding:15px;border-radius:10px;font-family:var(--sans);font-size:15px;font-weight:700;cursor:pointer;letter-spacing:.03em;transition:background .2s;}
.submit-btn:active{background:var(--al);}
.submit-note{font-size:15px;color:var(--muted);text-align:center;margin-top:8px;}

/* SIDEBAR */
.sidebar{display:flex;flex-direction:column;gap:14px;position:sticky;top:70px;max-height:calc(100vh - 90px);overflow-y:auto;scrollbar-width:none;}
.sidebar::-webkit-scrollbar{display:none;}
@media (max-width:720px){.sidebar{position:static;max-height:none;}}
.sc{background:var(--white);border:1px solid var(--border);border-radius:10px;padding:18px;}
.st{font-size:15px;font-weight:700;color:var(--primary);margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid var(--border);}
.s-cta{display:block;background:var(--accent);color:white;text-align:center;padding:12px;border-radius:10px;font-size:17px;font-weight:700;text-decoration:none;margin-bottom:8px;}
.s-note{font-size:15px;color:var(--muted);text-align:center;margin-top:6px;line-height:1.7;}
.contact-block{font-size:17px;line-height:2.1;}
.contact-block .label{font-size:15px;font-weight:700;color:var(--primary);letter-spacing:.06em;margin-bottom:2px;}
.contact-block .val{color:var(--text);font-size:14px;font-weight:700;}
.contact-block .sub{font-size:14px;color:var(--muted);}
.divider{border:none;border-top:1px solid var(--border);margin:14px 0;}
.addr-box{font-size:15px;line-height:1.9;background:#f5f3ef;border-radius:4px;padding:10px 12px;}
.s-links{display:flex;flex-direction:column;}
.s-link{font-size:16px;color:var(--pl);text-decoration:none;padding:8px 0;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;}
.s-link:last-child{border-bottom:none;}
.s-link::after{content:'›';color:var(--muted);}

/* MODAL */
.modal-bg{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:200;align-items:flex-end;justify-content:center;}
.modal-bg.open{display:flex;}
.modal{background:white;border-radius:16px 16px 0 0;padding:28px 24px 36px;width:100%;max-width:520px;}
@media (min-width:520px){.modal-bg{align-items:center;}.modal{border-radius:12px;padding:32px;}}
.modal h2{font-family:var(--serif);font-size:18px;color:var(--primary);margin-bottom:10px;}
.modal p{font-size:17px;font-weight:500;color:var(--muted);margin-bottom:22px;line-height:1.8;}
.modal-btns{display:flex;gap:10px;}
.modal-cancel{flex:1;background:transparent;border:1px solid var(--border);padding:13px;border-radius:10px;font-family:var(--sans);font-size:14px;cursor:pointer;}
.modal-ok{flex:2;background:var(--accent);color:white;border:none;padding:13px;border-radius:10px;font-family:var(--sans);font-size:14px;font-weight:700;cursor:pointer;}

/* SP CTA */
.sp-cta{display:none;position:fixed;bottom:0;left:0;right:0;z-index:90;padding:9px 4%;background:white;border-top:1px solid var(--border);box-shadow:0 -2px 10px rgba(0,0,0,.1);}
.sp-cta a{display:block;background:var(--accent);color:white;text-align:center;padding:13px;border-radius:10px;font-size:14px;font-weight:700;text-decoration:none;}
@media (max-width:720px){.sp-cta{display:block;}}

.footer{background:#0d1f2d;color:rgba(255,255,255,.5);padding:24px 4%;font-size:14px;text-align:center;line-height:2;}
.footer a{color:rgba(255,255,255,.4);text-decoration:none;margin:0 6px;}

/* === NEWS BAR (integrated header) === */
.site-header { position: sticky; top: 0; z-index: 100; }
.news-bar { background: #1a2f45; }
.news-bar-in { max-width: 1100px; margin: 0 auto; padding: 8px 4%; display: flex; align-items: center; gap: 12px; }
.news-bar-label { background: var(--accent); color: white; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 3px; white-space: nowrap; flex-shrink: 0; letter-spacing: .04em; }
.news-bar-text { font-size: 11px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: white; }
.news-bar-text a { color: rgba(255,255,255,.9); text-decoration: none; }
.news-bar-text a:hover { text-decoration: underline; }
.news-bar-date { font-size: 11px; color: rgba(255,255,255,.5); white-space: nowrap; flex-shrink: 0; }
.news-bar-more { font-size: 11px; color: rgba(255,255,255,.6); white-space: nowrap; text-decoration: none; padding: 2px 8px; border: 1px solid rgba(255,255,255,.25); border-radius: 3px; flex-shrink: 0; }
.news-bar-close { background: none; border: none; color: rgba(255,255,255,.5); font-size: 18px; cursor: pointer; padding: 0 4px; flex-shrink: 0; line-height: 1; }
.news-bar-close:hover { color: white; }
@media (max-width:600px){ .news-bar-date,.news-bar-more { display:none; } }
/* === BACK TO TOP === */
.back-to-top { position: fixed; bottom: 80px; right: 16px; width: 44px; height: 44px; background: var(--primary); color: white; border: none; border-radius: 50%; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.2); z-index: 80; opacity: 0; transition: opacity .3s; text-decoration: none; line-height: 1; }
.back-to-top.visible { opacity: 1; }
.back-to-top:hover { background: var(--pl); }
@media (min-width:721px){ .back-to-top { bottom: 24px; } }

.sub-nav{background:#2d4a6b;}
.sub-nav-in{max-width:1100px;margin:0 auto;display:flex;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
.sub-nav-in::-webkit-scrollbar{display:none;}
.sub-nav a{color:rgba(255,255,255,.85);font-size:14px;font-weight:500;text-decoration:none;padding:11px 22px;display:block;border-right:1px solid rgba(255,255,255,.1);white-space:nowrap;transition:background .15s;}
.sub-nav a:first-child{border-left:1px solid rgba(255,255,255,.1);}
.sub-nav a:hover{background:rgba(255,255,255,.12);color:white;}
.sub-nav a[href="index.html"]{color:white;font-weight:700;background:rgba(255,255,255,.1);letter-spacing:.04em;}

/* === ESTIMATE POPUP === */
.est-popup{
  position:fixed;bottom:24px;left:auto;right:16px;width:240px;
  background:var(--white);
  border-radius:12px;
  border:1px solid var(--border);
  box-shadow:0 8px 32px rgba(0,0,0,.15);
  z-index:9999;
  display:none;
  pointer-events:auto;
  overflow:hidden;
  will-change:transform;
  transform:translateZ(0);
  isolation:isolate;
  -webkit-transform:translateZ(0);
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}
.est-popup-accent{height:5px;background:var(--accent);}
.est-popup-body{padding:16px 18px 18px;}
.est-popup-close{
  position:absolute;top:10px;right:12px;
  background:none;border:none;
  font-size:15px;color:var(--muted);
  cursor:pointer;line-height:1;padding:2px 4px;
  border-radius:4px;
}
.est-popup-close:hover{background:#f0ece6;color:var(--text);}
.est-popup-title{
  font-family:var(--pop);font-size:15px;font-weight:700;
  color:var(--primary);margin-bottom:5px;
  padding-right:20px;line-height:1.4;
}
.est-popup-sub{
  font-size:13px;color:var(--muted);
  margin-bottom:14px;line-height:1.6;
}
.est-popup-btn{
  display:block;background:var(--accent);color:white;
  text-align:center;padding:11px;border-radius:8px;
  font-family:var(--pop);font-size:14px;font-weight:700;
  text-decoration:none;
}
.est-popup-btn:hover{background:var(--al);}
@media (max-width:480px){.est-popup{width:200px;bottom:80px;left:10px;}}

/* === POP FONT & COLOR === */
.hero h1,.hero h2 { font-family: var(--pop) !important; font-weight: 900; }
.sec-title,.section-title { font-family: var(--pop) !important; font-weight: 700; }
.step-title,.flow-step-title,.point-title,.usecase-title { font-family: var(--pop) !important; font-weight: 700; }
.faq-q { font-family: var(--pop) !important; }
.tab-btn { font-family: var(--pop) !important; }
.s-cta,.btn-m,.btn-s,.pb-cta,.hdr-cta { font-family: var(--pop) !important; }
.hero-badge,.news-bar-label { font-family: var(--pop) !important; }
.sim-header { font-family: var(--pop) !important; }
.article-title { font-family: var(--pop) !important; font-weight: 900; }
.blog-card-title { font-family: var(--pop) !important; font-weight: 700; }
.news-title { font-family: var(--pop) !important; font-weight: 700; }
.delivery-card h3,.access-card h4 { font-family: var(--pop) !important; font-weight: 700; }
.pack-title,.doc-name,.opt-name,.pay-name { font-family: var(--pop) !important; font-weight: 700; }
.point-num,.flow-step-num,.step-label { font-family: var(--pop) !important; }
.est-popup-title { font-family: var(--pop) !important; font-weight: 700; }
.sub-nav a { font-family: var(--pop) !important; }
.logo { font-family: var(--pop) !important; }

.sub-nav-contact{margin-left:auto;display:flex;align-items:center;gap:0;flex-shrink:0;}
.sub-nav-tel{background:var(--accent);color:white;font-family:var(--pop);font-size:15px;font-weight:700;padding:8px 18px;margin:6px 0 6px 12px;border-radius:6px;white-space:nowrap;letter-spacing:.02em;display:flex;align-items:center;gap:6px;text-decoration:none;}.sub-nav-tel:hover{background:var(--al);}
.sub-nav-tel::before{content:none;}
.sub-nav-contact-btn{background:var(--accent);color:white !important;font-family:var(--pop);font-size:13px;font-weight:700;padding:8px 18px;margin:6px 12px;border-radius:6px;text-decoration:none;white-space:nowrap;transition:background .15s;}
.sub-nav-contact-btn:hover{background:var(--al) !important;}
@media (max-width:720px){.sub-nav-tel{display:none;}}
@media (max-width:480px){.sub-nav-contact-btn{padding:7px 12px;font-size:12px;margin:6px 8px;}}

/* === CHARACTER LOGO === */
.logo-wrap{display:flex;align-items:center;gap:8px;cursor:pointer;text-decoration:none;}
.logo-chara{height:48px;width:auto;display:block;object-fit:contain;}
@media (max-width:480px){.logo-chara{height:38px;}}


/* ===== CF7 スタイル調整 ===== */
.wpcf7 .cf7-row { margin-bottom: 18px; }
.wpcf7 .cf7-row label,
.wpcf7 label { display: block; font-size: 15px; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.wpcf7 .required { background: var(--accent); color: white; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 3px; margin-left: 6px; vertical-align: middle; }
.wpcf7 .optional { background: #888; color: white; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 3px; margin-left: 6px; vertical-align: middle; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 16px; font-family: var(--sans); color: var(--text); background: var(--white); box-sizing: border-box; transition: border-color .2s; }
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45,74,107,.1); }
.wpcf7 textarea { min-height: 130px; resize: vertical; }
.wpcf7 .cf7-row--half { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wpcf7 .cf7-privacy-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin: 20px 0 16px; }
.wpcf7 .cf7-privacy-check a { color: var(--accent); }
.wpcf7 input[type="submit"] { display: block; width: 100%; background: var(--accent); color: white; border: none; padding: 15px 24px; border-radius: 10px; font-size: 17px; font-weight: 700; cursor: pointer; font-family: var(--sans); transition: background .2s; }
.wpcf7 input[type="submit"]:hover { background: var(--al, #d14f20); }
.wpcf7-acceptance label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 400; }
.wpcf7-acceptance input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.wpcf7-not-valid-tip { color: #e44; font-size: 13px; margin-top: 4px; display: block; }
.wpcf7-response-output { margin-top: 16px; padding: 12px 16px; border-radius: 8px; font-size: 14px; }
@media (max-width:600px){ .wpcf7 .cf7-row--half { grid-template-columns: 1fr; } }