/*
 * 会社概要ページ（2026-10-19）
 * 冒頭に「横に流れる年表」を置き、その下に 経営理念／代表メッセージ／会社概要／アクセス を並べる。
 * 年表は、縦にスクロールすると横に流れ、中央に来たカードが大きく強調され、年号が数え上げられ、レールが色づく。
 */
body.page-template-page-company { background: var(--sh-bg, #f1f2f3); }
body.page-template-page-company .site-main { max-width: none !important; width: 100% !important; padding-inline: 0 !important; }   /* 本文領域の幅の上限（1140px）を外す */
.cp { color: var(--sh-ink, #003040); font-weight: 600; overflow-x: clip; }
.cp-hero { max-width: 1240px; width: calc(100% - 185px); margin: 0 auto; padding: 150px 0 12px; }
.cp-crumb ol { display: flex; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; font-size: 13px; line-height: 20px; color: #5b6e77; }
.cp-crumb li + li::before { content: "›"; margin-right: 10px; }
.cp-crumb a { color: inherit; text-decoration: none; }
.cp-crumb a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cp-title { margin: 0 0 32px; line-height: 22.4px; font-weight: 400; }
.cp-title .jp { display: block; margin: 0 0 20px; font-size: 16px; font-weight: 600; }
.cp-title .en { display: block; font-size: clamp(48px, 7.5vw, 96px); line-height: 1.05; font-weight: 700; letter-spacing: .02em; }
.cp-lead { margin: 0; max-width: 640px; font-size: 16px; line-height: 34px; letter-spacing: .1em; }

/* =============================================================
 * 横に流れる年表
 * ============================================================= */
.cp-hs { position: relative; width: 100vw; margin: 0 0 120px calc(50% - 50vw); }
.cp-hs__stick { position: sticky; top: 112px; display: flex; flex-direction: column; height: min(640px, calc(100vh - 132px)); overflow: hidden; }   /* 見出し（COMPANY）も一緒に、ヘッダーの下で固定する */
.cp-hs__title { flex: none; margin: 0 0 30px; padding: 0 calc((100vw - 1240px) / 2); line-height: 1; }
.cp-hs__title .jp { margin: 0 0 6px; }
.cp-hs__title .en { font-size: clamp(44px, 5.2vw, 72px); }
.cp-hs__stage { position: relative; flex: 1; min-height: 0; }
.cp-hs__bg { position: absolute; inset: 0; pointer-events: none; }
.cp-hs__blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.cp-hs__blob--a { left: 8%; top: 36%; width: 360px; height: 360px; background: radial-gradient(circle, rgba(5, 153, 217, .22), rgba(5, 153, 217, 0) 70%); }
.cp-hs__blob--b { left: 58%; top: 10%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(233, 106, 143, .22), rgba(233, 106, 143, 0) 70%); }
.cp-hs__blob--c { left: 92%; top: 40%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(123, 97, 255, .2), rgba(123, 97, 255, 0) 70%); }
.cp-hs__track { position: relative; display: flex; align-items: stretch; gap: 32px; height: calc(100% - 20px); padding: 0 calc((100vw - 1240px) / 2); will-change: transform; }
.cp-hs__rail { position: absolute; left: 0; top: 118px; height: 3px; width: 100%; background: rgba(0, 48, 64, .14); border-radius: 3px; }
.cp-hs__fill { position: absolute; left: 0; top: 118px; height: 3px; width: 0; border-radius: 3px; background: linear-gradient(90deg, #e96a8f, #7b61ff, #0599d9); }
.cp-hs__fill::after { content: ""; position: absolute; right: -9px; top: -8px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(5, 153, 217, .35), 0 0 22px 6px rgba(5, 153, 217, .55); animation: cp-pulse 1.6s ease-in-out infinite; }
@keyframes cp-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.cp-hs__intro { position: relative; flex: none; width: 460px; padding-top: 24px; }
.cp-hs__intro h2 { margin: 0 0 76px;   /* 見出しは元の位置のまま、説明文だけを横線（レール）より下へ */
	 font-size: clamp(32px, 4vw, 48px); line-height: 1.4; font-weight: 700; letter-spacing: .04em; }
.cp-hs__intro p { margin: 0; font-size: 16px; line-height: 2; letter-spacing: .08em; }
.cp-hs__arrow { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 14px; font-weight: 700; letter-spacing: .14em; color: var(--sh-blue, #0599d9); }
.cp-hs__arrow::after { content: ""; width: 56px; height: 2px; background: currentColor; transform-origin: 0 50%; animation: cp-nudge 1.6s ease-in-out infinite; }
@keyframes cp-nudge { 0%, 100% { transform: scaleX(.5); } 50% { transform: scaleX(1); } }
.cp-hs__item { position: relative; flex: none; width: 420px; padding-top: 150px; }
.cp-hs__item::before { content: ""; position: absolute; left: 0; top: 108px; width: 23px; height: 23px; box-sizing: border-box; border: 4px solid #fff; border-radius: 50%; background: #c9d6e3; box-shadow: 0 0 0 3px rgba(0, 48, 64, .12); transition: background .4s, box-shadow .4s, transform .4s; }
.cp-hs__item.is-passed::before { background: var(--sh-blue, #0599d9); box-shadow: 0 0 0 3px rgba(5, 153, 217, .25); }
.cp-hs__item.is-active::before { transform: scale(1.5); box-shadow: 0 0 0 6px rgba(5, 153, 217, .25), 0 0 24px 4px rgba(5, 153, 217, .5); }
.cp-hs__year { position: absolute; left: 0; top: -6px; margin: 0; font-size: 88px; line-height: 1; font-weight: 700; letter-spacing: -2px; color: transparent; -webkit-text-stroke: 1.5px var(--sh-blue, #0599d9); white-space: nowrap; background: linear-gradient(90deg, #e96a8f, #7b61ff, #0599d9) 0 0 / 0% 100% no-repeat; -webkit-background-clip: text; background-clip: text; transition: background-size .9s cubic-bezier(.2, .7, .2, 1), -webkit-text-stroke-color .5s; font-variant-numeric: tabular-nums; }
.cp-hs__item.is-active .cp-hs__year { background-size: 100% 100%; -webkit-text-stroke-color: transparent; }
.cp-hs__year small { font-size: 28px; letter-spacing: 0; margin-left: 4px; }
.cp-hs__card { height: calc(100% - 150px); padding: 32px 32px 36px; border-radius: 28px 80px 28px 28px; background: #fff; box-shadow: 0 12px 36px rgba(0, 48, 64, .08); font-size: 18px; line-height: 1.9; letter-spacing: .05em; transform-origin: 0 0; will-change: transform; transition: box-shadow .5s; }
.cp-hs__item.is-active .cp-hs__card { box-shadow: 0 26px 56px rgba(5, 153, 217, .22); }
.cp-hs__card b { display: block; margin-bottom: 10px; font-size: 13px; letter-spacing: .24em; color: var(--sh-pink, #e96a8f); }
.cp-hs__end { position: relative; flex: none; width: 520px; display: flex; flex-direction: column; justify-content: center; padding: 40px; overflow: hidden; border-radius: 40px 120px 40px 120px; color: #fff; background: linear-gradient(135deg, #0599d9, #7b61ff 50%, #e96a8f, #0599d9) 0 0 / 300% 300%; animation: cp-grad 8s ease-in-out infinite alternate; }
@keyframes cp-grad { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
.cp-hs__end h3 { position: relative; margin: 0 0 16px; font-size: 36px; line-height: 1.4; font-weight: 700; letter-spacing: .05em; }
.cp-hs__end p { position: relative; margin: 0; font-size: 16px; line-height: 2; letter-spacing: .06em; }
.cp-hs__end .sp { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .85); animation: cp-spark 3.4s ease-in-out infinite; }
.cp-hs__end .sp:nth-of-type(1) { left: 14%; top: 18%; }
.cp-hs__end .sp:nth-of-type(2) { right: 18%; top: 30%; width: 6px; height: 6px; animation-delay: .8s; }
.cp-hs__end .sp:nth-of-type(3) { right: 12%; bottom: 16%; animation-delay: 1.6s; }
.cp-hs__end .sp:nth-of-type(4) { left: 26%; bottom: 12%; width: 6px; height: 6px; animation-delay: 2.2s; }
@keyframes cp-spark { 0%, 100% { opacity: 0; transform: translateY(8px) scale(.5); } 50% { opacity: 1; transform: translateY(-12px) scale(1.2); } }
.cp-hs__bar { position: absolute; left: calc((100vw - 1240px) / 2); right: calc((100vw - 1240px) / 2); bottom: 0; height: 4px; border-radius: 4px; background: rgba(0, 48, 64, .12); overflow: hidden; }
.cp-hs__bar i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--sh-grad, linear-gradient(45deg, #e96a8f, #009ada)); }

/* =============================================================
 * 経営理念・代表メッセージ・会社概要・アクセス
 * ============================================================= */
.cp-body { display: flex; gap: 64px; max-width: 1240px; width: calc(100% - 185px); margin: 0 auto; padding-bottom: 160px; }
.cp-main { flex: 1; min-width: 0; }
.cp-toc { flex: none; width: 260px; }
.cp-toc__list { position: sticky; top: 140px; margin: 0; padding: 0 0 0 28px; list-style: none; --p: 0; }
.cp-toc__list::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: rgba(0, 48, 64, .12); }
.cp-toc__list::after { content: ""; position: absolute; left: 0; top: 4px; width: 3px; border-radius: 3px; background: var(--sh-grad, linear-gradient(45deg, #e96a8f, #009ada)); height: calc((100% - 8px) * var(--p)); transition: height .2s linear; }
.cp-toc a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; color: inherit; text-decoration: none; opacity: .35; transition: opacity .4s, transform .4s; }
.cp-toc a:hover { opacity: .7; }
.cp-toc a.is-active { opacity: 1; transform: translateX(8px); }
.cp-toc .n { font-size: 16px; font-weight: 700; color: var(--sh-blue, #0599d9); }
.cp-toc .t { font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: .06em; }
.cp-toc small { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; letter-spacing: .18em; color: #5b6e77; }
.cp-sec { padding: 0 0 120px; scroll-margin-top: 120px; }
.cp-sec:last-child { padding-bottom: 0; }
.cp-h { margin: 0 0 48px; line-height: 22.4px; font-weight: 400; }
.cp-h .en { display: block; font-size: 14px; font-weight: 700; letter-spacing: .24em; color: var(--sh-blue, #0599d9); text-transform: uppercase; margin-bottom: 14px; }
.cp-h .jp { display: block; font-size: clamp(32px, 4vw, 48px); line-height: 1.3; font-weight: 700; letter-spacing: .04em; }
.cp-tag { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .3em; color: var(--sh-pink, #e96a8f); }
.cp-mission { margin: 0 0 64px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.7; letter-spacing: .06em; font-weight: 700; }
.cp-mission .ch { color: rgba(0, 48, 64, .18); transition: color .35s ease; }
.cp-mission .ch.is-on { color: var(--sh-ink, #003040); }
.cp-vision { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.cp-vision li { display: flex; align-items: center; gap: 24px; padding: 28px 32px; border-radius: 24px; background: #fff; box-shadow: 0 10px 30px rgba(0, 48, 64, .06); font-size: 18px; line-height: 1.7; letter-spacing: .06em; }
.cp-vision b { flex: none; font-size: 36px; line-height: 1; font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px var(--sh-blue, #0599d9); }
.cp-msg { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; max-width: none; padding: 32px; border-radius: 28px; background: #fff; box-shadow: 0 10px 30px rgba(0, 48, 64, .06); }
.cp-msg__photo { overflow: hidden; border-radius: 20px 80px 20px 80px; aspect-ratio: 3 / 4; background: var(--sh-ph, #e3e8eb); }
.cp-msg__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.cp-msg__txt .lead { margin: 4px 0 24px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.6; letter-spacing: .05em; font-weight: 700; color: var(--sh-ink, #003040); }
.cp-msg__txt p { margin: 0 0 16px; font-size: 15px; line-height: 2; letter-spacing: .06em; }
.cp-msg__txt .sign { margin: 24px 0 0; font-size: 14px; color: #5b6e77; }
.cp-dl { margin: 0; border-top: 1px solid rgba(0, 48, 64, .18); }
.cp-dl > div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 24px 8px; border-bottom: 1px solid rgba(0, 48, 64, .18); transition: background .3s; }
.cp-dl > div:hover { background: rgba(255, 255, 255, .7); }
.cp-dl dt { font-size: 15px; font-weight: 700; letter-spacing: .08em; color: var(--sh-blue, #0599d9); }
.cp-dl dd { margin: 0; font-size: 16px; line-height: 1.9; letter-spacing: .06em; }
.cp-addr { margin: 0 0 24px; font-size: 18px; line-height: 1.8; letter-spacing: .06em; }
.cp-map { position: relative; overflow: hidden; border-radius: 28px; box-shadow: 0 10px 30px rgba(0, 48, 64, .08); background: #e3e8eb; }
.cp-map iframe { display: block; width: 100%; height: 420px; border: 0; }
.cp-pin { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -34px 0 0 -17px; background: var(--sh-pink, #e96a8f); border-radius: 50% 50% 50% 0; transform: translateY(-300px) rotate(-45deg); opacity: 0; pointer-events: none; box-shadow: 0 8px 14px rgba(0, 0, 0, .3); }
.cp-pin::after { content: ""; position: absolute; left: 11px; top: 11px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.cp-map.is-in .cp-pin { animation: cp-drop 1s cubic-bezier(.3, 1.4, .5, 1) .4s forwards; }
@keyframes cp-drop { 0% { opacity: 0; transform: translateY(-300px) rotate(-45deg); } 20% { opacity: 1; } 100% { opacity: 1; transform: translateY(0) rotate(-45deg); } }
.cp-more { margin: 24px 0 0; }
.js-on .cp-rv { opacity: 0; transform: translateY(32px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js-on .cp-rv.is-in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
	.cp-hero, .cp-body { width: calc(100% - 64px); }
	.cp-body { display: block; }
	.cp-toc { display: none; }
	.cp-hero { padding-top: 130px; }
	.cp-hs { height: auto !important; margin-bottom: 72px; }
	.cp-hs__stick { position: static; height: auto; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x mandatory; }
	.cp-hs__track { height: 380px; padding: 0 16px; transform: none !important; }
	.cp-hs__title { padding: 0 16px; }   /* 表示確認の修正（2026-10-20）：PC用の左右余白の式が、スマホでは0になり、見出しが左端に付いていた */
	.cp-hs__item, .cp-hs__intro { width: 80vw; scroll-snap-align: center; }
	.cp-hs__end { width: 84vw; }
	.cp-hs__bar, .cp-hs__bg, .cp-hs__fill { display: none; }
	.cp-sec { padding-bottom: 80px; }
	.cp-msg { grid-template-columns: 1fr; padding: 20px; gap: 24px; }
	.cp-msg__photo { max-width: 280px; }
	.cp-dl > div { grid-template-columns: 1fr; gap: 4px; }
	.cp-map iframe { height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
	.js-on .cp-rv { opacity: 1; transform: none; transition: none; }
	.cp-mission .ch { color: var(--sh-ink, #003040); transition: none; }
	.cp-map .cp-pin { opacity: 1; transform: rotate(-45deg); animation: none; }
	.cp-hs__fill::after, .cp-hs__end, .cp-hs__end .sp, .cp-hs__arrow::after { animation: none; }
}
