/* =========================
  Base
========================= */
:root{
  --bg:#ffffff;
  --bg-alt:#f6f8fb;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
  --brand:#0ea5e9;
  --brand2:#22c55e;
  --shadow: 0 10px 30px rgba(2, 6, 23, .08);
  --radius: 16px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.7;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
p{ margin:0; }
h1,h2,h3{ margin:0; line-height:1.25; }
.container{
  width:min(1120px, 92%);
  margin-inline:auto;
}

/* accessibility */
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* =========================
  Header
========================= */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.78);
  border-bottom:1px solid rgba(226,232,240,.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
}

/* Logo (image + text) */
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  max-width: 320px;
}
.logo__image{
  height:36px;
  width:auto;
  max-width:36px;
  object-fit:contain;
  flex-shrink:0;
}
.logo__text{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}
.logo__main{
  font-weight:800;
  letter-spacing:.02em;
  font-size:.95rem;
  white-space:nowrap;
}
.logo__sub{
  font-size:.78rem;
  color:var(--muted);
  white-space:nowrap;
}

/* Nav wrapper (PC default) */
.global-nav{
  display:flex;
  align-items:center;
  gap:12px;
}

/* Menu list */
.global-nav .nav-list{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap; /* PCは折り返しOK */
  justify-content:flex-end;
}
.nav-list a{
  font-weight:600;
  color:rgba(15,23,42,.92);
  white-space:nowrap;
  word-break:keep-all;
}
.nav-list a:hover{ color:var(--brand); }

/* CTA area (LINE/電話/お問い合わせ) */
.nav-cta{
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}

/* ===== 改善版：Toggle button (mobile only) ===== */
.nav-toggle{
  display:none;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border:2px solid rgba(14,165,233,0.35);
  border-radius:12px;
  background:#fff;
  font-size:0.88rem;
  font-weight:700;
  color:#0ea5e9;
  cursor:pointer;
  transition: all 0.2s ease;
}

.nav-toggle:hover{
  background:rgba(14,165,233,0.06);
  border-color:#0ea5e9;
}

.nav-toggle:active{
  transform:scale(0.96);
}

/* 三本線アイコンのコンテナ */
.nav-toggle__icon{
  display:flex;
  flex-direction:column;
  gap:4px;
  width:20px;
}

/* 三本線 */
.nav-toggle__bar{
  display:block;
  height:3px;
  background:#0ea5e9;
  border-radius:3px;
  transition: all 0.3s ease;
}

/* メニュー開いたときのアニメーション（X字） */
body.nav-open .nav-toggle__bar:nth-child(1){
  transform: rotate(45deg) translate(6px, 6px);
}

body.nav-open .nav-toggle__bar:nth-child(2){
  opacity:0;
}

body.nav-open .nav-toggle__bar:nth-child(3){
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================
  Buttons
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 18px;
  border-radius:14px;
  background:var(--brand);
  color:#fff;
  font-weight:800;
  border:1px solid rgba(0,0,0,0);
  box-shadow: var(--shadow);
  transition: transform .12s ease, opacity .12s ease;
}
.btn:hover{ transform: translateY(-1px); opacity:.96; }
.btn:active{ transform: translateY(0px); opacity:.92; }

.btn--ghost{
  background:#fff;
  color:var(--text);
  border:1px solid var(--line);
  box-shadow:none;
}
.btn--small{
  padding:10px 14px;
  border-radius:12px;
  font-size:.92rem;
}

/* =========================
  Hero
========================= */
.hero{
  padding:54px 0 34px;
  background:
    radial-gradient(700px 240px at 20% 10%, rgba(14,165,233,.18), transparent 60%),
    radial-gradient(700px 240px at 80% 0%, rgba(34,197,94,.14), transparent 60%),
    linear-gradient(180deg, #fff, #fff);
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:28px;
  align-items:center;
}
.hero-badge{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(34,197,94,.12);
  color:#166534;
  font-weight:800;
  font-size:.92rem;
  margin-bottom:14px;
}
.hero-title{
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight:900;
  letter-spacing:.01em;
}
.hero-lead{
  color:var(--muted);
  margin-top:14px;
}
.hero-cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}
.hero-points{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  color:rgba(15,23,42,.85);
  margin-top:16px;
  font-weight:700;
}
.hero-media img{
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border:1px solid rgba(226,232,240,.7);
}

