/* 案C 下層ページ（ABOUT・BUSINESS・RECRUIT・BLOG・記事） */

/* ---------- ページの頭（丸い写真＋色の泡） ---------- */
.ph {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  max-width: 1340px; margin: 0 auto; padding: 120px var(--gutter) 40px;
}
.ph::before { content: ""; position: absolute; z-index: -1; width: 280px; height: 280px; border-radius: 50%; background: var(--yellow-soft); left: -80px; top: 90px; }
.ph-text { position: relative; }
.ph-title { font-weight: 900; font-size: clamp(48px, 7vw, 104px); line-height: 1; letter-spacing: .04em; color: var(--ink); }
.ph-title::after { content: ""; display: block; width: 72px; height: 10px; border-radius: 5px; background: var(--pink); margin-top: 20px; }
.ph-desc { margin: 20px 0 0; font-weight: 700; font-size: clamp(16px, 1.6vw, 22px); color: var(--muted); }
.ph-img { aspect-ratio: 1 / .78; border-radius: 46% 54% 44% 56% / 52% 46% 54% 48%; overflow: hidden; box-shadow: 0 20px 60px rgba(92,193,238,.22); }
.ph-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- パンくず ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; padding: 0; font-size: 12px; font-weight: 700; }
.crumbs li { padding: 3px 12px; border-radius: 999px; background: #fff; color: var(--muted); }
.crumbs a:hover { color: var(--pink); }

/* ---------- ページ内の目次 ---------- */
.tabs { position: relative; z-index: 5; display: flex; justify-content: center; padding: 16px; }
.tabs ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 6px; background: #fff; border-radius: 999px; box-shadow: 0 6px 24px rgba(38,38,43,.08); max-width: 100%; overflow-x: auto; }
.tabs li:nth-child(3n+1) a:hover { background: var(--pink-soft); }
.tabs li:nth-child(3n+2) a:hover { background: var(--sky-soft); }
.tabs li:nth-child(3n) a:hover { background: var(--yellow-soft); }
.tabs a { display: block; padding: 8px 20px; border-radius: 999px; font-weight: 700; font-size: 13px; white-space: nowrap; transition: background-color .3s, transform .4s var(--bounce); }
.tabs a:hover { transform: translateY(-2px); }

/* ---------- 本文の区切り（色の箱） ---------- */
.sec { max-width: 1240px; margin: 48px auto 0; padding: clamp(36px, 5vw, 72px); border-radius: 40px; scroll-margin-top: 170px; }
.sec:nth-of-type(3n+1) { background: var(--sky-soft); }
.sec:nth-of-type(3n+2) { background: var(--pink-soft); }
.sec:nth-of-type(3n) { background: var(--yellow-soft); }
.sec.has-media { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.sec.is-table { background: #fff; box-shadow: 0 10px 40px rgba(38,38,43,.06); }
.sec-label { display: inline-block; margin: 0 0 16px; padding: 4px 16px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 12px; color: var(--muted); }
.sec-ttl { font-weight: 900; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.6; margin-bottom: 28px; word-break: auto-phrase; text-wrap: balance; }
.sec-img { position: relative; border-radius: 50%; overflow: hidden; aspect-ratio: 1; box-shadow: 0 0 0 12px rgba(255,255,255,.7); }
.sec-img img { width: 100%; height: 100%; object-fit: cover; }
.sec-img.has-cap { border-radius: 50% 50% 32px 32px; aspect-ratio: 4 / 4.4; }
.sec-img figcaption { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); width: max-content; max-width: 90%; padding: 10px 22px; border-radius: 999px; background: var(--yellow); font-weight: 900; font-size: 16px; }

.info { margin: 0; }
.info > div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 20px 4px; }
.info > div + div { border-top: 2px dashed #eee; }
.info dt { font-weight: 900; }
.info dt::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--sky); margin-right: 10px; }
.info > div:nth-child(3n+2) dt::before { background: var(--pink); }
.info > div:nth-child(3n) dt::before { background: var(--yellow); }
.info dd { margin: 0; color: var(--muted); }

