/* =========================================================
   REBOOT CAMP — cebu resort edition / journal & article
   ========================================================= */

/* ---------------- Journal hero ---------------- */
.media-hero { padding: clamp(150px, 22vh, 240px) 0 clamp(40px, 6vh, 72px); position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(120,191,214,0.16), rgba(247,243,234,0) 70%); }
.media-hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 900; margin-top: 20px; }
.media-hero .jp-sub { margin-top: 22px; color: var(--paper-dim); max-width: 620px; font-size: var(--fs-lead); line-height: 1.9; }

/* ---------------- Category filter ---------------- */
.filter { display: flex; flex-wrap: wrap; gap: 10px; padding: 26px 0 0; }
.chip { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; font-weight: 700; padding: 10px 22px; border-radius: 9999px; border: 1px solid var(--line-2); color: var(--paper-dim); transition: all .4s var(--ease); }
.chip:hover { border-color: var(--line-sea); color: var(--sea-deep); }
.chip.is-active { background: var(--sea); border-color: var(--sea); color: #fff; }

/* ---------------- Article grid ---------------- */
.articles { padding: clamp(40px, 6vh, 72px) 0 var(--sec-y); }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 38px); }
@media (max-width: 980px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .article-grid { grid-template-columns: 1fr; } }
.article-card { display: flex; flex-direction: column; background: var(--ink-card); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; box-shadow: 0 18px 50px -32px rgba(16,53,63,0.35); transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .5s var(--ease); }
.article-card:hover { transform: translateY(-5px); border-color: var(--line-sea); box-shadow: 0 30px 60px -30px rgba(16,53,63,0.42); }
.card-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.article-card:hover .card-thumb img { transform: scale(1.05); }
.card-thumb .ph { position: absolute; inset: 0; }
.card-cat { position: absolute; left: 14px; top: 14px; z-index: 1; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; font-weight: 700; padding: 7px 14px; border-radius: 9999px; background: rgba(252,250,243,0.9); color: var(--sea-deep); backdrop-filter: blur(6px); }
.card-body { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1; }
.card-body h3 { font-family: var(--f-jp); font-weight: 700; font-size: 1.04rem; line-height: 1.6; color: var(--paper); }
.card-body p { font-size: .88rem; line-height: 1.85; color: var(--paper-dim); flex: 1; }
.card-date { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; color: var(--paper-faint); }

