:root{
    /* Light theme (new design) */
    --bg:#f4f7fb;
    --bg2:#eef3fb;
    --card:#ffffff;
    --text:#0f172a;
    --muted:#475569;
    --line:#e5e7eb;

    --accent:#2563eb;
    --accent2:#38bdf8;

    --ok:#16a34a;
    --danger:#e11d48;

    --radius:18px;
    --shadow: 0 10px 30px rgba(2, 6, 23, .08);
    --max: 1100px;

    --h1: clamp(26px, 4.2vw, 44px);
    --h2: clamp(22px, 3.2vw, 32px);
    --p: clamp(14px, 3.4vw, 16px);
    --small: clamp(12px, 3.2vw, 14px);

    --btnH: 52px;
  }

  *{ box-sizing:border-box; }
  html,body{ height:100%; }
  body{
    margin:0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
      "Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic UI","Yu Gothic","Meiryo",sans-serif;
    background:
      radial-gradient(900px 520px at 12% -10%, rgba(37,99,235,.18), transparent 60%),
      radial-gradient(900px 520px at 90% 0%, rgba(56,189,248,.14), transparent 55%),
      linear-gradient(180deg, var(--bg), var(--bg2));
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x:hidden;
  }
  a{ color:inherit; text-decoration:none; }
  img{ max-width:100%; height:auto; display:block; }
  button, input, textarea, select{ font:inherit; color:inherit; }

  .wrap{ max-width: var(--max); margin: 0 auto; padding: 0 18px; }
  @media (min-width: 768px){ .wrap{ padding: 0 22px; } }

  /* Topbar */
  .topbar{
    position: sticky; top:0; z-index:50;
    background: rgba(244,247,251,.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .topbar .inner{
    max-width: var(--max);
    margin: 0 auto;
    padding: 12px 18px;
    display:flex; align-items:center; justify-content:space-between;
    gap:12px;
  }
  @media (min-width: 768px){ .topbar .inner{ padding: 12px 22px; } }

  .brand{ display:flex; align-items:center; gap:10px; min-width:0; }
  .logo{
    width:80px;  border-radius:12px;
    flex:0 0 auto;
  }
  .brand .name{
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
    overflow:hidden;
    text-overflow: ellipsis;
    max-width: 62vw;
  }

  .navctas{ display:flex; gap:10px; align-items:center; }
  .btn{
    display:inline-flex; align-items:center; justify-content:center;
    height: var(--btnH);
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.14);
    background: rgba(255,255,255,.75);
    box-shadow: 0 8px 18px rgba(2,6,23,.06);
    font-weight: 800;
    letter-spacing:.01em;
    white-space:nowrap;
    transition: transform .08s ease, border-color .15s ease, background .15s ease;
    user-select:none;
  }
  .btn:hover{ transform: translateY(-1px); border-color: rgba(15,23,42,.22); }
  .btn:active{ transform: translateY(0px) scale(.99); }
  .btn.primary{
    border-color: rgba(37,99,235,.22);
    background: linear-gradient(135deg, rgba(37,99,235,.95), rgba(56,189,248,.92));
    color: #fff;
    box-shadow: 0 14px 30px rgba(37,99,235,.18);
  }
  .btn.ghost{ background: rgba(255,255,255,.40); }
  @media (max-width: 420px){
    .btn{ padding: 0 12px; }
    .hide-xs{ display:none; }
  }

  /* Card */
  .card{
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow:hidden;
  }
  .pad{ padding: 18px; }
  @media (min-width: 768px){ .pad{ padding: 22px; } }

  /* Hero */
  header.hero{ padding: 26px 0 12px; }
  .heroGrid{
    display:grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch;
  }
  @media (min-width: 900px){
    header.hero{ padding: 44px 0 18px; }
    .heroGrid{ grid-template-columns: 1.08fr .92fr; gap: 20px; }
  }

  .badge{
    display:inline-flex; align-items:center; gap:8px;
    padding: 6px 10px;
    font-size: var(--small);
    font-weight: 800;
    width: fit-content;
  }
  .dot{
    width:8px; height:8px; border-radius:99px;
    background: var(--ok);
    box-shadow: 0 0 0 6px rgba(22,163,74,.12);
    flex:0 0 auto;
  }
  h1{
    margin: 12px 0 10px;
    font-size: var(--h1);
    line-height: 1.15;
    letter-spacing:.01em;
    overflow-wrap:anywhere;
  }
  .lead{
    margin:0;
    font-size: clamp(15px, 3.8vw, 18px);
    color: var(--muted);
    overflow-wrap:anywhere;
  }

  .heroPoints{
    list-style:none;
    padding:0;
    margin: 16px 0 0;
    display:grid;
    gap: 10px;
  }
  .point{
    display:flex; gap:10px; align-items:flex-start;
    padding: 12px 12px;
    border-radius: 14px;
    border:1px solid rgba(15,23,42,.10);
    background: rgba(2,6,23,.03);
  }
  .check{
    width:22px; height:22px; border-radius: 8px;
    background: rgba(22,163,74,.10);
    border: 1px solid rgba(22,163,74,.22);
    flex:0 0 auto;
    position:relative;
    margin-top:1px;
  }
  .check:after{
    content:"";
    position:absolute;
    left:7px; top:5px;
    width:6px; height:10px;
    border-right:2px solid var(--ok);
    border-bottom:2px solid var(--ok);
    transform: rotate(40deg);
  }
  .point b{ display:block; font-size: var(--p); color: var(--text); }
  .point span{ display:block; margin-top:2px; color: var(--muted); font-size: var(--small); }

  .heroCtas{ display:flex; flex-wrap:wrap; gap:10px; margin-top: 16px; }
  .micro{ margin-top:10px; font-size: var(--small); color: rgba(71,85,105,.92); }
  .micro strong{ color: var(--text); }

  /* Media (ticket) */
  .mediaBox{
    border-radius: var(--radius);
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(2,6,23,.03);
    overflow:hidden;
  }
  .mediaCap{
    padding: 10px 12px;
    border-top:1px solid rgba(15,23,42,.10);
    font-size: var(--small);
    color: rgba(71,85,105,.95);
    overflow-wrap:anywhere;
  }
  .mediaBox img{
    width:100%;
    height:auto;
    object-fit: contain;
  }

  /* Sections */
  section{ padding: 18px 0; }
  @media (min-width: 900px){ section{ padding: 24px 0; } }

  .sectionTitle{
    margin: 0 0 10px;
    font-size: var(--h2);
    line-height: 1.2;
    overflow-wrap:anywhere;
  }
  .sectionLead{
    margin: 0 0 16px;
    font-size: var(--p);
    color: var(--muted);
    overflow-wrap:anywhere;
  }

  .grid3{
    display:grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  @media (min-width: 820px){
    .grid3{ grid-template-columns: repeat(3, 1fr); gap: 14px; }
  }

  .feat h3{ margin: 0 0 6px; font-size: 18px; line-height:1.25; }
  .feat p{ margin:0; color: var(--muted); font-size: var(--p); }

  .twoCols{
    display:grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  @media (min-width: 900px){
    .twoCols{ grid-template-columns: 1fr 1fr; gap: 14px; }
  }

  .list{
    margin:0;
    padding-left: 18px;
    color: var(--muted);
    font-size: var(--p);
  }
  .list li{ margin: 8px 0; overflow-wrap:anywhere; }

  /* KPI card */
  .priceCard{
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(2,6,23,.03);
  }
  .kpiRow{
    display:grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
  }
  @media (min-width: 650px){
    .kpiRow{ grid-template-columns: repeat(3, 1fr); }
  }
  .kpi{
    padding: 12px;
    border-radius: 14px;
    border:1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.60);
  }
  .kpi .label{ font-size: 12px; color: rgba(71,85,105,.95); font-weight:700; }
  .kpi .value{ margin-top: 6px; font-size: 18px; font-weight: 900; letter-spacing:.01em; }
  .kpi .hint{ margin-top: 4px; font-size: 12px; color: rgba(71,85,105,.92); }

  .hr{ height:1px; background: rgba(15,23,42,.10); margin: 14px 0; }

  .pill{
    display:inline-flex; align-items:center;
    padding: 8px 10px;
    border-radius: 999px;
    border:1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.65);
    font-size: 12px;
    color: rgba(15,23,42,.86);
    margin: 6px 6px 0 0;
    white-space:nowrap;
  }

  /* FAQ */
  details{
    border:1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.70);
    border-radius: 16px;
    padding: 12px 12px;
  }
  details + details{ margin-top: 10px; }
  summary{
    cursor:pointer;
    font-weight: 900;
    list-style:none;
    display:flex; align-items:flex-start; justify-content:space-between;
    gap: 10px;
    overflow-wrap:anywhere;
  }
  summary::-webkit-details-marker{ display:none; }
  .chev{
    width:22px; height:22px; border-radius: 8px;
    border:1px solid rgba(15,23,42,.14);
    background: rgba(2,6,23,.03);
    flex:0 0 auto;
    position:relative;
    margin-top:2px;
  }
  .chev:after{
    content:"";
    position:absolute;
    left:7px; top:8px;
    width:7px; height:7px;
    border-right:2px solid rgba(15,23,42,.88);
    border-bottom:2px solid rgba(15,23,42,.88);
    transform: rotate(45deg);
    transition: transform .15s ease;
  }
  details[open] .chev:after{ transform: rotate(-135deg); top:7px; }
  details p{ margin: 10px 0 0; color: var(--muted); font-size: var(--p); overflow-wrap:anywhere; }

  /* Form (TEMP) */
  .formHead{
    display:flex; align-items:flex-start; justify-content:space-between;
    gap:12px;
    margin-bottom: 10px;
  }
  .formHead h2{
    margin:0;
    font-size: clamp(18px, 4.6vw, 24px);
    line-height:1.2;
  }
  .formHead .sub{ color: var(--muted); font-size: var(--small); margin-top: 6px; }

  .fields{
    display:grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
  }
  @media (min-width: 520px){
    .fields{ grid-template-columns: 1fr 1fr; }
    .span2{ grid-column: span 2; }
  }
  label{
    display:block;
    font-size: var(--small);
    color: rgba(15,23,42,.88);
    margin-bottom: 6px;
    font-weight:700;
  }
  .req{
    display:inline-block;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(225,29,72,.10);
    border: 1px solid rgba(225,29,72,.20);
    color: rgba(225,29,72,.95);
    margin-left: 6px;
    vertical-align: middle;
  }
  input, textarea, select{
    width:100%;
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,.14);
    background: rgba(255,255,255,.86);
    padding: 12px 12px;
    outline:none;
    transition: border-color .15s ease, box-shadow .15s ease;
    overflow-wrap:anywhere;
  }
  input:focus, textarea:focus, select:focus{
    border-color: rgba(37,99,235,.55);
    box-shadow: 0 0 0 4px rgba(37,99,235,.16);
  }
  textarea{ min-height: 110px; resize: vertical; }

  .formFooter{
    margin-top: 12px;
    display:flex; flex-direction:column; gap:10px;
  }
  .submitRow{
    display:flex; gap:10px; flex-wrap:wrap;
  }
  .submitRow .btn{ flex: 1 1 220px; }
  .note{
    font-size: var(--small);
    color: rgba(71,85,105,.95);
    border-top:1px solid rgba(15,23,42,.10);
    padding-top: 10px;
  }

  /* Sticky CTA (mobile) */
  .stickyCta{
    position:fixed;
    left:0; right:0; bottom:0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(244,247,251,.88);
    border-top:1px solid rgba(15,23,42,.10);
    backdrop-filter: blur(10px);
    z-index: 60;
  }
  .stickyInner{
    max-width: var(--max);
    margin:0 auto;
    display:flex; gap:10px; align-items:center;
  }
  .stickyInner .btn{ flex:1 1 auto; height: 54px; }
  @media (min-width: 900px){
    .stickyCta{ display:none; }
  }

  footer{
    padding: 22px 0 90px;
    border-top:1px solid rgba(15,23,42,.10);
    color: rgba(71,85,105,.92);
    font-size: var(--small);
  }
  @media (min-width: 900px){
    footer{ padding-bottom: 24px; }
  }

  .break{ overflow-wrap:anywhere; word-break: break-word; }

