/* =====================================================================
   下層ページ・記事・一覧（style → motion → bright → wide → sub の順で読み込む）
   ===================================================================== */
.narrow { max-width: 1160px; }

/* ---- 下層のページヘッダー ---- */
.sub-hero { position: relative; isolation: isolate; padding: 210px 0 84px; overflow: hidden; background: #eaf7f1; }
.sub-hero .bg { position: absolute; inset: 0; z-index: -2; }
.sub-hero .bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.4s var(--ease); }
.is-loaded .sub-hero .bg img { transform: scale(1); }
.sub-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.84) 40%, rgba(255,255,255,.2) 72%, rgba(255,255,255,0) 100%), linear-gradient(to top, rgba(255,255,255,.7), rgba(255,255,255,0) 40%); }
.sub-hero .en { font-size: 14px; display: inline-flex; align-items: center; gap: 10px; }
.sub-hero .en::before { content: ""; width: 28px; height: 2px; background: var(--c-accent); }
.sub-hero h1 { font-size: clamp(30px, 3.6vw, 58px); font-weight: 900; line-height: 1.35; margin-top: 14px; letter-spacing: .01em; max-width: 980px; }
.sub-hero h1 .line { display: block; overflow: hidden; }
.sub-hero h1 .line span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease) .5s; }
.is-loaded .sub-hero h1 .line span { transform: none; }
.sub-hero .lead { margin-top: 20px; max-width: 760px; font-weight: 500; opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease) 1s, transform 1s var(--ease) 1s; }
.is-loaded .sub-hero .lead { opacity: 1; transform: none; }
.crumb { border-bottom: 1px solid var(--c-line); background: #fff; font-size: 14px; }
.crumb ol { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; margin: 0; padding: 14px 0; color: var(--c-muted); }
.crumb li + li::before { content: "／"; margin-right: 10px; opacity: .5; }
.crumb a { color: var(--c-primary-deep); font-weight: 700; }

/* ---- 本文 ---- */
.page-body { padding: clamp(56px, 6vw, 110px) 0 clamp(64px, 7vw, 130px); }
.blk { padding: clamp(36px, 4vw, 64px) 0; border-bottom: 1px solid var(--c-line); }
.blk:first-child { padding-top: 0; }
.blk:last-child { border-bottom: 0; padding-bottom: 0; }
.blk > .sec-head { margin-bottom: 28px; }
.blk > .sec-head h2 { font-size: clamp(26px, 2.5vw, 40px); line-height: 1.5; }
.blk p { margin-top: 16px; }
.blk .sec-head + p { margin-top: 0; }
.blk h3 { font-size: clamp(20px, 1.6vw, 25px); margin-top: 44px; padding-left: 18px; position: relative; line-height: 1.6; }
.blk h3::before { content: ""; position: absolute; left: 0; top: .35em; bottom: .35em; width: 5px; border-radius: 3px; background: linear-gradient(var(--c-primary), var(--c-accent)); }
.blk h3 + p, .blk h3 + ul, .blk h3 + .tbl-wrap { margin-top: 14px; }
.note { font-size: 15px; color: var(--c-muted); margin-top: 12px; }
.fig-ph { margin: 28px 0 0; }
.fig-ph .ph { aspect-ratio: 16 / 7; border-radius: 18px; }
.map { margin-top: 24px; border-radius: 18px; overflow: hidden; border: 1px solid var(--c-line); }
.map iframe { width: 100%; height: 420px; border: 0; display: block; }

/* リスト */
.list-check { display: grid; gap: 10px; margin-top: 18px; }
.list-check li { position: relative; padding: 14px 18px 14px 52px; background: var(--c-bg-alt); border-radius: 14px; font-weight: 500; }
.list-check li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 22px; height: 22px; border-radius: 50%; background: var(--c-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.list-step { counter-reset: st; display: grid; gap: 12px; margin-top: 20px; list-style: none; padding: 0; }
.list-step li { counter-increment: st; position: relative; padding: 18px 22px 18px 84px; background: #fff; border: 1px solid var(--c-line); border-radius: 16px; font-weight: 500; transition: border-color .4s, transform .5s var(--ease), box-shadow .5s; }
.list-step li:hover { border-color: var(--c-primary); transform: translateX(6px); box-shadow: 0 14px 30px rgba(14,154,104,.1); }
.list-step li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 22px; top: 50%; transform: translateY(-50%); font-family: var(--font-en); font-weight: 800; font-size: 28px; color: var(--c-primary); line-height: 1; }
.list-step li::after { content: ""; position: absolute; left: 66px; top: 16px; bottom: 16px; width: 1px; background: var(--c-line); }

/* 表 */
.tbl-wrap { margin-top: 22px; overflow-x: auto; border-radius: 16px; border: 1px solid var(--c-line); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: 17px; min-width: 560px; }
.tbl th, .tbl td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line); line-height: 1.75; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.tbl thead th { background: var(--c-primary); color: #fff; font-weight: 700; white-space: nowrap; }
.tbl tbody th { background: var(--c-primary-soft); font-weight: 700; width: 28%; color: var(--c-primary-deep); }
.tbl tbody tr { transition: background .3s; }
.tbl tbody tr:hover { background: #f7fcf9; }
.tbl.dl { min-width: 0; }

/* ボタン行 */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn-row .btn-tel { background: #fff; border-color: var(--c-primary); color: var(--c-primary-deep); font-family: var(--font-en); font-size: 22px; font-weight: 800; }
.btn-row .btn-tel small { font-family: var(--font-sans); font-size: 13px; font-weight: 500; margin-left: 8px; }

/* よくある質問 */
.qa { margin-top: 14px; border: 1px solid var(--c-line); border-radius: 16px; background: #fff; overflow: hidden; transition: border-color .4s, box-shadow .4s; }
.qa[open] { border-color: var(--c-primary); box-shadow: 0 14px 30px rgba(14,154,104,.1); }
.qa summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 70px; position: relative; font-weight: 700; font-size: 19px; line-height: 1.6; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "Q"; position: absolute; left: 22px; top: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--c-primary); color: #fff; font-family: var(--font-en); font-weight: 800; display: grid; place-items: center; font-size: 17px; }
.qa summary::after { content: ""; position: absolute; right: 26px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--c-primary); border-bottom: 2px solid var(--c-primary); transform: translateY(-70%) rotate(45deg); transition: transform .4s var(--ease); }
.qa[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.qa .a { padding: 0 28px 24px 70px; position: relative; }
.qa .a::before { content: "A"; position: absolute; left: 22px; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--c-accent); color: var(--c-ink); font-family: var(--font-en); font-weight: 800; display: grid; place-items: center; font-size: 17px; }
.qa .a p { margin-top: 0; }

/* 用語集 */
.gloss-nav { display: flex; flex-wrap: wrap; gap: 8px; position: sticky; top: 84px; z-index: 5; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); padding: 12px; border-radius: 16px; border: 1px solid var(--c-line); margin-bottom: 20px; }
.gloss-nav a { padding: 8px 18px; border-radius: 999px; background: var(--c-primary-soft); color: var(--c-primary-deep); font-weight: 700; font-size: 16px; transition: background .3s, color .3s; }
.gloss-nav a:hover { background: var(--c-primary); color: #fff; }
.gloss dt { font-weight: 900; font-size: 21px; margin-top: 30px; padding-top: 24px; border-top: 1px dashed var(--c-line); color: var(--c-primary-deep); }
.gloss dt:first-child { border-top: 0; margin-top: 0; }
.gloss dd { margin: 8px 0 0; }

/* フォーム（見た目のみ） */
.form { margin-top: 26px; background: var(--c-bg-alt); border-radius: 22px; padding: clamp(22px, 3vw, 44px); display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
.form label.l { font-weight: 700; padding-top: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.form .req, .form .opt { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--c-primary); color: #fff; }
.form .opt { background: #fff; color: var(--c-muted); border: 1px solid var(--c-line); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea { width: 100%; font: inherit; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--c-line); background: #fff; transition: border-color .3s, box-shadow .3s; }
.form textarea { min-height: 150px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(14,154,104,.14); }
.form .choices { display: flex; flex-wrap: wrap; gap: 8px 10px; padding-top: 6px; }
.form .choices label { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--c-line); border-radius: 999px; padding: 9px 16px; cursor: pointer; font-size: 16px; transition: border-color .3s, background .3s; }
.form .choices label:hover { border-color: var(--c-primary); }
.form .choices input { accent-color: var(--c-primary); width: 18px; height: 18px; }
.form .submit { text-align: center; margin-top: 8px; }
.form .submit .btn { font-size: 20px; padding: 20px 56px; }

/* 関連ページ */
.related { background: var(--c-bg-alt); padding: clamp(56px, 6vw, 100px) 0; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.related-grid a { background: #fff; border: 1px solid var(--c-line); border-radius: 18px; padding: 26px 24px; font-weight: 700; font-size: 18px; line-height: 1.6; display: flex; justify-content: space-between; gap: 14px; align-items: center; transition: transform .5s var(--ease), box-shadow .5s, border-color .4s, background .4s, color .4s; }
.related-grid a:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(14,154,104,.14); background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.related-grid a .ar { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; }
.related-grid a .ar::before { content: ""; width: 8px; height: 8px; border-right: 2px solid; border-top: 2px solid; transform: rotate(45deg) translate(-1px, 1px); }
.related-grid a.is-current { background: var(--c-primary-soft); border-color: var(--c-primary); color: var(--c-primary-deep); pointer-events: none; }

/* ---- サービス一覧（2階層の索引） ---- */
.idx-group { margin-top: 56px; }
.idx-group:first-child { margin-top: 0; }
.idx-group > h2 { font-size: clamp(24px, 2.2vw, 34px); display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.idx-group > h2 .en { font-size: 13px; }

/* ---- 記事一覧 ---- */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.cat-tabs a { padding: 11px 22px; border-radius: 999px; border: 1.5px solid var(--c-line); font-weight: 700; font-size: 16px; background: #fff; transition: all .3s; }
.cat-tabs a:hover, .cat-tabs a.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.post-list { display: grid; gap: 0; }
.post-list a { display: grid; grid-template-columns: 320px 1fr; gap: 36px; padding: 30px 0; border-bottom: 1px solid var(--c-line); align-items: center; }
.post-list a:first-child { border-top: 1px solid var(--c-line); }
.post-list .ph { aspect-ratio: 16 / 10; border-radius: 16px; }
.post-list .meta { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--c-muted); }
.post-list .meta .cat { background: var(--c-primary-soft); color: var(--c-primary-deep); font-weight: 700; padding: 3px 14px; border-radius: 999px; }
.post-list h2 { font-size: clamp(20px, 1.7vw, 26px); line-height: 1.6; margin-top: 10px; transition: color .3s; }
.post-list a:hover h2 { color: var(--c-primary); }
.post-list .ex { color: var(--c-muted); margin-top: 8px; font-size: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; font-family: var(--font-en); font-weight: 800; }
.pager .page-numbers { min-width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--c-line); padding: 0 8px; transition: all .3s; }
.pager .page-numbers.current, .pager .page-numbers:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.news-rows a { display: grid; grid-template-columns: 130px 120px 1fr; gap: 18px; padding: 24px 8px; border-bottom: 1px solid var(--c-line); align-items: baseline; transition: background .3s, padding .4s var(--ease); }
.news-rows a:hover { background: var(--c-bg-alt); padding-left: 20px; }
.news-rows time { font-family: var(--font-en); font-weight: 700; color: var(--c-muted); font-size: 15px; }
.news-rows .cat { font-size: 13px; font-weight: 700; color: var(--c-primary-deep); background: var(--c-primary-soft); border-radius: 999px; padding: 3px 12px; text-align: center; }

/* ---- 記事詳細 ---- */
.article-head { padding: 200px 0 0; background: linear-gradient(to bottom, #eaf7f1, #fff); }
.article-head .meta { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--c-muted); }
.article-head .meta .cat { background: var(--c-primary); color: #fff; font-weight: 700; padding: 4px 16px; border-radius: 999px; }
.article-head h1 { font-size: clamp(28px, 3vw, 46px); font-weight: 900; line-height: 1.5; margin-top: 18px; }
.article-head .eye { margin-top: 36px; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 8; position: relative; }
.article-head .eye img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article { padding: 48px 0 clamp(64px, 7vw, 120px); }
.article .lead-box { font-size: 20px; font-weight: 500; line-height: 2; padding: 28px 32px; background: var(--c-bg-alt); border-radius: 18px; border-left: 6px solid var(--c-primary); }
.toc { margin: 36px 0 0; border: 1px solid var(--c-line); border-radius: 18px; padding: 26px 32px; background: #fff; }
.toc b { font-family: var(--font-en); letter-spacing: .14em; color: var(--c-primary); font-size: 14px; }
.toc ol { margin: 12px 0 0; padding-left: 1.4em; display: grid; gap: 6px; }
.toc a { font-weight: 700; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.toc a:hover { color: var(--c-primary); border-color: currentColor; }
.article .blk { border-bottom: 0; padding: 28px 0 0; }
.article .blk > .sec-head h2 { background: var(--c-primary-soft); padding: 16px 24px; border-radius: 14px; font-size: clamp(23px, 2vw, 31px); }
.article .blk > .sec-head .en { display: none; }
.art-img { margin: 30px 0 0; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; position: relative; }
.art-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-pre { margin-top: 22px; background: #fff; border: 1.5px dashed var(--c-primary); border-radius: 16px; padding: 28px 32px; white-space: pre-wrap; font-family: "Noto Serif JP", serif; font-size: 17px; line-height: 2; }
.art-cta { margin-top: 36px; background: linear-gradient(135deg, var(--c-primary) 0%, #19b57e 100%); border-radius: 22px; padding: 36px; color: #fff; text-align: center; }
.art-cta p { margin: 0 0 18px; font-weight: 700; font-size: 20px; }
.art-cta .btn { background: #fff; color: var(--c-primary-deep); font-size: 19px; }
.art-cta .btn .ar { background: var(--c-primary); }
.art-cta .btn .ar::before { color: #fff; }
.author { margin-top: 56px; display: grid; grid-template-columns: 84px 1fr; gap: 22px; align-items: center; padding: 28px; border-radius: 18px; background: var(--c-bg-alt); }
.author img { width: 84px; height: 84px; object-fit: contain; }
.author b { display: block; font-size: 19px; }
.author p { margin: 4px 0 0; font-size: 16px; color: var(--c-muted); }

@media (max-width: 1100px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .sub-hero { padding: 130px 0 56px; }
  .sub-hero::before { background: linear-gradient(to bottom, rgba(255,255,255,.93), rgba(255,255,255,.8)); }
  .article-head { padding-top: 120px; }
  .form .row { grid-template-columns: 1fr; gap: 8px; }
  .form label.l { padding-top: 0; }
  .post-list a { grid-template-columns: 130px 1fr; gap: 16px; padding: 20px 0; }
  .post-list .ex { display: none; }
  .news-rows a { grid-template-columns: 1fr; gap: 6px; }
  .news-rows .cat { justify-self: start; }
  .qa summary { padding: 18px 48px 18px 60px; font-size: 17px; }
  .qa summary::before, .qa .a::before { left: 14px; }
  .qa .a { padding: 0 18px 20px 60px; }
  .list-step li { padding: 16px 16px 16px 66px; }
  .list-step li::before { left: 14px; font-size: 24px; }
  .list-step li::after { left: 52px; }
  .tbl { font-size: 15px; }
  .tbl th, .tbl td { padding: 12px 14px; }
  .gloss-nav { top: 64px; }
}
@media (max-width: 560px) { .related-grid { grid-template-columns: 1fr; } .map iframe { height: 300px; } }

.lbl { font-weight: 900; color: var(--c-primary-deep); margin-top: 26px !important; }
.lbl + p { margin-top: 4px !important; }

.tel-big a { font-family: var(--font-en); font-weight: 800; font-size: clamp(34px, 3.4vw, 52px); color: var(--c-primary); letter-spacing: .02em; line-height: 1.2; }

@media (max-width: 860px) {
  .btn { white-space: normal; text-align: left; line-height: 1.5; }
  .btn-row .btn, .art-cta .btn { width: 100%; justify-content: space-between; font-size: 16px; padding: 16px 20px; }
  .art-cta { padding: 24px 18px; }
  .art-cta p { font-size: 17px; }
  .art-pre { padding: 18px; font-size: 15px; }
  .article .lead-box { font-size: 17px; padding: 20px; }
}
