/* ページ管理 phase 2: pages with sections (resources/views/pages/cms_pages/sections). Scoped so the legacy pages are not affected. */
#js-cms-sections .section-lead { max-width: 48em; margin-top: 1em; }
/* a subtitle from the editor: its paragraphs follow each other closely, a link is underlined in the color of the text */
#js-cms-sections .section-lead p + p { margin-top: .3em; }
#js-cms-sections .section-lead a { color: inherit; text-decoration: underline; }
#js-cms-sections .section-lead a:hover { text-decoration: none; }
#js-cms-sections h2.c-headline_04 + .cms-section__article,
#js-cms-sections .section-lead + .cms-section__article,
#js-cms-sections .cms-section__button + .cms-section__article { margin-top: 32px; }

@media screen and (min-width: 1071px) {
  #js-cms-sections .l-underwrap,
  #js-cms-sections .js-on-the-tracks .p-insideMap { padding-top: 60px; padding-bottom: 60px; }
}
@media screen and (max-width: 1070px) {
  #js-cms-sections .l-underwrap,
  #js-cms-sections .js-on-the-tracks .p-insideMap { padding-top: 52.5px; padding-bottom: 52.5px; }
}

/* articles: the space between two comes from the margin, none above the first or below the last; an article with its
   own background is a box inside the section, with its own padding */
#js-cms-sections .cms-section__article { padding: 0; }
#js-cms-sections .cms-section__article + .cms-section__article { margin-top: 64px; }
#js-cms-sections .cms-section__article.u-bg__light,
#js-cms-sections .cms-section__article.u-bg__black,
#js-cms-sections .cms-section__article--white { padding: 2em; }
#js-cms-sections .cms-section__article--white { background: #fff; }
/* a white / gray article in a black section: style.css colors everything under .u-bg__black white (buttons keep theirs) */
#js-cms-sections .u-bg__black .cms-section__article--white *:not(.c-linkBtn *),
#js-cms-sections .u-bg__black .cms-section__article.u-bg__light *:not(.c-linkBtn *) { color: #000; }
/* driving section: the widget box comes under the heading */
#js-cms-sections h2.c-headline_04 + .availability,
#js-cms-sections .section-lead + .availability { margin-top: 1em; }
/* in a black section the widget is a dark panel with dark cells; its texts take the white of the section */
#js-cms-sections .u-bg__black .availability { background: #16191c; }
#js-cms-sections .u-bg__black .availability-grid li { background: #24282c; }
/* the color is set on the icon itself and its shapes inherit it: style.css turns every element of a black section white */
#js-cms-sections .u-bg__black .availability .av-icon { color: #fff; }
#js-cms-sections .u-bg__black .availability .is-few .av-icon { color: #ff3a4d; }
#js-cms-sections .u-bg__black .availability .is-full .av-icon { color: #8b8e92; }
#js-cms-sections .u-bg__black .availability .av-icon * { color: inherit; }
#js-cms-sections .cms-section__label { margin-bottom: .25em; }

/* the button of a section: under the heading, or in the right column next to it (.l-3clm) */
#js-cms-sections .cms-section__button { margin-top: 1.5em; }
/* in the right column on PC only: stacked on SP / tablet, it keeps the 1.5em under the heading */
@media screen and (min-width: 1071px) {
  #js-cms-sections .cms-section__button-col > .cms-section__button { margin-top: 0; }
}
@media screen and (min-width: 768px) {
  #js-cms-sections .cms-section__button-col { text-align: right; }
}
#js-cms-sections .p-leadBox__content h2.c-headline_04 { margin-top: 0; }
#js-cms-sections .p-leadBox__content  { padding-top: 0; }
/* image article (image beside the text): no 7:4 box, the image keeps its own ratio (nothing is cut, no band above or
   below it) so its top is the top of the row. The other cropped images (slide, cards) keep the legacy box */
#js-cms-sections .c-cropPh__lead { padding-top: 0; }
#js-cms-sections .c-cropPh__lead img {
  position: static;
  display: block;
  height: auto;
  transform: none;
}
/* no space below the last text of an article (the margin of the legacy blocks is for a button under it) */
#js-cms-sections .p-leadBox__text:last-child,
#js-cms-sections .p-articleBox__text:last-child,
#js-cms-sections .p-centerPhBox__cap:last-child,
#js-cms-sections .p-leadBox__text:last-child p:last-child,
#js-cms-sections .p-articleBox__text:last-child p:last-child,
#js-cms-sections .p-centerPhBox__cap:last-child p:last-child { margin-bottom: 0; }
/* image / video / slide article with the text beside the media (PC only: on SP / tablet the text is under it): the
   media is always in the vertical middle of the row (same space above and below it when the text is taller); the text
   starts 16px below the top of the row. Under .cms-section__article: the calendar uses the same blocks */
