@charset "utf-8";

@font-face {
  font-family: "GenJyuuGothic";
  src: url("../fonts/GenJyuuGothic-Regular.ttf");
  font-weight: normal;
}
@font-face {
  font-family: "GenJyuuGothic";
  src: url("../fonts/GenJyuuGothic-Bold.ttf");
  font-weight: bold;
}
@font-face {
  font-family: "GenJyuuGothic";
  src: url("../fonts/GenJyuuGothic-Heavy.ttf");
  font-weight: bolder;
}
@font-face {
  font-family: "GenJyuuGothic";
  src: url("../fonts/GenJyuuGothic-Light.ttf");
  font-weight: lighter;
}
@font-face {
  font-family: "GenJyuuGothic";
  src: url("../fonts/GenJyuuGothic-Medium.ttf");
  font-weight: medium;
}

/*
*
* style.css
* geschrieben von Beliar698ma
* First: 2026.05.28
*
*/

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background-color: darkseagreen;
  & .main-board {
    width: 70%;
    background-color: white;
    /* display: block; */
    margin: 0 auto;
  }
}

@media screen and (max-width: 1480px) {
  body {
    & .main-board {
      width: 90%;
    }
  }
}
@media screen and (max-width: 1180px) {
  body {
    & .main-board {
      width: 100%;
    }
  }
}

