/* Figma DT 390:2 / SP 396:2。文字指定は typography.css。 */
.nt-timetable-page { color: var(--nk-ink); }
.nt-timetable-page :is(p, h1, h2, h3) { margin: 0; }
.nt-timetable-page a { text-decoration: none; }
.nt-timetable-page img { display: block; max-width: 100%; }
.nt-timetable-page [hidden] { display: none !important; }
.nt-timetable-page .nt-access-head { padding-block: 52px 44px; }
.nt-timetable-page .nt-tt-lead { margin-top: 16px; color: var(--nk-muted); }
.nt-tt-section { padding: 72px max(30px, calc((100% - 1320px) / 2)) 64px; }
.nt-tt-heading { text-align: center; }
.nt-tt-heading h2 { margin-top: 10px; }
.nt-tt-heading > p:last-child:not(.nt-access-eyebrow) { margin-top: 20px; color: var(--nk-muted); }
.nt-tt-line-desktop { container-type: inline-size; display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); padding: 0; margin: 44px 0 0; list-style: none; }
.nt-tt-line-desktop > li { position: relative; text-align: center; min-width: 0; }
.nt-tt-rail { position: relative; display: flex; align-items: center; justify-content: center; height: 22px; }
.nt-tt-rail::before { content: ""; position: absolute; inset: 9.5px 0 auto; height: 3px; background: #2e7bb8; }
.nt-tt-rail img { position: relative; }
.nt-tt-line-desktop li:first-child .nt-tt-rail::before { left: 50%; }
.nt-tt-line-desktop li:last-child .nt-tt-rail::before { right: 50%; }
.nt-tt-station-copy { display: block; margin-top: 10px; }
.nt-tt-station-name, .nt-tt-reading { display: block; overflow-wrap: anywhere; }
.nt-tt-line-desktop .nt-tt-station-name { white-space: nowrap; }
.nt-tt-reading { color: var(--nk-muted); }
.nt-tt-badge { display: inline-block; padding: 3px 7px; border-radius: 3px; background: var(--nk-sand); color: var(--nk-red); }
.nt-tt-line-desktop .nt-tt-badge { display: block; width: max-content; margin-top: 6px; margin-left: 50%; transform: translateX(-50%); white-space: nowrap; }
/* 隣接する駅のラベルは、ふりがなの段差に余白を足して接触を防ぐ。 */
.nt-tt-line-desktop > li:has(.nt-tt-badge) + li .nt-tt-badge { margin-top: 14px; }
.nt-tt-line-mobile { display: none; }
.nt-tt-mobile { display: none; }
.nt-tt-connections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; padding: 22px 28px; margin-top: 36px; border-radius: 10px; background: var(--nk-sand); }
.nt-tt-connections a { position: relative; display: flex; align-items: center; gap: 8px; color: var(--nk-ink); }
.nt-tt-connections a + a::before { content: ""; position: absolute; left: -11px; top: calc(50% - 7px); width: 1px; height: 14px; background: var(--nk-border); }
.nt-tt-connections a > span { flex: 1; min-width: 0; }
.nt-tt-connections .nt-tt-connection-icon { position: relative; width: 20px; height: 20px; flex: 0 0 20px; }
/* Figmaの24pxアイコン枠に、書き出しSVGを元の位置・比率で配置する。 */
.nt-tt-connection-icon img { position: absolute; left: 15.625%; top: 9.375%; width: 68.75%; height: 87.5%; }
.nt-tt-connection-icon img[src$="/connection-airplane.svg"] { left: 9.375%; top: 12.4947%; width: 78.1304%; height: 78.1325%; }
.nt-tt-connection-icon img[src$="/connection-shinkansen.svg"] { left: 16.40625%; top: 10.15625%; width: 67.1875%; height: 85.9375%; }
.nt-tt-tabs { display: flex; justify-content: center; gap: 10px; margin: 32px 0 24px; }
.nt-tt-tabs a { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--nk-border); border-radius: 999px; padding: 11px 28px; color: var(--nk-ink); background: #fff; }
.nt-tt-tabs a.is-active { color: #fff; background: var(--nk-slate); border-color: var(--nk-slate); }
.nt-tt-tabs a.is-active .nt-arrow { filter: brightness(0) invert(1); }
.nt-tt-tabs a:not(.is-active) .nt-arrow { filter: brightness(0) saturate(100%); }
.nt-tt-tabs .nt-arrow { width: 24px; }
.nt-tt-panel + .nt-tt-panel { margin-top: 24px; }
.nt-tt-enhanced .nt-tt-panel + .nt-tt-panel { margin-top: 0; }
.nt-tt-table-scroll { overflow-x: auto; border: 1px solid var(--nk-border); border-radius: 10px; scrollbar-color: #aebbc6 #f2f4f6; }
.nt-tt-table { width: 100%; min-width: 1040px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.nt-tt-table th, .nt-tt-table td { padding: 11px 4px; border-top: 1px solid var(--nk-border); text-align: center; }
.nt-tt-table th:first-child { position: sticky; left: 0; z-index: 1; width: 130px; padding-inline: 14px; text-align: left; background: #fff; }
.nt-tt-table thead th { padding-block: 12px; overflow-wrap: anywhere; white-space: normal; color: var(--nk-muted); border-top: 0; background: var(--nk-sand); }
.nt-tt-table thead th:first-child { background: var(--nk-sand); }
.nt-tt-table tbody tr:nth-child(even), .nt-tt-table tbody tr:nth-child(even) th { background: #fcfcfc; }
.nt-tt-scroll-hint { display: none; align-items: center; justify-content: center; gap: 10px; color: var(--nk-muted); }
.nt-tt-scroll-hint .nt-arrow { width: 24px; }
.nt-timetable-page .nt-tt-revision { margin-top: 16px; text-align: right; color: var(--nk-muted); }
.nt-tt-tickets, .nt-tt-fare { background: var(--nk-sand); }
.nt-tt-ticket-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 32px; margin-top: 48px; }
.nt-tt-ticket { padding: 32px; background: #fff; border-radius: 14px; }
.nt-tt-ticket-tag { display: inline-block; border-radius: 999px; color: #fff; background: var(--nk-slate); padding: 6px 14px; }
.nt-tt-ticket h3 { margin-top: 16px; }
.nt-tt-ticket .nt-tt-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 12px; }
.nt-tt-price strong { color: var(--nk-red); }
.nt-tt-price span { color: var(--nk-muted); }
.nt-tt-ticket dl { margin: 20px 0 22px; }
.nt-tt-ticket dl > div { display: flex; align-items: baseline; gap: 14px; padding-block: 9px; border-top: 1px solid var(--nk-border); }
.nt-tt-ticket dt { flex: 0 0 80px; color: var(--nk-muted); }
.nt-tt-ticket dd { margin: 0; min-width: 0; }
.nt-tt-ticket .nt-button { width: 100%; padding: 14px 20px; min-height: 0; }
.nt-tt-ticket .nt-tt-warning { margin-top: 14px; padding: 10px 14px; border-radius: 6px; color: var(--nk-red); background: #fef1f1; }
.nt-tt-ticket .nt-tt-warning--day-pass { margin-top: 12px; font-size: 14px; font-weight: 500; line-height: 1.75; }
.nt-tt-ticket-how { padding: 18px 20px; margin-bottom: 22px; background: var(--nk-sand); border-radius: 8px; }
.nt-tt-ticket-how p + p { margin-top: 8px; }
.nt-tt-fare-notes a { text-decoration: underline; color: inherit; text-underline-offset: 3px; }
.nt-tt-fare { padding-block: 64px; }
.nt-tt-fare-form { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 30px 0 22px; }
.nt-tt-fare-form label { color: var(--nk-muted); }
.nt-tt-fare-form select { width: 280px; max-width: 100%; border: 1.5px solid var(--nk-slate); border-radius: 8px; appearance: none; padding: 14px 42px 14px 22px; color: var(--nk-ink); background: #fff url('../images/timetable/caret.svg') no-repeat right 18px center / 12px 7px; cursor: pointer; }
.nt-tt-fare-form select:focus { outline: none; }
.nt-tt-fare-form select:focus-visible { outline: 2px solid var(--nk-navy); outline-offset: 3px; background-color: #edf1f6; }
.nt-tt-fare-form > p { color: #8a97a6; }
.nt-tt-fare-submit { padding: 10px 16px; border: 1px solid var(--nk-slate); border-radius: 8px; color: #fff; background: var(--nk-slate); cursor: pointer; }
.nt-tt-revision-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.nt-tt-revision-links a { padding: 10px 18px; border: 1px solid var(--nk-border); border-radius: 6px; color: var(--nk-ink); background: #fff; }
.nt-tt-revision-group { margin-top: 36px; }
.nt-tt-revision-group.nt-tt-single { margin-top: 0; }
.nt-tt-revision-group + .nt-tt-revision-group { margin-top: 48px; padding-top: 36px; border-top: 2px solid var(--nk-border); }
.nt-tt-revision-heading { text-align: center; }
.nt-tt-revision-heading h3 { scroll-margin-top: 100px; }
.nt-tt-revision-heading p { margin-top: 12px; color: var(--nk-muted); }
.nt-tt-fare-wrap { border: 1px solid var(--nk-border); border-radius: 10px; overflow: hidden; background: #fff; }
.nt-tt-fare-table { width: 100%; border-collapse: collapse; }
.nt-tt-fare-table th, .nt-tt-fare-table td { padding: 13px 22px; text-align: right; border-top: 1px solid var(--nk-border); }
.nt-tt-fare-table th:first-child { text-align: left; }
.nt-tt-fare-table thead th { color: var(--nk-muted); background: var(--nk-sand); border-top: 0; }
.nt-tt-fare-table td { width: 130px; white-space: nowrap; }
.nt-tt-fare-table tr:nth-child(even) { background: #fcfcfc; }
.nt-tt-fare-station { display: inline-flex; align-items: center; gap: 10px; }
.nt-tt-fare-table .nt-tt-badge { flex-shrink: 0; padding: 2px 8px; }
.nt-tt-fare-notes { margin-top: 20px; color: var(--nk-muted); }
.nt-tt-special { text-align: center; padding-block: 60px 64px; }
.nt-tt-special > p { margin-top: 10px; color: var(--nk-muted); }
.nt-tt-special > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }
.nt-tt-special .nt-button { padding: 13px 26px; min-height: 0; }
@media (max-width: 1100px) {
	.nt-tt-connections { grid-template-columns: 1fr; gap: 14px; }
	.nt-tt-connections a + a::before { display: none; }
	.nt-tt-scroll-hint { display: flex; margin-top: 16px !important; }
}
@media (width < 1100px) {
	.nt-tt-line-desktop { display: none; }
	.nt-tt-line-mobile { display: block; max-width: 500px; margin: 30px auto 0; position: relative; }
	.nt-tt-line-mobile::before { content: ""; position: absolute; width: 2px; top: 26px; bottom: 26px; left: 10px; background: #2e7bb8; }
	.nt-tt-mobile-station { display: flex; align-items: center; gap: 12px; position: relative; min-height: 52px; }
	.nt-tt-mobile-station .nt-tt-rail { width: 22px; flex-shrink: 0; }
	.nt-tt-mobile-station .nt-tt-rail::before { display: none; }
	.nt-tt-mobile-station .nt-tt-station-copy { flex: 1; min-width: 0; margin-top: 0; }
	.nt-tt-mobile-station .nt-tt-badge { max-width: 48%; }
	.nt-tt-intermediate { position: relative; }
	.nt-tt-intermediate-stations { overflow: hidden; }
	.nt-tt-intermediate summary { padding: 10px 0 10px 34px; min-height: 52px; color: var(--nk-muted); cursor: pointer; list-style: none; }
	.nt-tt-intermediate summary::-webkit-details-marker { display: none; }
	.nt-tt-intermediate summary::after { content: ""; display: inline-block; width: 10px; height: 6px; margin-left: 8px; background: url('../images/timetable/caret.svg') center / contain no-repeat; }
	.nt-tt-intermediate[open] summary::after { transform: rotate(180deg); }
	.nt-tt-collapse, .nt-tt-intermediate[open] .nt-tt-expand { display: none; }
	.nt-tt-intermediate[open] .nt-tt-collapse { display: inline; }
}
@media (max-width: 600px) {
	.nt-timetable-page .nt-access-head { padding: 26px 20px 30px; }
	.nt-timetable-page .nt-tt-lead { margin-top: 12px; }
	.nt-timetable-page .nt-access-title::before, .nt-timetable-page .nt-access-title::after { display: none; }
	.nt-tt-section { padding: 48px 20px; }
	.nt-tt-heading h2 { margin-top: 6px; }
	.nt-tt-heading > p:last-child:not(.nt-access-eyebrow) { margin-top: 10px; }
	.nt-tt-desktop { display: none; }
	.nt-tt-mobile { display: inline; }
	.nt-tt-intermediate summary { display: flex; align-items: center; width: max-content; max-width: calc(100% - 34px); min-height: 0; padding: 7px 12px 7px 14px; margin: 7px 0 7px 34px; border: 1px solid var(--nk-border); border-radius: 999px; }
	.nt-tt-intermediate summary::after { margin-left: 7px; flex-shrink: 0; }
	.nt-tt-connections { margin-top: 24px; padding: 18px; gap: 10px; }
	.nt-tt-connections .nt-tt-connection-icon { width: 18px; height: 18px; flex-basis: 18px; }
	.nt-tt-schedule { background: var(--nk-sand); }
	.nt-tt-tabs { gap: 8px; margin-block: 20px; }
	.nt-tt-tabs a { gap: 8px; padding: 10px 16px; }
	.nt-tt-tabs .nt-arrow { width: 21px; }
	.nt-tt-table-scroll { margin-inline: 0 -20px; padding-right: 20px; border: 0; border-left: 1px solid var(--nk-border); border-radius: 0; }
	.nt-tt-table { min-width: 700px; border: 1px solid var(--nk-border); border-left: 0; background: #fff; }
	.nt-tt-table th:first-child { width: 100px; padding-inline: 10px; }
	.nt-tt-table th, .nt-tt-table td { padding-block: 10px; }
	.nt-tt-tickets { background: #fff; }
	.nt-tt-ticket-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 28px; }
	.nt-tt-ticket { padding: 22px; border: 1px solid var(--nk-border); border-radius: 12px; }
	.nt-tt-ticket-tag { padding: 5px 10px; }
	.nt-tt-ticket h3 { margin-top: 14px; }
	.nt-tt-ticket .nt-tt-price { display: block; margin-top: 10px; }
	.nt-tt-price span { display: block; margin-top: 2px; }
	.nt-tt-price .nt-tt-price-note { display: none; }
	.nt-tt-ticket dl { margin-block: 16px 20px; }
	.nt-tt-ticket dl > div { display: block; padding-block: 8px; }
	.nt-tt-ticket dd { margin-top: 3px; }
	.nt-tt-ticket .nt-button { padding: 12px 10px; }
	.nt-tt-ticket-how { padding: 16px; margin-bottom: 16px; }
	.nt-tt-ticket-how p + p { margin-top: 6px; }
	.nt-tt-ticket .nt-tt-warning { padding: 10px; margin-top: 12px; }
	.nt-tt-ticket .nt-tt-warning--day-pass { padding-inline: 12px; font-size: 13px; }
	.nt-tt-fare-form { align-items: stretch; flex-direction: column; gap: 8px; margin-top: 22px; }
	.nt-tt-fare-form select { width: 100%; }
	.nt-tt-fare-table th, .nt-tt-fare-table td { padding: 11px 10px; }
	.nt-tt-fare-table td { width: 68px; }
	.nt-tt-fare-station { gap: 5px; }
	.nt-tt-fare-table .nt-tt-badge { padding: 2px 4px; }
	.nt-tt-fare-notes { margin-top: 16px; }
	.nt-tt-special > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 22px; }
	.nt-tt-special .nt-button { width: 100%; padding: 12px 20px; }
}