@media screen and (min-width: 1071px) {
  #js-cms-sections .cms-section__article .p-leadBox,
  #js-cms-sections .cms-section__article .p-articleBox { align-items: flex-start; }
  #js-cms-sections .cms-section__article .p-leadBox > .p-leadBox__ph,
  #js-cms-sections .cms-section__article .p-articleBox > .p-leadBox__ph,
  #js-cms-sections .cms-section__article .p-articleBox > .p-articleBox__ph { align-self: center; }
  #js-cms-sections .cms-section__article .p-leadBox__content,
  #js-cms-sections .cms-section__article .p-articleBox__content { padding-top: 16px; }
}

/* three columns: cards of a row share the height and keep the button at the bottom; the padding of the legacy block
   is not needed, the section and the article already space it */
#js-cms-sections .p-relationList { padding: 0; }
#js-cms-sections .p-relationList__wrap { margin-top: 1em; }
#js-cms-sections .slick-track { display: flex; }
#js-cms-sections .slick-slide { height: auto; }
#js-cms-sections .p-relationList__inner { display: flex; flex-direction: column; height: auto; }
#js-cms-sections .p-relationList__inner > .u-pt__1 { margin-top: auto; }
#js-cms-sections .l-3clm > .p-relationList__inner { height: auto; }
/* a card without a label keeps the empty line of the others, so labels and titles line up across the row (PC only:
   on SP the cards are one under the other, or one slide at a time) */
#js-cms-sections .p-relationList__inner .cms-section__label.is-empty { display: none; }
@media screen and (min-width: 768px) {
  #js-cms-sections .p-relationList__inner .cms-section__label.is-empty { display: block; }
}

/* operating calendar: the frame of the mockup of /pages/35 (grey panel, white cells, SUN..SAT). Spec 2026-10-22:
   休業日 / 貸切 grey with a label, 営業日 white, a red number only on an open Sunday or 祝日, a passed day without
   background and with a light number, no colour legend, month arrows without the white button. No ○ △ × mark. */
#js-cms-sections .cms-calendar__box { align-items: flex-start; }
#js-cms-sections .cms-calendar { max-width: 560px; margin: 0 auto; }
/* the calendar text starts at the left edge of its column: no padding-left of .p-leadBox__content (style.css) */
#js-cms-sections .cms-calendar__text { padding-left: 0; }
/* the description is HTML from the editor: its paragraphs a little apart, like the notice lines of the mockup */
#js-cms-sections .cms-calendar__text .c-text_01 p { margin-bottom: .3em; }
/* none below the last one: the section padding alone is under the calendar text */
#js-cms-sections .cms-calendar__text .c-text_01 p:last-child { margin-bottom: 0; }
#js-cms-sections .cms-calendar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1em; }
/* the hit area stays the same (30% wide), only the white background goes */
#js-cms-sections .cms-calendar__nav { width: 30%; padding: .4em 0; border: none; background: transparent; line-height: 0; cursor: pointer; }
/* the month arrows reuse the icon of the go-to-top button (white arrow_top.svg) as a mask, turned left / right */
#js-cms-sections .cms-calendar__chevron { display: inline-block; width: 14px; height: 14px; background-color: #4b4b4b; -webkit-mask: url("../images/arrow_top.svg") no-repeat center / 14px 8.5px; mask: url("../images/arrow_top.svg") no-repeat center / 14px 8.5px; vertical-align: middle; }
#js-cms-sections .cms-calendar__chevron.is-prev { transform: rotate(-90deg); }
#js-cms-sections .cms-calendar__chevron.is-next { transform: rotate(90deg); }
#js-cms-sections .cms-calendar__nav:disabled { cursor: default; }
#js-cms-sections .cms-calendar__nav:disabled .cms-calendar__chevron { background-color: #ccc; }
#js-cms-sections .cms-calendar__label { font-size: 1.05em; }
#js-cms-sections .cms-calendar__month { background: #eff0f1; padding: .8em 1em; }
#js-cms-sections .cms-calendar__table { width: 100%; border: none; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: .8em; color: #000; }
#js-cms-sections .cms-calendar__table th { padding: .3em 0; border: none; background: transparent; font-weight: bold; text-align: center; text-transform: uppercase; }
#js-cms-sections .cms-calendar__table th.dow-0 { color: #d5001c; }
#js-cms-sections .cms-calendar__table td { padding: .3em; border: none; background: transparent; text-align: center; }
/* one height for every cell, with or without the label under the number */
#js-cms-sections .cms-calendar__cell { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 3.2em; text-align: center; background: #fff; color: #000; line-height: 1.2; }
#js-cms-sections .cms-calendar__tag { font-size: .7em; margin-top: .1em; }
#js-cms-sections .cms-calendar__cell.is-closed,
#js-cms-sections .cms-calendar__cell.is-private { background: #d9d9d9; }
#js-cms-sections .cms-calendar__cell.is-red { color: #d5001c; }
#js-cms-sections .cms-calendar__cell.is-past { background: transparent; color: #b5b5b5; }
#js-cms-sections .cms-calendar__cell.is-today { outline: 2px solid #111; outline-offset: -2px; }