/* Hero center (画像なし用の中央寄せ) */
.hero--center{ text-align:center; }
.hero--center .hero-inner{
  grid-template-columns: 1fr;
  justify-items:center;
}
.hero--center .hero-text{ max-width:720px; }
.hero--center .hero-cta{ justify-content:center; }
.hero--center .hero-points{ justify-content:center; }

/* =========================
  Sections
========================= */
.section{ padding:64px 0; }
.section--alt{ background:var(--bg-alt); }
.section--cta{
  background:
    radial-gradient(700px 260px at 20% 0%, rgba(14,165,233,.18), transparent 60%),
    radial-gradient(700px 260px at 80% 0%, rgba(34,197,94,.14), transparent 60%),
    var(--bg-alt);
}
.section-head{ margin-bottom:22px; }
.section-title{
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight:900;
}
.section-sub{
  color:var(--muted);
  margin-top:6px;
}

/* =========================
  Cards
========================= */
.card-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
  margin-top:18px;
}
.card{
  background:#fff;
  border:1px solid rgba(226,232,240,.9);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: 0 6px 16px rgba(2,6,23,.05);
}
.card-title{ font-weight:900; }
.card-text{ margin-top:8px; color:var(--muted); }

.note{
  margin-top:16px;
  padding:14px 16px;
  background:rgba(14,165,233,.06);
  border:1px solid rgba(14,165,233,.18);
  border-radius: 14px;
  color:rgba(15,23,42,.85);
  font-weight:650;
}

/* =========================
  Reasons
========================= */
.reason-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:16px;
  margin-top:18px;
}
.reason{
  background:#fff;
  border:1px solid rgba(226,232,240,.9);
  border-radius: var(--radius);
  padding:18px;
}
.reason h3{ font-weight:900; }
.reason p{ color:var(--muted); margin-top:8px; }

/* =========================
  Steps
========================= */
.steps{
  display:grid;
  gap:12px;
  margin-top:18px;
  padding:0;
}
.step{
  display:flex;
  gap:14px;
  align-items:flex-start;
  background:#fff;
  border:1px solid rgba(226,232,240,.9);
  border-radius: var(--radius);
  padding:16px;
}
.step-num{
  width:42px; height:42px;
  border-radius:14px;
  background:rgba(34,197,94,.14);
  color:#166534;
  display:grid;
  place-items:center;
  font-weight:900;
}
.step-body h3{ font-weight:900; }
.step-body p{ margin-top:6px; color:var(--muted); }

/* =========================
  Price
========================= */
.price-table{
  margin-top:18px;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(226,232,240,.9);
  background:#fff;
}
.price-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  border-top:1px solid rgba(226,232,240,.9);
}
.price-row:first-child{ border-top:none; }
.price-name{ font-weight:800; }
.price-value{ font-weight:900; }

/* =========================
  Footer
========================= */
.site-footer{
  padding:28px 0;
  border-top:1px solid rgba(226,232,240,.9);
}
.footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.footer-logo{ font-weight:900; }
.footer-text{ color:var(--muted); margin-top:4px; }
.footer-nav{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  color:rgba(15,23,42,.9);
  font-weight:700;
}
.footer-nav a:hover{ color:var(--brand); }
.copyright{
  display:block;
  width:100%;
  color:var(--muted);
  margin-top:10px;
}

