/* =========================
   0855Support style.css (clean / radius=2px / buttons unified)
   ========================= */

/* ---- Theme ---- */
:root{
  --bg: #F5F8FB;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #141415;
  --line: #e5e7eb;

  --brand: #3891D6;
  --brand2: #0b5cab;

  --link_on_dark: #ffffff;

  --radius: 2px; /* ★全部2px */
  --shadow: 0 10px 25px rgba(0,0,0,.06);
  --max: 980px;
}

/* ---- Base ---- */
*{ box-sizing: border-box; }

body{
  font-size: 1rem;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; height: auto; display: block; }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

.section{ padding: 34px 0; }

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---- Typography ---- */
h1{ font-size: 2.1875rem; line-height: 1.25; margin: 10px 0 12px; }
h1.about {
  color: var(--brand2);
  border-bottom-style:double;
  border-block-width: 5px;
  display: inline-block;
  padding-bottom: 2px;
  margin-bottom: 10px;
}
h2{ font-size: 1.625rem; margin: 0 0 14px; }

p{ margin: 0 0 10px; }
.muted{ color: var(--muted); }

/* タイトルセンター（servicesの見出し用） */
.title{ text-align: center; }

/* Utility */
.mt-14{ margin-top: 14px; }

/* ---- Buttons ---- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius: var(--radius);
  font-weight:700;
  cursor:pointer;
  transition:.15s ease;
  text-decoration:none;
  line-height:1;
  user-select:none;
  border:1px solid transparent;
}

.btn:focus-visible{
  outline:3px solid rgba(56,145,214,.35);
  outline-offset:2px;
}

.btn[disabled],
.btn:disabled{
  opacity:.6;
  cursor:not-allowed;
}

.more {
  display: block;
  width: 20%;
  margin: 2% auto 5% auto;
  text-align: center;
}

/* Primary (solid) */
.btn-primary{
  background: var(--brand);
  color:#fff;
}

.btn-primary:hover{
  background: var(--brand2);
}

/* Ghost (outline) */
.btn-ghost{
  background: transparent;
  color: var(--brand2);
  border:2px solid var(--brand2);
}

.btn-ghost:hover{
  background: rgba(11,92,171,.08);
}