/* the small title as a program level indicator: 4 slanted bars above
   a small title without red bar. Bar colour: E4 red, the theme red of the site */
#js-cms-sections .cms-level-head { margin-bottom: 2.25em; }
#js-cms-sections .cms-level { display: flex; align-items: center; margin: 0 0 .6em 3px; line-height: 1; }
#js-cms-sections .cms-level__bars { display: inline-flex; margin-right: 12px; }
#js-cms-sections .cms-level__bar { display: block; width: 6px; height: 14px; margin-right: 5px; background: #d8d8db; transform: skewX(-19.65deg); }
#js-cms-sections .cms-level__bar:last-child { margin-right: 0; }
#js-cms-sections .cms-level__bar.is-on { background: #d5001c; }
#js-cms-sections .cms-level__label { color: #000; font-size: 13px; letter-spacing: .12em; }
#js-cms-sections .cms-level-head__title { color: #000; }
/* black background: white text; a white / gray article inside a black section goes back to black */
#js-cms-sections .u-bg__black .cms-level__label,
#js-cms-sections .u-bg__black .cms-level-head__title { color: #fff; }
#js-cms-sections .u-bg__black .cms-section__article--white .cms-level__label,
#js-cms-sections .u-bg__black .cms-section__article--white .cms-level-head__title,
#js-cms-sections .u-bg__black .cms-section__article.u-bg__light .cms-level__label,
#js-cms-sections .u-bg__black .cms-section__article.u-bg__light .cms-level-head__title { color: #000; }
#js-cms-sections .cms-level-head__title { margin-bottom: 0; }

@media screen and (max-width: 1070px) {
  #js-cms-sections .p-leadBox__content { padding-bottom: 0; }
  /* the image is above the text: the same space under it as under a video / slide (.p-articleBox__ph); not the
     calendar, which uses the same blocks */
  #js-cms-sections .cms-section__article .p-leadBox__ph { margin-bottom: 1em; }
  #js-cms-sections .cms-section__article .p-leadBox__ph { width: 100%; }
  #js-cms-sections .cms-section__article .p-leadBox__content { padding-left: 0; padding-right: 0; }
  #js-cms-sections .l-3clm > .p-relationList__inner { padding: 0; }
  /* stacked columns are 3.75em apart (style.css): none below the last one, the section padding spaces it */
  #js-cms-sections .l-2clm:last-child,
  #js-cms-sections .l-3clm:last-child { margin-bottom: 0; }
}
@media screen and (max-width: 767px) {
  #js-cms-sections .cms-section__article + .cms-section__article { margin-top: 56px; }

  #js-cms-sections .clm3_slider .p-relationList__inner { padding: 0; }
  #js-cms-sections .cms-level-head { margin-bottom: 1.5em; }
  #js-cms-sections .cms-section__article.u-bg__light,
  #js-cms-sections .cms-section__article.u-bg__black,
  #js-cms-sections .cms-section__article--white { padding: 1.5em 1em; }
}

/* a section with an id is the target of an in-page link: it stops under the fixed header (and the menu bar on PC) */
#js-cms-sections section[id] { scroll-margin-top: 166px; }
@media screen and (max-width: 1070px) {
  #js-cms-sections section[id] { scroll-margin-top: 81px; }
}

/* level triangle section: the triangle on the left, the heading and one row per level on the right. A tier and its
   row light up together (cms_level_triangle.js). The triangle is drawn for the dark background of the section. */
