@charset "UTF-8";

/**
 *  Theme Name: HOKKAIDO AIRPORT
 */
:root {
  --text: #000000;
  --link: #000000;
  --primary: #1494FF;
  --white: #fff;
  --baige: #F9F7EE;
}

.baige {
  background-color: var(--baige);
}

html {
  font-size: 100%;
}

body {
  color: var(--text);
  font-family:"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro";
  font-size: 100%;
  background-color: var(--white);
  color: var(--text);
  font-size: 16px;
  line-height: 2em;
  margin: 0;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  opacity: 0.6;
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

ul, ol {
  padding-left: 1.5em;
}

h1,h2,h3,h4,h5,h6 {
  margin-bottom: .5em;
  padding: 0;
  line-height: 1.3;
  font-weight: bold;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

blockquote {
  border-left: 5px solid var(--primary);
  margin: 0 0 1.75em;
  padding: 0.1em 0 0 1.5rem;
  color: #666;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0 0 1.75em;
  table-layout: fixed;
  width: 100%;
}

table, caption, th, td {

}

th {
  font-weight: bold;
}

th, td {
  border-width: 0 1px 1px 0;
  padding: 0.5rem 1.5rem;
}

address {
  font-style: normal;
}

main {
  margin-top: 120px;
}

section {
  width: 100%;
  margin: auto;
}

section .section-inner {
  margin: auto;
  width: 100%;
  max-width: 900px;
  box-sizing: border-box;
}


/**
 *  ヘッダー
 */
#header {
  position: fixed;
  top: 0;
  height: 100px;
  align-items: center;
  width: 100%;
  background-color: #fff;
  z-index: 10;
}

#header.with-scroll {
  box-shadow:rgb(0 0 0 / 20%) 0px 2px 4px -1px,
             rgb(0 0 0 / 14%) 0px 4px 5px 0px,
             rgb(0 0 0 / 12%) 0px 1px 10px 0px
}

.header-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 100%;
  margin: auto;
  box-sizing: border-box;
}

#header .logo {
  position: relative;
  top: 15px;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin-block-start: 0;
  margin-block-end: 0;
  margin: auto;
  box-sizing: border-box;
}

#header .logo a {
  display: block;
  height: 100%;
}

#header .logo a img {
  width: 100%;
  height: auto;
}

#header .instagram {
  position: absolute;
  width: 38px;
  top: 22px;
  right: 0;
}

#header .instagram img {
  width: 100%;
  height: auto;
}

/**
 *  フッター
 */
#footer {
  background-color: var(--white);
}

#footer .copyright {
  width: 100%;
  margin: auto;
  padding: 60px 0;
  box-sizing: border-box;
  font-size: 0.75rem;
  text-align: center;
}


/**
 *  その他
 */
.for-pc {
  display: block;
}

.for-sp {
  display: none;
}


@media screen and ( max-width: 900px ) {

  body {
    font-size: 13px;
  }

  #header {
    height: 100px;
    margin-top: 0;
  }

  #header .header-inner {
    height: 100%;
  }

  #header .header-inner {
    width: 100%;
  }

  #header .logo {
    top: 20px;
    max-width: 240px;
  }

  #header .logo a {
    display: flex;
  }

  #header .logo img {
    position: relative;
    height: 45px;
    width: auto;
  }

  #header .logo .for-pc {
    display: none;
  }

  #header .logo .for-sp {
    display: block;
  }

  #header .instagram {
    width: 30px;
    right: 10%;
  }

  #footer {
    padding: 25px 0;
  }

  main {
    margin-top: 120px;
  }

  section .section-inner {
    padding-left: 7%;
    padding-right: 7%;
  }

}

@media screen and ( max-width:768px ) {


}

@media screen and ( max-width: 480px ) {

  .for-pc {
    display: none;
  }

  .for-sp {
    display: block;
  }

  #header {
    height: 60px;
  }

  #header .header-inner {
    padding: 0 7%;
  }
  #header .logo {
    margin: unset;
    top: 15px;
    max-width: 180px;
  }

  #header .instagram {
    width: 22px;
    top: 15px;
    right: 7%;
  }

  #mainvisual .inner {
    padding: 60px 3% 0;
  }

  #footer .logo {
    width: 96px;
  }

  #footer .copyright {
    font-size: 0.75em;
    padding: 0;
  }

  main {
    margin-top: 60px;
  }

}


/**
 *  トップ：video
 */
#mainvisual {
  position: relative;
}

.video_wrapper {
  position: relative;
  width: 100%;
  max-width: 1100px;
  max-height: calc(100vh - 120px);
  aspect-ratio: 16 / 9;

  margin: auto;
  overflow: hidden;
  background-color: var(--white);
}