/* サムネのプレースホルダ（WPではアイキャッチが入る） */
.ph-a { background: linear-gradient(150deg, #78BFD6, #12A597 78%); }
.ph-b { background: linear-gradient(150deg, #E7A755, #D98A32 76%); }
.ph-c { background: linear-gradient(150deg, #3FC0B2, #0B7C72 78%); }
.ph-d { background: linear-gradient(150deg, #A9D8E5, #78BFD6 74%); }

/* ---------------- Pagination ---------------- */
.pager { display: flex; justify-content: center; gap: 10px; margin-top: clamp(44px, 7vh, 72px); }
.pager a, .pager span { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 8px; border-radius: 50%; border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: .8rem; color: var(--paper-dim); transition: all .4s var(--ease); }
.pager a:hover { border-color: var(--sea); color: var(--sea-deep); }
.pager .is-active { background: var(--sea); border-color: var(--sea); color: #fff; }

/* ---------------- Article detail ---------------- */
.a-hero { padding: clamp(140px, 20vh, 220px) 0 0; background: linear-gradient(180deg, rgba(120,191,214,0.14), rgba(247,243,234,0) 68%); }
.breadcrumb { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; color: var(--paper-faint); margin-bottom: 20px; }
.breadcrumb a { color: var(--sea-deep); }
.a-cat { display: inline-block; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; font-weight: 700; padding: 8px 16px; border-radius: 9999px; background: var(--sea); color: #fff; }
.a-hero h1 { margin: 20px 0 18px; font-weight: 900; font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.5; color: var(--paper); max-width: 900px; }
.a-meta { display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; color: var(--paper-faint); padding-bottom: 30px; }
.a-cover { aspect-ratio: 21/9; overflow: hidden; border-radius: var(--r-2); box-shadow: 0 30px 70px -36px rgba(16,53,63,0.5); }
.a-cover img { width: 100%; height: 112%; object-fit: cover; }

/* layout: 本文 + 目次 */
.a-body { display: grid; grid-template-columns: 1fr; gap: 48px; padding: clamp(48px, 8vh, 84px) 0 var(--sec-y); }
@media (min-width: 1020px) { .a-body { grid-template-columns: 1fr 280px; } }

/* prose */
.prose { max-width: var(--readw); }
.prose > p { font-size: 1.02rem; line-height: 2.05; color: rgba(16,53,63,0.86); margin-bottom: 24px; }
.prose .lead { font-size: 1.12rem; line-height: 2.05; font-weight: 500; color: var(--paper); margin-bottom: 42px; }
.prose h2 { position: relative; margin: 58px 0 24px; padding-left: 18px; font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 900; line-height: 1.5; color: var(--paper); }
.prose h2::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 5px; border-radius: 3px; background: var(--sea); }
.prose h3 { margin: 36px 0 14px; font-size: 1.14rem; font-weight: 700; color: var(--sea-deep); }
.prose ul { margin: 0 0 26px; padding: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: 12px; font-size: 1rem; line-height: 1.95; color: rgba(16,53,63,0.86); }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .78em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.prose table { width: 100%; border-collapse: collapse; margin: 10px 0 30px; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--line-2); padding: 13px 16px; text-align: left; }
.prose th { background: var(--sea-deep); color: #fff; font-weight: 700; }
.prose tr:nth-child(even) td { background: var(--sand-soft); }
.point-box { margin: 30px 0; padding: 24px 26px; background: var(--sand-soft); border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; }
.point-box strong { display: block; color: var(--paper); font-weight: 900; margin-bottom: 8px; }
.point-box p { margin: 0; font-size: .95rem; line-height: 1.9; color: rgba(16,53,63,0.85); }

/* 記事内CTA */
.cta-box { margin: 52px 0 0; padding: clamp(30px, 4vw, 44px); border-radius: var(--r-2); background: linear-gradient(135deg, var(--sea-deep), var(--ink-deep)); color: var(--on-deep); text-align: center; }
.cta-box h3 { font-size: 1.3rem; font-weight: 900; margin-bottom: 12px; color: #fff; }
.cta-box p { font-size: .92rem; color: var(--on-deep-dim); margin-bottom: 24px; }

/* 目次 */
.toc { align-self: start; position: sticky; top: 110px; padding: 26px; background: var(--sand-soft); border-radius: var(--r-2); }
.toc h4 { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .24em; color: var(--sea-deep); margin-bottom: 16px; text-transform: uppercase; }
.toc ol { list-style: none; counter-reset: t; margin: 0; padding: 0; }
.toc li { counter-increment: t; margin-bottom: 13px; font-size: .86rem; line-height: 1.65; color: rgba(16,53,63,0.8); padding-left: 28px; position: relative; }
.toc li::before { content: counter(t, decimal-leading-zero); position: absolute; left: 0; font-family: var(--f-mono); font-weight: 700; color: var(--gold); font-size: .72rem; top: .18em; }

/* 関連記事 */
.related { background: var(--sand-soft); padding: var(--sec-y) 0; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 780px) { .rel-grid { grid-template-columns: 1fr; } }
.rel-card { background: var(--ink-card); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.rel-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(16,53,63,0.4); }
.rel-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.rel-card .b { padding: 18px 20px; }
.rel-card h4 { font-family: var(--f-jp); font-size: .94rem; font-weight: 700; line-height: 1.6; color: var(--paper); }
