/* ===== 色・文字の設定(ここを変えると全体が変わる) ===== */
:root {
  --main: #1f2a44;        /* メイン:濃紺(文字・暗い背景) */
  --sub: #f5f6f8;         /* サブ:明るいグレー(背景の切り替え) */
  --accent: #ffc629;      /* アクセント:元気な黄色(押せる所・数字) */
  --accent-soft: #fff4d1; /* 黄色の薄い色(やさしく目立たせる背景) */
  --line: #06c755;        /* LINEの緑(LINEボタンだけ) */
  --white: #ffffff;
  --muted: #667085;       /* 補足の文字 */
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  --radius: 20px;         /* 角丸は大きめにして、やわらかく */
  --gutter: 20px;         /* スマホの左右の余白 */
}

/* ===== 全体の基本 ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--main);
  background: var(--white);
  padding-bottom: 72px; /* 下の固定ボタンに隠れないように */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.4; margin: 0; }
figure { margin: 0; }
.small-note { font-size: 12px; color: var(--muted); margin-top: 14px; }

/* ===== 制作サンプルの帯 ===== */
.sample-bar { background: var(--main); color: #fff; font-size: 11px; line-height: 1.5; text-align: center; padding: 6px var(--gutter); }

/* ===== ヘッダー ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--gutter);
  background: var(--white);
  box-shadow: 0 1px 0 #eceef2;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 21px; line-height: 1.2; }
.logo small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); }
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--main);
  display: grid;
  place-items: center;
  font-size: 20px;
}
/* 三本線ボタン(スマホだけ) */
.menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 48px;
  min-height: 48px;
  padding: 6px;
  border: 0;
  background: none;
  color: var(--main);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.menu-btn-lines,
.menu-btn-lines::before,
.menu-btn-lines::after { display: block; width: 24px; height: 2px; background: var(--main); border-radius: 2px; }
.menu-btn-lines { position: relative; margin: 8px 0 10px; }
.menu-btn-lines::before,
.menu-btn-lines::after { content: ""; position: absolute; left: 0; }
.menu-btn-lines::before { top: -7px; }
.menu-btn-lines::after { top: 7px; }
/* メニューの中身(スマホでは閉じておく) */
.menu { display: none; width: 100%; padding: 8px 0 12px; }
.menu.is-open { display: block; }
.menu a { display: block; padding: 14px 4px; border-bottom: 1px solid #eceef2; text-decoration: none; font-weight: 700; }
.menu a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--accent); padding-left: 14px; }
.menu .menu-cta { margin-top: 14px; border: 0; border-radius: 999px; background: var(--accent); text-align: center; font-weight: 900; }

