/* =========================================================
   暮らしのお手伝い屋 田中（架空・スタンダード5ページ）共有スタイル
   トークン：親しみ・人柄系（茶系×生成り×柿色）
   外部Webフォント不使用（system font stack）
   ========================================================= */
:root {
  --bg:         #f4f0e8;   /* 生成り背景 */
  --bg-card:    #fffdf8;
  --bg-deep:    #ece5d6;
  --ink:        #33291e;
  --muted:      #6f6455;
  --main:       #6b4f35;   /* 焙じ茶〜胡桃 */
  --main-deep:  #4d3722;
  --main-pale:  #efe6d8;
  --accent:     #d07a2e;   /* 柿色（面用） */
  --accent-ink: #9f560f;   /* 柿色（文字用・AA配慮） */
  --line-green: #06C755;   /* LINE公式緑・固定 */
  --border:     #e0d7c4;
  --radius: 12px;
  --shadow: 0 14px 38px rgba(77, 55, 34, .10);
  --font-serif: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  background: var(--bg);
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
main { display: block; }

h1, h2, h3, .logo-name { font-family: var(--font-serif); letter-spacing: .04em; }

/* === 画像プレースホルダ（実素材差し替え前提） === */
.ph {
  position: relative;
  background: #ddd;
  overflow: hidden;
  display: block;
  margin: 0;
}
.ph::before {
  content: attr(data-file);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 8px; text-align: center;
  color: #8d8d8d; font-size: .8rem; letter-spacing: .04em;
  word-break: break-all;
}
.ph img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ph img.img-missing { visibility: hidden; }
/* アイコン用（小さいのでファイル名は極小表示） */
.ic {
  position: relative; background: #ddd; border-radius: 10px;
  overflow: hidden; flex: 0 0 auto; display: block; margin: 0;
}
.ic::before {
  content: attr(data-file);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 2px; text-align: center;
  color: #8d8d8d; font-size: .5rem; line-height: 1.2; word-break: break-all;
}
.ic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ic img.img-missing { visibility: hidden; }

/* === サンプルバー === */
.sample-bar {
  position: sticky; top: 0; z-index: 60;
  background: var(--main-deep); color: #fdf9f0;
  text-align: center; padding: 8px 14px;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em;
}

.sample-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--main-deep);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .04em;
}