.main-board {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  & .footer {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 95%;
    background-color: white;
    font-family: "GenJyuuGothic";
    /* font-size: 14px; */
    font-size: var(--fs-15);
    & p {
      display: inline-block;
      width: 100%;
      padding: 8px 28px;
      margin: 0;
      &.madoguchi {
        position: relative;
        padding-left: calc(80px + 2.75%);
        padding-bottom: 18px;
        color: #0078b7;
        font-weight: bolder;
        font-size: var(--fs-16);
        width: calc(100% - 75px);
        &::before {
          position: absolute;
          content: "相談窓口";
          text-align: center;
          display: block;
          width: 75px;
          background-color: #0078b7;
          color: white;
          /* font-size: 12px; */
          font-size: var(--fs-14);
          padding: 1.5px 2.5px;
          border-radius: 4px;
          top: 7px;
          left: 2%;
        }
      }
    }
  }
}
.main-board .head {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: url("../images/background.png") no-repeat;
  background-size: contain;
  /* padding-top: 39.7%; */
  padding-top: 50.9%;
  & p.btnA.apply {
    position: absolute;
    bottom: 2%;
    width: 100%;
    left: 0%;
    margin: 0;
    /* padding: 12px 0;
    background-color: darkseagreen; */
  }
  & .btnA a.apply {
    font-family: "GenJyuuGothic";
    font-weight: bolder;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    margin-top: 0.75rem;
    margin-bottom: calc(0.75rem + 0.4em);
    height: calc(95% / 2);
    border-radius: 4px;
    background: #f85c14;
    box-shadow: 0 0.4em 0 0 #aa3f0d;
    padding: 0.8em 1.5em 0.8em;
    color: white;
    font-size: var(--fs-16);
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition-duration: 0.3s;
    user-select: none;
    pointer-events: auto;
    z-index: 2;
    &:hover {
      opacity: 0.85;
    }
  }
  & .qr-box {
    position: absolute;
    right: 4.5%;
    bottom: 21%;
    display: flex;
    flex-direction: column;
    width: 10%;
    height: 12%;
    z-index: 0;
    & img {
      width: 100%;
    }
    & p {
      display: inline-block;
      width: 100%;
      /* font-size: 11.5px; */
      font-size: var(--fs-12);
      font-family: "GenJyuuGothic";
      text-align: center;
      font-weight: bold;
      margin: 4px 0;
    }
    .btnA a {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 80%;
      margin: auto;
      margin-bottom: 0.75rem;
      height: 80%;
      border-radius: 4px;
      background: #0078b7;
      box-shadow: 0 0.4em 0 0 #0069a1;
      padding: 0.8em 1.5em 0.8em;
      color: white;
      font-size: 0.8rem;
      letter-spacing: 0.1em;
      line-height: 1.3;
      text-align: center;
      text-decoration: none;
      transition-duration: 0.3s;
      user-select: none;
      pointer-events: auto;
      z-index: 2;
      &:hover {
        opacity: 0.85;
      }
    }
  }
  & .box {
    position: absolute;
    bottom: 8.5%;
    left: 15%;
    pointer-events: none;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: 80%;
    height: 42%;
    margin: 0 auto;
    & .row1 {
      width: 32.5%;
      & p.each-courses {
        display: inline-block;
        margin: 4px 0;
        line-height: 1.25em;
        padding-left: 22px;
        position: relative;
        font-family: "GenJyuuGothic";
        font-weight: bolder;
        /* font-size: 20px; */
        font-size: var(--fs-18);
        &.one {
          color: #f47b41;
          &::before {
            position: absolute;
            content: "";
            background: url("../images/circle_one.svg") no-repeat;
            width: 18px;
            height: 18px;
            top: 3.25px;
            left: 0;
          }
        }
        &.two {
          color: #009fb5;
          &::before {
            position: absolute;
            content: "";
            background: url("../images/circle_two.svg") no-repeat;
            width: 18px;
            height: 18px;
            top: 3.25px;
            left: 0;
          }
        }
        &.three {
          color: #f05963;
          &::before {
            position: absolute;
            content: "";
            background: url("../images/circle_three.svg") no-repeat;
            width: 18px;
            height: 18px;
            top: 3.25px;
            left: 0;
          }
        }
      }
    }
    & .row2 {
      width: 20%;
    }
    & .row3 {
      width: 45%;
    }
    & .row1,
    .row2,
    .row3 {
      & p.sub-heading {
        display: block;
        width: fit-content;
        background-color: #0078b7;
        color: white;
        font-family: "GenJyuuGothic";
        font-weight: bold;
        /* font-size: 12.5px; */
        font-size: var(--fs-12);
        padding: 2px 8px;
        border-radius: 4px;
        margin-bottom: 6px;
        margin-top: 0;
        & span {
          /* font-size: 16px; */
          font-size: var(--fs-16);
        }
      }
      & p.content {
        margin: 4px 0;
        font-family: "GenJyuuGothic";
        font-weight: medium;
        /* font-size: 14px; */
        font-size: var(--fs-13);
        line-height: 1.25em;
        & span.gigas {
          line-height: 1.5em;
          /* font-size: 18px; */
          font-size: var(--fs-18);
          font-weight: bold;
        }
        & span.mesos {
          line-height: 1.5em;
          /* font-size: 16.5px; */
          font-size: var(--fs-16);
          font-weight: bold;
        }
      }
    }
  }
  & h1 {
    position: absolute;
    font-size: 0;
    top: 14%;
    left: 23%;
    width: 60%;
    background: url("../images/h1.svg") no-repeat;
    height: 37.5%;
  }
  /* & img {
    width: 100%;
    object-fit: contain;
  } */
}
.main-board .head .box .row2 p.content span.mark {
  background: linear-gradient(transparent 70%, #ee2 30%);
}
.main-board .courses {
  display: flex;
  flex-direction: column;
  & .c1 {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #fde1ce;
    height: 350px;
    width: 100%;
    & img.pics {
      position: absolute;
      height: 95%;
      top: 0;
      right: 0;
      z-index: 50;
    }
  }
  & .c2 {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #c9e9ed;
    height: 350px;
    width: 100%;
    & img.pics {
      position: absolute;
      height: 100%;
      top: 0;
      right: 0;
      z-index: 50;
    }
  }
  & .c3 {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #fcdce0;
    height: 350px;
    width: 100%;
    /* & img.pics {
      position: absolute;
      height: 94%;
      top: 0;
      right: 0;
      z-index: 50;
    } */
  }
  .c1 .inner,
  .c2 .inner,
  .c3 .inner {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 92.5%;
    height: 85%;
    background-color: white;
    margin: 0 auto;
    border-radius: 12px;
    justify-content: flex-start;
    & img.pics {
      position: absolute;
      height: 115%;
      top: -8%;
      right: -5%;
      z-index: 50;
    }
    & .detail-box {
      position: relative;
      width: 100%;
      height: 58%;
      margin-top: 8px;
      &::before {
        position: absolute;
        content: "";
        background: url("../images/notoairport_departure.svg") no-repeat;
        background-size: contain;
        height: 65%;
        width: 11%;
        bottom: 0;
        left: 13.75%;
      }
      &::after {
        position: absolute;
        content: "";
        background: url("../images/notoairport_arrival.svg") no-repeat;
        background-size: contain;
        height: 65%;
        width: 11%;
        bottom: 0;
        z-index: 55;
        right: 16%;
      }
      & .inbox {
        padding: 2% 2.5%;
        position: absolute;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        top: 0;
        left: 25%;
        width: 42.5%;
        height: 73%;
        border-radius: 12px;
        font-family: "GenJyuuGothic";
        & .detail-row {
          display: flex;
          flex-direction: column;
          justify-content: center;
          height: fit-content;
          width: calc(95% / 2);
          font-weight: bolder;
          /* font-size: 18px; */
          font-size: var(--fs-18);
          & p {
            display: inline-block;
            line-height: 1.45em;
            width: 100%;
            position: relative;
            margin: 2px 0;
            padding-left: 14px;
            &::before {
              position: absolute;
              width: 11px;
              line-height: 2.5em;
              /* font-size: 9.5px; */
              font-size: var(--fs-12);
              height: 100%;
              top: 0;
              left: 0;
              content: "●";
            }
          }
        }
        &.sn {
          background-color: #fde1ce;
          color: #f47b41;
        }
        &.wm {
          background-color: #c9e9ed;
          color: #009fb5;
        }
        &.nw {
          background-color: #fcdce0;
          color: #f05963;
          align-items: center;
        }
      }
    }
    & .foot {
      margin-top: 2.5%;
      margin-bottom: 1%;
      width: 100%;
      height: 10%;
      text-align: left;
      & p {
        position: relative;
        display: inline-block;
        width: 92%;
        padding-left: 10%;
        font-family: "GenJyuuGothic";
        font-weight: normal;
        /* font-size: 14px; */
        font-size: var(--fs-14);
        margin-top: 0;
        &::before {
          position: absolute;
          content: "運行会社";
          text-align: center;
          display: block;
          width: 5%;
          background-color: #0078b7;
          color: white;
          font-family: "GenJyuuGothic";
          font-weight: bold;
          /* font-size: 12px; */
          font-size: var(--fs-12);
          padding: 1.5px 2.5px;
          border-radius: 4px;
          top: 0;
          left: 2%;
        }
      }
    }
    & img.maps {
      position: absolute;
      height: 70%;
      top: 10%;
      left: 0;
    }
    & h2 {
      /* flex-shrink: 0; */
      height: 20%;
      position: relative;
      display: inline-block;
      width: 70%;
      padding-left: 22%;
      font-weight: bolder;
      /* font-size: 22.5px; */
      font-size: var(--fs-22);
      font-family: "GenJyuuGothic";
      margin-top: 8px;
      margin-bottom: 0;
      & span.mark {
        position: absolute;
        z-index: 0;
      }
      & span.mark::before {
        content: "";
        display: inline-block;
        position: absolute;
        width: 105%;
        height: 20%;
        border-radius: 8px;
        background-color: #ee2;
        bottom: 10%;
        left: -2.5%;
        z-index: -1;
      }
      & span.gigantes {
        /* font-size: 36.5px; */
        font-size: var(--fs-32);
      }
      &.sn {
        color: #f47b41;
      }
      &.wm {
        color: #009fb5;
      }
      &.nw {
        color: #f05963;
      }
    }
  }
  .c1 .inner::before {
    position: absolute;
    content: "";
    width: 80px;
    height: 80px;
    background: url("../images/c1.svg") no-repeat;
    background-size: contain;
    top: -15px;
    left: -20px;
  }
  .c2 .inner::before {
    position: absolute;
    content: "";
    width: 80px;
    height: 80px;
    background: url("../images/c2.svg") no-repeat;
    background-size: contain;
    top: -15px;
    left: -20px;
  }
  .c3 .inner::before {
    position: absolute;
    content: "";
    width: 80px;
    height: 80px;
    background: url("../images/c3.svg") no-repeat;
    background-size: contain;
    top: -15px;
    left: -20px;
  }
}

/* ==========================================
 * スマートフォン用レイアウト (max-width: 600px)
 * ========================================== */
@media screen and (max-width: 1080px) {
  /* 全体コンテナの幅を画面いっぱいに */
  body .main-board {
    width: 100%;
  }

  /* -----------------------------------------
   * ヘッダーエリアのリセット
   * ----------------------------------------- */
  .main-board .head {
    height: auto;
    padding-top: 20px; /* 固定比率のパディングを解除 */
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* タイトル画像の調整 */
  .main-board .head h1 {
    position: static;
    width: 90%;
    height: auto;
    aspect-ratio: 390 / 97; /* 元の比率を維持 */
    margin: 10px auto;
    background-size: contain;
    order: 1;
  }

  /* 料金・申し込み窓口ボックスの縦並び化 */
  .main-board .head .box {
    position: static;
    width: 90%;
    height: auto;
    flex-direction: column;
    margin: 15px auto;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.9); /* スマホで見やすいよう背景を白っぽく */
    border-radius: 12px;
    box-sizing: border-box;
    order: 2;
  }

  .main-board .head .box .row1,
  .main-board .head .box .row2,
  .main-board .head .box .row3 {
    width: 100%;
    margin-bottom: 20px;
  }

  .main-board .head .box .row3 {
    margin-bottom: 0;
  }

  /* QRコードボックスの配置 */
  .main-board .head p.btnA.apply {
    position: static;
    background-color: transparent;
    width: 100%;
    order: 4;
    & a.apply {
      width: calc(90% - 3em);
      font-size: var(--fs-20);
    }
  }
  .main-board .head .qr-box {
    position: static;
    width: 100%;
    height: auto;
    margin-bottom: 4px;
    order: 3;
    & .btnA a {
      width: calc(90% - 3em);
    }
  }

  /* -----------------------------------------
   * コースエリアのリセット（縦1列化）
   * ----------------------------------------- */
  .main-board .courses {
    margin-top: 10px;
  }

  .main-board .courses .c1,
  .main-board .courses .c2,
  .main-board .courses .c3 {
    height: auto;
    flex-direction: column; /* 写真とインナーを縦並びに */
    padding: 20px 0;
  }
  .main-board .courses .c1 .inner .tb-sp,
  .main-board .courses .c2 .inner .tb-sp,
  .main-board .courses .c3 .inner .tb-sp {
    display: flex;
    flex-direction: row;
    order: 2;
    margin: 0;
    padding: 0;
    width: 100%;
  }
  /* コース右側にあったイメージ写真 */
  .main-board .courses .c1 .inner .tb-sp img.pics,
  .main-board .courses .c2 .inner .tb-sp img.pics,
  .main-board .courses .c3 .inner .tb-sp img.pics {
    position: static;
    width: 30%;
    height: auto;
    margin: 10px auto;
    order: 2; /* タイトルの下に配置 */
  }

  /* 各コースの内側カード */
  .main-board .courses .c1 .inner,
  .main-board .courses .c2 .inner,
  .main-board .courses .c3 .inner {
    width: 95%;
    height: auto;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    order: 1;
  }

  /* コースタイトル */
  .main-board .courses .c1 .inner h2,
  .main-board .courses .c2 .inner h2,
  .main-board .courses .c3 .inner h2 {
    position: static;
    width: 100%;
    height: auto;
    padding-left: 0;
    text-align: center;
    margin: 10px 0 20px 0;
  }

  .main-board .courses .c1 .inner h2 span.mark,
  .main-board .courses .c2 .inner h2 span.mark,
  .main-board .courses .c3 .inner h2 span.mark {
    position: static;
    background: linear-gradient(transparent 70%, #ee2 30%);
  }

  /* 左側にあった地図 */
  .main-board .courses .c1 .inner .tb-sp img.maps,
  .main-board .courses .c2 .inner .tb-sp img.maps,
  .main-board .courses .c3 .inner .tb-sp img.maps {
    position: static;
    width: 40%;
    height: auto;
    margin: 0 auto;
    order: 1; /* 写真の下に配置 */
  }

  /* 詳細ボックス（出発・見どころ・到着のコンテナ） */
  .main-board .courses .c1 .inner .detail-box,
  .main-board .courses .c2 .inner .detail-box,
  .main-board .courses .c3 .inner .detail-box {
    position: static;
    width: 100%;
    height: auto;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 3; /* 地図の下に配置 */
  }

  /* 空港出発・到着のアイコン（疑似要素）を通常フローのブロックに */
  .main-board .courses .c1 .inner .detail-box::before,
  .main-board .courses .c2 .inner .detail-box::before,
  .main-board .courses .c3 .inner .detail-box::before,
  .main-board .courses .c1 .inner .detail-box::after,
  .main-board .courses .c2 .inner .detail-box::after,
  .main-board .courses .c3 .inner .detail-box::after {
    position: static;
    display: block;
    width: 140px;
    height: 110px;
    margin: 18px 0;
  }

  .main-board .courses .c1 .inner::before,
  .main-board .courses .c2 .inner::before,
  .main-board .courses .c3 .inner::before {
    left: -5px;
  }

  /* 見どころリストのボックス */
  .main-board .courses .c1 .inner .detail-box .inbox,
  .main-board .courses .c2 .inner .detail-box .inbox,
  .main-board .courses .c3 .inner .detail-box .inbox {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: column; /* 2列から1列へ */
    padding: 15px;
    box-sizing: border-box;
  }

  .main-board .courses .c1 .inner .detail-box .inbox .detail-row,
  .main-board .courses .c2 .inner .detail-box .inbox .detail-row,
  .main-board .courses .c3 .inner .detail-box .inbox .detail-row {
    width: 100%;
  }

  /* 運行会社情報 */
  .main-board .courses .c1 .inner .foot,
  .main-board .courses .c2 .inner .foot,
  .main-board .courses .c3 .inner .foot {
    position: static;
    width: 100%;
    height: auto;
    margin-top: 20px;
    order: 4; /* 一番下に配置 */
  }

  .main-board .courses .c1 .inner .foot p,
  .main-board .courses .c2 .inner .foot p,
  .main-board .courses .c3 .inner .foot p {
    width: 100%;
    padding-left: 0;
    padding-top: 35px; /* 「運行会社」バッジが上に乗るスペース */
  }

  .main-board {
    & .footer {
      width: 100%;
      & p {
        padding: 8px 14px;
        margin: 0;
        width: calc(100% - 28px);
        &.madoguchi {
          padding-top: 35px;
          padding-left: 14px;
          padding-bottom: 18px;
          width: calc(100% - 28px);
          &::before {
            top: 2%;
            left: 14px;
          }
        }
      }
    }
  }

  .main-board .courses .c1 .inner .foot p::before,
  .main-board .courses .c2 .inner .foot p::before,
  .main-board .courses .c3 .inner .foot p::before {
    left: 0;
    top: 0;
    width: auto;
    padding: 4px 10px;
  }

  /* .main-board .footer p {
    width: calc(100% - 60px);
  } */
}

@media screen and (max-width: 768px) {
  .main-board .courses .c1 .inner .tb-sp,
  .main-board .courses .c2 .inner .tb-sp,
  .main-board .courses .c3 .inner .tb-sp {
    flex-direction: column;
  }
  /* コース右側にあったイメージ写真 */
  .main-board .courses .c1 .inner .tb-sp img.pics,
  .main-board .courses .c2 .inner .tb-sp img.pics,
  .main-board .courses .c3 .inner .tb-sp img.pics {
    position: static;
    width: 80%;
    height: auto;
    margin: 10px auto;
    order: 1; /* タイトルの下に配置 */
  }
  /* 左側にあった地図 */
  .main-board .courses .c1 .inner .tb-sp img.maps,
  .main-board .courses .c2 .inner .tb-sp img.maps,
  .main-board .courses .c3 .inner .tb-sp img.maps {
    position: static;
    width: 70%;
    height: auto;
    margin: 0 auto 20px auto;
    order: 2; /* 写真の下に配置 */
  }
}
