/* ==========================================================================
   下層ページ（工事別・施工事例・コラム）と共通フッターの追加スタイル
   色・角丸・影は style.css のデザイントークンを使う（ここで色を新しく決めない）
   ========================================================================== */

/* プレビュー専用：下書き・確認待ちの帯 */
.draft-bar { white-space: nowrap; overflow: hidden; height: 30px; line-height: 18px; position: sticky; top: 0; z-index: 60; margin: 0; padding: 6px 12px; text-align: center; font-size: 12.5px; font-weight: 700; color: #7a4b00; background: #ffe9b8; }
.draft-bar ~ .site-header { top: 30px; }

/* 下層ページのヘッダーは最初から白背景 */
.site-header--solid {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 var(--c-line), 0 6px 20px -16px rgba(30, 90, 115, .4);
}

/* ページ上部 */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 28px) 0 44px;
  background: linear-gradient(180deg, var(--c-sky) 0%, var(--c-sky-2) 100%);
}
.page-hero::after {
  content: ""; position: absolute; z-index: -1; right: -160px; top: -120px; width: 460px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 191, 160, .26) 0%, rgba(120, 191, 160, 0) 65%);
}
.page-title { margin-top: 10px; font-size: clamp(24px, 6.2vw, 40px); font-weight: 700; line-height: 1.45; letter-spacing: .06em; }
.page-lead { margin-top: 16px; max-width: 760px; color: var(--c-text-sub); }
.page-hero .hero-points { margin-top: 18px; }
.page-hero-actions { margin-top: 26px; }
.page-hero-actions .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.5; }
@media (min-width: 960px) { .page-hero { padding: calc(var(--header-h) + 48px) 0 64px; } }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 12px; color: var(--c-text-sub); margin-bottom: 22px; }
.breadcrumb li + li::before { content: "›"; margin: 0 8px; color: #a7b4c2; }
.breadcrumb a { color: var(--c-text-sub); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-accent-dark); text-decoration: underline; }

.page-section { padding-block: 56px; }
.page-section--tight { padding-block: 44px; }
@media (min-width: 960px) { .page-section { padding-block: 88px; } .page-section--tight { padding-block: 64px; } }
.page-cta { margin-block: 8px; }

.sub-heading { position: relative; margin-bottom: 22px; padding-left: 16px; font-size: clamp(19px, 4.6vw, 24px); font-weight: 700; line-height: 1.5; }
.sub-heading::before { content: ""; position: absolute; left: 0; top: .25em; bottom: .25em; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--c-accent), var(--c-green)); }