/* === ヘッダー === */
.site-header {
  position: sticky; top: 37px; z-index: 50;
  background: rgba(253, 250, 243, .95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.header-inner {
  width: min(1080px, calc(100% - 36px));
  min-height: 70px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.logo { display: flex; flex-direction: column; line-height: 1.35; padding: 8px 0; }
.logo-name { font-size: 1.22rem; font-weight: 700; color: var(--main-deep); white-space: nowrap; }
.logo-sub { font-size: .68rem; color: var(--muted); letter-spacing: .08em; }
.nav { display: flex; align-items: center; gap: 20px; font-size: .9rem; font-weight: 700; color: #55483a; }
.nav a:hover { color: var(--accent-ink); }
.nav a.current { color: var(--accent-ink); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.header-tel { text-align: right; line-height: 1.3; }
.header-tel .num { font-size: 1.18rem; font-weight: 800; color: var(--main-deep); letter-spacing: .02em; white-space: nowrap; }
.header-tel .hours { font-size: .68rem; color: var(--muted); }

/* === ハンバーガー === */
.menu-toggle {
  display: none; width: 46px; height: 46px;
  border: 0; border-radius: 10px;
  background: var(--main-pale); color: var(--main-deep);
  position: relative; flex: 0 0 auto;
}
.menu-toggle span {
  position: absolute; left: 13px; width: 20px; height: 2px; border-radius: 999px;
  background: currentColor; transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* === ボタン === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 800; line-height: 1.3; text-align: center;
}
.btn-phone { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(208, 122, 46, .32); flex-direction: column; gap: 2px; padding: 10px 30px; }
.btn-phone .num { font-size: 1.4rem; letter-spacing: .03em; white-space: nowrap; }
.btn-phone .small { font-size: .7rem; font-weight: 700; opacity: .95; }
.btn-line { background: var(--line-green); color: #fff; box-shadow: 0 10px 24px rgba(6, 199, 85, .28); flex-direction: column; gap: 2px; padding: 10px 30px; }
.btn-line .small { font-size: .7rem; font-weight: 700; opacity: .95; }
.btn-outline { background: #fff; color: var(--main-deep); border-color: var(--border); }
.btn .ic { width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.25); }
.btn .ic::before { color: rgba(255,255,255,.8); }

/* === ヒーロー === */
.hero { position: relative; overflow: hidden; }
.hero .ph { aspect-ratio: 16 / 8; min-height: 480px; max-height: 680px; width: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(51, 36, 21, .52), rgba(51, 36, 21, .26) 45%, rgba(51, 36, 21, .05) 72%);
}
.hero-content {
  position: absolute; inset: 0; z-index: 2;
  width: min(1080px, calc(100% - 36px)); margin: 0 auto;
  display: grid; align-content: center; justify-items: start;
}
.hero-area {
  margin: 0 0 14px; padding: 5px 14px; border-radius: 999px;
  background: rgba(253, 249, 240, .92); color: var(--main-deep);
  font-size: .8rem; font-weight: 800; letter-spacing: .06em;
}
.hero h1 {
  margin: 0; max-width: 760px;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.55;
  color: #fdf9f0; font-weight: 700;
  text-shadow: 0 2px 18px rgba(40, 26, 12, .65), 0 1px 4px rgba(40, 26, 12, .6);
}
.hero .lead {
  margin: 16px 0 26px; max-width: 540px;
  font-size: clamp(.95rem, 1.4vw, 1.06rem); line-height: 2;
  color: #f6efe2; text-shadow: 0 1px 12px rgba(40, 26, 12, .65), 0 1px 3px rgba(40, 26, 12, .6);
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin: 12px 0 0; font-size: .8rem; color: #f0e7d6; text-shadow: 0 1px 8px rgba(40,26,12,.6); }

/* ヒーローのふわっと表示（動き1/3） */
.hero-content > * { opacity: 0; transform: translateY(14px); animation: heroIn .7s ease forwards; }
.hero-content > *:nth-child(2) { animation-delay: .12s; }
.hero-content > *:nth-child(3) { animation-delay: .24s; }
.hero-content > *:nth-child(4) { animation-delay: .36s; }
.hero-content > *:nth-child(5) { animation-delay: .44s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* === 下層ページヘッダー === */
.page-header {
  background: linear-gradient(120deg, var(--main) 0%, var(--main-deep) 100%);
  color: #fdf9f0; padding: 52px 0 44px; position: relative; overflow: hidden;
}
.page-header::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(253, 249, 240, .06);
}
.page-header .inner { width: min(1080px, calc(100% - 36px)); margin: 0 auto; position: relative; z-index: 1; }
.page-header h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
.page-header .en { display: block; font-size: .74rem; letter-spacing: .22em; opacity: .8; margin-bottom: 6px; }
.page-header p { margin: 10px 0 0; font-size: .95rem; opacity: .92; max-width: 640px; }
.breadcrumb {
  width: min(1080px, calc(100% - 36px)); margin: 14px auto 0;
  font-size: .78rem; color: var(--muted);
}
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--accent-ink); }

/* === セクション共通 === */
.section { padding: 76px 0; position: relative; }
.section.tint { background: var(--bg-deep); }
.section.white { background: var(--bg-card); }
.container { width: min(1080px, calc(100% - 36px)); margin: 0 auto; }
.section-head { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.section-head .en { display: block; font-size: .74rem; letter-spacing: .24em; color: var(--accent-ink); font-weight: 800; margin-bottom: 8px; }
.section-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; color: var(--main-deep); line-height: 1.5; }
.section-head p { margin: 14px auto 0; color: var(--muted); font-size: .95rem; }
.more-link { text-align: center; margin-top: 36px; }
.more-link a {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; color: var(--accent-ink);
  border-bottom: 2px solid var(--accent); padding-bottom: 4px;
}
.more-link a:hover { opacity: .8; }

/* === 困りごと羅列 === */
.trouble-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trouble-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; font-weight: 700; font-size: .92rem; color: #4a3d2d;
  transition: transform .18s ease, box-shadow .18s ease;
}
.trouble-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.trouble-item .ic { width: 40px; height: 40px; }
.trouble-more { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: .92rem; }

/* === 季節のご依頼・サービスカード === */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.photo-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 8px 26px rgba(77, 55, 34, .07);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.photo-card .ph { aspect-ratio: 4 / 3; }
.photo-card .body { padding: 20px 22px 22px; flex: 1; }
.photo-card h3 { margin: 0 0 8px; font-size: 1.12rem; color: var(--main-deep); }
.photo-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.photo-card .tag {
  display: inline-block; margin-bottom: 10px;
  font-size: .72rem; font-weight: 800; color: var(--accent-ink);
  background: #f7e8d5; border-radius: 999px; padding: 3px 12px;
}
.photo-card .price-line { margin-top: 12px; font-weight: 800; color: var(--main-deep); font-size: .95rem; }

/* === 料金の目安 === */
.price-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.price-tier {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: 0 8px 26px rgba(77, 55, 34, .07);
  display: flex; flex-direction: column;
}
.price-tier .tier-label {
  align-self: flex-start; font-size: .74rem; font-weight: 800; letter-spacing: .08em;
  color: #fff; background: var(--main); border-radius: 999px; padding: 4px 14px; margin-bottom: 14px;
}
.price-tier.accent .tier-label { background: var(--accent); }
.price-tier h3 { margin: 0 0 4px; font-size: 1.2rem; color: var(--main-deep); }
.price-tier .big {
  margin: 8px 0 4px; font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700; color: var(--accent-ink); line-height: 1.3;
}
.price-tier .big small { font-size: .55em; color: var(--muted); font-weight: 600; }
.price-tier p { margin: 8px 0 0; color: var(--muted); font-size: .92rem; }
.price-tier ul { margin: 12px 0 0; padding: 0 0 0 1.2em; color: var(--muted); font-size: .9rem; }
.price-tier li { margin-bottom: 4px; }
.price-promise {
  margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.price-promise .item {
  display: flex; align-items: center; gap: 12px;
  background: #f8f2e6; border: 1px dashed var(--accent); border-radius: var(--radius);
  padding: 14px 18px; font-weight: 700; font-size: .92rem; color: var(--main-deep);
}
.price-promise .ic { width: 34px; height: 34px; }

/* === 料金表（下層） === */
.price-table-wrap {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(77, 55, 34, .07); overflow: hidden; max-width: 860px; margin: 0 auto;
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; font-size: .95rem; }
thead th { background: var(--main-pale); color: var(--main-deep); font-size: .88rem; }
tr:last-child td { border-bottom: 0; }
td.num { text-align: right; font-weight: 800; color: var(--main-deep); white-space: nowrap; }
.table-note { max-width: 860px; margin: 16px auto 0; color: var(--muted); font-size: .88rem; }
.table-note li { margin-bottom: 4px; }

/* === 代表あいさつ === */
.greeting { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; }
.greeting .ph { aspect-ratio: 4 / 5; border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.greeting-copy h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: var(--main-deep); font-weight: 700; }
.greeting-copy .name { margin: 0 0 14px; color: var(--accent-ink); font-weight: 800; font-size: 1.1rem; }
.greeting-copy .name small { color: var(--muted); font-weight: 600; font-size: .8rem; margin-left: 8px; }
.greeting-copy p { margin: 0 0 12px; color: #55483a; font-size: .96rem; }

/* === 対応エリア === */
.area-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; }
.area-layout .ph { aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: var(--shadow); }
.area-layout.no-image { grid-template-columns: 1fr 1fr; align-items: start; }
.area-layout.no-image .map-wrap { margin-top: 0; height: 100%; min-height: 280px; }
.area-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.area-list li {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 20px; font-weight: 800; color: var(--main-deep); font-size: .95rem;
}
.area-copy h3 { margin: 0 0 8px; font-size: 1.3rem; color: var(--main-deep); }
.area-copy p { margin: 0 0 8px; color: var(--muted); font-size: .94rem; }
.area-note {
  margin-top: 14px; padding: 12px 18px; border-radius: var(--radius);
  background: #f7e8d5; color: var(--main-deep); font-size: .9rem; font-weight: 700;
}
.map-wrap {
  width: 100%; /* min-heightと同時指定時、幅未指定だとaspect-ratioが高さ起点で幅を算出しグリッド枠より広くなるため明示（2026-07-17発覚） */
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 14px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* === 事例（数字型） === */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 24px 22px; box-shadow: 0 8px 26px rgba(77, 55, 34, .07);
}
.case-card .place {
  display: inline-block; font-size: .74rem; font-weight: 800; color: #fff;
  background: var(--main); border-radius: 999px; padding: 3px 12px; margin-bottom: 12px;
}
.case-card h3 { margin: 0 0 12px; font-size: 1.06rem; color: var(--main-deep); line-height: 1.6; }
.case-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .9rem; }
.case-card dt { color: var(--muted); font-weight: 700; }
.case-card dd { margin: 0; font-weight: 800; color: var(--main-deep); }
.case-card .yen { color: var(--accent-ink); font-size: 1.05rem; }

/* === Before/After === */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ba-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 26px rgba(77,55,34,.07); }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); }
.ba-pair .shot { position: relative; }
.ba-pair .ph { aspect-ratio: 1 / 1; }
.ba-pair .badge {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em;
  color: #fff; background: rgba(51, 36, 21, .78); border-radius: 999px; padding: 3px 10px;
}
.ba-pair .shot.after .badge { background: var(--accent); }
.ba-card .body { padding: 18px 20px 20px; }
.ba-card h3 { margin: 0 0 8px; font-size: 1.04rem; color: var(--main-deep); }
.ba-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.ba-card .meta { margin-top: 10px; font-size: .88rem; font-weight: 800; color: var(--main-deep); }
.ba-card .meta .yen { color: var(--accent-ink); }