#js-cms-sections .cms-triangle { background: #0e1113; line-height: 1.75; }
#js-cms-sections .cms-triangle__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 56px; }
#js-cms-sections .cms-triangle__figure { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
#js-cms-sections .cms-triangle__text { flex: 1.2 1 400px; min-width: 0; }
#js-cms-sections .cms-triangle__kicker { font-size: 13px; letter-spacing: .12em; color: #c9cacd; }
#js-cms-sections .cms-triangle__lead { color: #e3e4e6; margin-bottom: 24px; }
#js-cms-sections .cms-triangle__pyr { position: relative; width: 100%; max-width: 440px; aspect-ratio: 5/4; }
#js-cms-sections .cms-triangle__tier { position: absolute; left: 0; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; line-height: 1.3; transition: opacity .25s, filter .25s; }
#js-cms-sections .cms-triangle__tier b { font-family: "PorscheNextJPTP-Bold", sans-serif; font-weight: normal; font-size: 16px; letter-spacing: .08em; }
#js-cms-sections .cms-triangle__tier small { font-size: 11px; margin-top: 2px; }
#js-cms-sections .cms-triangle__tier,
#js-cms-sections .cms-triangle__tier * { color: #fff; }
#js-cms-sections .cms-triangle__tier:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* the four tiers from the top down, each a darker red; 1.4% of the height between two tiers */
#js-cms-sections .cms-triangle .t-advanced { top: 0; height: 34%; background: #d5001c; clip-path: polygon(50% 0, 67% 100%, 33% 100%); justify-content: flex-end; padding-bottom: 3%; }
#js-cms-sections .cms-triangle .t-expert { top: 35.4%; height: 20.6%; background: #be0012; clip-path: polygon(32.3% 0, 67.7% 0, 78% 100%, 22% 100%); }
#js-cms-sections .cms-triangle .t-intermediate { top: 57.4%; height: 20.6%; background: #a70007; clip-path: polygon(21.3% 0, 78.7% 0, 89% 100%, 11% 100%); }
#js-cms-sections .cms-triangle .t-discovery { top: 79.4%; height: 20.6%; background: #910000; clip-path: polygon(10.3% 0, 89.7% 0, 100% 100%, 0 100%); }
#js-cms-sections .cms-triangle__pyr.has-hot .cms-triangle__tier:not(.hot) { opacity: .35; }
#js-cms-sections .cms-triangle__tier.hot { filter: brightness(1.08); }
#js-cms-sections .cms-triangle__rows { display: flex; flex-direction: column; border-bottom: 1px solid #3a3d41; }
/* the rows without tier (CO PILOT) are listed apart */
#js-cms-sections .cms-triangle__rows + .cms-triangle__rows { margin-top: 20px; }
#js-cms-sections .cms-triangle__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 10px; border-top: 1px solid #3a3d41; text-decoration: none; transition: background .2s; }
#js-cms-sections .cms-triangle__row.hot,
#js-cms-sections a.cms-triangle__row:hover { background: #1e2226; }
#js-cms-sections .cms-triangle__name { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .1em; }
#js-cms-sections .cms-triangle__label { min-width: 0; }
#js-cms-sections .cms-triangle__level { font-family: "PorscheNextJPTP-Bold", sans-serif; font-weight: normal; margin-right: 1em; }
#js-cms-sections .cms-triangle__tagline,
#js-cms-sections .cms-triangle__desc { color: #c9cacd; }
#js-cms-sections .cms-triangle__desc { display: block; }
#js-cms-sections .cms-triangle__bars { display: inline-flex; gap: 5px; padding: 0 3px; }
#js-cms-sections .cms-triangle__bars i { display: block; width: 6px; height: 14px; background: #5a5d61; transform: skewX(-20deg); }
#js-cms-sections .cms-triangle__bars i.is-on { background: #d5001c; }
#js-cms-sections .cms-triangle__row svg { flex: 0 0 auto; transition: transform .2s; }
#js-cms-sections a.cms-triangle__row:hover svg { transform: translateY(3px); }
@media screen and (max-width: 767px) {
  #js-cms-sections .cms-triangle__tier b { font-size: 12px; letter-spacing: .05em; }
  #js-cms-sections .cms-triangle__tier small { font-size: 10px; }
  #js-cms-sections .cms-triangle .t-advanced { padding-bottom: 1.5%; }
  #js-cms-sections .cms-triangle .t-advanced b { letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #js-cms-sections .cms-triangle * { transition: none !important; }
}