/* ===== ボタン ===== */
.btn {
  display: block;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 17px 20px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
  font-size: 17px;
}
.btn-main { background: var(--accent); color: var(--main); box-shadow: 0 8px 20px rgba(255, 198, 41, 0.45); }
.btn-sub { background: var(--white); color: var(--main); border: 2px solid var(--main); margin-top: 28px; font-size: 15px; }
.btn-line { background: var(--line); color: #fff; }
.btn-form { background: var(--white); color: var(--main); }
.btn-tel { background: var(--accent); color: var(--main); font-size: 26px; line-height: 1.2; }
.btn-tel small { display: block; font-size: 12px; font-weight: 700; }

/* ===== 最初の画面 ===== */
.hero { position: relative; min-height: 600px; overflow: hidden; color: #fff; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 12% center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(31, 42, 68, 0) 25%, rgba(31, 42, 68, 0.85)); }
.hero-inner { position: relative; z-index: 1; min-height: 600px; padding: 28px var(--gutter) 28px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-label {
  align-self: flex-start;
  margin: 0 0 12px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--main);
  font-size: 13px;
  font-weight: 900;
}
.hero h1 { font-size: 34px; font-weight: 900; letter-spacing: 0.02em; }
.hero h1 span { color: var(--accent); }
/* 価格のカード(シンプルに大きな数字で) */
.price-card {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--main);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 14px;
}
.price-card p { margin: 0; }
.price-card-label { grid-column: 1 / -1; font-size: 13px; font-weight: 700; color: var(--muted); }
.price-card-num { font-weight: 900; font-size: 18px; line-height: 1.1; }
.price-card-num b { font-size: 46px; letter-spacing: -0.02em; margin-right: 2px; }
.price-card-note { font-size: 12px; color: var(--muted); line-height: 1.5; }
.badges { list-style: none; padding: 0; margin: 12px 0 0; display: flex; gap: 8px; }
.badges li {
  flex: 1;
  padding: 6px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.badges b { color: var(--accent); font-size: 16px; margin: 0 1px; }

/* ===== 最初の画面の下のボタン ===== */
.hero-cta { padding: 28px var(--gutter) 8px; text-align: center; }
.hero-tel { display: inline-block; margin-top: 16px; font-size: 22px; font-weight: 900; text-decoration: none; }
.hero-tel small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }

/* ===== 今月の受付状況 ===== */
.status {
  margin: 20px var(--gutter) 0;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--sub);
  text-align: center;
}
.status p { margin: 0; }
.status-title { font-size: 13px; font-weight: 700; color: var(--muted); }
.status-num { font-size: 16px; font-weight: 900; }
.status-num b { font-size: 36px; margin: 0 4px; }
.status-bar { height: 8px; max-width: 320px; margin: 8px auto 0; border-radius: 999px; background: #e3e6ec; overflow: hidden; }
.status-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.status .small-note { margin-top: 8px; }

/* ===== セクション共通 ===== */
.section { padding: 64px var(--gutter); }
.section > * { max-width: 920px; margin-left: auto; margin-right: auto; }
.section-yellow { background: var(--accent-soft); }
.section-gray { background: var(--sub); }
.title { text-align: center; font-size: 26px; font-weight: 900; margin-bottom: 32px; }
/* 見出しの上の小さな文字(黄色の下線で今どきに) */
.title span {
  display: block;
  width: fit-content;
  margin: 0 auto 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: linear-gradient(transparent 60%, var(--accent) 60%);
  padding: 0 4px;
}

/* ===== こんな症状 ===== */
.checks { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks li { border-radius: 16px; overflow: hidden; background: var(--sub); }
.checks img { width: 100%; height: 120px; object-fit: cover; }
.checks b { display: block; padding: 10px; text-align: center; font-size: 14px; }
.arrow-text { margin-top: 28px; text-align: center; font-weight: 700; font-size: 16px; }
.arrow-text b { background: linear-gradient(transparent 60%, var(--accent) 60%); font-size: 1.2em; }

/* ===== 選ばれる理由 ===== */
.reasons { list-style: none; padding: 0; margin: 0; counter-reset: r; display: grid; gap: 12px; }
.reasons li {
  counter-increment: r;
  padding: 20px 20px 20px 76px;
  position: relative;
  border-radius: var(--radius);
  background: var(--white);
}
.reasons li::before {
  content: counter(r, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 20px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  -webkit-text-stroke: 1px var(--main);
}
.reasons b { display: block; font-size: 17px; }
.reasons span { font-size: 14px; color: var(--muted); }

/* ===== 料金プラン ===== */
.plans { display: grid; gap: 14px; }
.plan { position: relative; padding: 24px 20px; border-radius: var(--radius); background: var(--sub); text-align: center; }
.plan p { margin: 0; }
.plan-name { font-size: 17px; font-weight: 900; }
.plan-price { font-weight: 900; font-size: 18px; }
.plan-price b { font-size: 50px; line-height: 1.15; letter-spacing: -0.02em; margin-right: 2px; }
.plan-life { display: inline-block; margin: 6px 0 10px !important; padding: 2px 12px; background: var(--white); border-radius: 999px; font-size: 13px; font-weight: 700; }
.plan > p:last-child { font-size: 14px; color: var(--muted); }
.plan-pop { background: var(--main); color: #fff; }
.plan-pop .plan-price b { color: var(--accent); }
.plan-pop .plan-life { background: rgba(255, 255, 255, 0.12); }
.plan-pop > p:last-child { color: rgba(255, 255, 255, 0.85); }
.plan-ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 16px;
  background: var(--accent);
  color: var(--main);
  font-size: 13px;
  font-weight: 900;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-note { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }

/* ===== 施工事例(ビフォー・アフター) ===== */
.ba { margin-bottom: 28px; padding: 12px 12px 18px; background: var(--white); border-radius: var(--radius); }
.ba-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ba-one { grid-template-columns: 1fr; }
.ba img { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; }
.ba-one img { height: 220px; }
.ba figure { position: relative; }
.ba figcaption { position: absolute; top: 8px; left: 8px; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 900; }
.tag-before { background: rgba(255, 255, 255, 0.9); color: var(--main); }
.tag-after { background: var(--accent); color: var(--main); }
.ba h3 { margin: 14px 4px 8px; font-size: 18px; }
.ba-data { margin: 0 4px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.ba-data span { padding: 2px 12px; background: var(--sub); border-radius: 999px; }
.ba-data b { font-weight: 900; }

/* ===== お客様の声 ===== */
.rating { text-align: center; margin-bottom: 24px; }
.rating p { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.rating-score b { font-size: 52px; color: var(--main); margin-right: 6px; }
.rating-score span { font-size: 22px; color: var(--accent); letter-spacing: 0.06em; }
.voices { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.voices li { padding: 18px 20px; border-radius: var(--radius); background: var(--sub); }
.voices p { margin: 0 0 6px; font-weight: 700; }
.voices span { font-size: 13px; color: var(--muted); }

/* ===== 助成金のお知らせ ===== */
.banner { margin: 0 var(--gutter); padding: 28px 22px; border-radius: var(--radius); background: var(--main); color: #fff; text-align: center; }
.banner > * { max-width: 640px; margin-left: auto; margin-right: auto; }
.banner-catch { font-size: 19px; font-weight: 900; margin: 0 auto 10px !important; }
.banner-catch b { color: var(--accent); }
.banner p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.85); }

/* ===== 工事の流れ ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; padding: 18px 12px; border-radius: var(--radius); background: var(--sub); text-align: center; }
.steps li::before { content: "STEP " counter(s); display: block; font-size: 11px; font-weight: 900; letter-spacing: 0.1em; color: var(--muted); }
.steps b { display: block; font-size: 17px; }
.steps span { font-size: 13px; color: var(--muted); }

/* ===== 職人募集の帯 ===== */
.recruit-banner { padding: 0 var(--gutter) 64px; }
.recruit-banner a {
  display: block;
  max-width: 920px;
  margin: 0 auto;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--accent);
  text-align: center;
  text-decoration: none;
}
.recruit-banner b { display: block; font-size: 22px; }
.recruit-banner span { font-weight: 700; font-size: 14px; }

/* ===== 問い合わせ ===== */
.contact { padding: 56px var(--gutter); background: var(--main); color: #fff; text-align: center; }
.contact-catch { margin: 0 0 8px; font-size: 26px; font-weight: 900; line-height: 1.45; }
.contact-catch b { color: var(--accent); }
.contact-lead { margin: 0 0 24px; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.contact .btn { margin-top: 12px; }
.contact-note { margin: 16px auto 0; font-size: 12px; color: rgba(255, 255, 255, 0.75); }

/* ===== 下のページの見出し ===== */
.page-title { padding: 44px var(--gutter) 36px; background: var(--accent-soft); text-align: center; }
.page-title h1 { font-size: 30px; font-weight: 900; }
.page-title p { margin: 6px 0 0; font-weight: 700; color: var(--muted); }

/* ===== 料金ページ ===== */
.set { text-align: center; padding: 24px; background: var(--white); border-radius: var(--radius); }
.set p { margin: 0; }
.set-price { font-weight: 900; font-size: 20px; }
.set-price b { font-size: 48px; }
.includes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.includes li { padding: 14px 8px; border-radius: 16px; background: var(--sub); text-align: center; font-weight: 700; font-size: 14px; }
.small-works { list-style: none; padding: 0; margin: 0; }
.small-works li { display: flex; justify-content: space-between; gap: 10px; padding: 16px 4px; border-bottom: 1px solid #e3e6ec; font-weight: 700; }
.small-works b { white-space: nowrap; }

/* ===== 会社案内ページ ===== */
.greeting { padding: 24px; border-radius: var(--radius); background: var(--sub); }
.greeting-catch { margin: 0 0 12px; font-size: 22px; font-weight: 900; }
.sign { text-align: right; font-weight: 700; color: var(--muted); }
.staff { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.staff li { padding: 18px 12px; border-radius: var(--radius); background: var(--white); text-align: center; }
.staff-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 8px; border-radius: 18px; background: var(--accent); color: var(--main); font-size: 22px; font-weight: 900; }
.staff b { display: block; }
.staff small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.staff p { margin: 6px 0 0; font-size: 13px; }
.areas { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.areas li { padding: 6px 14px; border-radius: 999px; background: var(--sub); font-weight: 700; font-size: 14px; }
.areas .area-main { background: var(--accent); }
.company { margin: 0; font-size: 15px; }
.company div { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #e3e6ec; }
.company dt { flex-shrink: 0; width: 5em; font-weight: 900; }
.company dd { margin: 0; }

/* ===== 職人募集ページ ===== */
.recruit-hero { padding: 0 var(--gutter); margin-top: -12px; }
.recruit-hero img { width: 100%; max-width: 920px; margin: 0 auto; height: 240px; object-fit: cover; border-radius: var(--radius); }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.points li { padding: 18px 20px; border-radius: var(--radius); background: var(--sub); }
.points b { display: block; font-size: 19px; }
.points span { font-size: 14px; color: var(--muted); }
.day { list-style: none; padding: 0; margin: 0; }
.day li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f0e3b4; font-weight: 700; }
.day time { flex-shrink: 0; width: 3.4em; font-weight: 900; }
.faq details { margin-bottom: 10px; border-radius: 16px; background: var(--sub); padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 26px 16px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
/* 開け閉めの「+」 */
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 22px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ===== フッター ===== */
.footer { background: #141c30; color: #fff; text-align: center; padding: 36px var(--gutter); font-size: 13px; }
.footer p { margin: 0 0 4px; }
.footer-name { font-size: 20px; font-weight: 900; }
.footer-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 16px 0; }
.footer-menu a { color: #fff; text-decoration: none; opacity: 0.85; }
.footer-copy { margin-top: 16px !important; opacity: 0.55; font-size: 11px; }

/* ===== スマホの画面下に固定するボタン ===== */
.fixed-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s;
}
.fixed-cta a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 64px;
  line-height: 1.2;
  text-decoration: none;
  font-weight: 900;
  font-size: 15px;
}
.fixed-cta span { display: block; text-align: center; }
.fixed-cta small { display: block; font-size: 10px; font-weight: 700; opacity: 0.85; }
.fixed-tel { background: var(--main); color: #fff; }
.fixed-line { background: var(--line); color: #fff; }
.fixed-main { background: var(--accent); color: var(--main); }
.fixed-cta-2 { grid-template-columns: 1fr 1fr; }
.cta-icon { width: 20px; height: 20px; }
/* 問い合わせの所まで来たら、固定ボタンを隠す */
.fixed-cta.is-hidden { transform: translateY(100%); }

/* ===== パソコンの画面(広いとき)だけの調整 ===== */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .fixed-cta { display: none; }
  .header { flex-wrap: nowrap; padding: 12px 40px; }
  .menu-btn { display: none; }
  .menu { display: flex; align-items: center; gap: 24px; width: auto; padding: 0; }
  .menu a { border: 0; padding: 4px 0; font-size: 15px; }
  .menu a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); padding-left: 0; }
  .menu .menu-cta { margin: 0; padding: 10px 22px; }
  .hero, .hero-inner { min-height: 680px; }
  .hero-inner { max-width: 1000px; margin: 0 auto; padding: 40px; }
  .hero h1 { font-size: 54px; }
  .price-card { max-width: 440px; }
  .badges { max-width: 440px; }
  .status { max-width: 520px; margin: 24px auto 0; }
  .section { padding: 96px 40px; }
  .title { font-size: 32px; }
  .checks { grid-template-columns: repeat(4, 1fr); }
  .checks img { height: 170px; }
  .reasons { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: repeat(3, 1fr); align-items: center; }
  .ba { display: grid; grid-template-columns: 3fr 2fr; gap: 0 24px; align-items: center; }
  .ba-photos { grid-row: span 2; }
  .ba img { height: 240px; }
  .voices { grid-template-columns: repeat(3, 1fr); }
  .banner { max-width: 920px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .includes { grid-template-columns: repeat(3, 1fr); }
  .staff { grid-template-columns: repeat(4, 1fr); }
  .points { grid-template-columns: 1fr 1fr; }
  .recruit-hero img { height: 380px; }
}