/* お悩みチェックリスト */
.check-list { display: grid; gap: 10px; }
@media (min-width: 768px) { .check-list { grid-template-columns: 1fr 1fr; } }
.check-list li {
  position: relative; padding: 14px 16px 14px 46px; border-radius: var(--radius-sm); font-size: 14.5px; line-height: 1.7;
  background: linear-gradient(140deg, var(--c-sky-2) 0%, #fff 100%); box-shadow: inset 0 0 0 1px var(--c-line);
}
.check-list li::before { content: ""; position: absolute; left: 16px; top: 16px; width: 18px; height: 18px; border-radius: 50%; background: var(--c-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.3l2.3 2.2 4.7-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* 本文（Markdownから生成） */
.prose { font-size: 15px; line-height: 2; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { position: relative; margin-top: 2.4em; padding: 0 0 12px; font-size: clamp(20px, 4.8vw, 25px); font-weight: 700; line-height: 1.5; border-bottom: 2px solid var(--c-line); }
.prose h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 72px; height: 2px; background: linear-gradient(90deg, var(--c-accent), var(--c-green)); }
.prose h3 { margin-top: 2em; font-size: 18px; font-weight: 700; line-height: 1.5; color: var(--c-accent-dark); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--c-accent); }
.prose strong { background: linear-gradient(transparent 62%, rgba(120, 191, 160, .3) 62%); }
.prose blockquote, .prose .note { margin-inline: 0; padding: 16px 18px; border-radius: 12px; background: var(--c-sky-2); font-size: 14px; color: var(--c-text-sub); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--c-line); text-align: left; }
.prose th { background: var(--c-sky-2); white-space: nowrap; }
.prose img { border-radius: var(--radius); }
@media (min-width: 960px) { .prose { font-size: 16px; } }

/* カード一覧（施工事例・コラム） */
.card-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card-link {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius);
  color: var(--c-text); text-decoration: none; background: #fff; box-shadow: var(--shadow-sm), 0 0 0 1px rgba(226, 238, 243, .8);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-photo { aspect-ratio: 4 / 3; }
.card-photo img { transition: transform 1.1s var(--ease); }
.card-link:hover .card-photo img { transform: scale(1.05); }
.card-body { display: grid; gap: 6px; padding: 18px 20px 22px; }
.card-cat { background: var(--c-sky); }
.card-title { font-size: 16.5px; font-weight: 700; line-height: 1.55; }
.card-desc { font-size: 13px; line-height: 1.8; color: var(--c-text-sub); }
.card-date { font-family: var(--font-en); font-size: 12.5px; letter-spacing: .08em; color: var(--c-accent-dark); }
.more-link { margin-top: 28px; text-align: center; }
.more-link a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.more-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* 施工事例の詳細 */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag-list li { padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--c-accent-dark); background: #fff; box-shadow: inset 0 0 0 1px var(--c-line); }
.work-hero-photo { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); margin-bottom: 36px; }
.work-hero-photo img { height: auto; max-height: 80svh; object-fit: contain; background: var(--c-sky-2); }
.work-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: -16px 0 36px; }
.work-gallery .photo { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.related-services { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.related-label { margin-bottom: 12px; font-size: 13px; font-weight: 700; color: var(--c-text-sub); }
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 14px; font-size: 13px; color: var(--c-text-sub); }

/* 工事メニューへのリンク */
.service-chips { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .service-chips { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .service-chips { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.service-chips a {
  display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 16px; border-radius: var(--radius);
  font-weight: 700; font-size: 14.5px; color: var(--c-text); text-decoration: none; background: #fff;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(226, 238, 243, .8); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-chips a:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--c-accent-dark); }
.service-chips .service-icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
.service-chips .service-icon svg { width: 28px; height: 28px; }
.service-chips--small { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* 対応工事一覧ページ：カード全体をリンクに */
.service-card-link { display: flex; flex-direction: column; gap: 10px; height: 100%; color: inherit; text-decoration: none; }
.service-card h2 { font-size: 15px; font-weight: 700; line-height: 1.5; }
@media (min-width: 960px) { .service-card h2 { font-size: 18px; } .service-card-link { gap: 14px; } }
.services .service-more, .service-card-link .service-more { color: var(--c-accent-dark); }

/* よくある質問 */
.faq { display: grid; gap: 12px; }
.faq-item { border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm), 0 0 0 1px var(--c-line); }
.faq-item summary {
  position: relative; list-style: none; cursor: pointer; padding: 18px 52px 18px 52px; font-weight: 700; line-height: 1.6;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; position: absolute; left: 18px; top: 16px; font-family: var(--font-en); font-size: 18px; color: var(--c-accent); }
.faq-item summary::after { content: ""; position: absolute; right: 22px; top: 26px; width: 9px; height: 9px; border-right: 2px solid var(--c-text-sub); border-bottom: 2px solid var(--c-text-sub); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.faq-a { position: relative; padding: 0 20px 20px 52px; font-size: 14.5px; color: var(--c-text-sub); }
.faq-a::before { content: "A"; position: absolute; left: 18px; top: -2px; font-family: var(--font-en); font-size: 18px; color: var(--c-green); }

/* 記事中の問い合わせ誘導 */
.prose .inline-cta, .inline-cta {
  display: grid; gap: 10px; justify-items: start; margin-top: 2.4em; padding: 24px 22px; border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--c-sky) 0%, var(--c-green-soft) 100%); box-shadow: inset 0 0 0 1px var(--c-line);
}
.inline-cta p { margin: 0; font-size: 14px; color: var(--c-text-sub); }
.inline-cta .inline-cta-title { font-size: 17px; font-weight: 700; color: var(--c-text); }
.inline-cta .btn { margin-top: 6px; text-decoration: none; }

/* トップページ：施工事例・物置エリアの追加ボタン */
.works-more { grid-auto-flow: row; }
@media (min-width: 600px) { .works-more { grid-template-columns: auto auto; justify-content: center; } .works-more p { grid-column: 1 / -1; } }
.storage-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (min-width: 960px) { .storage-links { grid-column: 1 / -1; justify-content: flex-start; } }

/* フッター：工事メニュー列 */
.footer-nav-title { margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--c-text-sub); }
@media (min-width: 960px) {
  .footer-inner:has(.footer-nav--sub) { grid-template-columns: 1fr auto auto; gap: 56px; }
  .footer-nav--sub ul { grid-template-columns: repeat(2, auto); gap: 4px 32px; }
}
