:root {
  --terracotta: #D88883;
  --terracotta-dark: #B86B66;
  --sage: #75A398;
  --sage-soft: #E8F0EA;
  --offwhite: #FFFAF7;
  --line: #06C755;
  --deep: #263F3A;
  --yellow: #F8D96A;
  --red: #D77268;
  --text: #3D3D3D;
  --muted: #746D66;
  --border: #E8DED3;
  --paper: #FFFFFF;
  --shadow: 0 14px 34px rgba(87, 63, 46, 0.13);
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-y: auto;
  background: var(--offwhite);
  color: var(--text);
  font-family: var(--sans);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 96% 8%, rgba(248, 217, 106, 0.22) 0 118px, transparent 120px),
    radial-gradient(circle at 0 42%, rgba(117, 163, 152, 0.1) 0 100px, transparent 102px),
    var(--offwhite);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  /* iPhone notch 対応: 上端と左右に safe-area-inset を加算 */
  padding: calc(10px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(232, 222, 211, 0.9);
  background: rgba(255, 250, 247, 0.96);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: inset -5px -5px 0 rgba(255, 255, 255, 0.16);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 99px 99px 99px 18px;
  transform-origin: bottom right;
}

.brand-mark::before {
  left: 8px;
  top: 6px;
  width: 9px;
  height: 15px;
  background: #fff6ea;
  transform: rotate(-36deg);
}

.brand-mark::after {
  left: 15px;
  top: 9px;
  width: 8px;
  height: 13px;
  background: #dceae3;
  transform: rotate(28deg);
}

.brand-name {
  color: var(--terracotta-dark);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  white-space: nowrap;
}

.header-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(216, 136, 131, 0.32);
  border-radius: 999px;
  background: #fffaf1;
  color: var(--terracotta-dark);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.mini-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--terracotta));
  box-shadow: 0 8px 16px rgba(215, 114, 104, 0.24);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

main,
.site-footer {
  max-width: 520px;
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: 20px 18px 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 250, 247, 0)),
    radial-gradient(circle at 108% 8%, rgba(248, 217, 106, 0.36) 0 88px, transparent 90px),
    radial-gradient(circle at -10% 96%, rgba(117, 163, 152, 0.14) 0 88px, transparent 90px);
}

.hero::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 32px;
  width: 62px;
  height: 62px;
  border: 2px solid rgba(117, 163, 152, 0.2);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 54px 0 0;
  transform: rotate(18deg);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 900;
}

.eyebrow {
  gap: 7px;
  margin-bottom: 13px;
  padding: 8px 12px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(103, 84, 68, 0.08);
  color: var(--sage);
  font-size: 12px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
}

h1,
h2,
h3 {
  margin: 0;
  color: #382f2b;
  font-family: var(--serif);
  letter-spacing: 0;
}

h1 {
  max-width: 340px;
  font-size: 29px;
  line-height: 1.33;
  font-weight: 700;
}

h1 strong {
  display: inline;
  color: var(--red);
  font-size: 36px;
  line-height: 1.12;
  background: linear-gradient(transparent 65%, rgba(248, 217, 106, 0.78) 65%);
}

.hero-copy {
  margin: 13px 0 15px;
  max-width: 330px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  font-weight: 700;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 13px;
}

.hero-stat {
  min-height: 58px;
  padding: 9px 8px;
  border: 2px solid rgba(216, 136, 131, 0.28);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fffaf2);
  box-shadow: 0 8px 18px rgba(87, 63, 46, 0.08);
  text-align: center;
}

.hero-stat span {
  display: block;
  margin-bottom: 3px;
  color: var(--sage);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
}

.hero-stat strong {
  display: block;
  color: var(--terracotta-dark);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.18;
  white-space: nowrap;
}