/* =========================
  Floating contact buttons
========================= */
.floating-cta{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  gap: 10px;
  transition: .2s;
}
.floating-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
}
.floating-btn--line{ background:#06C755; color:#fff; }
.floating-btn--tel{ background:#111; color:#fff; }
.floating-cta.is-hidden{ opacity:0; pointer-events:none; transform: translateY(8px); }

@media (min-width: 960px){
  .floating-btn{ height: 40px; padding: 0 12px; font-size: 14px; opacity: .9; }
}

/* =========================
  Staff Intro (speech bubble)
========================= */
.staff-intro{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin-top:18px;
}
.staff-intro__avatar{
  width:64px;
  height:64px;
  border-radius:999px;
  overflow:hidden;
  border:2px solid rgba(226,232,240,.9);
  box-shadow: 0 10px 24px rgba(2, 6, 23, .10);
  flex-shrink:0;
  background:#fff;
}
.staff-intro__avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.staff-intro__bubble{
  position:relative;
  background:#fff;
  border:1px solid rgba(226,232,240,.9);
  border-radius:16px;
  padding:12px 14px;
  box-shadow: 0 6px 16px rgba(2,6,23,.06);
  max-width: 560px;
}
.staff-intro__bubble:before{
  content:"";
  position:absolute;
  left:-8px;
  top:18px;
  width:14px;
  height:14px;
  background:#fff;
  border-left:1px solid rgba(226,232,240,.9);
  border-bottom:1px solid rgba(226,232,240,.9);
  transform: rotate(45deg);
}
.staff-intro__name{
  font-weight:900;
  font-size:.95rem;
  margin-bottom:6px;
}
.staff-intro__text{
  color: rgba(15,23,42,.88);
  font-weight:650;
}
.staff-intro__tags{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}
.tag{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(14,165,233,.08);
  border:1px solid rgba(14,165,233,.18);
  color: rgba(15,23,42,.85);
  font-weight:800;
  font-size:.82rem;
}

/* staff center variant */
.staff-intro--center{
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  text-align:left;
  max-width: 840px;
  margin: 22px auto 0;
}

.staff-intro--center .staff-intro__bubble{
  max-width: 680px;
}

.staff-intro--center .staff-intro__bubble:before{
  left: 50%;
  top: -8px;
  transform: translateX(-50%) rotate(45deg);
  border-left:1px solid rgba(226,232,240,.9);
  border-bottom:1px solid rgba(226,232,240,.9);
}

@media (min-width: 900px){
  .staff-intro--center .staff-intro__avatar{
    width:76px;
    height:76px;
  }
}

/* =========================
  Compare（他社比較）
========================= */
.compare-banner__main img{
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 20px auto 12px;
}
@media (max-width: 520px){
  .compare-banner__main img{ max-width: 360px; }
}

/* =========================
  Before/After
========================= */
#before-after{ background: var(--bg); }

.ba-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin-top:18px;
  margin-bottom:18px;
}
.ba-tab{
  background:#fff;
  border:1px solid rgba(226,232,240,.9);
  border-radius:999px;
  padding:10px 16px;
  font-size:.92rem;
  font-weight:900;
  cursor:pointer;
  transition:.15s ease;
  color:rgba(15,23,42,.85);
}
.ba-tab:hover{
  border-color: rgba(14,165,233,.45);
  color: var(--brand);
}
.ba-tab.active{
  background: var(--brand);
  border-color: var(--brand);
  color:#fff;
}

.ba-panel{ display:none; }
.ba-panel.active{ display:block; }

.ba-slider-wrap{
  max-width: 860px;
  margin: 0 auto;
}
.ba-slider-label{
  text-align:center;
  margin: 8px 0 12px;
}
.ba-slider-label h3{
  font-size: 1.1rem;
  font-weight: 900;
}
.ba-slider-label p{
  margin-top:6px;
  color: var(--muted);
  font-weight:650;
  font-size:.92rem;
}

.ba-compare{
  position:relative;
  width:100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(226,232,240,.9);
  box-shadow: var(--shadow);
  cursor: col-resize;
  user-select:none;
  background: rgba(15,23,42,.03);
}

.ba-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.ba-img.before{ z-index:1; }
.ba-img.after { z-index:2; clip-path: inset(0 50% 0 0); }

.ba-placeholder{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-size:.95rem;
  color:#fff;
  text-align:center;
  pointer-events:none;
}
.ba-placeholder .icon{ font-size:2.2rem; }
.ba-placeholder.is-before{
  background: linear-gradient(135deg, rgba(15,23,42,.65), rgba(15,23,42,.40));
}
.ba-placeholder.is-after{
  background: linear-gradient(135deg, rgba(14,165,233,.95), rgba(34,197,94,.88));
}

.ba-divider{
  position:absolute;
  top:0; bottom:0;
  left:50%;
  width:4px;
  background:#fff;
  z-index:10;
  transform: translateX(-50%);
  pointer-events:none;
}
.ba-handle{
  position:absolute;
  top:50%;
  left:50%;
  transform: translate(-50%, -50%);
  width:44px;
  height:44px;
  background:#fff;
  border-radius:999px;
  box-shadow: 0 8px 20px rgba(2,6,23,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:11;
  pointer-events:none;
}
.ba-handle svg{ width:20px; height:20px; fill: rgba(15,23,42,.75); }

.ba-badge{
  position:absolute;
  top:12px;
  z-index:12;
  padding:6px 12px;
  border-radius:999px;
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.06em;
  pointer-events:none;
}
.ba-badge.is-before{
  left:12px;
  background: rgba(15,23,42,.55);
  color:#fff;
}
.ba-badge.is-after{
  right:12px;
  background: rgba(14,165,233,.75);
  color:#fff;
}

.ba-upload-guide{
  max-width: 860px;
  margin: 14px auto 0;
  background:#fff;
  border:1px dashed rgba(14,165,233,.35);
  border-radius: 14px;
  padding:12px 14px;
  font-size:.9rem;
  color: rgba(15,23,42,.82);
}
.ba-upload-guide strong{ color: rgba(15,23,42,.92); }
.ba-upload-guide code{
  background: rgba(15,23,42,.04);
  border:1px solid rgba(226,232,240,.9);
  border-radius:10px;
  padding:2px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:.85rem;
}

/* =========================
  Logo
========================= */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo__image {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo__main {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
}

.logo__sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
}

/* =========================
  Responsive
========================= */
@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; }
  .card-grid{ grid-template-columns: 1fr 1fr; }

  /* show toggle on mobile */
  .nav-toggle{ 
    display:inline-flex; 
  }

  /* mobile nav becomes panel */
  .global-nav{
    position:fixed;
    inset:70px 12px auto 12px;
    background:#fff;
    border:1px solid rgba(226,232,240,.9);
    border-radius: 16px;
    padding:12px;
    box-shadow: var(--shadow);

    transform: translateY(-10px);
    opacity:0;
    pointer-events:none;
    transition: .15s ease;

    display:block;
  }
  body.nav-open .global-nav{
    transform: translateY(0);
    opacity:1;
    pointer-events:auto;
  }

  .global-nav .nav-list{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    flex-wrap:nowrap;
  }
  .global-nav .nav-list a{
    padding:10px 12px;
    border-radius: 12px;
    background: rgba(15,23,42,.03);
  }

  .nav-cta{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:12px;
  }

  .card-grid{ grid-template-columns: 1fr; }
  .reason-grid{ grid-template-columns: 1fr; }
  .form-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 600px){
  .ba-tab{ padding:9px 12px; font-size:.86rem; }
  .ba-compare{ aspect-ratio: 1/1; }
  
  .logo__image {
    width: 40px;
    height: 40px;
  }
  .logo__main {
    font-size: 1rem;
  }
  .logo__sub {
    font-size: 0.7rem;
  }
}

