/* Leaf Design Phase1 — 名前空間 p1-（既存 style.css と衝突させない）
   モバイル1列が基本 / 本文16px / ボタン48px以上 / 自動再生・横スクロール前提なし */
.p1, .p1 * { box-sizing: border-box; }
.p1 { font-size: 16px; line-height: 1.8; color: #333; padding: 0 20px; overflow-wrap: anywhere; }
.p1 .p1-cards > *, .p1 .p1-list > *, .p1 .p1-steps > *, .p1 .p1-works > *, .p1 .p1-faq > *, .p1 .p1-works__media > * { min-width: 0; }
.p1 .p1-inner { max-width: 980px; margin: 0 auto; }
.p1 .p1-sec { padding: 48px 0; }
.p1 .p1-sec--tint { background: #F6F5E8; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.p1 .p1-sec--tint > .p1-inner { max-width: 980px; }
.p1 p { margin: 0 0 1em; font-size: 16px; line-height: 1.8; }
.p1 ul, .p1 ol { margin: 0; padding: 0; list-style: none; }

/* 見出し */
.p1 .p1-h1 { font-size: clamp(22px, 6.4vw, 26px); line-height: 1.5; font-weight: bold; margin: 0 0 20px; color: #333; }
.p1 .p1-h1 span { display: block; }
.p1 .p1-h2 { font-size: 22px; line-height: 1.5; font-weight: bold; margin: 0 0 24px; color: #333; padding-bottom: 12px; border-bottom: 2px solid #B79244; }
.p1 .p1-h3 { font-size: 18px; line-height: 1.5; font-weight: bold; margin: 0 0 8px; }
.p1 .p1-lead { font-size: 16px; line-height: 1.9; margin: 0 0 28px; }

/* ファーストビュー */
.p1 .p1-hero { padding: 36px 0 40px; }
.p1 .p1-hero--page { padding-top: 40px; }

/* ボタン */
.p1 .p1-cta { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.p1 .p1-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; padding: 12px 20px; border-radius: 6px; font-size: 16px; font-weight: bold; line-height: 1.4; text-align: center; text-decoration: none; border: 2px solid transparent; }
.p1 .p1-btn small { display: block; margin-top: 4px; font-size: 14px; font-weight: normal; line-height: 1.4; }
.p1 .p1-btn--primary { background: #B79244; color: #fff; }
.p1 .p1-btn--line { background: #199B08; color: #fff; }
.p1 .p1-btn--tel { background: #fff; color: #333; border-color: #B79244; }
.p1 .p1-btn:hover, .p1 .p1-btn:focus { opacity: .85; }
.p1 a.p1-btn:focus-visible { outline: 3px solid #333; outline-offset: 2px; }

/* カード（建物別入口・症状・4つ） */
.p1 .p1-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.p1 .p1-card { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 20px; }
.p1 .p1-sec--tint .p1-card { border-color: #e4dfc4; }
.p1 .p1-card p:last-child { margin-bottom: 0; }
.p1 .p1-card__link { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 12px; padding: 10px 16px; border-radius: 6px; background: #B79244; color: #fff; font-weight: bold; text-align: center; text-decoration: none; }
.p1 .p1-card__link:hover, .p1 .p1-card__link:focus { opacity: .85; }
.p1 .p1-card--entry { border-top: 4px solid #B79244; }

/* チェックリスト */
.p1 .p1-list { display: grid; gap: 10px; }
.p1 .p1-list li { position: relative; padding: 12px 14px 12px 40px; background: #fff; border: 1px solid #e4dfc4; border-radius: 6px; line-height: 1.6; }
.p1 .p1-list li:before { content: ''; position: absolute; left: 14px; top: 17px; width: 14px; height: 8px; border-left: 3px solid #199B08; border-bottom: 3px solid #199B08; transform: rotate(-45deg); }

/* 流れ */
.p1 .p1-steps { counter-reset: p1step; display: grid; gap: 12px; }
.p1 .p1-steps li { counter-increment: p1step; position: relative; padding: 14px 16px 14px 56px; background: #fff; border: 1px solid #e4dfc4; border-radius: 6px; line-height: 1.6; }
.p1 .p1-steps li:before { content: counter(p1step); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: #B79244; color: #fff; font-weight: bold; text-align: center; line-height: 30px; }
.p1 .p1-steps strong { display: block; }

/* 施工事例（固定リンク） */
.p1 .p1-works { display: grid; gap: 16px; }
.p1 .p1-works__item { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 20px; }
.p1 .p1-works__area { margin: 0 0 4px; font-size: 14px; color: #707070; }
.p1 .p1-works__title { margin: 0 0 12px; font-size: 18px; line-height: 1.5; }
.p1 .p1-works__title a { color: #333; text-decoration: underline; }
.p1 .p1-works__media { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0 0 12px; }
.p1 .p1-works__fig { margin: 0; }
.p1 .p1-works__fig img { display: block; width: 100%; height: auto; border-radius: 4px; }
.p1 .p1-works__fig figcaption { margin-top: 4px; font-size: 14px; color: #707070; }
.p1 .p1-works__more { display: inline-flex; align-items: center; min-height: 48px; color: #B79244; font-weight: bold; text-decoration: underline; }

/* FAQ（<details>・JS不要） */
.p1 .p1-faq { display: grid; gap: 12px; }
.p1 .p1-faq details { background: #fff; border: 1px solid #ddd; border-radius: 6px; }
.p1 .p1-faq summary { cursor: pointer; display: flex; align-items: center; min-height: 52px; padding: 12px 16px; font-weight: bold; line-height: 1.5; }
.p1 .p1-faq details > div { padding: 0 16px 16px; }
.p1 .p1-faq details > div p:last-child { margin-bottom: 0; }

/* 補足・注記 */
.p1 .p1-note { font-size: 14px; color: #707070; line-height: 1.7; }
.p1 .p1-textlink { display: inline-flex; align-items: center; min-height: 48px; color: #B79244; font-weight: bold; text-decoration: underline; }

/* 最終CTA */
.p1 .p1-final { background: #FFF7EF; margin: 0 -20px; padding: 48px 20px; text-align: center; }
.p1 .p1-final .p1-h2 { border-bottom: 0; padding-bottom: 0; }
.p1 .p1-final .p1-cta { max-width: 480px; margin: 0 auto; }

/* タブレット幅：右側固定SNS（.side-sns・幅 max(45px,5.86vw)）と本文を干渉させない */
@media only screen and (min-width: 641px) and (max-width: 1100px) {
    .p1 .p1-inner { padding-right: calc(max(45px, 5.86vw) + 4px); }
}

/* PC */
@media only screen and (min-width: 769px) {
    .p1 .p1-sec { padding: 72px 0; }
    .p1 .p1-hero { padding: 64px 0 72px; }
    .p1 .p1-h1 { font-size: 36px; }
    .p1 .p1-h2 { font-size: 28px; }
    .p1 .p1-cards--2 { grid-template-columns: repeat(2, 1fr); }
    .p1 .p1-cards--4 { grid-template-columns: repeat(2, 1fr); }
    .p1 .p1-cards--3 { grid-template-columns: repeat(3, 1fr); }
    .p1 .p1-list { grid-template-columns: repeat(2, 1fr); }
    .p1 .p1-cta { flex-direction: row; flex-wrap: wrap; }
    .p1 .p1-btn { flex: 1 1 240px; }
    .p1 .p1-works__media { grid-template-columns: repeat(3, 1fr); }
    .p1 .p1-final .p1-cta { max-width: 760px; }
}
