/* エックスモバイル筑豊たがわ店 共通スタイル
   本部HP（xmobile.ne.jp）に合わせた黒×ライムグリーンの配色。
   ライムグリーンは黒い文字・黒い背景と組み合わせて使う（白地の上の文字色には使わない）。 */
:root {
  --ink: #111111;
  --muted: #4a4a4a;
  --bg: #ffffff;
  --gray: #f2f2f2;
  --surface: #ffffff;
  --line: #d6d6d6;
  --black: #000000;
  --black-soft: #262626;
  --lime: #8df701;
  --lime-soft: #f1fedd;
  --line-green: #06c755;
  --line-ink: #06341b;
  --focus: #ff7a00;
  --radius: 10px;
  /* 本部HPの矢印（四角5つ） */
  --arrow-black: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 25'%3E%3Cg fill='%23000'%3E%3Crect width='5' height='5'/%3E%3Crect x='5' y='5' width='5' height='5'/%3E%3Crect x='10' y='10' width='5' height='5'/%3E%3Crect x='5' y='15' width='5' height='5'/%3E%3Crect y='20' width='5' height='5'/%3E%3C/g%3E%3C/svg%3E");
  --arrow-lime: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 25'%3E%3Cg fill='%238df701'%3E%3Crect width='5' height='5'/%3E%3Crect x='5' y='5' width='5' height='5'/%3E%3Crect x='10' y='10' width='5' height='5'/%3E%3Crect x='5' y='15' width='5' height='5'/%3E%3Crect y='20' width='5' height='5'/%3E%3C/g%3E%3C/svg%3E");
  /* 本部HPのしま模様 */
  --zebra: repeating-linear-gradient(-45deg, var(--black) 0 7px, transparent 7px 17px);
}

* { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  font-size: 1.125rem;
  line-height: 1.8;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { background-color: var(--lime-soft); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.4; font-weight: 700; }
p, li, td { text-wrap: pretty; line-break: strict; }
.nw { display: inline-block; text-decoration: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .wrap { padding: 0 24px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 30; }

/* ヘッダー（黒地） */
.site-header { background: var(--black); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 12px; }
.brand { text-decoration: none; color: #fff; display: flex; align-items: center; gap: 14px; line-height: 1.3; }
/* 本部HPのロゴ（本部HPと同じファイル。色や形は変えない） */
.brand-logo { display: block; flex: none; width: auto; height: 50px; }
@media (min-width: 760px) { .brand-logo { height: 62px; } }
.brand-text { display: flex; flex-direction: column; }
.brand:hover { background: none; }
.brand-sub { font-size: .85rem; font-weight: 700; color: var(--lime); letter-spacing: .06em; }
.brand-name { font-size: 1.6rem; font-weight: 700; letter-spacing: .02em; }
.header-contact { display: none; text-align: right; line-height: 1.35; }
@media (min-width: 760px) { .header-contact { display: block; } }
.header-tel { font-size: 1.7rem; font-weight: 700; text-decoration: none; color: var(--lime); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.header-tel:hover { background: none; text-decoration: underline; }
.header-hours { display: block; font-size: .9rem; color: #e0e0e0; }

/* メニュー：本部HPと同じく、下にライムグリーンの線。今いるページは緑地に黒文字 */
.site-nav ul { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 6px; padding-top: 2px; padding-bottom: 0; }
@media (min-width: 760px) { .site-nav ul { grid-template-columns: repeat(6, 1fr); gap: 0 16px; } }
.site-nav a { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 52px; padding: 6px 4px; text-align: center; text-decoration: none; color: #fff; font-weight: 700; font-size: 1rem; line-height: 1.3; border-top: 6px solid var(--black); border-bottom: 6px solid var(--lime); }
.site-nav a:hover { background: var(--black-soft); color: var(--lime); }
.site-nav a[aria-current="page"] { background: var(--lime); border-top-color: var(--lime); color: var(--black); }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 12px 28px; border-radius: 999px; font-weight: 700; font-size: 1.1rem; text-decoration: none; border: 2px solid transparent; line-height: 1.3; text-align: center; }
.btn-tel { background: var(--black); color: var(--lime); }
.btn-tel:hover { background: var(--black-soft); }
.btn-line { background: var(--line-green); color: var(--line-ink); }
.btn-line:hover { background: var(--line-green); filter: brightness(.94); }
/* 申し込み・くわしく見るなどのボタン（本部HPの緑のボタン） */
.btn-outline { background: var(--lime); border-color: var(--black); color: var(--black); }
.btn-outline::after { content: ""; flex: none; width: 9px; height: 15px; background: var(--arrow-black) no-repeat center / contain; }
.btn-outline:hover { background: #a6ff33; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row .btn { flex: 1 1 240px; }
.btn-row.left .btn { flex: 0 1 auto; }

/* スマホ下部の固定ボタン */
.quickbar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 4px solid var(--black); z-index: 20; }
.quickbar .btn { flex: 1; min-height: 56px; font-size: 1.05rem; padding: 8px 10px; }
@media (min-width: 900px) { .quickbar { display: none; } }

/* 本部HPのしま模様（区切り） */
.hero::after, .page-head::after, .site-footer::before { content: ""; position: absolute; left: 0; right: 0; height: 16px; background: var(--zebra); }

/* トップの見出しエリア */
.hero { position: relative; overflow: hidden; background: var(--bg); padding: 32px 0 52px; }
.hero::after { bottom: 0; }
.hero .wrap { position: relative; z-index: 1; }
.hero-kicker { display: inline-block; margin: 0 0 14px; padding: 4px 12px; line-height: 1.5; background: var(--black); color: var(--lime); font-weight: 700; font-size: 1rem; }
.hero h1 { font-size: clamp(1.6rem, 6.2vw, 2.7rem); line-height: 1.45; margin: 0 0 16px; letter-spacing: .01em; }
.mark { background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 94%, transparent 94%); }
.hero .lead { font-size: 1.1rem; margin: 0 0 22px; max-width: 34em; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; font-size: .95rem; font-weight: 700; }
.hero-facts li { background: var(--surface); border: 2px solid var(--black); border-radius: 999px; padding: 1px 14px; }
/* 広い画面（1200px以上）では右側に本部HPのバナーのような斜めのライン（写真が届いたらここに差し込む） */
@media (min-width: 1000px) {
  .hero { padding: 64px 0 84px; }
  .hero .wrap > * { max-width: 600px; }
  .hero .wrap > .hero-kicker { max-width: none; }
  .hero .wrap > h1 { max-width: 700px; }
}
@media (min-width: 1200px) {
  .hero::before {
    content: ""; position: absolute; top: -10%; bottom: -10%; right: -6%; width: 40%;
    background:
      linear-gradient(90deg, transparent 0 43%, var(--lime) 43% 58%, transparent 58% 62%, var(--lime) 62% 100%),
      repeating-linear-gradient(90deg, var(--lime) 0 9px, transparent 9px 21px);
    background-size: 100% 100%, 43% 100%;
    background-repeat: no-repeat;
    transform: skewX(-24deg);
  }
}

/* 下層ページの見出しエリア（本部HPの「選ばれる理由」の緑の帯） */
.page-head { position: relative; background: var(--lime); color: var(--black); padding: 26px 0 46px; }
.page-head::after { bottom: 0; }
.breadcrumb { font-size: .9rem; margin: 0 0 8px; font-weight: 700; }
.breadcrumb a { color: var(--black); }
.breadcrumb a:hover { background: rgba(255, 255, 255, .5); }
.page-head h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 5.6vw, 2.6rem); }
.page-head p { margin: 0; max-width: 38em; }

/* セクション（白とグレーを交互に） */
.section { padding: 48px 0; }
.section:nth-of-type(even) { background: var(--gray); }
.section h2 {
  font-size: clamp(1.5rem, 4.8vw, 1.9rem); margin: 0 0 18px;
  text-decoration-line: underline; text-decoration-color: var(--lime); text-decoration-thickness: .28em;
  text-underline-offset: .08em; text-decoration-skip-ink: none;
}
.section h3 { font-size: 1.25rem; margin: 28px 0 10px; }
.intro { color: var(--muted); margin: -4px 0 22px; }

.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 2px solid var(--black); border-radius: var(--radius); padding: 18px 20px; }
.card h3 { margin: 0 0 6px; font-size: 1.2rem; color: var(--black); }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }
a.card { display: block; text-decoration: none; color: var(--ink); position: relative; padding-right: 64px; }
a.card::after { content: ""; position: absolute; right: 16px; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; background: var(--black) var(--arrow-lime) no-repeat 55% 50% / 9px 15px; }
a.card:hover { background: var(--lime-soft); }
a.card:hover::after { background-color: var(--black-soft); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px 24px; }
@media (min-width: 700px) { .checklist.two { grid-template-columns: 1fr 1fr; } }
.checklist li { padding-left: 2em; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: .42em; width: 1.4em; height: 1.4em; border-radius: 4px; background: var(--black); color: var(--lime); font-size: .85em; font-weight: 700; line-height: 1; display: grid; place-items: center; }