.hero-proof {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 1px solid rgba(216, 136, 131, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(103, 84, 68, 0.08);
  color: var(--terracotta-dark);
  font-size: 12px;
  font-weight: 900;
}

.hero-proof::before {
  content: "無料";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 22px;
  flex: 0 0 34px;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.hero-photo,
.work-photo-panel {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-photo {
  position: relative;
  height: 218px;
  border: 4px solid #fff;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 56% 50%;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: auto 10px 10px;
  height: 72px;
  border-radius: 14px;
  background: linear-gradient(0deg, rgba(48, 34, 25, 0.42), rgba(48, 34, 25, 0));
}

.hero-photo figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 13px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.phone-display {
  display: block;
  margin: 14px 0 4px;
  padding: 12px 14px 13px;
  border: 2px solid rgba(216, 136, 131, 0.42);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fffaf2);
  box-shadow: 0 10px 22px rgba(216, 136, 131, 0.16);
  text-align: center;
  text-decoration: none;
}

.phone-display-label {
  display: block;
  margin-bottom: 2px;
  color: var(--sage);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.phone-display-number {
  display: block;
  margin: 2px 0 4px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.phone-display-note {
  display: block;
  color: var(--terracotta-dark);
  font-size: 11px;
  font-weight: 900;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--terracotta));
  box-shadow: 0 13px 24px rgba(215, 114, 104, 0.25);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

.cta::before {
  content: "TEL";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 23px;
  margin-right: 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
}

.cta-row {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.cta-row .cta {
  margin-top: 0;
}

.line-cta {
  min-height: 48px;
  background: var(--line);
  box-shadow: 0 10px 20px rgba(6, 199, 85, 0.2);
  font-size: 14px;
}

.line-cta::before {
  content: "LINE";
  color: var(--line);
}

.compact {
  gap: 8px;
  margin-top: 10px;
}

.compact .cta {
  min-height: 46px;
  font-size: 14px;
}

.trust-badges,
.included-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.trust-badges {
  margin-top: 14px;
}

.trust-badge,
.included-item,
.worry-card,
.feature-card,
.faq-item,
.area-box {
  border: 1px solid var(--border);
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(93, 67, 49, 0.07);
}

.trust-badge {
  position: relative;
  min-height: 50px;
  padding: 9px 8px 8px 36px;
  border-color: rgba(117, 163, 152, 0.2);
  border-radius: 10px;
  color: #3f4c47;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.trust-badge::before,
.included-item::before {
  content: "";
  border-radius: 50%;
  background: var(--sage);
  box-shadow: inset 0 0 0 4px #fff;
}

.trust-badge::before {
  position: absolute;
  left: 11px;
  top: 12px;
  width: 16px;
  height: 16px;
}

.trust-badge strong {
  display: block;
  color: var(--terracotta-dark);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.2;
}

.campaign-box {
  margin-top: 13px;
  padding: 13px;
  border: 2px solid var(--yellow);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(248, 217, 106, 0.26), rgba(255, 255, 255, 0.96)), #fff;
  box-shadow: 0 10px 18px rgba(87, 63, 46, 0.08);
}

.campaign-box b {
  display: block;
  color: var(--red);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.35;
}

.campaign-box span {
  display: block;
  margin-top: 5px;
  color: var(--deep);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.section {
  padding: 30px 18px;
  background: var(--offwhite);
}

.section-white {
  background: #fff;
}

.section-kicker {
  min-height: 28px;
  margin: 0 auto 8px;
  padding: 0 14px;
  background: var(--deep);
  color: #fff;
  font-size: 12px;
}

.section-title {
  position: relative;
  margin: 0 0 18px;
  padding-top: 20px;
  text-align: center;
  font-size: 24px;
  line-height: 1.35;
}

.section-lead {
  max-width: 430px;
  margin: -4px auto 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}

.section-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 19px;
  height: 19px;
  transform: translateX(-50%) rotate(-30deg);
  border-radius: 20px 20px 20px 4px;
  background: var(--terracotta);
  box-shadow: 13px 3px 0 var(--sage);
}

.cards,
.feature-grid,
.faq-list {
  display: grid;
  gap: 12px;
}

.worry-card {
  position: relative;
  min-height: 62px;
  padding: 13px 14px 13px 60px;
  border-left: 5px solid var(--terracotta);
  border-radius: 12px;
  color: #4c4640;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.55;
}

.worry-card span {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--deep);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 900;
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 16px 15px 17px;
  border-top: 5px solid var(--terracotta);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(248, 217, 106, 0.18), transparent 62%), #fff;
}

.reason-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 9px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.feature-card h3 {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.45;
}

.feature-card h3 span {
  width: 40px;
  height: 40px;
  display: inline-flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 900;
}

.feature-card p,
.work-photo-panel p,
.flow-item p,
.faq-item p,
.area-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.72;
}

.included-grid {
  margin-top: 14px;
}

.included-item {
  min-height: 44px;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 8px;
  border-color: rgba(216, 136, 131, 0.22);
  border-radius: 10px;
  background: #fffaf1;
  color: var(--deep);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.included-item::before {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: var(--terracotta);
}

.work-photo-panel {
  margin-top: 16px;
  border: 1px solid var(--border);
}

.work-photo-panel img {
  width: 100%;
  height: 190px;
  display: block;
  object-fit: cover;
  object-position: 48% 50%;
}

.work-photo-panel figcaption {
  padding: 14px 15px 16px;
  border-top: 4px solid var(--terracotta);
  background: linear-gradient(90deg, rgba(216, 136, 131, 0.08), rgba(117, 163, 152, 0.08)), #fff;
}

.work-photo-panel span {
  display: inline-flex;
  margin-bottom: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage);
  font-size: 11px;
  font-weight: 900;
}

.work-photo-panel strong {
  display: block;
  margin-bottom: 5px;
  color: #382f2b;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
}

.mid-cta {
  margin-top: 17px;
  padding: 16px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--deep), #32584f);
  box-shadow: 0 12px 24px rgba(38, 63, 58, 0.18);
  color: #fff;
  text-align: center;
}