.video_wrapper video {
  display: block;
  object-fit: contain;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 0;
  container-type: inline-size;
}

.video_wrapper video,
.video_wrapper video source {
  border: 0 !important;
  background-color: var(--white);
}

.video-link {
  position: absolute;
  opacity: 0.5;
  z-index: 2;
  cursor: pointer;
}

.video-link:hover {
  opacity: 1.0;
}

.video-link img {
  width: 100%;
  height: auto;
}

.video-link.for-pc {
  width: 250px;
  right: max(10%, 16px);
  bottom: max(6.35%, 16px);
}

.video-link.for-sp {
  display: none;
  width: 100px;
  right: 30px;
  bottom: 10px;
}

@container (min-width: 1100px) {
  .video-link {
    right: 140px;
    bottom: 50px;
  }
}

@media screen and ( max-width:1100px ) {
  .video_wrapper {
    width: 97%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media screen and (max-width:768px) {

  .video_wrapper {
    max-width: 100%;     /* ← これが重要 */
    width: calc(100% - 20px); /* margin 10px×2 の計算 */
    aspect-ratio: 16 / 9;
    height: auto;
    margin: 60px 10px 0;
    border-radius: 15px;
  }

  .video-link.for-sp {
    right: 15px;
    bottom: 15px;
    opacity: 1;
  }

  .video-link.for-pc {
    display: none;
  }

  .video-link.for-sp {
    display: block;
  }

}

/**
 *  バナー
 */
#top-banner-section .section-inner {
  padding-top: 100px;
  padding-bottom: 30px;
}

.catch-block {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 auto 100px;
}

#banners-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat( 2, 1fr );
  column-gap: 50px;
}

#banners-wrapper .banner {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

#banners-wrapper .banner img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

#banners-wrapper .banner a:hover img {
  opacity: 1;
  transform: scale(1.08);
}

@media screen and ( max-width:900px ){

  .catch-block {
    max-width: 640px;
  }

}

@media screen and ( max-width:768px ){

  #top-banner-section .section-inner {
    padding-top: 50px;
    padding-bottom: 15px;
  }

  .catch-block {
    max-width: 580px;
    margin: 0 auto 45px;
  }

  #banners-wrapper {
    column-gap: 18px;
  }

  #banners-wrapper .banner {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 1em;
  }

}

@media screen and ( max-width:480px ){

  #top-banner-section .section-inner {
    padding-top: 40px;
    padding-bottom: 10px;
  }

  .catch-block {
    margin: 30px auto 65px;
  }
}


/**
 *  タグフィルター
 */
#top-filter-section {
  position: relative;
  width: 100%;
  margin: auto;
  box-sizing: border-box;
}

#top-filter-section .section-inner {
  padding-top: 35px;
  padding-bottom: 125px;
}

#top-filter-section .section-inner.active {
  padding-bottom: 0;
}

.tag-buttons-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat( 4, 1fr );
  column-gap: 30px;
  row-gap: 30px;

  max-height: none;
  opacity: 1;
}

.tag-btn {
  position: relative;
  appearance: none;
  border: 2px solid var(--white);
  padding: 0.75em 0;
  border-radius: 0;
  background: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .06s ease;
  line-height: 1;
  text-align: center;
  width: 100%; /* grid内で幅いっぱいに */
}