/* 目立たせたい金額など（黒地にライムグリーン） */
.callout { background: var(--black); color: #fff; border-radius: var(--radius); padding: 24px 24px 26px; }
.callout p { margin: 0 0 8px; }
.callout .big { color: var(--lime); font-size: clamp(1.9rem, 6.4vw, 2.5rem); font-weight: 700; line-height: 1.3; margin: 0 0 10px; }
.callout .note { color: #d9d9d9; }
.callout a:not(.btn) { color: #fff; }
.callout a:not(.btn):hover { background: var(--black-soft); }

/* 各ページ下の相談欄 */
.cta { background: var(--black); color: #fff; border-radius: var(--radius); padding: 28px 24px; }
.cta h2 { margin-top: 0; color: var(--lime); }
.section .cta h2 { text-decoration: none; }
.cta p { margin: 0 0 18px; }
.cta .btn-tel { background: #fff; color: var(--black); }
.cta .btn-tel:hover { background: #e6e6e6; }

.table-wrap { overflow-x: auto; margin: 0 0 12px; }
table { border-collapse: collapse; width: 100%; background: var(--surface); font-size: 1rem; }
th, td { border: 1px solid #c8c8c8; padding: 12px 14px; text-align: left; vertical-align: top; }
thead th { background: var(--black); color: #fff; border-color: var(--black); white-space: nowrap; }
tbody td:first-child { font-weight: 700; }
td .sub, th .sub { font-weight: 400; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td strong { font-size: 1.1rem; }
td .sub { display: block; font-size: .85rem; color: var(--muted); }
.info-table th { width: 7.5em; background: var(--gray); }
.info-table td { word-break: break-word; }

.note { font-size: .95rem; color: var(--muted); }
.tag { display: inline-block; background: var(--black); color: var(--lime); border-radius: 4px; padding: 0 8px; font-size: .85rem; font-weight: 700; vertical-align: middle; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; background: var(--surface); border: 2px solid var(--black); border-radius: var(--radius); padding: 14px 18px 14px 66px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--black); color: var(--lime); font-weight: 700; display: grid; place-items: center; line-height: 1; font-size: 1.05rem; }
.steps strong { display: block; }

details { background: var(--surface); border: 2px solid var(--black); border-radius: var(--radius); padding: 0 18px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 14px 44px 14px 0; font-weight: 700; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "＋"; position: absolute; right: 0; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--lime); color: var(--black); font-weight: 700; line-height: 1; display: grid; place-items: center; }
details[open] summary::after { content: "−"; }
details[open] summary { border-bottom: 1px solid var(--line); }
details p { margin: 12px 0 16px; }

.news { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--black); }
.news li { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.news time { color: var(--muted); font-weight: 700; min-width: 8.5em; font-variant-numeric: tabular-nums; }

.two-col { display: grid; gap: 28px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }
.map { border: 2px solid var(--black); width: 100%; height: 320px; border-radius: var(--radius); background: #e6e6e6; display: block; }

.plain-list { margin: 0; padding-left: 1.3em; }
.section.legal h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.legal p { margin: 0 0 8px; }

/* フッター（黒地） */
.site-footer { position: relative; background: var(--black); color: #fff; padding: 44px 0 24px; margin-top: 16px; }
.site-footer::before { top: -16px; }
/* スマホでは下の固定ボタンに隠れないよう、フッターの下に余白を取る */
@media (max-width: 899px) { .site-footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); } }
.site-footer a { color: #fff; }
.site-footer a:hover { background: none; color: var(--lime); }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-logo { display: block; width: auto; height: 62px; margin: 0 0 16px; }
.footer-name { font-weight: 700; font-size: 1.25rem; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid #fff; }
.site-footer p { margin: 0; font-size: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 1rem; }
.footer-links a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-links a::before { content: ""; flex: none; width: 6px; height: 10px; background: var(--arrow-lime) no-repeat center / contain; }