.mid-cta b {
  display: block;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.35;
}

.mid-cta .cta {
  min-height: 48px;
  box-shadow: none;
  font-size: 14px;
}

.price-table {
  overflow: hidden;
  border: 1px solid rgba(216, 136, 131, 0.28);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(93, 67, 49, 0.09);
}

.price-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 56px;
  border-top: 1px solid var(--border);
}

.price-row:first-child {
  border-top: 0;
}

.price-row span,
.price-row strong {
  display: flex;
  align-items: center;
  padding: 10px 7px;
  line-height: 1.35;
}

.price-row span {
  color: #4c4640;
  font-size: 11px;
  font-weight: 900;
}

.price-row strong {
  justify-content: center;
  border-left: 1px solid var(--border);
  color: var(--red);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.price-head {
  min-height: 38px;
  background: var(--deep);
}

.price-head span {
  justify-content: center;
  color: #fff;
  font-size: 12px;
}

.price-notes {
  margin-top: 14px;
  padding: 15px;
  border: 2px solid var(--yellow);
  border-radius: 13px;
  background: linear-gradient(90deg, rgba(248, 217, 106, 0.2), rgba(255, 255, 255, 0.95)), #fff;
}

.price-notes h3 {
  margin-bottom: 10px;
  color: var(--deep);
  font-size: 18px;
  line-height: 1.4;
}

.price-notes ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-notes li {
  position: relative;
  min-height: 36px;
  padding: 8px 8px 8px 24px;
  border: 1px solid rgba(216, 136, 131, 0.18);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.78);
  color: #3d3d3d;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.price-notes li::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
}

.price-source {
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.65;
}

.price-cta {
  margin-top: 15px;
}

.flow {
  position: relative;
  display: grid;
  gap: 14px;
}

.flow::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 20px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(var(--sage), rgba(117, 163, 152, 0.16));
}

.flow-item {
  position: relative;
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 10px;
  align-items: start;
}