@media (max-width: 520px){
  .logo__image{ height:28px; max-width:28px; }
  .logo__main{ font-size:.9rem; }
  .logo__sub{ font-size:.7rem; }

  .staff-intro__avatar{ width:56px; height:56px; }
  .staff-intro__bubble{ padding:12px; }
}
/* ===== フッター ブログ記事 ===== */
.footer-blog {
  width: 100%;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.footer-blog__title {
  font-weight: 800;
  font-size: .9rem;
  margin: 0 0 10px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .05em;
}
.footer-blog__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-blog__list a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-size: .88rem;
  transition: color .15s;
}
.footer-blog__list a:hover { color: #fff; }
.footer-blog__date {
  flex-shrink: 0;
  font-size: .8rem;
  color: rgba(255,255,255,0.5);
}
/* ===== トップページ ブログセクション ===== */
.top-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 18px; }
.top-blog-card { background: #fff; border: 1px solid rgba(226,232,240,.9); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 16px rgba(2,6,23,.05); transition: transform .15s ease, box-shadow .15s ease; }
.top-blog-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(2,6,23,.09); }
.top-blog-card__thumb img { width: 100%; height: 180px; object-fit: cover; display: block; }
.top-blog-card__thumb--noimg { display: flex; align-items: center; justify-content: center; height: 180px; background: #f6f8fb; font-size: 2.5rem; text-decoration: none; }
.top-blog-card__body { padding: 16px; }
.top-blog-card__date { font-size: .82rem; color: #64748b; }
.top-blog-card__title { font-size: .98rem; font-weight: 800; margin: 8px 0; line-height: 1.5; }
.top-blog-card__title a { text-decoration: none; color: #0f172a; }
.top-blog-card__title a:hover { color: #0ea5e9; }
.top-blog-card__excerpt { font-size: .88rem; color: #64748b; line-height: 1.7; margin: 0; }
@media (max-width: 900px) { .top-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .top-blog-grid { grid-template-columns: 1fr; } }