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

/* ---------- ページの頭（写真の上に細い明朝の見出し） ---------- */
.ph { position: relative; padding: 76px var(--gutter) 0; }
.ph-img { height: min(56vh, 520px); overflow: hidden; }
.ph-img img { width: 100%; height: 100%; object-fit: cover; animation: settle 9s var(--ease) both; }
.ph-text {
  position: relative; width: min(560px, calc(100% - 32px)); margin: -96px 0 0 clamp(0px, 5vw, 80px);
  background: var(--bg); padding: 40px clamp(24px, 4vw, 56px) 8px;
}
.ph-title { font-family: var(--latin); font-weight: 400; font-size: clamp(44px, 6vw, 84px); line-height: 1; letter-spacing: .14em; }
.ph-desc { margin: 18px 0 0; font-family: var(--mincho); font-size: 17px; color: var(--muted); letter-spacing: .1em; }

/* ---------- パンくず ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 40px; padding: 0; font-size: 12px; color: var(--muted); }
.crumbs li + li::before { content: "／"; margin: 0 10px; color: var(--line); }
.crumbs a:hover { color: var(--accent); }

/* ---------- ページ内の目次 ---------- */
.tabs { position: relative; z-index: 5; margin: 64px auto 0; width: fit-content; max-width: calc(100% - 32px); }
.tabs ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 6px; background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow-x: auto; }
.tabs a { display: block; padding: 8px 22px; border-radius: 999px; font-size: 13px; white-space: nowrap; transition: background-color .4s var(--ease), color .4s var(--ease); }
.tabs a:hover { background: var(--ink); color: var(--white); }

/* ---------- 本文の区切り ---------- */
.sec { max-width: 1240px; margin: 0 auto; padding: 120px var(--gutter) 0; scroll-margin-top: 140px; }
.sec.has-media { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.sec-label { font-family: var(--latin); font-size: 14px; letter-spacing: .3em; color: var(--accent); margin: 0 0 20px; }
.sec-ttl { font-family: var(--mincho); font-weight: 500; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.7; letter-spacing: .08em; margin-bottom: 36px; word-break: auto-phrase; text-wrap: balance; }
.sec-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.sec-img img { width: 100%; height: 100%; object-fit: cover; }
.sec-img figcaption {
  word-break: auto-phrase; max-width: calc(100% - 24px); position: absolute; left: 0; bottom: 0; padding: 18px 28px; background: var(--white);
  font-family: var(--mincho); font-size: 18px; letter-spacing: .08em;
}
.sec.is-table .sec-in { max-width: 920px; margin: 0 auto; }

/* 表（企業情報・募集要項） */
.info { margin: 0; border-top: 1px solid var(--line); }
.info > div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 8px; border-bottom: 1px solid var(--line); }
.info dt { font-family: var(--mincho); color: var(--accent); letter-spacing: .1em; }
.info dd { margin: 0; }