/* not selected */
.tag-btn.tag-color-id { color: #604C3F; border-color: #604C3F; } /* インドネシア */
.tag-btn.tag-color-sg { color: #EA5514; border-color: #EA5514; } /* シンガポール */
.tag-btn.tag-color-th { color: #E4007F; border-color: #E4007F; } /* タイ */
.tag-btn.tag-color-ph { color: #00A29A; border-color: #00A29A; } /* フィリピン */
.tag-btn.tag-color-vn { color: #13AE67; border-color: #13AE67; } /* ベトナム */
.tag-btn.tag-color-my { color: #006934; border-color: #006934; } /* マレーシア */
.tag-btn.tag-color-cn { color: #C30D23; border-color: #C30D23; } /* 中国 */
.tag-btn.tag-color-kr { color: #171C61; border-color: #171C61; } /* 韓国 */
.tag-btn.tag-color-hk { color: #036EB8; border-color: #036EB8; } /* 香港 */
.tag-btn.tag-color-tw { color: #2EA7E0; border-color: #2EA7E0; } /* 台湾 */
.tag-btn.tag-color-au { color: #F4A300; border-color: #F4A300; } /* オーストラリア */
.tag-btn.tag-color-eu { color: #5C7FFF; border-color: #5C7FFF; } /* ヨーロッパ */
.tag-btn.tag-color-gu { color: #AA4EC3; border-color: #AA4EC3; } /* グアム */
.tag-btn.tag-color-hi { color: #D88A2E; border-color: #D88A2E; } /* ハワイ */
.tag-btn.tag-color-na { color: #0072A8; border-color: #0072A8; } /* 北米 */
.tag-btn.tag-color-ot { color: #8C8C8C; border-color: #8C8C8C; } /* その他 */

/* selected */
.tag-btn.selected { color: #fff !important; }
.tag-btn.tag-color-id.selected { background-color: #604C3F; } /* インドネシア */
.tag-btn.tag-color-sg.selected { background-color: #EA5514; } /* シンガポール */
.tag-btn.tag-color-th.selected { background-color: #E4007F; } /* タイ */
.tag-btn.tag-color-ph.selected { background-color: #00A29A; } /* フィリピン */
.tag-btn.tag-color-vn.selected { background-color: #13AE67; } /* ベトナム */
.tag-btn.tag-color-my.selected { background-color: #006934; } /* マレーシア */
.tag-btn.tag-color-cn.selected { background-color: #C30D23; } /* 中国 */
.tag-btn.tag-color-kr.selected { background-color: #171C61; } /* 韓国 */
.tag-btn.tag-color-hk.selected { background-color: #036EB8; } /* 香港 */
.tag-btn.tag-color-tw.selected { background-color: #2EA7E0; } /* 台湾 */
.tag-btn.tag-color-au.selected { background-color: #F4A300; } /* オーストラリア */
.tag-btn.tag-color-eu.selected { background-color: #5C7FFF; } /* ヨーロッパ */
.tag-btn.tag-color-gu.selected { background-color: #AA4EC3; } /* グアム */
.tag-btn.tag-color-hi.selected { background-color: #D88A2E; } /* ハワイ */
.tag-btn.tag-color-na.selected { background-color: #0072A8; } /* 北米 */
.tag-btn.tag-color-ot.selected { background-color: #8C8C8C; } /* その他 */

.tag-btn:active {
  transform: translateY(1px);
}

.tag-title {
  text-align: center;
  margin: auto;
  margin-bottom: 1.5em;
  font-size: 24px;
}

.tag-title-text {
  position: relative;
  display: inline-block;
}

.tag-title-text img {
  position: relative;
  max-width: 114px;
  vertical-align: middle;
}

.toggle-icon {
  position: absolute;
  left: 100%;
  margin-left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  cursor: pointer;
  display: none;
}

.toggle-icon span {
  position: absolute;
  width: 10px;           /* ← 短くする */
  height: 1px;
  background: #000;
  transition: transform 0.3s ease;
}

.toggle-icon span:nth-child(1) {
  top: 6px;
  left: 6px;
  transform-origin: right center; /* ← 右端を軸に */
  transform: rotate(-45deg);
}

.toggle-icon span:nth-child(2) {
  top: 6px;
  right: 6px;
  transform-origin: left center;  /* ← 左端を軸に */
  transform: rotate(45deg);
}

.is-open .toggle-icon span:nth-child(1) {
  top: 14px;
  transform: rotate(45deg);
}

.is-open .toggle-icon span:nth-child(2) {
  top: 14px;
  transform: rotate(-45deg);
}

@media (max-width: 480px) {

  .tag-buttons-wrapper {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: grid-template-rows 0.4s ease, opacity 0.3s ease;
  }

  .tag-title-text img {
    max-width: 80px;
  }

  .toggle-icon {
    display: block;
  }

  #tag-buttons-wrapper.is-open .tag-buttons-wrapper {
    max-height: 500px;
    opacity: 1;
  }

  .tags .tag-btn {
    opacity: 0;
    transform: translateY(20px);
  }

  .tags {
    overflow: hidden;
    transition: opacity 0.3s ease;  /* max-height をやめる */
  }

  #tag-buttons-wrapper.is-open .tags {
    opacity: 1;
  }

}

@media screen and ( max-width:768px ){

  #top-filter-section .section-inner {
    padding-top: 30px;
    padding-bottom: 60px;
  }

  .tag-buttons-wrapper {
    column-gap: 18px;
    row-gap: 18px;
  }

  .tag-btn {
    font-size: 14px;
    padding: 0.4em 0;
  }

}

@media screen and ( max-width:480px ){

  #top-filter-section .section-inner {
    padding-bottom: 45px;
  }

  .tag-title {
    font-size: 16px;
  }

  .tag-buttons-wrapper {
    grid-template-columns: repeat( 2, 1fr );
  }

}

/**
 *  注目トピックス
 */
#campaign-section .section-inner {
  padding-top: 125px;
  padding-bottom: 125px;
}

.campaing-title-block {
  position: relative;
  display: block;
  width: 100%;
  height: 40px;
  margin-bottom: 45px;
  text-align: center;
}

.campaing-title-block img {
  height: 100%;
  width: auto;
  margin: auto;
}

.swiper-wrapper {
  position: relative;
  padding-bottom: 50px;
}

.campaign-swiper .swiper-slide {
  width: calc( ( 100% - 60px ) / 2 ); /* 2枚表示＋余白 */
  margin-right: 0;
  box-sizing: border-box;
}

.campaign-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}

.campaign-title {
  font-size: 18px;
}

.campaign-title a:hover {
  text-decoration: underline;
}

.campaign-thumb {
  width: 100%;
}

.campaign-thumb a {
  display: inline-block;
  overflow: hidden;
}

.campaign-thumb a img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.campaign-thumb a:hover img {
  opacity: 1;
  transform: scale(1.08);
}

.campaign-tags {
  font-size: 100%;
}

.campaign-tag {
  display: inline-block;
  margin-right: 0.4em;
  font-size: 100%;
}

.campaign-excerpt {
  font-size: 100%;
}

.campaign-excerpt a:hover{
  text-decoration: underline;
}

.campaign-swiper .swiper-button-prev,
.campaign-swiper .swiper-button-next {
  width: 35px;
  height: 35px;
  background: none;      /* 背景なし */
  color: #fff;           /* 黒線 */
  top: 42% !important;
  transform: translateY(-50%);
  z-index: 10;          /* ← これを必ず追加 */
  pointer-events: auto;
}

.campaign-swiper .swiper-button-prev::before,
.campaign-swiper .swiper-button-next::before {
  content: none;
}

.campaign-swiper .swiper-button-prev::after,
.campaign-swiper .swiper-button-next::after {
  font-size: 28px;       /* 線を太く大きく */
  font-weight: 700;
}

.campaign-swiper .swiper-button-prev svg,
.campaign-swiper .swiper-button-next svg {
  display: none;
}

.campaign-swiper .swiper-button-prev {
  left: -50px;
}

.campaign-swiper .swiper-button-next {
  right: -50px;
}

.campaign-swiper .swiper-button-prev:hover,
.campaign-swiper .swiper-button-next:hover {
  transform: translateY(-50%) scale(1.15);
}

.campaign-swiper {
  overflow: visible;
}

@media screen and ( max-width:900px ){

  .campaing-title-block {
    height: 40px;
  }

}

@media screen and ( max-width:767px ){

  #campaign-section .section-inner {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .campaing-title-block {
    max-width: 380px;
    margin: auto;
  }

  .campaign-swiper .swiper-slide {
    width: 100%;
    margin-right: 0;
  }

}

@media screen and ( max-width:480px ){

  #campaign-section .section-inner {
    padding-top: 35px;
    padding-bottom: 0;
  }

  .campaing-title-block {
    height: 20px;
    margin-bottom: 10px;
  }

  .campaign-title {
    font-size: 13px;
  }
}


/**
 *  フィルタリング対象記事
 */
#filtering-section .section-inner {
  padding-top: 125px;
  padding-bottom: 125px;
}

.plan-title-block {
  position: relative;
  display: block;
  width: 100%;
  height: 40px;
  margin-bottom: 45px;
  text-align: center;
}

.plan-title-block img {
  height: 100%;
  width: auto;
  margin: auto;
}

.posts-list {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  background: #ffffff;
}

.post-title {
  display: flex;
  align-items: center;
  height: 2.5em;
  font-size: 18px;
  font-weight: bold;
}

.post-title a:hover {
  text-decoration: underline;
}

.post-thumb a {
  display: inline-block;
  overflow: hidden;
}

.post-thumb a img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-thumb a:hover img {
  transform: scale(1.08);
}

.post-body .post-excerpt {
  font-size: 100%;
}

.post-body .post-excerpt a:hover {
  text-decoration: underline;
}

.post-meta {
  font-size: 100%;
}

@media screen and ( max-width:900px ){

  .plan-title-block {
    height: 40px;
  }

}

@media screen and ( max-width:768px ){

  #filtering-section .section-inner {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .posts-list {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

}

@media screen and ( max-width:480px ){

  #filtering-section .section-inner {
    padding-top: 35px;
    padding-bottom: 35px;
  }

  .plan-title-block {
    height: 20px;
    margin-bottom: 10px;
  }

  .post-title {
    font-size: 13px;
  }
}
