/*
Theme Name: Catbus
Description: Catbus-site
Text Domain: Catbus
Requires at least: 6.4
Tested up to: 6.4
Requires PHP: 8.1
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

@import url("./assets/css/header.css");
@import url("./assets/css/xo-event.css");
@import url("./assets/css/footer.css");

/* 共通 */

main {
  font-size: 16px;
}

ul {
  margin: 0;
}

figure {
  width: 100%;
  display: flex;
  justify-content: center;
}

.figure--pc {
  display: none;
}

.figure--sp {
  display: flex;
}

.non-visible {
  display: none;
}

.custom-section {
  padding: 30px 30px 0 30px;
}

.custom-section .custom-section__title {
  width: 100%;
  margin-bottom: 3%;
  text-align: center;
  font-family: "DNP ShueiMGoStd L";
  font-weight: 600;
  font-size: 25px;
  color: white;
  background-image: url(./img/background-section-title-short.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  aspect-ratio: 690/120;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.custom-list {
  align-self: flex-start;
  width: 100%;
}

.custom-list__item + .custom-list__item {
  margin: 6px 0;
}

/* ブレークポイント　SP */

.background:nth-child(2n) {
  background-color: #f8f4ec;
  width: 100%;
}

.background:nth-child(2n)::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(45deg, #f8f4ec 50%, transparent 0),
    linear-gradient(315deg, #f8f4ec 50%, transparent 0);
  background-size: 10px 10px;
  background-color: #ffffff;
  background-repeat: repeat-x;
}

.background:nth-child(2n)::after {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(45deg, #f8f4ec 50%, transparent 0),
    linear-gradient(315deg, #f8f4ec 50%, transparent 0);
  background-size: 10px 10px;
  background-color: #ffffff;
  background-repeat: repeat-x;
  transform: scale(1, -1);
}

.background .custom-section__title::before {
  position: absolute;
  content: "";
  width: 100%;
  height: -webkit-fill-available;
  background-repeat: no-repeat;
}

.background .custom-section__title::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
}

.background:nth-child(2) .custom-section__title::before {
  width: 108px;
  height: 91px;
  top: -48px;
  left: -2px;
  background-image: url(./img/leaf.png);
}

.background:nth-child(3) .custom-section__title::before {
  width: 56px;
  height: 59px;
  bottom: -23px;
  right: 30px;
  background-image: url(./img/acorn.png);
}

.background:nth-child(1) .custom-section__title::after {
  width: 45px;
  height: 45px;
  bottom: -17px;
  right: 32px;
  background-image: url(./img/footprint.png);
}

.custom-subsection {
  width: 100%;
  padding-bottom: 20px;
}

.custom-subsection__title {
  display: flex;
  width: 100%;
  height: 70px;
  gap: 10px;
  align-items: center;
  border-bottom: 4px dashed #b1b1b1;
  font-size: 23px;
  font-weight: 100;
  font-family: "Noto Sans JP Bold";
}

.custom-subsection__title:before {
  content: "";
  width: 31px;
  height: 47px;
  background-image: url("./img/acorn-heading.png");
  background-repeat: no-repeat;
}

.custom-subsubsection {
  width: 100%;
  gap: 0;
  padding-bottom: 1%;
}

.custom-subsubsection:nth-child(1) .custom-subsubsection__title {
  padding-top: 0;
}

.custom-subsubsection .custom-subsubsection__title {
  display: flex;
  width: 100%;
  align-items: center;
  line-height: 36px;
  padding-top: 36px;
  padding-bottom: 12px;
  margin-bottom: 23px;
  font-size: 20px;
  font-family: "Noto Sans JP Bold";
  font-weight: unset;
  border-bottom: solid 1px #d0d0d0;
}

.custom-subsubsection__title::before {
  content: "";
  width: 10px;
  height: 36px;
  display: inline-block;
  color: #11b1d8;
  background-color: #11b1d8;
  margin-right: 17.4px;
}

.ticketing-time {
  width: 100%;
  padding: 20px;
  padding-right: 0;
  background-color: #ffffff;
  border-radius: 10px;
  border-style: solid;
  border-color: #bbdae0;
  gap: 10px;
}

.ticketing-time .custom-paragraph strong {
  font-weight: 100;
  color: #ea4c4c;
}

.custom-usage-fee {
  justify-content: center;
}

.custom-usage-fee .custom-usage-fee__item {
  width: 100%;
  text-align: center;
  align-items: center;
  background-color: #ffffff;
  border-style: solid;
  border-color: #b5b5b5;
  border-width: 1px;
  border-radius: 3%;
}

.custom-usage-fee__name {
  width: 100%;
  height: 42px;
  padding: 0;
  color: #ffffff;
  background-color: #11b1d8;
  font-size: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-usage-fee__name strong {
  font-weight: 100;
  font-size: 16px;
}

.custom-usage-fee__amount {
  font-size: 16px;
  height: 75px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.custom-usage-fee__amount::after {
  font-size: 16px;
  color: #9d9d9d;
}

.page-template-page-jp .custom-usage-fee__amount::after {
  content: "(片道)";
}

.page-template-page-en .custom-usage-fee__amount::after {
  content: "(one-way)";
}

.custom-usage-fee-decription li:last-child {
  list-style-type: none;
  position: relative;
}

.custom-usage-fee-decription li:last-child::after {
  content: "※";
  position: absolute;
  left: -20px;
  top: 0;
}
/* 利用動画 */

.custom-movie {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.custom-movie .custom-movie__item {
  width: 100%;
  flex-wrap: nowrap;
}

.custom-movie__text {
  width: 100%;
  min-height: 50px;
}

.custom-movie__number {
  width: 100%;
  max-width: 15px;
  height: 15px;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotate(45deg) translate(5px, 5px);
}

.custom-movie__embed .wp-block-embed__wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* 券売機 */

.custom-vending-location {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 20px;
  margin: 0;
}

.custom-vending-location .custom-vending-location__item {
  margin: 0 !important;
}

.custom-vending-location__name {
  width: 100%;
  padding: 10px 0;
  border-radius: 15px;
  display: flex;
  align-items: center;
  color: #000;
  position: relative;
  text-wrap: balance;
  justify-content: center;
  text-align: center;
}

.custom-vending-location__item:nth-child(1) .custom-vending-location__name {
  background-color: #f0e6f2;
}

.custom-vending-location__item:nth-child(2) .custom-vending-location__name {
  background-color: #e8f4e2;
}

.custom-vending-location__name::before {
  content: "▶︎";
  min-width: 30px;
  min-height: 30px;
  border-radius: 9999px;
  border-style: solid;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-vending-location__item:nth-child(1)
  .custom-vending-location__name:before {
  color: #b67cc1;
}

.custom-vending-location__item:nth-child(2)
  .custom-vending-location__name:before {
  color: #88ad62;
}

.custom-vending-location__description {
  height: 15%;
}

.moricoro {
  justify-content: center;
}

#apm-cat-bus ~ div {
  gap: 5%;
}

/* ブレークポイント　SPとPCの中間 */

@media (min-width: 782px) {
  .figure--sp {
    display: none;
  }

  .figure--pc {
    display: flex;
  }

  .custom-section .custom-section__title {
    background-image: url(./img/background-section-title.png);
    aspect-ratio: 100/7;
  }

  .background:nth-child(2) .custom-section__title::before {
    top: -34px;
    left: 56px;
  }

  .background:nth-child(3) .custom-section__title::before {
    bottom: -16px;
  }

  .background:nth-child(4) .custom-section__title::before {
    top: 5px;
  }

  .background:nth-child(4) .custom-section__title::after {
    bottom: 5px;
  }

  .background:nth-child(5) .custom-section__title::before {
    top: -40px;
    right: 120px;
  }

  .custom-subsection__title {
    font-size: 2ipx;
  }

  .custom-usage-fee__name {
    height: 42px;
    padding: 0;
    font-size: 16px;
  }

  .custom-usage-fee__name strong {
    font-size: 30px;
  }

  .custom-usage-fee__amount {
    font-size: 30px;
  }

  .ticketing-time {
    display: grid;
    grid-template-columns: 2fr 3fr;
  }

  .ticketing-time p {
    width: 100%;
    height: 40px;
    margin: 0;
  }

  .ticketing-time__item:nth-child(1) {
    width: 100%;
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    justify-content: flex-start;
  }

  .ticketing-time__item:nth-child(2) {
    width: 100%;
    grid-column: 1 / 2;
    grid-row: 1 / 4;
  }

  .ticketing-time__item:nth-child(3) {
    width: 100%;
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: flex;
    justify-content: flex-start;
  }

  .custom-vending-location__item .custom-vending-location__name {
    width: 97%;
    padding: 18px 0 18px 3%;
    border-radius: 8px;
    justify-content: flex-start;
  }

  .custom-section .custom-operation-course-columns {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5%;
  }

  .custom-operation-course-columns__item1 {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 2;
  }

  .custom-operation-course-columns__item2 {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 4;
  }

  .custom-operation-course-columns__item3 {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;
  }

  .custom-operation-course-columns__item1 p {
    margin: 0;
  }

  .custom-operation-course-columns__item3 p {
    margin: 0;
  }
}

/* ブレークポイント　PC */

@media (min-width: 1000px) {
  .custom-section {
    width: 1000px;
    padding: 50px 0;
    margin: 0 auto;
  }

  .custom-subsubsection > p {
    padding: 10px 0;
  }

  .custom-movie {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .custom-vending-location {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 20px;
  }

  .moricoro {
    justify-content: flex-start;
  }
}


/*
 * WordPress 6.6以降で追加されたコアスタイル：
 *   :root :where(.wp-block-group.wp-block-group-is-layout-constrained) {
 *     position: relative;
 *   }
 * がレイアウトを崩すためstaticに戻している。
 */
:root :where(.wp-block-group.wp-block-group-is-layout-constrained) {
  position: static !important;
}