.mwform-checkbox-field-text{
text-align:center;
display: block;
}

.kojinjoho{
border-bottom: 1px solid;
}

.error{
    color: red;
    font-size: 14px;
}


/* =========================
   Footer
========================= */
footer {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  padding: 40px 0 24px;
  color: #475569;
  font-size: 14px;
}

/* 上段全体 */
.footer_top_box {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 18px;
}

/* 会社情報 + マーク */
.company_flexbox {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* ロゴ */
.company_flexbox .logo img {
  max-width: 160px;
  height: auto;
}

/* 会社情報 */
.company_box {
  flex: 1;
  min-width: 260px;
}

.company_name {
  font-weight: 800;
  font-size: 16px;
  color: #0f172a;
  margin-bottom: 10px;
}

.company_information {
  list-style: none;
  padding: 0;
  margin: 0;
}

.company_information li {
  margin-bottom: 4px;
  line-height: 1.6;
}

/* フッター内リンク */
footer a {
text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid;
}

footer a:hover {
  text-decoration: underline;
}

/* 認証マーク */
.footer_mark {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.footer_mark .badge img {
  height: 48px;
  width: auto;
  display: block;
}

/* 下段リンク */
.footer_link {
  max-width: 1100px;
  margin: 28px auto 0;
  padding: 16px 18px 0;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer_link div a {
  font-size: 13px;
  color: #334155;
}

/* コピーライト */
.copyright {
  max-width: 1100px;
  margin: 16px auto 0;
  padding: 0 18px;
  font-size: 12px;
  color: #64748b;
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  footer {
    padding: 32px 0 20px;
  }

  .company_flexbox {
    flex-direction: column;
    gap: 20px;
  }

  .footer_mark {
    margin-top: 8px;
  }

  .footer_link {
    justify-content: flex-start;
    gap: 14px;
  }
}


/* =========================
   Footer overlap fix
========================= */

/* ロゴをフレックスの影響から守る */
.company_flexbox {
  align-items: flex-start;
}

/* ロゴエリアを明示的に分離 */
.company_flexbox .logo {
  flex-shrink: 0;
  margin-bottom: 12px;
}

/* ロゴサイズを制限（重要） */
.company_flexbox .logo img {
  max-width: 140px;   /* ← ここが一番効く */
  width: 100%;
  height: auto;
  display: block;
}

/* 会社情報は必ずロゴの下から始める */
.company_box {
  margin-top: 4px;
}

/* 情報リストの行間を安定させる */
.company_information li {
  line-height: 1.7;
}

/* 認証マークが上に被らないよう余白確保 */
.footer_mark {
  margin-top: 16px;
}

/* =========================
   Mobile（重なりの主戦場）
========================= */
@media (max-width: 768px) {
  .company_flexbox {
    flex-direction: column;
  }

  .company_flexbox .logo {
    margin-bottom: 16px;
  }

  .company_flexbox .logo img {
    max-width: 120px;
  }

  .company_box {
    margin-top: 0;
  }

  .footer_mark {
    margin-top: 20px;
  }
}

footer{
padding-bottom: 80px;
}

/* -----------------------
   フッター重なり修正
----------------------- */
footer {
  position: relative;
  z-index: 1;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
}

/* フッター内ロゴ制御 */
footer .logo img {
  max-width: 140px !important;
  height: auto !important;
  display: block;
}

/* フッター情報の余白 */
footer .company_flexbox {
  align-items: flex-start !important;
  gap: 20px;
}

/* モバイルでの並び修正 */
@media (max-width: 768px) {
  footer .company_flexbox {
    flex-direction: column;
  }
  footer .logo {
    margin-bottom: 12px;
  }
  footer .footer_mark {
    margin-top: 18px;
  }
}

/* -----------------------
   全体の色味補正
----------------------- */
footer a {
  color: #2563eb !important;
  text-decoration: underline !important;
}
footer .company_information li {
  line-height: 1.6;
  color: #475569 !important;
}

/* 認証マークのサイズ */
footer .footer_mark img {
  height: 48px;
  object-fit: contain;
  opacity: .85;
}

section {
  background: #f9fafb;
}
footer {
  background: #f7f8fa;
}

/* Section alternation */
section:nth-child(odd) {
  background: #f9fafb;
}
section:nth-child(even) {
  background: #ffffff;
}

.hero_anshin {
  margin: 12px 0 18px;
  padding: 0;
  list-style: none;
}

.hero_anshin  li {
  font-size: 15px;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 6px;
}

/* =========================
   ご利用の流れ（アイコン付き）
========================= */

.processItem {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.processIcon {
  width: 75px;
  height: auto;
  flex-shrink: 0;
  margin-top: 2px;
}

/* モバイル */
@media (max-width: 768px) {
  .processItem {
    gap: 12px;
  }

  .processIcon {
    width: 75px;
  }
}