/* ---- Header ---- */
header{
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand{
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo{
  width: 300px;
  height: auto;
  object-fit: contain;
}

/* Nav: PC 1 line */
nav{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 0;
}

/* ヘッダーリンクは“リンクっぽく”（CTAボタンは除外） */
nav a:not(.btn){
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  padding: 6px 8px;
  transition: color .2s ease;
}
nav a:not(.btn):hover{
  color: var(--brand2);
}

/* ---- Hero ---- */
.hero{
  margin-top: 22px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: center;
}

.hero-img{
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.hero-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* ---- Services ---- */
.grid-3{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.service-card{ padding: 14px; }

.thumb{
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  aspect-ratio: 16 / 16;
}

.service-title{
  font-size: 1.375rem;
  font-weight: 900;
  margin: 10px 0 4px;
}

h2.service-title{
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: .01em;
}

.price{
  font-weight: 900;
  color: var(--brand2);
  font-size: 1.5625rem;
}
.price span {font-size:1rem;}

.service-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 10px;
}

/* ---- Flow ---- */
.flow{ padding: 18px; }

.flow-steps{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.step{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #e5e5f6;
}

.step-num{
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: #fff;
  font-weight: 900;
  margin-bottom: 6px;
}

.step-title{
  font-weight: 900;
  margin-bottom: 4px;
}

/* ---- Contact (free-contact) ---- */
.contact{
  padding: 18px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  align-items: center;
}

.contact .card-inner{
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #e5e5f6;
}

.contact-example-title {font-weight: 900;}

/* ---- Footer ---- */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 22px 0;
  background: #1B305B;
  font-size: 0.875rem;
}

.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-left{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo{
  width: 160px;
  height: auto;
}

.footer-right{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-right a{
  color: var(--link_on_dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-right a:hover{
  color: #ddeefa;
}

/* =========================
   Responsive
   ========================= */

/* ヘッダー：狭い幅ではロゴ上／メニュー下 */
@media (max-width: 900px){
  .header-inner{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .brand{
    justify-content: center;
    width: 100%;
  }

  nav{
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    white-space: normal; /* nowrap解除 */
    overflow: visible;
    gap: 8px;
  }

  /* CTA（お問合せボタン）を押しやすく */
  .nav-cta{
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
}

/* hero画像：スマホでは非表示 */
@media (max-width: 720px){
  .hero{ grid-template-columns: 1fr; }
  .hero-img{ display: none; }

  .flow-steps{ grid-template-columns: 1fr; }

  .footer-inner{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-right{ justify-content: center; }

  .more {width: 50%;
  margin-top: 5%;}
}

/* contact：タブレット以下は縦並び */
@media (max-width: 860px){
  .contact{
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .contact .btn{ width: 100%; }
  .contact .card-inner{ margin-top: 6px; }
}

/* スマホ：もう少し読みやすく */
@media (max-width: 520px){
  #free-contact{ text-align: center; }
  .contact p.muted{ text-align: center; }
  .contact{ gap: 10px; }
  .contact .card-inner{ padding: 14px; }
  .contact ul{ padding-left: 18px; }
}


.content-narrow {
  background: #fff;
  margin: 30px auto;
  padding: 20px;
}
/* セクションを“情報ブロック”として区切る */
.info-block {
  padding: 5px 18px;
}

.info-block + .info-block { margin-top: 16px; }

/* 見出しの間隔 */
.info-block h2 { margin: 0 0 10px; letter-spacing: .01em; }
.info-block h3 { margin: 16px 0 8px; letter-spacing: .01em; color: var(--brand2); }

/* 段落の行間 */
.info-block p { line-height: 1.8; }

/* リスト（見やすさはここで決まる） */
.list {
  margin: 8px 0 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}

.list li { line-height: 1.75; }
.list li::marker { color: var(--brand);}

/* 強調メッセージ */
.callout {
  margin-top: 14px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--border, rgba(255,255,255,.12));
  background: rgba(255,255,255,.04);
  position: relative;
}

.callout {
  font-weight: 900;
  font-size: 1.5625rem;
  color: #0b5cab;
  text-align: center;
}

/* ボタン行 */
.actions{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;         /* 折り返しOK */
  gap: 10px;
  justify-content: center; /* 中央寄せ */
  align-items: center;
}

.actions .btn{
  min-width: 220px;        /* 好みで調整 */
  text-align: center;
}

/* スマホ幅で縦に段落ち（1列） */
@media (max-width: 560px){
  .actions{
    flex-direction: column;
    align-items: stretch;  /* 横幅いっぱいに */
  }
  .actions .btn{
    width: 100%;
    min-width: 0;
  }
}

/* スマホで段落ち */
@media (max-width: 560px){
  .hero-actions{
    flex-direction: column;
    align-items: stretch;  /* 100%にするため */
  }
  .hero-actions .btn{
    width: 100%;
    min-width: 0;
  }
}

/* ===== Service list layout ===== */

.service-list{
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

/* 1件のカード */
.svs.service-card{
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid #b5c2d6;
}

.svs .service-thumb{
  width: 120px;
  height: 120px;
  border-radius: 16px;
  border: 1px solid var(--border, rgba(255,255,255,.12));
  background: rgba(255,255,255,.04);
  display: grid;
  place-items: center;
}

.svs .service-icon{
  font-size: 28px;
}

.service-body{
  min-width: 0; /* 長文がはみ出すの防止 */
}

.service-top{
  display: block;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* タイトルにアイコンを入れる */
.service-title{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
}

.service-icon{
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #E7EEFA;
  border: 1px solid #C9D5EE;
  color: #1f4fa3;
}

.service-icon i{
  font-size: 2rem;   /* ←ここを 22px とかにすると一発で目立つ */
  line-height: 1;
}


/* 詳細セクションの余白（任意） */
.service-details{
  margin-top: 12px;
}

/* 注意リスト（notesが未定義なら） */
.notes{
  margin: 10px 0 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}
.notes li{ line-height: 1.75; }

/* ボタンエリアの余白 */
.service-actions{
  margin-top: 16px;
}


.service-price{
  margin: 0;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--brand2);
  text-align: end;
}

.service-desc{
  margin: 10px 0 0;
  line-height: 1.8;
  color: var(--muted, #9aa3b2);
}

.service-body h3 {
  margin-bottom: 0;
}

/* ===== service-body 内の情報ブロック ===== */

.service-meta{
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

/* ブロックごとの囲み（カード内カード） */
.meta-block{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border, rgba(255,255,255,.12));
  background: rgba(255,255,255,.03);
}

/* 見出し */
.meta-title{
  margin: 0 0 6px;
  font-size: 1rem;              /* rem運用ならここOK */
  letter-spacing: .01em;
}

/* 小さめ補足 */
.meta-note{
  margin: 0;
  color: var(--muted, #9aa3b2);
  font-size: .95rem;
}

/* 説明文 */
.meta-desc{
  margin: 0 0 8px;
  color: var(--muted, #9aa3b2);
  line-height: 1.75;
}

/* 番号リスト */
.meta-steps{
  margin: 0;
  padding-left: 1.25em;
  display: grid;
  gap: 6px;
}

.meta-steps li{
  line-height: 1.7;
}

/* おすすめ箇条書き */
.meta-bullets{
  margin: 0;
  padding-left: 1.15em;
  display: grid;
  gap: 6px;
}

.meta-bullets li{
  line-height: 1.7;
}

.meta-steps li::marker,
.meta-bullets li::marker{
  color: var(--primary, #6366f1);
}


/* 箇条書き（コンパクト版） */
.service-points{
  margin: 10px 0 0;
  padding-left: 1.1em;
  display: grid;
  gap: 6px;
}

.service-points li{
  line-height: 1.7;
}
.service-points li::marker{
  color: var(--primary, #6366f1);
}

/* ボタン並び（中央寄せ＋スマホ段落ち） */
.service-card .actions{
  margin-top: 12px;
  justify-content: flex-end;
}
.service-card .actions .btn{
  min-width: 200px;
}

/* スマホ：サムネ上、本文下の縦並びに */
@media (max-width: 620px){
  .service-card,.svs.service-card {
    grid-template-columns: 1fr;
  }
  .service-thumb,.svs .service-thumb{
    display: none;
  }
  .service-card .actions,.svs.service-card .actions{
    flex-direction: column;
    align-items: stretch;
  }
  .service-card .actions .btn,.svs.service-card .actions .btn{
    width: 100%;
    min-width: 0;
  }
}

/* ===== law.html 向け：定義リストを見やすく（レスポンシブ） ===== */

.legal-dl{
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 14px;
}

.legal-dl dt{
  font-weight: 700;
  color: var(--text, #e5e7eb);
}

.legal-dl dd{
  margin: 0;
  color: var(--muted, #9aa3b2);
  line-height: 1.75;
}

.legal-dl dd .list{
  margin-top: 6px;
}

/* スマホ：1列にして読みやすく */
@media (max-width: 640px){
  .legal-dl{
    grid-template-columns: 1fr;
  }
  .legal-dl dt{
    margin-top: 6px;
  }
  .legal-dl dd{
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border, rgba(255,255,255,.10));
  }
}

/* hero-actions：中央寄せ＆スマホ段落ち */
.hero-actions{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.hero-actions .btn{
  min-width: 220px;
  text-align: center;
}

@media (max-width: 560px){
  .hero-actions{
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn{
    width: 100%;
    min-width: 0;
  }
}

/* ---- Service Detail (service-detail.html) ---- */

/* 上部：アンカーリンク（list表示） */
.service-intro{
  padding: 18px;
}

.service-intro__title{
  margin-top: 18px;
  font-size: 22px;
}

.service-toc{
  margin: 10px 0 0;
  padding-left: 1.2em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 18px;
}

.service-toc a{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-toc a:hover{
  text-decoration-thickness: 2px;
}

/* 各サービス：box（淡い青系の灰色＋区切り線） */
.serviced-card{
  margin-top: 14px;
  padding: 18px;
  background: #E7EEFA;        /* 淡い青系の灰色 */
  border-top: 1px solid #C9D5EE;  /* 区切り線 */
  border-bottom: 1px solid #C9D5EE;  /* 区切り線 */
}

.serviced-card__title{
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
}

.serviced-card__text{
  margin: 0 0 12px;
}

/* 値段エリア */
.serviced-card__price{
  margin: 0 0 14px;
  padding-top: 10px;
  border-top: 1px solid #C9D5EE;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}

.serviced-card__price strong{
  font-size: 18px;
}

.serviced-card__price-link{
  color: var(--brand2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 最後：相談ボタン */
.serviced-card__actions{
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 560px){
  .serviced-card__actions .btn{
    width: 100%;
    text-align: center;
  }
}

.link-note a{
  color: var(--brand2);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s ease, text-decoration-color .15s ease;
}

.link-note a:hover,
.link-note a:focus-visible{
  color: #d10023;
}

/* ---- Service Items (reuse price layout) ---- */
.service-item{
  margin-top: 14px;
  padding: 18px;
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.service-item__name{
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--brand2);
}

.service-item__lead{
  margin: 0 0 12px;
}

.service-spec{
  width: 100%;
  border-collapse: collapse;
}

.service-spec th,
.service-spec td{
  padding: 10px 0;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.service-spec th{
  width: 9.5em;
  padding-right: 12px;
  color: var(--muted);
  font-weight: 800;
  text-align: left;
}

.service-options{
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
}

.service-item__actions{
  margin-top: 14px;
  text-align: end;
}

.service-item__actions .btn{
  text-align: center;
}

@media (max-width: 560px){
  .service-spec th{
    width: auto;
    display: block;
    padding: 12px 0 4px;
  }
  .service-spec td{
    display: block;
    padding: 0 0 12px;
    border-top: 0;
  }
  .service-spec tr{
    border-top: none;
    display: block;
    padding: 6px 0;
  }
  .service-item__actions .btn{
  width: 100%;
  text-align: center;
}
}