.flow-num {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 8px 18px rgba(216, 136, 131, 0.22);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.flow-text {
  padding: 12px 12px 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(87, 63, 46, 0.06);
}

.flow-text h3 {
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 1.45;
}

.faq-item {
  border-radius: 12px;
}

.faq-item button {
  position: relative;
  width: 100%;
  min-height: 60px;
  padding: 15px 42px 15px 44px;
  border: 0;
  background: transparent;
  color: #302a25;
  font: 900 14px/1.55 var(--sans);
  text-align: left;
}

.faq-item button::before {
  content: "Q";
  position: absolute;
  left: 16px;
  top: 17px;
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
}

.faq-item button::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 16px;
  color: var(--sage);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.faq-item button[aria-expanded="true"]::after {
  content: "-";
}

.faq-item p {
  padding: 0 16px 17px 44px;
}

.area-box {
  padding: 18px 16px;
  border-radius: 12px;
  background: radial-gradient(circle at 90% 10%, rgba(117, 163, 152, 0.12) 0 54px, transparent 55px), #fff;
}

.area-main {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.area-main strong {
  color: var(--sage);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.3;
}

.map-dot {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 46% 36%, #fff 0 7px, transparent 8px),
    radial-gradient(circle at 46% 36%, var(--terracotta) 0 18px, transparent 19px),
    linear-gradient(145deg, #e8f0ea, #f9efe8);
  box-shadow: inset 0 0 0 1px rgba(117, 163, 152, 0.12);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage);
  font-size: 12px;
  font-weight: 900;
}

.closing {
  padding: 31px 18px;
  background: linear-gradient(135deg, rgba(216, 136, 131, 0.96), rgba(184, 107, 102, 0.98)), var(--terracotta);
  color: #fff;
  text-align: center;
}

.closing h2 {
  color: #fff;
  font-size: 25px;
  line-height: 1.48;
}

.closing p {
  max-width: 314px;
  margin: 10px auto 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.75;
}

.closing .cta {
  box-shadow: 0 13px 25px rgba(122, 55, 39, 0.18);
}

.phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 11px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.site-footer {
  /* ホームインジケータ対応: 下部に safe-area-inset-bottom を加算 */
  padding: 24px 18px calc(94px + env(safe-area-inset-bottom));
  background: #45362e;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.75;
}

.footer-brand {
  margin-bottom: 10px;
}

.site-footer .brand-name {
  color: #fff7ec;
  font-size: 20px;
}

.site-footer .brand-mark {
  width: 27px;
  height: 27px;
  flex-basis: 27px;
  background: #d58a67;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 13px;
  margin: 12px 0 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
}

.sticky-cta {
  position: fixed;
  /* ホームインジケータと被らないよう safe-area-inset を考慮 */
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: max(12px, env(safe-area-inset-left));
  z-index: 30;
  max-width: 496px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 7px;
  padding: 7px;
  border-radius: 24px;
  background: rgba(38, 63, 58, 0.9);
  box-shadow: 0 14px 32px rgba(27, 31, 28, 0.24);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(130%);
  transition: transform 180ms ease;
}

.show-sticky .sticky-cta {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.sticky-phone {
  gap: 5px;
  background: linear-gradient(135deg, var(--red), var(--terracotta));
}

.sticky-phone-icon {
  font-size: 14px;
  line-height: 1;
}

.sticky-phone-number {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.sticky-line {
  background: var(--line);
}

@media (min-width: 640px) {
  body {
    background: #ece6dc;
  }

  .site-header,
  main,
  .site-footer {
    max-width: 520px;
  }

  .site-header {
    margin: 0 auto;
  }
}

/* ============================================================
   PC レスポンシブ拡張 (T-010 / 2026-05-27 追加)
   タブレット 720px / PC 980px に拡張、各セクションを横並び化
   既存スタイルは変更せず、メディアクエリで上書きする
   ============================================================ */

/* タブレット (720px幅) — worry-card 2列 / feature-card 3列 / included-grid 3列 */
@media (min-width: 720px) {
  .site-header,
  main,
  .site-footer {
    max-width: 720px;
  }

  .sticky-cta {
    max-width: 680px;
  }

  .section {
    padding: 36px 24px;
  }

  .hero {
    padding: 24px 24px 28px;
  }

  /* CHECK セクション: worry-card 2列 */
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  /* REASON セクション: feature-card 3列 */
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* included-grid: 3列 */
  .included-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* trust-badges: 4列 (4項目を1行) */
  .trust-badges {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* faq-list: 2列 */
  .faq-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* PC (960px+) — フルブリード (画面端まで背景) 化
   (T-011 / 2026-05-27 追加)
   訪問看護(02) と同等の見た目を目指し、main/header/footer の max-width を解除。
   各セクション (.hero / .section / .closing / .site-header / .site-footer) は
   背景を画面端まで広げ、内側コンテンツは padding-inline: max(32px, calc((100% - 1200px) / 2))
   による「外側余白を画面端〜中央コンテナの間に流し込む」テクニックで中央寄せ。
   ※ HTML には wrapper を追加せず CSS のみで実現。スマホ表示はデグレなし。 */
@media (min-width: 960px) {
  /* main / site-header / site-footer の max-width 制限を解除 (全幅化) */
  .site-header,
  main,
  .site-footer {
    max-width: none;
  }

  /* sticky CTA は中央寄せのまま、画面下部に固定 */
  .sticky-cta {
    max-width: 720px;
  }

  /* 全幅背景 + 内側 max 1200px 中央寄せ用の共通 padding。
     calc((100% - 1200px) / 2) を min 32px と比較し、余白の大きい方を採用。
     これにより、画面幅 1200px 以下では 32px、それ以上では中央 1200px 内に収まる。 */
  .site-header,
  .hero,
  .section,
  .closing,
  .site-footer {
    padding-left: max(32px, calc((100% - 1200px) / 2));
    padding-right: max(32px, calc((100% - 1200px) / 2));
  }

  /* 縦方向の padding は既存の指定を温存しつつ上書き */
  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 44px;
  }

  .closing {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  /* site-header (sticky・grid) の上下 padding は env() を含む既存値を保持。
     左右だけ上の共通 padding で上書きされる。 */

  /* site-footer の縦余白は既存 (24px 上 / 94px 下) を温存しつつ、左右だけ上書き */
  .site-footer {
    padding-top: 28px;
    padding-bottom: calc(94px + env(safe-area-inset-bottom));
  }

  /* 見出しを少し大きく */
  h1 {
    max-width: none;
    font-size: 34px;
  }

  h1 strong {
    font-size: 42px;
  }

  .hero-copy {
    max-width: 560px;
    font-size: 15px;
  }

  .section-title {
    font-size: 28px;
  }

  /* ヒーロー: 写真とテキストを左右配置 (2カラム)。
     padding-inline は上の共通指定で全幅対応済み。
     内側コンテンツは max-width で抑えつつ、grid で中央寄せ。 */
  .hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 32px;
    align-items: start;
  }

  .hero > .eyebrow,
  .hero > h1,
  .hero > .hero-copy,
  .hero > .hero-stats,
  .hero > .hero-proof {
    grid-column: 1;
  }

  .hero > .hero-photo {
    grid-column: 2;
    grid-row: 1 / span 7;
    align-self: center;
    height: 420px;
  }

  .hero > .phone-display,
  .hero > .cta,
  .hero > .cta-row,
  .hero > .trust-badges,
  .hero > .campaign-box {
    grid-column: 1 / -1;
  }

  /* 各セクション内のコンテンツ列。section 自体は全幅、内側のグリッド/テキストが
     padding で中央寄せされる。h2/p/grid 等は section の content-box に従う。 */

  /* included-grid: 6列 (6項目を1行) */
  .included-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  /* flow: 2x2 グリッド (左の縦線は非表示) */
  .flow {
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }

  .flow::before {
    display: none;
  }

  /* price-notes: 3列 */
  .price-notes ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* trust-badges は 4列のまま (720px breakpoint で指定済み) */

  /* closing は中央寄せ・幅を抑える */
  .closing p {
    max-width: 520px;
  }

  .closing .cta,
  .closing .phone {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  /* site-footer 内側コンテンツは padding で中央寄せされるが、
     横幅が広くなりすぎないよう max-width で抑える */
  .site-footer .footer-brand,
  .site-footer p,
  .site-footer .footer-links,
  .site-footer small {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