/* === ご家族の方へ === */
.family-band {
  background: linear-gradient(120deg, var(--main) 0%, var(--main-deep) 100%);
  color: #fdf9f0; border-radius: var(--radius); padding: 44px 40px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center;
  box-shadow: var(--shadow);
}
.family-band h2 { margin: 0 0 14px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 700; }
.family-band p { margin: 0 0 10px; font-size: .95rem; opacity: .94; }
.family-band .points { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.family-band .points li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; font-weight: 700; }
.family-band .points li::before { content: "○"; color: #ffd9ae; font-weight: 800; flex: 0 0 auto; }
.family-band .ph { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.family-band .btns { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }

/* === お知らせ === */
.news-list { max-width: 820px; margin: 0 auto; }
.news-item {
  display: grid; grid-template-columns: 110px auto 1fr; gap: 14px;
  padding: 16px 8px; border-bottom: 1px solid var(--border); align-items: baseline;
}
.news-item time { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.news-item .cat {
  font-size: .7rem; font-weight: 800; color: var(--accent-ink);
  background: #f7e8d5; border-radius: 999px; padding: 3px 12px; white-space: nowrap;
  justify-self: start;
}
.news-item .txt { font-size: .95rem; font-weight: 600; color: #4a3d2d; }
.news-note { max-width: 820px; margin: 18px auto 0; color: var(--muted); font-size: .85rem; }

/* === FAQ === */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
details {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 20px rgba(77, 55, 34, .05);
}
summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-weight: 800; color: var(--main-deep);
}
summary::-webkit-details-marker { display: none; }
summary .q { display: flex; gap: 12px; align-items: baseline; }
summary .q::before { content: "Q"; color: var(--accent-ink); font-family: var(--font-serif); font-size: 1.1rem; flex: 0 0 auto; }
summary::after {
  content: "+"; width: 30px; height: 30px; flex: 0 0 auto;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--main-pale); color: var(--main-deep); line-height: 1; font-weight: 800;
}
details[open] summary::after { content: "−"; }
.answer { padding: 0 22px 20px; color: var(--muted); font-size: .94rem; }
.answer::before { content: "A． "; color: var(--accent-ink); font-weight: 800; }

/* === 流れ === */
.flow-list { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.flow-step {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: 0 6px 20px rgba(77, 55, 34, .05);
}
.flow-step .no {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--main); color: #fff; display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem;
}
.flow-step h3 { margin: 0 0 6px; font-size: 1.06rem; color: var(--main-deep); }
.flow-step p { margin: 0; color: var(--muted); font-size: .92rem; }
.flow-photos { max-width: 860px; margin: 26px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.flow-photos .ph { aspect-ratio: 16 / 10; border-radius: var(--radius); box-shadow: 0 8px 26px rgba(77,55,34,.07); }
.flow-photos figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 8px 14px; font-size: .78rem; color: #fff; background: linear-gradient(transparent, rgba(51,36,21,.7)); }

/* === サービス詳細（下層） === */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-note {
  margin-top: 8px; padding: 10px 14px; border-radius: 10px;
  background: #f8f2e6; border-left: 3px solid var(--accent);
  color: #6a583f; font-size: .82rem; line-height: 1.7;
}

/* === 自己紹介ページ === */
.profile-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.profile-gallery .ph { aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: 0 8px 26px rgba(77,55,34,.07); }
.profile-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 8px 14px; font-size: .78rem; color: #fff; background: linear-gradient(transparent, rgba(51,36,21,.72)); }

/* === お問い合わせ === */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin: 0 auto; }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 24px; text-align: center; box-shadow: 0 8px 26px rgba(77, 55, 34, .07);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.contact-card .ic { width: 46px; height: 46px; }
.contact-card h3 { margin: 4px 0 0; font-size: 1.05rem; color: var(--main-deep); }
.contact-card .big-num { font-size: 1.5rem; font-weight: 800; color: var(--main-deep); letter-spacing: .02em; }
.contact-card p { margin: 0; color: var(--muted); font-size: .85rem; }
.contact-card .btn { margin-top: 8px; }

/* フォーム（ダミー） */
.form-wrap {
  max-width: 680px; margin: 0 auto; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 32px; box-shadow: 0 8px 26px rgba(77, 55, 34, .07);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 800; font-size: .9rem; color: var(--main-deep); margin-bottom: 6px; }
.form-row .req { color: var(--accent-ink); font-size: .74rem; margin-left: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; font: inherit; color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-submit { text-align: center; margin-top: 24px; }
.form-msg { margin: 14px 0 0; text-align: center; font-weight: 800; color: var(--accent-ink); min-height: 1.6em; }
.form-note { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: .82rem; }

/* === 大CTA帯 === */
.cta-band {
  background: linear-gradient(120deg, var(--accent) 0%, #b96420 100%);
  color: #fff; padding: 64px 0; text-align: center;
}
.cta-band h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
.cta-band > .container > p { margin: 0 0 28px; opacity: .95; font-size: .95rem; }
.cta-band .btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-band .btn-phone { background: #fff; color: var(--accent-ink); box-shadow: 0 10px 24px rgba(80, 45, 10, .25); }
.cta-band .fallback { margin: 18px 0 0; font-size: .85rem; opacity: .95; }

/* CTA帯のふわっと表示（動き2/3・スクロール時） */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* === フッター === */
.site-footer { background: var(--main-deep); color: rgba(253, 249, 240, .9); padding: 48px 0 30px; }
.footer-inner { width: min(1080px, calc(100% - 36px)); margin: 0 auto; }
.footer-top {
  display: flex; justify-content: space-between; gap: 30px; align-items: flex-start;
  padding-bottom: 26px; border-bottom: 1px solid rgba(253, 249, 240, .18);
}
.footer-logo { font-family: var(--font-serif); font-weight: 700; font-size: 1.25rem; margin-bottom: 8px; color: #fdf9f0; }
.footer-info { font-size: .88rem; line-height: 2; }
.footer-nav { display: grid; gap: 8px; font-size: .9rem; font-weight: 700; }
.footer-nav a:hover { color: #ffd9ae; }
.sample-disclaimer {
  margin: 24px 0 0; font-size: .78rem; line-height: 1.9; color: rgba(253, 249, 240, .66);
}
.footer-credit { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(253, 249, 240, .14); font-size: .8rem; color: rgba(253, 249, 240, .72); }
.footer-credit a { text-decoration: underline; text-underline-offset: 3px; }

/* === スマホ下部固定CTAバー === */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: none; grid-template-columns: 1fr 1fr; gap: 8px;
  height: calc(56px + env(safe-area-inset-bottom));
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
  background: rgba(253, 250, 243, .97);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 26px rgba(77, 55, 34, .14);
  transition: transform .25s ease;
}
.mobile-cta.is-hidden { transform: translateY(110%); }
.mobile-cta .btn { min-height: 44px; padding: 4px 8px; border-radius: 999px; font-size: .92rem; gap: 0; }
.mobile-cta .btn .small { font-size: .62rem; }
.mobile-cta .btn-phone .num { font-size: 1.02rem; }

/* === トースト（LINEダミー等） === */
.toast {
  position: fixed; left: 50%; bottom: 90px; z-index: 70;
  transform: translateX(-50%) translateY(16px);
  max-width: min(90vw, 420px);
  background: rgba(51, 36, 21, .94); color: #fdf9f0;
  padding: 12px 20px; border-radius: 12px;
  font-size: .88rem; font-weight: 700; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* === 動きの抑制 === */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content > * { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .trouble-item, .photo-card { transition: none; }
  .mobile-cta { transition: none; }
}

/* === レスポンシブ === */
@media (max-width: 980px) {
  .trouble-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid, .case-grid, .ba-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; max-width: 520px; }
  .nav { gap: 12px; font-size: .84rem; }
  /* 801px以上ではヘッダー電話を残す（CTA空白帯の防止） */
}

@media (max-width: 800px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; left: 0; right: 0; top: 0; bottom: auto; z-index: 45;
    display: grid; gap: 0; padding: calc(37px + 70px + 8px) 22px 24px;
    background: rgba(253, 250, 243, .98);
    border-bottom: 1px solid var(--border); box-shadow: 0 20px 40px rgba(77, 55, 34, .18);
    transform: translateY(-105%); opacity: 0; pointer-events: none;
    transition: transform .24s ease, opacity .24s ease;
    font-size: 1rem;
  }
  .menu-open .nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  /* メニュー展開中はoverflow:hiddenでstickyが効かなくなるため、バーとヘッダーをfixed化して画面上部に固定 */
  body.menu-open .sample-bar { position: fixed; top: 0; left: 0; right: 0; }
  body.menu-open .site-header { position: fixed; top: 37px; left: 0; right: 0; }
  /* ドロワー（.nav z-index:45）より、ロゴと閉じるボタンを前面に */
  .logo, .menu-toggle { position: relative; z-index: 46; }
  .nav a { padding: 14px 4px; min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid var(--border); }
  .nav a.current { border-bottom: 1px solid var(--border); color: var(--accent-ink); }
  .header-inner { min-height: 62px; }

  .hero .ph { aspect-ratio: auto; min-height: 560px; }
  .hero::after { background: linear-gradient(180deg, rgba(51, 36, 21, .50), rgba(51, 36, 21, .30) 55%, rgba(51, 36, 21, .10)); }
  /* スマホは上寄せ・最小テキストのみ。大ボタン/注意書きはヒーローに重ねず固定バーに任せる（design-rules §2.4） */
  .hero-content { align-content: start; padding-top: 26px; }
  .hero h1 { font-size: clamp(1.5rem, 6.4vw, 1.9rem); }
  .hero .lead { font-size: .95rem; margin: 14px 0 0; }
  .hero-btns, .hero-note { display: none; }

  .section { padding: 48px 0; }
  .section-head { margin-bottom: 30px; }
  .trouble-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .trouble-item { font-size: .85rem; padding: 12px 12px; gap: 10px; }
  .trouble-item .ic { width: 34px; height: 34px; }
  .card-grid, .case-grid, .ba-grid, .service-grid { grid-template-columns: 1fr; }
  .price-tiers { grid-template-columns: 1fr; }
  .price-promise { grid-template-columns: 1fr; }
  .greeting { grid-template-columns: 1fr; gap: 26px; }
  .greeting .ph { max-width: 340px; margin: 0 auto; }
  .greeting-copy { text-align: left; }
  .area-layout, .area-layout.no-image { grid-template-columns: 1fr; gap: 24px; }
  .area-layout.no-image .map-wrap { min-height: 220px; }
  .family-band { grid-template-columns: 1fr; padding: 32px 24px; }
  .flow-step { grid-template-columns: 44px 1fr; padding: 18px 18px; gap: 14px; }
  .flow-photos { grid-template-columns: 1fr; }
  .profile-gallery { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 4px; padding: 14px 4px; }
  .footer-top { display: grid; gap: 22px; }
  th, td { padding: 13px 14px; font-size: .9rem; }
  /* 3列の料金表（込み込みの定額パック）が390px幅で収まらず右列が画面外に切れるため横スクロール可に（2026-07-17 Codex QA指摘） */
  .price-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .price-table-wrap table { min-width: 480px; }
  .mobile-cta { display: grid; }
}

@media (max-width: 430px) {
  .logo-name { font-size: 1.05rem; }
  .hero-area { font-size: .74rem; }
  .trouble-grid { grid-template-columns: 1fr 1fr; }
  .btn-phone .num { font-size: 1.2rem; }
}

/* === ヒーロー3枚スライド（ゆっくりズーム・動きの内数） === */
.hero-slides { position: absolute; inset: 0; }
.hero-slides .hero-slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero-slides .hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero-slides .hero-slide.is-active { opacity: 1; }
.hero-slides .hero-slide.is-active img { animation: heroZoom 8.5s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero { min-height: 480px; max-height: 680px; }
.hero .ph { min-height: 0; }
/* aspect-ratioはPCのみ（スマホで横幅960pxに膨らむのを防止・Codex QA指摘） */
@media (min-width: 801px) {
  .hero { aspect-ratio: 16 / 8; }
}
@media (max-width: 800px) {
  .hero { width: 100%; max-width: 100%; min-height: 560px; max-height: none; aspect-ratio: auto; }
  .hero-slides, .hero-slides .hero-slide { width: 100%; max-width: 100%; }
  .hero-content { max-width: calc(100% - 32px); }
  .hero-btns { display: none; }  /* スマホはヒーローに大ボタンを重ねない＝固定バーに任せる（design-rules §2.4） */
}
@media (prefers-reduced-motion: reduce) {
  .hero-slides .hero-slide { transition: none; }
  .hero-slides .hero-slide.is-active img { animation: none; }
}

/* ヒーローをフルスクリーン化（design-rules §2.4 絶対条件：100svh目安・2026-07-06） */
.hero {
  min-height: 480px; max-height: none; aspect-ratio: auto;
  height: calc(100vh - 111px);   /* 111px＝告知バー＋ヘッダー */
  height: calc(100svh - 111px);
}
.hero .ph, .hero-slides .hero-slide {
  aspect-ratio: auto; min-height: 0; max-height: none; height: 100%;
}
@media (max-width: 800px) {
  .hero {
    min-height: 560px;
    height: calc(100vh - 103px);  /* 103px＝告知バー＋ヘッダー（スマホ） */
    height: calc(100svh - 103px);
  }
}

/* 画像ロード成功時：ファイル名プレースホルダを消す（デザインレビュー指摘） */
.ph.is-loaded::before, .ic.is-loaded::before { content: none; }
.ic.is-loaded { background: transparent; }
/* ハンバーガー展開時の透け防止 */
body.menu-open .nav { background: rgb(253, 249, 240); }

/* 801〜980pxはヘッダー電話を縮小表示 */
@media (max-width: 980px) and (min-width: 801px) {
  .header-tel .num { font-size: 1rem; }
  .header-tel .hours { font-size: .68rem; }
}
@media (max-width: 800px) {
  .header-tel { display: none; }
}
/* 告知バーの折返し防止 */
@media (max-width: 430px) {
  .sample-banner { font-size: .66rem; padding: 6px 8px; }
}
/* このサンプルについて */
.sample-about { background: #efe7d8; }
.sample-spec { max-width: 860px; margin: 0 auto 26px; }
.sample-spec div.row { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 12px 6px; border-bottom: 1px dashed #d8cbb6; }
.sample-spec dt { font-weight: 800; color: #4a3521; }
.sample-spec dd { margin: 0; line-height: 1.9; }
.sample-links { text-align: center; display: grid; gap: 12px; justify-items: center; }
.sample-links p { margin: 0; font-weight: 700; }
@media (max-width: 800px) { .sample-spec div.row { grid-template-columns: 1fr; gap: 2px; } }

/* =========================================================
   ここから下：スポット構成（handyman-spot）専用の上書き
   ・JSなしで動く1ページ構成（ヒーローはCSSのみで3枚スライド＋ズーム）
   ========================================================= */

/* ヒーロー3枚スライド：CSSアニメーションで自動切替（21秒で1周・各7秒＋ズーム） */
.hero-slides .hero-slide {
  opacity: 0;
  transition: none;
  animation: heroSpotCycle 21s infinite;
  will-change: opacity, transform;
}
.hero-slides .hero-slide:nth-child(2) { animation-delay: 7s; }
.hero-slides .hero-slide:nth-child(3) { animation-delay: 14s; }
.hero-slides .hero-slide.is-active img,
.hero-slides .hero-slide img { animation: none; }
@keyframes heroSpotCycle {
  0%   { opacity: 1; transform: scale(1); }
  30%  { opacity: 1; transform: scale(1.07); }
  36%  { opacity: 0; transform: scale(1.08); }
  95%  { opacity: 0; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slides .hero-slide { animation: none; }
  .hero-slides .hero-slide:first-child { opacity: 1; }
}

/* スポットはJSなし：画像読込マーカーが付かないため、アイコンの下地は最初から透明に */
.ic { background: transparent; }
.ic::before { content: none; }
.ph::before { content: none; }

/* ナビはページ内アンカー。スマホではドロワーを使わず非表示（下部固定CTAに任せる） */
@media (max-width: 800px) {
  .nav.spot-nav { display: none; }
}

/* ダミーボタン（span）はリンクではないのでカーソルで明示 */
.btn[aria-disabled="true"], .header-tel .num { cursor: not-allowed; }

/* 選ばれる理由（スポット用・handymanの配色トーンで構成） */
.reason-rows { display: grid; gap: 30px; }
.reason-row {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: 0 8px 26px rgba(77, 55, 34, .07);
}
.reason-row .rr-img { aspect-ratio: 4 / 3; border-radius: var(--radius); width: 100%; }
.reason-row.rev .rr-img { order: 2; }
.reason-row .rr-text .num {
  display: inline-block; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700;
  color: var(--accent-ink); border-bottom: 2px solid var(--accent); margin-bottom: 8px; line-height: 1.4;
}
.reason-row .rr-text h3 { margin: 0 0 8px; font-size: 1.18rem; color: var(--main-deep); }
.reason-row .rr-text p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 800px) {
  .reason-row { grid-template-columns: 1fr; gap: 16px; padding: 18px 18px 22px; }
  .reason-row.rev .rr-img { order: 0; }
}

/* できること：スポットは7枚カードのため3列→2列→1列 */
.spot-svc { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .spot-svc { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .spot-svc { grid-template-columns: 1fr; } }