/* ---------- 文章（旧サイトの本文） ---------- */
.prose { color: var(--muted); }
.prose p { margin: 0 0 1.4em; }
.prose h2 { color: var(--ink); font-weight: 900; font-size: 24px; line-height: 1.5; margin: 2.2em 0 .8em; padding: 14px 22px; border-radius: 18px; background: var(--sky-soft); }
.prose h3 { color: var(--ink); font-weight: 900; font-size: 19px; margin: 1.8em 0 .6em; }
.prose h3::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); margin-right: 10px; vertical-align: middle; }
.prose ul, .prose ol { margin: 0 0 1.6em; padding-left: 1.4em; }
.prose li { margin-bottom: .6em; }
.prose li::marker { color: var(--pink); font-weight: 900; }
.prose strong { color: var(--ink); }
.prose a:not(.btn) { color: #1d7aa5; text-decoration: underline wavy var(--yellow); text-underline-offset: 5px; }
.prose .btn-wrap { margin: 2em 0; }
.prose-img { margin: 2em 0; width: 100%; height: auto; border-radius: 24px; }

/* ---------- 一覧（事業・記事） ---------- */
.list { max-width: 1340px; margin: 0 auto; padding: 72px var(--gutter) 100px; }
.list-ttl { text-align: center; font-weight: 900; font-size: clamp(22px, 2.4vw, 32px); margin-bottom: 40px; }
.list-ttl::after { content: ""; display: block; width: 48px; height: 8px; border-radius: 4px; background: var(--yellow); margin: 14px auto 0; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards a { display: block; height: 100%; padding: 12px 12px 18px; border-radius: 32px; transition: transform .5s var(--bounce); }
.cards li:nth-child(3n+1) a { background: var(--pink-soft); }
.cards li:nth-child(3n+2) a { background: var(--sky-soft); }
.cards li:nth-child(3n) a { background: var(--yellow-soft); }
.cards a:hover { transform: translateY(-6px) rotate(-.6deg); }
.cards a[aria-current] { box-shadow: inset 0 0 0 3px var(--ink); }
.cards figure { aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; }
.cards img { width: 100%; height: 100%; object-fit: cover; }
.cards h3 { padding: 12px 8px 0; font-weight: 900; font-size: 16px; word-break: auto-phrase; }

.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.posts a { display: block; height: 100%; padding: 12px 12px 22px; border-radius: 32px; background: #fff; box-shadow: 0 10px 40px rgba(38,38,43,.06); transition: transform .5s var(--bounce); }
.posts a:hover { transform: translateY(-6px); }
.posts figure { aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; }
.posts img { width: 100%; height: 100%; object-fit: cover; }
.post-meta { display: flex; align-items: center; gap: 10px; margin: 14px 8px 6px; font-size: 12px; font-weight: 700; }
.post-meta time { padding: 2px 12px; border-radius: 999px; background: var(--sky-soft); color: #1d7aa5; }
.cat { padding: 2px 12px; border-radius: 999px; background: var(--pink-soft); color: #c2456a; }
.posts h3 { margin: 0 8px; font-weight: 900; font-size: 16px; line-height: 1.6; }
.posts p { margin: 8px 8px 0; font-size: 13px; line-height: 1.8; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 事業の詳しいページ ---------- */
.detail { max-width: 1100px; margin: 0 auto; padding: 120px var(--gutter) 40px; }
.detail-title { font-weight: 900; font-size: clamp(30px, 4vw, 52px); margin-bottom: 32px; }
.detail-title::after { content: ""; display: block; width: 72px; height: 10px; border-radius: 5px; background: var(--pink); margin-top: 16px; }
.detail-img { border-radius: 40px; overflow: hidden; aspect-ratio: 16 / 8; }
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-body { position: relative; max-width: 800px; margin: -64px auto 0; padding: clamp(32px, 5vw, 56px); border-radius: 36px; background: #fff; box-shadow: 0 10px 40px rgba(38,38,43,.08); }
.detail-catch { font-weight: 900; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.6; margin-bottom: 24px; color: var(--ink); word-break: auto-phrase; }
.detail-catch::before { content: ""; display: block; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); margin-bottom: 16px; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 800px; margin: 48px auto 0; }
.pn a { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 999px; background: #fff; box-shadow: 0 6px 24px rgba(38,38,43,.06); font-weight: 700; transition: transform .45s var(--bounce); }
.pn a:hover { transform: translateY(-3px) scale(1.02); }
.pn-next { flex-direction: row-reverse; text-align: right; grid-column: 2; padding: 10px 10px 10px 18px !important; }
.pn-img { flex: none; width: 56px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.pn-img img { width: 100%; height: 100%; object-fit: cover; }
.pn-prev .pn-t::before { content: "← "; color: var(--pink); }
.pn-next .pn-t::after { content: " →"; color: var(--pink); }

/* ---------- 記事 ---------- */
.post { max-width: 860px; margin: 0 auto; padding: 120px var(--gutter) 60px; }
.post > .post-meta { margin: 0 0 12px; }
.post-title { font-weight: 900; font-size: clamp(24px, 3vw, 38px); line-height: 1.5; margin-bottom: 32px; word-break: auto-phrase; }
.post-img { margin-bottom: 48px; border-radius: 32px; overflow: hidden; }
.post-img img { width: 100%; height: auto; }
.post > .prose { padding: clamp(28px, 5vw, 56px); border-radius: 36px; background: #fff; box-shadow: 0 10px 40px rgba(38,38,43,.06); }
.post-back { margin: 48px 0 0; text-align: center; }

.head-nav a[aria-current] { background: var(--pink-soft); }

@media (max-width: 899px) {
  .ph { grid-template-columns: 1fr; padding: 92px 20px 24px; gap: 24px; }
  .ph-img { order: -1; width: 92%; justify-self: center; }
  .ph::before { width: 160px; height: 160px; top: auto; bottom: 0; }
  .tabs { padding: 12px; }
  .tabs a { padding: 8px 14px; }
  .sec { margin: 24px 12px 0; border-radius: 28px; padding: 32px 20px; scroll-margin-top: 140px; }
  .sec.has-media { grid-template-columns: 1fr; gap: 28px; }
  .sec.has-media .sec-img { order: -1; width: 80%; justify-self: center; }
  .info > div { grid-template-columns: 1fr; gap: 2px; padding: 16px 0; }
  .list { padding: 56px 16px 80px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cards a { border-radius: 24px; padding: 10px 10px 14px; }
  .cards h3 { font-size: 13px; padding: 10px 4px 0; }
  .posts { grid-template-columns: 1fr; }
  .detail { padding: 92px 16px 24px; }
  .detail-img { border-radius: 28px; }
  .detail-body { margin-top: -32px; border-radius: 28px; padding: 28px 22px; }
  .pn { grid-template-columns: 1fr; }
  .pn-next { grid-column: auto; }
  .post { padding: 92px 16px 40px; }
  .post > .prose { padding: 24px 20px; border-radius: 28px; }
}

/* 記事の前後 */
.posts.is-small { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 899px) { .posts.is-small { grid-template-columns: 1fr 1fr; } .posts.is-small p { display: none; } }
.pn.is-post { max-width: none; }
.pn-t small { display: block; font-size: 11px; opacity: .7; letter-spacing: .1em; }
.pn.is-post .pn-prev .pn-t::before, .pn.is-post .pn-next .pn-t::after { content: none; }
.nf { text-align: center; padding-top: 180px; }
.nf-text { margin: 0; }