/* ---------- 文章（旧サイトの本文） ---------- */
.prose { color: var(--muted); }
.prose p { margin: 0 0 1.4em; }
.prose h2 { font-family: var(--mincho); font-weight: 500; font-size: 24px; color: var(--ink); margin: 2.4em 0 .8em; padding-bottom: .5em; border-bottom: 1px solid var(--line); letter-spacing: .06em; }
.prose h3 { font-family: var(--mincho); font-weight: 500; font-size: 19px; color: var(--ink); margin: 2em 0 .6em; padding-left: 14px; border-left: 2px solid var(--accent); }
.prose ul, .prose ol { margin: 0 0 1.6em; padding-left: 1.4em; }
.prose li { margin-bottom: .6em; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose .btn-wrap { margin: 2em 0; }
.prose-img { margin: 2em 0; width: 100%; height: auto; border: 1px solid var(--line); }

/* ---------- 一覧（事業・記事） ---------- */
.list { max-width: 1240px; margin: 0 auto; padding: 100px var(--gutter) 140px; }
.list.is-sub { padding-top: 40px; border-top: 1px solid var(--line); margin-top: 40px; }
.list-ttl { font-family: var(--mincho); font-weight: 500; font-size: 22px; letter-spacing: .12em; text-align: center; margin-bottom: 56px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.cards figure { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.cards img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cards a:hover img { transform: scale(1.05); }
.cards h3 { font-family: var(--mincho); font-weight: 500; font-size: 17px; margin-top: 16px; letter-spacing: .08em; }
.cards a[aria-current] h3::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: 10px; vertical-align: middle; }

.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
.posts figure { aspect-ratio: 16 / 9; overflow: hidden; background: var(--mist); }
.posts img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.posts a:hover img { transform: scale(1.05); }
.post-meta { display: flex; align-items: center; gap: 14px; margin: 16px 0 8px; font-size: 12px; color: var(--muted); }
.post-meta time { font-family: var(--latin); font-size: 15px; letter-spacing: .08em; }
.cat { padding: 2px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; }
.posts h3 { font-family: var(--mincho); font-weight: 500; font-size: 17px; line-height: 1.7; letter-spacing: .04em; }
.posts p { margin: 10px 0 0; font-size: 13px; line-height: 1.9; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.posts.is-small h3 { font-size: 15px; }

/* ---------- 事業の詳しいページ ---------- */
.detail { max-width: 1100px; margin: 0 auto; padding: 132px var(--gutter) 80px; }
.detail-title { font-family: var(--mincho); font-weight: 500; font-size: clamp(30px, 3.6vw, 48px); letter-spacing: .1em; margin-bottom: 40px; }
.detail-img { aspect-ratio: 16 / 8; overflow: hidden; background: var(--mist); }
.detail-img img { width: 100%; height: 100%; object-fit: cover; animation: settle 9s var(--ease) both; }
.detail-body { max-width: 760px; margin: -72px auto 0; position: relative; background: var(--bg); padding: 56px clamp(24px, 4vw, 56px) 0; }
.detail-catch { font-family: var(--mincho); font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.7; letter-spacing: .08em; margin-bottom: 32px; word-break: auto-phrase; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin: 72px auto 0; }
.pn a { display: flex; align-items: center; gap: 16px; padding: 12px; border: 1px solid var(--line); background: var(--white); transition: border-color .4s var(--ease); }
.pn a:hover { border-color: var(--ink); }
.pn-next { flex-direction: row-reverse; text-align: right; grid-column: 2; }
.pn-img { flex: none; width: 72px; aspect-ratio: 1; overflow: hidden; }
.pn-img img { width: 100%; height: 100%; object-fit: cover; }
.pn-t { font-family: var(--mincho); font-size: 15px; }
.pn-prev .pn-t::before { content: "← "; color: var(--accent); }
.pn-next .pn-t::after { content: " →"; color: var(--accent); }

/* ---------- 記事 ---------- */
.post { max-width: 820px; margin: 0 auto; padding: 132px var(--gutter) 100px; }
.post-title { font-family: var(--mincho); font-weight: 500; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.6; letter-spacing: .06em; margin-bottom: 40px; word-break: auto-phrase; }
.post-img { margin-bottom: 56px; }
.post-img img { width: 100%; height: auto; border: 1px solid var(--line); }
.post-back { margin: 72px 0 0; text-align: center; }

/* 今いるメニューに印 */
.head-nav a[aria-current]::after { transform: scaleX(1); }

@media (max-width: 899px) {
  .ph { padding: 64px 0 0; }
  .ph-img { height: 40vh; }
  .ph-text { margin: -56px 16px 0; padding: 28px 24px 4px; }
  .ph-desc { font-size: 15px; }
  .tabs { margin-top: 40px; }
  .tabs a { padding: 8px 14px; }
  .sec { padding-top: 72px; scroll-margin-top: 130px; }
  .sec.has-media { grid-template-columns: 1fr; gap: 32px; }
  .info > div { grid-template-columns: 1fr; gap: 4px; padding: 18px 4px; }
  .list { padding: 72px 20px 88px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .cards h3 { font-size: 14px; }
  .posts { grid-template-columns: 1fr; gap: 40px; }
  .detail { padding: 96px 20px 56px; }
  .detail-body { margin-top: -40px; padding: 32px 20px 0; }
  .pn { grid-template-columns: 1fr; }
  .pn-next { grid-column: auto; }
  .post { padding: 96px 20px 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-img img, .detail-img img { animation: none; }
}

/* 記事の前後 */
.posts.is-small { grid-template-columns: repeat(4, 1fr); }
.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; }
@media (max-width: 899px) { .posts.is-small { grid-template-columns: 1fr 1fr; gap: 28px 14px; } .posts.is-small p { display: none; } }
.nf { text-align: center; padding-top: 180px; }
.nf-text { margin: 0; }
