@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&display=swap&subset=japanese');

/****SP用の改行を非表示****/
.sp-only {
	display: none;
}



/****セクション間隔****/
.ui-static-container-space-m {
  margin-top: 40px; 
  margin-bottom: 40px; 
}

/****MV****/

.ui-static-main-visual-bg-big {
    background-image: url("../img/main.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 550px; 
    min-height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ui-static-main-visual {
    position: relative;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

/* テキストを重ねる場合
.ui-static-main-visual-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 auto;
}　 */

.ui-static-main-visual-no-image {
    background: transparent;
}

/****コタキナバル説明****/

.description-kotaki .ui-static-item-card-horizontal-reverse {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 24px !important;
    background-color: transparent !important;
    border: none !important;
    width: 100% !important;
}

/* テキストエリア(左） */
.description-kotaki .ui-static-item-card-details {
    display: flex !important;
    flex-direction: column !important;
    width: 55% !important;
    flex: 0 0 55% !important;
    max-width: 55% !important;
    padding: 0 !important;
    margin: 0 !important;
    grid-template-columns: none !important; /* 共通Gridを完全に無効化 */
}

/* 地図エリア(右） */
.description-kotaki .ui-static-image-container {
    width: 45% !important;
    flex: 0 0 45% !important;
    max-width: 45% !important;
    margin: 0 !important;
    display: block !important;
}

/* 地図画像 */
.description-kotaki .ui-static-image {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

.description-kotaki .ui-static-image img {
    width: 100% !important;
    height: auto !important;
    position: static !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
}

/* 見出し・サブタイトル(左） */
.description-kotaki h2.font-normal {
    font-weight: bold !important;
	font-size: 40px !important;
    text-align: center !important;
    padding-top: 30px !important;
    margin-bottom: 20px !important;
    position: relative !important;
    display: block !important;
}

.description-kotaki .ui-static-heading-subtitle {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    text-align: center !important;
    font-weight: bold !important;
    margin-bottom: 0 !important;
}

/* 魅力マップ(左） */
.description-kotaki .ui-static-content-image {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 24px !important;
    display: block !important;
}

.description-kotaki .ui-static-content-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* 説明文テキスト */

h2.ui-static-heading.ui-static-heading-size-huge.ui-static-heading-left.ui-static-heading-with-subtitle-top {
	font-weight:bold;
	margin-top: 10px;
	margin-bottom: 20px;
	}

.description-kotaki .ui-static-text-black {
    text-align: left !important;
    line-height: 1.8 !important;
    margin-bottom: 0 !important;
}


/****スケジュール表****/

.flight-schedule {
	background-color: #f2f2f2;
	padding: 40px 0;
}	

section.flight-schedule .layout-d {
    padding: 0 20px;
    box-sizing: border-box;
}

.flight-schedule .ui-static-table-table {
    background-color: #ffffff;
}

.ui-static-table-table thead th {
    background-color: #2e7d32 !important;
    color: #ffffff !important;
}

.ui-static-table-table-wrapper {
	display: flex;
	gap: 24px;
	text-align: center;
}

 .flight-schedule .ui-static-table.ui-static-table-variant-basic .ui-static-table-table-wrapper .ui-static-table-table th, .ui-static-table.ui-static-table-variant-basic .ui-static-table-table-wrapper .ui-static-table-table td {
	flex: 1;
  　text-align: center;
}


.ui-static-text.ui-static-text-small {
    color: #000000;
}

.flight-schedule h2.ui-static-heading.ui-static-heading-size-huge.font-normal {
    font-weight: bold !important;
	font-size: 40px !important;
}

/* 早割 */


.flight-image-container-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    row-gap: 0 !important;
  }

  /* 2. 2つの画像コンテナ自体の上下余白を完全にゼロにする */
  .flight-image-container-wrapper .flight-image-container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* 3. 既存の指定＋余白リセット */
  .flight-image-container .ui-static-container.ui-static-container-space-m {
    row-gap: 0rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* 4. 既存のPC用画像指定＋隙間対策（block化） */
  .flight-bonus-item .u-pc-only {
    display: block !important;
    text-align: center !important;
    width: 100%;
    margin-top: 30px !important;
  }

  /* 5. SP用画像は非表示 */
  .flight-bonus-item .u-sp-only { 
    display: none !important; 
  }


/**** コタキナバルの楽しみ方 ****/

h2.ui-static-heading.ui-static-heading-size-enormous.ui-static-heading-center.color-green {
    margin-top: 20px ;
	margin-bottom: 10px ; 
    padding-top: 0 ;
	color: #2e7d32 ;
	font-weight:bold;
}

.ui-static-heading.ui-static-heading-size-medium.color-green.ui-static-heading-left.ui-static-heading-light-lg.ui-static-heading-bold.enjoy-kotaki {
	font-size: 25px;
	font-weight: bold;
	}

.layout-c {
    margin-top: 10px;
    margin-bottom: 80px;
}

.ui-static-item-card-details .ui-static-heading.ui-static-heading-size-medium.color-green {
    font-size: 32px;
	color: #2e7d32 !important;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 4px;
    padding-top: 0;
    padding-bottom: 0;
}

.ui-static-item-card-details .ui-static-item-card-description .font-normal {
    font-size: 14px;
	font-weight: normal;
    line-height: 1.5;
    color: #333333;
    margin-top: 0;
    padding-top: 0;
}

.ui-static-item-card-details.ui-static-container-space-xs {
    padding-top: 12px;
    padding-bottom: 8px;
}

.ui-static-grid-list {
    margin-top: 20;
}

/**** サバ州インスタリンク ****/

.saba-image-container-wrapper {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  row-gap: 0 !important;
  width: 100% !important; /* コンテナ自体を横幅いっぱいに */
  align-items: stretch !important; /* 子要素を横幅いっぱいに広げる */
}

/* ラッパーの中にある子要素（アイテムや画像）を横幅いっぱいに広げる */
.saba-image-container-wrapper > * {
  width: 100% !important;
}

/* 画像自体の横幅を100%にして、アスペクト比を保つ */
.saba-image-container-wrapper img {
  width: 100% !important;
  height: auto !important;
}

/* 5. SP用画像は非表示 */
.saba-item .u-sp-only { 
  display: none !important; 
}

/****タブ****/

.ui-static-tab-container {
    width: 100%;
	margin-top: 80px; 
    margin-bottom: 80px; 
}

.ui-static-tab-button-list {
    display: flex;
	flex-wrap: wrap;
    gap: 4px;
	row-gap: 20px;
    align-items: center;
    position: relative;
    padding-bottom: 24px;
    border: none;
    background: none;
}

.ui-static-tab-button {
    flex: 1;
    padding: 16px 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    border-radius: 4px; 
    background-color: #ffffff ;
    color: #2e7d32 ;
    border: 1px solid #2e7d32;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}


.ui-static-tab-button:hover {
    background-color: #f5f5f5;
    color: #2e7d32 ;
}

.ui-static-tab-button.is-active {
    background-color: #2e7d32 ;
    color: #ffffff ;
    border-color: #2e7d32;
}

.ui-static-tab-button.is-active:hover {
    background-color: #2e7d32 ;
    color: #ffffff ;
}

.ui-static-tab-button::before {
    display: none ;
    content: none ;
}

.ui-static-tab-button.is-active::after {
    display: block ;
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-style: solid;
    border-width: 12px 10px 0 10px;
    border-color: #2e7d32 transparent transparent transparent;
}

.ui-static-tab-button .sub {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 600;
}

.ui-static-tab-button .main {
    display: block;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
}

.ui-static-tab-content {
    padding-top: 0px;
}

.ui-static-tab-content-item {
    display: none;
}

.ui-static-tab-content-item.is-active {
    display: block;
}




/****タブ内コンテンツ****/

/****タブ１見出し　****/


h2.ui-static-heading.ui-static-heading-size-huge.font-normal.tab-1-heading {
    font-weight: bold !important;
    font-size: 36px !important;
    color: #2e7d32 !important;
    margin-top: 20px !important;
    margin-bottom: 50px !important;
    padding-top: 0 !important;
    text-align: center;
    align-items: center;
    position: static !important; 
    display: flex !important;
    flex-direction: column-reverse !important;
}

/* サブタイトル */
section.tab-1 span.ui-static-heading-subtitle {
    display: block !important;
    position: static !important;
    transform: none !important;
    margin-bottom: 10px !important;
    font-size: 0.5em;
    font-weight: bold;
}

/* 人気No.1を強調 */
section.tab-1 .highlight-text {
	font-weight: bold;
	font-size: 20px;
	color: #342715;
	background: linear-gradient(transparent 55%, #fcdf52 55%);
	padding: 0px 2px 0px 8px;
}
	

/****リスト全体****/
.ui-static-grid-list.ui-static-grid-col-1.ui-static-grid-space-01 {
	margin-top:40px
}

/* --- カードの囲い（グリーン） --- */
.layout-e .ui-static-item-card {
    display: flex; 
    align-items: stretch;
    border: 1px solid #2e7d32; 
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px; 
    background-color: #ffffff;
    min-height: 150px;
}

/* --- 左側：画像エリア --- */
.layout-e .ui-static-image {
    flex: 0 0 200px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0 !important;
}

.layout-e .ui-static-image-container {
    width: 100%;
    height: 100%;
    border-radius: 2px;
    overflow: hidden;
}

.layout-e .ui-static-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* --- 右側：テキスト詳細エリア --- */
.layout-e .ui-static-item-card-details {
    flex: 1;
    padding: 20px 20px 20px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    text-align: left;
}

/* --- カード内見出し --- */
.layout-e .ui-static-item-card-details h3.ui-static-heading {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    color: #2e7d32;
    font-size: 25px !important;
    font-weight: 600 !important;
}

/* 世界遺産アイコン --- */
.world_heritage-icon {
    width: auto;
    height: 24px;
    flex-shrink: 0;
    position: relative;
    top: 2px;
}

/* --- カード内説明文 --- */
.layout-e .ui-static-item-card-description {
    margin: 0;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.6;
    color: #333333;
    text-align: left;
    display: block;
}



/* 食事エリア ★SP版修正★*/

.meal-banner-container {
  margin-top: 30px;
  padding: 0 10px;
  width: 100%;
}

.meal-banner-bar {
  background-color: #f24501;
  color: #ffffff;
  text-align: center;
  padding: 12px 20px;
  border-radius: 0px;
  font-weight: bold;
  font-size: 30px;
  line-height: 1.4;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.meal-banner-subtext {
  margin-top: 10px;
  text-align: center;
  font-size: 22px;
  color: #333333;
  font-weight: bold;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* --- 2つ目のタブ専用のデザイン指定 --- */

/* タブ2の大見出し */
.tab-2-heading {
    color: #2176ba !important;
    margin-top: 0 !important;
    margin-bottom: 30px !important;
    padding-top: 20px !important;
    text-align: center;
	font-weight:bold;
	font-size: 36px;
}

/* 日付テキストのスタイル -中止-
.ui-static-image-date {
    font-size: 30px !important;
    font-weight: 900 !important;
    margin-bottom: 10px !important;
    text-align: left;
    line-height: 1;
}

.ui-static-image-date.day2 {
    color: #2176ba !important;
}

.ui-static-image-date.day3 {
    color: #2176ba !important;
}*/

/* キナバル公園とポーリン温泉(オレンジ枠） */
.enjoy-kotakinabalu .ui-static-item-card-full-width {
    border-color: #2176ba !important;
} 

/* グリッド*/
.tab-item-style-02 .ui-static-grid-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
    align-items: stretch !important;
}

.tab-item-style-02 .ui-static-item-card:nth-child(n+2) {
    width: calc(50% - 12px) !important; 
    flex: 0 0 calc(50% - 12px) !important;
    border: 1px solid #2176ba !important;
    background-color: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    display: flex !important;
    flex-direction: row !important;
    margin-bottom: 24px !important;
    align-items: stretch !important;
    gap: 12px !important;
}

/* 画像エリア */
.tab-item-style-02 .ui-static-item-card:nth-child(n+2) .ui-static-image {
	flex: 2 !important; 
    width: auto !important;
    max-width: 40% !important;
    padding: 15px !important;
    margin-bottom: 0 !important;
    aspect-ratio: 3 / 2 !important;
    overflow: hidden !important;
    align-self: flex-start !important;
    display: flex !important;
    flex-direction: column !important; 
    background: transparent !important;
}

/* 画像コンテナと中身のフィット */
.tab-item-style-02 .ui-static-image-container {
    width: 100% !important;
    height: 100% !important;
}

/* テキストエリア */
.tab-item-style-02 .ui-static-item-card:nth-child(n+2) .ui-static-item-card-details {
    flex: 3 !important;
    padding: 20px 15px 20px 0 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

/* 文字色・サイズ */
.layout-e.tab-item-style-02 .ui-static-item-card-details h3.ui-static-heading {
    color: #2176ba !important;
    font-size: 25px !important;
	font-weight: bold;
	margin-top: 20px !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

.tab-item-style-02 .ui-static-item-card-description {
    color: #333333 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    text-align: left !important;
}

/* 画像自体のフィット設定 */
.tab-item-style-02 .ui-static-image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* スマホ対応（992px以下は縦1列） */
@media screen and (max-width: 992px) {
    .tab-item-style-02 .ui-static-item-card:nth-child(n+2) {
        width: 100% !important;
        flex: 0 0 100% !important;
    }
}

/* --- ２つから選べるオプショナルツアー --- */

/* 見出し（ブルー） */
.tab-2-heading.color-blue {
    color: #2176ba !important;
    margin: 25px 0 30px !important;
    text-align: center;
	font-weight:bold;
}

/* 1. グリッド親要素 */
.tab-item-style-03 .ui-static-grid-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    width: 100% !important;
    align-items: stretch !important;
}

/* 2. カード本体 */
.layout-e.tab-item-style-03 .ui-static-item-card.ui-static-item-card-half-width {
    width: calc(50% - 10px) !important;
    flex: 0 0 calc(50% - 10px) !important;
    border: 1px solid #2176ba !important;
    background-color: #ffffff;
    border-radius: 4px;
    display: flex !important;
    flex-direction: row !important;
    overflow: hidden;
    gap: 0 !important;
    margin-bottom: 24px !important;
}

/* 画像エリア */
.tab-item-style-03 .ui-static-item-card.ui-static-item-card-half-width .ui-static-image {
    flex: 2 !important; 
    max-width: 40% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    align-self: flex-start !important;
    padding: 15px !important;
    height: auto !important;
    background: none !important;
}

/* バッジ（プランA/B） */
.ui-static-image-badge {
    display: block !important;
    width: 100% !important;
    background-color: #2176ba !important;
    color: #ffffff !important;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 0;
    margin-bottom: 8px !important;
    border-radius: 50px;
    flex-shrink: 0;
}

/* キナバル公園用のバッジ　★SP用修正 */
.tab-item-style-02 .ui-static-image-badge {
    background-color: #2176ba !important;
    margin-bottom: 8px !important;
}

.tab-item-style-02 .ui-static-image {
    flex-direction: column !important;
}

/* 4. 画像コンテナ */
.tab-item-style-03 .ui-static-image-container {
    width: 100% !important;
    position: relative !important;
    height: 0 !important;
    padding-top: 80% !important;
    overflow: hidden !important;
    border-radius: 2px;
}

.tab-item-style-03 .ui-static-image-container img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* テキストエリア */
.tab-item-style-03 .ui-static-item-card.ui-static-item-card-half-width .ui-static-item-card-details {
    flex: 3 !important; 
    padding: 20px 15px 20px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    flex-grow: 1 !important;
    min-width: 0 !important;
}

/* テキストスタイル */
.layout-e.tab-item-style-03 .ui-static-item-card-details h3.ui-static-heading {
    color: #2176ba !important;
    font-size: 25px !important;
	font-weight: bold !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

.tab-item-style-03 .ui-static-item-card-description {
    color: #333333 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    text-align: left !important;
}

/* スマホ対応 */
@media screen and (max-width: 992px) {
    .tab-item-style-03 .ui-static-item-card.ui-static-item-card-half-width {
        width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 16px !important;
    }
}

/****調整 ★SP用修正****/
/* 左側：画像エリアの余白を統一 */
.tab-item-style-02 .ui-static-image,
.tab-item-style-03 .ui-static-image {
    padding: 15px 0px 15px 15px !important; /* バッジの上端を決める */
}

/* 右側：テキストエリアの余白を左側と合わせる */
.tab-item-style-02 .ui-static-item-card-details,
.tab-item-style-03 .ui-static-item-card-details {
    padding-top: 0px !important;
    padding-bottom: 15px !important;
}

/* 1. カード本体：flex-startを削除（またはstretchに変更） */
.tab-item-style-02 .ui-static-item-card:nth-child(n+2),
.layout-e.tab-item-style-03 .ui-static-item-card.ui-static-item-card-half-width {
    align-items: stretch !important; /* これでテキスト側が画像に合わせて伸びます */
}

/* 2. 画像エリア：高さを親に合わせ、計算を安定させる */
.tab-item-style-02 .ui-static-item-card:nth-child(n+2) .ui-static-image,
.tab-item-style-03 .ui-static-item-card.ui-static-item-card-half-width .ui-static-image {
    flex: none !important;
    width: 40% !important;
    height: auto !important;
}

/* 3. 画像コンテナ：アスペクト比を3:2で固定 */
.tab-item-style-02 .ui-static-image-container,
.tab-item-style-03 .ui-static-image-container {
    width: 100% !important;
    aspect-ratio: 3 / 2 !important; /* 比率を強制 */
    height: auto !important;
    padding-top: 0 !important;
}

/* 4. 画像自体：absoluteを解除 */
.tab-item-style-02 .ui-static-image-container img,
.tab-item-style-03 .ui-static-image-container img {
    position: static !important; /* 比率を正しく反映させるため */
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 2. 画像エリア：幅を40%で固定（3日目と同じ幅に合わせる） */
.tab-item-style-02 .ui-static-item-card:nth-child(n+2) .ui-static-image {
    flex: none !important;
    width: 40% !important; /* ここで3日目のmax-width: 40%と合わせます */
    max-width: 40% !important;
    min-width: 40% !important;
    height: auto !important;
}


/* --- 3つ目のタブ専用のデザイン指定 --- */

h2.tab-3-heading {
    font-weight: bold !important;
    font-size: 40px !important;
    color: #f14300 !important;
    margin-top: 20px !important;
    margin-bottom: 50px !important;
    padding-top: 0 !important;
    text-align: center;
    align-items: center;
    position: static !important; 
    display: flex !important;
    flex-direction: column-reverse !important;
}

/* コンテナ全体（薄いグリーン背景） */
.family_sale {
  background-color: #fff5e5;
  padding: 20px;
}

/* 内枠（グリーンの点線・左右レイアウト） */
.family_sale_inner {
  border: 2px dashed #f14300;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center; /* テキスト側は中央基準を維持 */
}

/* 左側：テキストエリア */
.family_sale_content {
  flex: 1;
  min-width: 0;
  z-index: 2; /* 追加：画像より前面にテキストを表示させる */
}

/* タイトルと補足事項（横並び） */
.family_sale_title {
  font-size: 30px;
  color: #f14300;
  font-weight: 900;
  margin: 0 0 10px 0; /* 下に少し余白を追加 */
  display: flex;
  align-items: flex-end;
  gap: 15px;
}

/* 特典リスト */
.family_sale_list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.family_sale_item {
  display: flex;
  align-items: center;
  margin-bottom: 8px; /* 各行の間の余白を均等に設定 */
}

/* ①ラベル（背景色付き・白文字） */
.family_sale_item .benefit_label {
  background-color: #6c6b6b;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  padding: 0px 8px;
}

.benefit_label2.animate_label{
	background-color: none;
	font-size: 20px;
	color: #f50c00;
	font-weight: bold;
}

/* ②つなぎテキスト */
.family_sale_item .benefit_text,
.family_sale_item .benefit_subtext {
  font-size: 25px;
  color: #333;
  font-weight: bold;
}

/* ③価格・値引き額 */
.family_sale_item .benefit_price {
  font-size: 20px;
  color: #f50c00;
  font-weight: bold;
	background: linear-gradient(transparent 70%, #fff60c 70%);
}
.family_sale_item .benefit_price .num {
  font-size: 36px;
}

/* 右側：イラスト画像 */
.family_sale_image {
  flex-shrink: 0;
  margin-left: -120px; /* ネガティブマージンで画像をテキストエリア側に食い込ませ、重なりを許容する */
  z-index: 1;
	display: flex;
  justify-content: center; /* 左右中央 */
  align-items: center; /* 上下中央。align-self: flex-end は削除します。 */
}

.family_sale_image img {
  max-width: 240px;
  display: block; /* flexからblockに修正して挙動を安定化 */
}

/* --- 個別のサイズ指定設定 --- */

/* ②つなぎテキスト（全体の基本サイズ：大きく調整） */
.family_sale_item .benefit_text {
  font-size: 20px;
  color: #333;
  font-weight: bold;
}

/* 【修正】HTMLの順番に合わせて nth-child(4) から nth-child(3) に変更 */
/* 3行目（3世代旅行）専用：改行禁止・潰れ防止・金額とテキストの下揃え指定 */
.family_sale_item:nth-child(3) {
  display: flex !important;
  flex-wrap: nowrap !important;     /* 絶対に途中で折り返さない */
  white-space: nowrap !important;   /* 自動改行を禁止 */
  align-items: flex-end !important; /* 隣の大きな金額テキストと下端のラインを揃える */
  margin-bottom: 8px !important;    /* 他の行と余白を統一 */
}

/* 【修正】こちらも nth-child(3) に変更 */
/* 3行目の子要素が画像エリアに押されて縮まないように固定 */
.family_sale_item:nth-child(3) > span,
.family_sale_item:nth-child(3) > .benefit_price {
  flex-shrink: 0 !important;
}

/* 3世代旅行の「（1グループあたり）」を個別指定 */
.family_sale_item .benefit_subtext {
  font-size: 18px; /* 他のテキストより小さく固定 */
  color: #333;
  font-weight: bold;
  margin-left: 8px; /* 金額との間に少し余白を作る */
  margin-bottom: 2px; /* 小さい文字の下端を金額の底辺にぴったり合わせる微調整 */
}

/* 5行目専用：「さらに追加代金不要で」の個別指定 */
.family_sale_item:last-child .benefit_text:first-child {
  font-size: 20px; /* ここだけ文字サイズを変える */
  margin-top: 4px;
  padding-top: 4px;
}

/* 5行目専用：「並び席アレンジ」の個別指定 */
.benefit_label2.animate_label {
  background: none !important; /* 背景色なし */
  font-size: 24px; /* 文字サイズ指定 */
  color: #f14300;
  font-weight: bold;
  padding: 0; /* 不要な余白をリセット */
}

/* 5行目専用：「をご用意♪」の個別指定 */
.family_sale_item:last-child .benefit_text:last-child {
  font-size: 20px; /* ここだけ文字サイズを変える */
}

/* --- ３つめタブ ツアーカード --- */

/* 見出し（ブラウン） */
.tab-3-heading.color-brown {
    color: #f14300 !important;
    margin: 40px 0 50px !important;
    text-align: center;
    font-weight: bold;
}

/* 1. グリッド親要素（3列の横並びへ変更） */
section.family .tab-item-style-03 .ui-static-grid-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
}

/* 2. カード本体（縦並びの構成へ変更） */
section.family .layout-e.tab-item-style-03 .ui-static-item-card.ui-static-item-card-half-width {
    width: 100% !important;
    flex: none !important;
    border: 1px solid #f14300 !important;
    background-color: #ffffff;
    border-radius: 4px;
    display: flex !important;
    flex-direction: column !important; /* 横並びから縦並びに変更 */
    overflow: hidden;
    gap: 0 !important;
    margin-bottom: 24px !important;
}

/* 画像エリア（横幅を100%にし、カード上部に配置） */
section.family .tab-item-style-03 .ui-static-item-card.ui-static-item-card-half-width .ui-static-image {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 15px !important;
    height: auto !important;
    background: none !important;
}

/* バッジ（プランA/B） */
section.family .ui-static-image-badge {
    display: block !important;
    width: 100% !important;
    background-color: #f14300 !important;
    color: #ffffff !important;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 0;
    margin-bottom: 8px !important;
    border-radius: 50px;
    flex-shrink: 0;
}

/* キナバル公園用のバッジ */
section.family .tab-item-style-02 .ui-static-image-badge {
    background-color: #f14300 !important;
    margin-bottom: 8px !important;
}

section.family .tab-item-style-02 .ui-static-image {
    flex-direction: column !important;
}

/* 4. 画像コンテナ（比率の維持設定） */
section.family .tab-item-style-03 .ui-static-image-container {
    width: 100% !important;
    aspect-ratio: 3 / 2 !important; /* 縦積みで見栄えが良い3:2比率に固定 */
    position: relative !important;
    overflow: hidden !important;
    border-radius: 2px;
}

section.family .tab-item-style-03 .ui-static-image-container img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* テキストエリア（余白を調整し、下部に配置） */
section.family .tab-item-style-03 .ui-static-item-card.ui-static-item-card-half-width .ui-static-item-card-details {
    padding: 0 15px 20px 15px !important; /* 左側の余白を15px確保 */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    flex-grow: 1 !important;
    min-width: 0 !important;
}

/* テキストスタイル */
section.family .layout-e.tab-item-style-03 .ui-static-item-card-details h3.ui-static-heading {
    color: #f14300 !important;
    font-size: 25px !important;
    font-weight: bold !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

section.family .tab-item-style-03 .ui-static-item-card-description {
    color: #333333 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    text-align: left !important;
}

/* スマホ対応（画面幅が狭いときは1列の縦並びにする設定） */
@media screen and (max-width: 768px) {
    section.family .tab-item-style-03 .ui-static-grid-list {
        grid-template-columns: 1fr !important;
    }
}



/****おすすめホテル****/

.hotel-section {
    background-color: #fffdf2 !important;
    padding: 20px 10px 40px 10px;
}

/* 見出し（太字・下余白・アイコンの配置を強制適用） */
.hotel-section h2.ui-static-heading.ui-static-heading-size-enormous.ui-static-heading-center.ui-static-heading-with-icon.heading-hotel {
    margin-top: 20px !important;
    margin-bottom: 10px !important;
    padding-bottom: 20px !important; /* 下余白を上書き強制 */
    color: #f39800 !important;
    font-weight: 900 !important; /* boldより強力な数値(900)で太字化 */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

/* 見出し内の文字（span）を確実に太字にする指定 */
.hotel-section h2.heading-hotel span {
    font-weight: 900 !important;
    font-size: inherit !important;
}
.hotel-section h2.heading-hotel i {
    color: #f39800 !important;
    font-size: 40px !important;
    line-height: 1 !important;
}

.hotel-grid-wrapper {
    width: 100% ;
    max-width: 100% ;
    margin-top: 0 ;
}

.hotel-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    align-items: stretch !important;
    justify-content: center;
    padding: 10px;
}

.hotel-card {
    width: calc(50% - 10px) !important;
    flex: 0 0 calc(50% - 10px) !important;
    background-color: #ffffff;
    border: 2px solid #f39800 !important;
    border-radius: 4px;
    box-sizing: border-box;
    display: flex;
}

.hotel-content {
    padding: 30px !important;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hotel-tags {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    border: 1px solid #f39800;
    color: #f39800;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 12px;
    border-radius: 50px;
}

.hotel-name {
    color: #f39800 !important;
    font-size: 21.5px !important;
    font-weight: bold;
    letter-spacing: normal;
    margin: 15px 0 15px 0 !important;
    line-height: 1.3 !important;
}

.hotel-header-container {
    display: flex;
    align-items: center; 
    gap: 1em;
    margin: 1em 0 !important;
    width: 100%;
}

.hotel-header-container .hotel-name {
    margin: 0 !important;
    flex: 0 1 auto;
}

.icon-box {
    position: relative;
    flex: 0 0 3em;
    height: 1em;
}

.golf-icon {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 210%;
    max-width: none !important;
    height: auto !important;
    z-index: 5;
}

.hotel-catch {
    font-weight: bold !important;
    color: #333333;
    font-size: 16px !important;
    margin-bottom: 10px !important;
}

.hotel-description {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #333333;
    margin-bottom: 25px !important;
    flex-grow: 1;
}

.hotel-images {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.hotel-images .img-box {
    flex: 1;
    aspect-ratio: 4 / 3;
    background-color: #dfedff;
    overflow: hidden;
    border-radius: 2px;
}

.hotel-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media screen and (max-width: 992px) {
    .hotel-card {
        width: 100% !important;
        flex: 0 0 100% !important;
    }
    .hotel-name {
        font-size: 20px !important;
    }
}

/* おすすめホテル 見出し上書き用CSS */
/* 見出し全体 */
.hotel-section h2.ui-static-heading.heading-hotel {
    margin-top: 20px !important;
    margin-bottom: 10px !important;
    padding-bottom: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

/* ★ここが重要：内部の span タグを直接指定して上書きします */
.hotel-section h2.ui-static-heading.heading-hotel span {
    color: #f39800 !important;
    font-weight: bold !important;
    font-size: inherit !important;
}

/* アイコンのカラーとサイズ */
.hotel-section h2.heading-hotel i.ui-static-icon {
    color: #f39800 !important;
    font-size: 40px !important;
    line-height: 1 !important;
}
/* アイコンのカラーとサイズ設定 */
.hotel-section h2.ui-static-heading.heading-hotel i.ui-static-icon {
    color: #697180 !important;
    font-size: 40px !important;
    line-height: 1 !important;
}

.hotel-section.ui-static-container.ui-static-container-space-m {
	gap: 10px !important;
	row-gap: 10px !important;
}



/****おすすめツアー****/

/* 直行チャーター便...の見出しのみ緑色にする設定 */
section.tour h3.heading-tour-title.color-green {
	color: #2e7d32 !important;
}

section.tour h2.ui-static-heading.ui-static-heading-size-enormous.ui-static-heading-center.ui-static-heading-with-icon.heading-tour {
	color:#333333;
	font-weight:bold !important;
	margin-top: 20px;
	margin-bottom: 10px;
}

.heading-tour-title{
	font-weight:bold;
}

.color-green {
	color:#f12a25;
}

.ui-static-heading.ui-static-heading-size-enormous.ui-static-heading-center.heading-tour-title.color-green {
 font-size: 25px;
	}

/* --- セクション全体 --- */
.tour-section {
    background-color: #f4ffef;
    padding: 40px 10px 40px 10px;
}

/****ツアー見出し部分****/にｎ
.point-heading-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
}

/****タグ****/

.tour-tag.size-small.color-purple {
	display: block;
	width: fit-content;
	border: 1px solid #2e7d32;
	color: #2e7d32;
	background-color:#FFFFFF;
	font-size: 16px;
    font-weight: bold;
    padding: 2px 12px;
    border-radius: 50px;
	margin: 0 auto;
}

/****ツアー名見出し****/
h4.ui-static-heading.ui-static-heading-size-huge.ui-static-heading-left.ui-static-heading-with-subtitle-top {
	font-weight:bold;
	margin-top: 10px;
	margin-bottom: 20px;
	}

/****ツアーポイントリスト****/

/* 外側の枠 */
.point-list-wrapper {
  margin: 0 auto !important;
  width: 90%;
  padding: 0px 20px;
  background-color: #ffffff;
}

/* リスト全体 */
.point-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.point-item {
  display: flex;
  align-items: center;
  padding: 5px 5px 5px 5px;
  margin: 20px 5px 30px 5px;
  border-bottom: 2px dashed #50d528;
  border-bottom-weight:bold;
}

/* 画像コンテナ */
.point-icon {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
 margin-right: 10px;
}

/* 画像 */
.point-icon img {
  width: 100%;
  height: auto;
  display: block;
}

/* テキスト */
.point-text {
  margin-botton: 0px;
  font-size: 16px;
  font-weight: bold;
  color: #333333;
  line-height: 1.5;
}

/*商品*/

.is-tour {
	padding:10px;
}

.is-tour li {
	background-color:#fff;"
}
.ui-static-grid-lg-space-article-card {
        margin-top:20px;
    }

.card__imgTag {
          padding: 2px 8px;
          font-size: 12px;
          font-weight: bold;
          color: #fff;
          background-color: #697180;
        position: absolute;
          top: 0;
          right: 0;
          }

       &:empty {
            display: none;
}

  .ui-static-product-card[data-product-card-type=secondary] .ui-static-product-card-label {
        bottom:-22px;
	   max-width:100%;
	  text-align:left;
    }

 .ui-static-product-card[data-product-card-type=secondary] .ui-static-product-card-departure-arival-info {
        padding:0 14px;
    }

.product__list--point {
	background-color:#e90000;
	text-align:center;
	color:#fff;
	padding:3px;
	font-weight:bold;
	margin:10px 0 !important;
}

 .card__price--compact {
        display: block;
        font-size: 20px;
        color: #e90000;;
        font-weight: bold;
        word-break: auto-phrase;
      }

.card__calender,
      .product__list--notes {
        font-size: 12px;
        color: #697180;
      }


.ui-static-grid-item {
   height:100%;
	display:flex;
}

.ui-static-product-card .ui-static-product-card-inner {
    height:initial;
}

.card__imgTag {
	display:none;
}


@media (max-width: 480px) {
  .point-text {
    font-size: 14px;
  }
}

/* 商品カード下のボタン */

.ui-static-button.ui-static-button-secondary.ui-static-button-large.tour {
 margin: 0 auto;
 display: flex;
 justify-content: center;	
}

/* ２つめのツアー */

.tour-section02 {
    background-color: #fef4f2;
    padding: 40px 10px 40px 10px;
}

.point-item.color-green {
  display: flex;
  align-items: center;
  padding: 5px 5px 5px 5px;
  margin: 20px 5px 30px 5px;
  border-bottom: 2px dashed #d63384;
  border-bottom-weight:bold;
}

/* 画像コンテナ */
.point-icon.color-green {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
 margin-right: 10px;
}

/* 画像 */
.point-icon.color-green img {
  width: 100%;
  height: auto;
  display: block;
}

.tour-tag.size-small.color-green {
	display: block;
	width: fit-content;
	border: 1px solid #f12a25;
	color:#f12a25;
	background-color:#FFFFFF;
	font-size: 16px;
    font-weight: bold;
    padding: 2px 12px;
    border-radius: 50px;
	margin: 0 auto;
}

/* 3つめのツアー(ファミリー) */

.tour-section03 {
    background-color: #fff5e5;
    padding: 40px 10px 40px 10px;
}

.point-item.color-brown {
  display: flex;
  align-items: center;
  padding: 5px 5px 5px 5px;
  margin: 20px 5px 30px 5px;
  border-bottom: 2px dashed #f14300;
  border-bottom-weight:bold;
}

/* 画像コンテナ */
.point-icon.color-brown {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
　margin-right: 10px;
}

/* 画像 */
.point-icon.color-brown img {
  width: 100%;
  height: auto;
  display: block;
}

.tour-tag.size-small.color-brown {
	display: block;
	width: fit-content;
	border: 1px solid #f14300;
	color:#f14300;
	background-color:#FFFFFF;
	font-size: 16px;
    font-weight: bold;
    padding: 2px 12px;
    border-radius: 50px;
	margin: 0 auto;
}

/* --- 海外航空券＋ホテル --- */

/* 見出し部分 */
#airhtl h2.ui-static-heading.ui-static-heading-size-enormous.ui-static-heading-center.ui-static-heading-with-icon.heading-tour {
	color: #333333;
	font-weight: bold !important;
	margin-top: 90px;
	margin-bottom: 10px;
}

#airhtl .heading-tour-title {
	font-weight: bold;
}

#airhtl .color-blue {
	color: #1258af;
}

#airhtl h3.ui-static-heading.ui-static-heading-size-enormous.ui-static-heading-center.heading-tour-title.color-blue {
	font-size: 25px;
}

/* セクション全体 */
#airhtl .airhtl-section {
	background-color: #f4f8fe;
	padding: 40px 10px 40px 10px;
}

/* 見出し・タグ部分 */
#airhtl .point-heading-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-top: 0;
	margin-bottom: 10px;
}

#airhtl .tour-tag.size-small.color-blue {
	display: block;
	width: fit-content;
	border: 1px solid #1258af;
	color: #1258af;
	background-color: #ffffff;
	font-size: 16px;
	font-weight: bold;
	padding: 2px 12px;
	border-radius: 50px;
	margin: 0 auto;
}

#airhtl h4.ui-static-heading.ui-static-heading-size-huge.ui-static-heading-left.ui-static-heading-with-subtitle-top {
	font-weight: bold;
	margin-top: 10px;
	margin-bottom: 20px;
}

/* ポイントリスト */
#airhtl .point-list-wrapper {
	margin: 0 auto !important;
	width: 90%;
	padding: 0px 20px;
	background-color: #ffffff;
}

#airhtl .point-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

#airhtl .point-item {
	display: flex;
	align-items: center;
	padding: 5px 5px 5px 5px;
	margin: 20px 5px 30px 5px;
	border-bottom: 2px dashed #1258af;
}

#airhtl .point-icon {
	width: 35px;
	height: 35px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 10px;
}

#airhtl .point-icon img {
	width: 100%;
	height: auto;
	display: block;
}

#airhtl .point-text {
	margin-bottom: 0px;
	font-size: 16px;
	font-weight: bold;
	color: #333333;
	line-height: 1.5;
}

/*レスポンス対応（スマホ表示）*/
@media (max-width: 480px) {
	#airhtl .point-text {
		font-size: 14px;
	}
}

/* ボタン */
#airhtl .ui-static-button.ui-static-button-secondary.ui-static-button-large.tour {
	margin: 0 auto;
	display: flex;
	justify-content: center;	
}

/* 海外航空券＋ホテル 追加CSS */

.airhtl .airhtl-section .ui-static-product-card .ui-static-product-card-summary-content,
#airhtl .airhtl-section .ui-static-product-card .ui-static-product-card-summary-content {
	padding: 0 16px !important;
}

.airhtl .airhtl-section .ui-static-product-card .ui-static-product-card-summary,
#airhtl .airhtl-section .ui-static-product-card .ui-static-product-card-summary {
	gap: 1px !important;
}

/* --- カード内部の縦配置を揃える設定 --- */

/* カード全体を Flexbox にし、高さを統一 */
.ui-static-product-card,
.ui-static-product-card-inner,
.grid-col__link,
.lx_textBox {
	display: flex !important;
	flex-direction: column !important;
	height: 100% !important;
}

/* 上部グループ（タイトル・ポイントなど）: 上に寄せる */
.ui-static-product-card-title,
.product__list--point,
.heading--md,
.tagList {
	flex-shrink: 0;
}

/* 下部グループ（価格・燃油サーチャージ・注記など）: 自動で下揃え＋最低10pxの余白を確保 */
.ui-static-product-card-summary,
.text--smallPrice,
.tour_box {
	margin-top: auto !important;
	padding-top: 10px !important; /* ← 最低10pxの余白 */
}

/* 追加CSS箇所の調整 */
.airhtl .airhtl-section .ui-static-product-card .ui-static-product-card-summary-content,
#airhtl .airhtl-section .ui-static-product-card .ui-static-product-card-summary-content {
	padding: 0 16px !important;
}

.airhtl .airhtl-section .ui-static-product-card .ui-static-product-card-summary,
#airhtl .airhtl-section .ui-static-product-card .ui-static-product-card-summary {
	gap: 1px !important;
	margin-top: auto !important;
	padding-top: 10px !important; /* ← 最低10pxの余白 */
}

/****おすすめ特集****/
.tokusyuWrap {
 margin-top:80px;
}

.tokusyuWrap .title-section-category {
 text-align:center;
 font-size:40px;
 font-weight: bold;
}

.tokusyu, .reco-banner__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.reco-banner__list {
  padding: min((39vw / 7.5), 30px);
  gap: min((38vw / 7.5), 40px);

}
.reco-banner__item {
  width: min((296vw / 7.5), 192px);
}
.tokusyu li a, .reco-banner__link {
  display: block;
  box-shadow: 0px 0px 0px 1px #000;
  transition: opacity .4s;
}
.tokusyu li a:hover, .reco-banner__link:hover {
  box-shadow: 0px 0px 0px 2px #000;
  opacity: 0.6;
}
.tokusyu li img, .reco-banner__image {
  width: 100%;
}

	
/* タブレット版（768px〜1024px）の調整 */
@media screen and (min-width: 768px) and (max-width: 1024px) {
	
	.ui-static-tab-button .main {
		font-size: 28px;
		}

	.ui-static-tab-button.is-active::after {
		bottom: -26px;
		border-width: 20px 19px 0 20px;
	}
	
	.ui-static-tab-button .sub {
		font-size: 15px;
	}
	
	.ui-static-section-wrapper {
        padding: 40px 20px 96px;
    }
	
  .tokusyuWrap .title-section-category {
    font-size: 40px;
  }

  .tokusyu, .reco-banner__list {
	display: flex !important;
    flex-wrap: nowrap !important;
    gap: 15px;
    padding: 15px;
    box-sizing: border-box;
	justify-content: center;
  }

  .reco-banner__item {
    width: calc(25% - 12px); 
    box-sizing: border-box;
  }

/**** タブ（横長・3段縦積み版） ****/

.ui-static-tab-container {
    width: 100%;
    margin-top: 40px !important; 
    margin-bottom: 40px !important; 
}

/* ボタンリストを縦並び（3段縦積み）に変更 */
.ui-static-tab-button-list {
    display: flex !important; 
    flex-direction: column !important; /* 縦並び */
    align-items: stretch !important; /* 横幅いっぱいに広げる */
    gap: 10px !important; /* ボタン間の隙間 */
    padding-bottom: 0px !important; /* 三角形が不要なため余白をリセット */
    border-bottom: none !important;
}

.ui-static-tab-button {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important; /* 横長にするため幅100% */
    /* aspect-ratio: 1 / 1 !important; を削除（正方形解除） */
    max-width: 100% !important; /* 広がりすぎ防止を解除 */
    padding: 12px 10px !important; /* 横長に合わせてパディングを調整 */
    text-align: center;
    background-color: #ffffff;
    color: #2e7d32;
    border: 1px solid #2e7d32;
    border-radius: 4px;
    position: relative; 
    box-sizing: border-box !important;
    text-decoration: none !important;
}

/* アクティブ時の色 */
.ui-static-tab-button.is-active {
    background-color: #2e7d32 !important;
    color: #ffffff !important;
}

/* 三角形（吹き出し）を非表示にする */
.ui-static-tab-button.is-active::after {
    display: none !important; /* 非表示 */
}

/* サブタイトル：サイズ調整 */
.ui-static-tab-button .sub {
    display: block;
    font-size: 16px !important; 
    margin-bottom: 4px;
    font-weight: 700 !important;
    line-height: 1.2;
}

/* メインタイトル：サイズ調整 */
.ui-static-tab-button .main {
    display: block;
    font-size: 28px !important;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-all; /* 改行を許容 */
}

.ui-static-tab-content-item.is-active {
    display: block !important;
    margin-top: 10px; 
}

/* タブボタン内の不要なbefore/afterを完全にリセット */
.ui-static-tab-button::before {
    display: none !important;
    content: none !important;
}

/* --- 3つ目のタブ専用のデザイン指定 --- */

/* コンテナ全体（オレンジ背景） */
  .family_sale {
    background-color: #fff5e5;
    padding: 10px;
  }

  /* 内枠（グリーンの点線） */
  .family_sale_inner {
    border: 2px dashed #f14300;
    padding: 15px 15px 100px 15px; /* SP用に余白を少しタイトに */
    display: block; /* 左右並びを解除して縦積みに */
    position: relative; /* 画像を配置する基準点 */
  }

  /* テキストエリア */
  .family_sale_content {
    z-index: 2;
    position: relative;
  }

  /* タイトル */
  .family_sale_title {
    font-size: 24px;
    color: #f14300;
    font-weight: 900;
    margin: 0 0 15px 0;
    text-align: center; /* タイトルを中央寄せに */
    display: block;
  }

  /* 特典リスト */
  .family_sale_list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  /* 各行の基本スタイル：ラベルとテキストが縦に積まれるように設定 */
  .family_sale_item {
    display: flex;
    flex-wrap: wrap; /* 幅が狭いときに自動で折り返すように変更 */
    align-items: center;
    margin-bottom: 12px; /* 行間の余白 */
  }

  /* ①ラベル（背景色付き・白文字） */
  .family_sale_item .benefit_label {
    background-color: #6c6b6b;
    color: #fff;
    font-size: 18px; /* SPサイズに調整 */
    font-weight: bold;
    padding: 2px 6px;
    margin-bottom: 4px; /* 下のテキストとの隙間 */
    display: inline-block;
    flex-basis: auto !important;
    width: fit-content; /* 文字幅に合わせる */
  }

  /* ②つなぎテキスト */
  .family_sale_item .benefit_text {
    font-size: 16px; /* SPサイズに調整 */
    color: #333;
    font-weight: bold;
    display: inline;
  }

  /* ③価格・        .family_sale_item .benefit_price .num {値引き額 */
  .family_sale_item .benefit_price {
    font-size: 16px;
    color: #f50c00;
    font-weight: bold;
    background: linear-gradient(transparent 60%, #fff60c 60%);
    display: inline-flex;
    align-items: baseline;
  }
  .family_sale_item .benefit_price .num {
    font-size: 28px; /* 金額を目立たせるサイズ */
  }

  /* --------------------------------------------------
     各行（li）の個別設定
     -------------------------------------------------- */

  /* 3行目（幼児）の価格位置微調整 */
  .family_sale_item:nth-child(3) .benefit_price {
    margin-left: 2px;
  }

  /* 4行目（3世代旅行）専用：改行禁止を解除し、テキストと下揃えにする */
  .family_sale_item:nth-child(4) {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
  }
  .family_sale_item:nth-child(4) > span,
  .family_sale_item:nth-child(4) > .benefit_price {
    flex-shrink: inherit !important;
  }

  /* 3世代旅行の「（1グループあたり）」指定 */
  .family_sale_item .benefit_subtext {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    margin-left: 5px;
    display: inline-block;
  }

  /* 5行        .family_sale_item:last-child .benefit_text:first-child {目専用：「さらに通常5,000円〜」行全体を縦積みに */
  .family_sale_item:last-child {
    display: block !important;
    margin-top: 15px;
    margin-bottom: 0 !important;
  }

  /* 5行目：文言のサイズ調整 */
  .family_sale_item:last-child .benefit_text:first-child {
    font-size: 16px;
    display: block;
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 4px;
  }

  /* 5行目：「追加代金不要で並び席アレンジ」 */
  .benefit_label2.animate_label {
    background: none !important;
    font-size: 20px;
    color: #f14300;
    font-weight: bold;
    padding: 0;
    display: inline;
  }

  /* 5行目：「をご用意♪」 */
  .family_sale_item:last-child .benefit_text:last-child {
    font-size: 16px;
    display: inline;
  }

  /* --------------------------------------------------
     右側：イラスト画像の配置設定
     -------------------------------------------------- */
  .family_sale_image {
    position: absolute;
    right: 10px;
    bottom: 15px; /* 幼児・3世代の行の右側あたりに来るよう調整 */
    margin-left: 0;
    z-index: 1;
    pointer-events: none; /* テキスト選択などの邪魔をしないように */
  }

  .family_sale_image img {
    max-width: 130px; /* SPの画面幅に合わせて画像を縮小 */
    height: auto;
    display: block;
    opacity: 0.9; /* テキストの視認性を担保するため、必要に応じて */
  }

  /* 下部のオプショナルツアー用の簡易SP調整（必要に応じて） */
  .ui-static-grid-list {
    display: block;
  }
  .ui-static-item-card-half-width {
    width: 100% !important;
    margin-bottom: 20px;
  }

}

/* タブレット版（768px〜1024px）の調整 */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    
    .ui-static-section-wrapper {
        padding: 40px 20px 96px;
    }

    /* --- 特集バナー（2列×2行） --- */
    .tokusyuWrap .title-section-category {
        font-size: 40px;
    }

    .tokusyu, .reco-banner__list {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
        padding: 15px;
        box-sizing: border-box;
        justify-content: center;
    }

    .reco-banner__item {
        width: calc(50% - 7.5px) !important; 
        box-sizing: border-box !important;
    }

    /* --- タブ調整 --- */
    .ui-static-tab-button .sub {
        font-size: 15px;
    }

    .ui-static-tab-button .main {
        font-size: 28px;
    }

    .ui-static-tab-button.is-active::after {
        bottom: -26px;
        border-width: 20px 19px 0 20px;
    }

    /* --- 見出し・カード調整 --- */
    .tab-2-heading {
        font-size: 32px;
    }
    
    .layout-e.tab-item-style-03 .ui-static-item-card-details h3.ui-static-heading {
        font-size: 21px !important;
    }
}

/* 動的生成ツアーカードの強制的2列化＆上下左右余白指定 */
@media screen and (min-width: 768px) and (max-width: 1024px) {

    /* --- 1. おすすめツアー・ツアーカード群 --- */
    ul.ui-static-grid-list.is-tour,
    .product-list-wrapper ul.is-tour {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: stretch !important; /* カードの高さを一番長いものに統一 */
        gap: 20px 15px !important; /* 縦隙間20px、横隙間15px */
        padding: 10px 0 !important;
    }

    /* リストアイテム（カード外枠）を強制的に50%幅にする */
    ul.ui-static-grid-list.is-tour > li.ui-static-grid-item,
    .product-list-wrapper ul.is-tour > li {
        display: flex !important;
        width: calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
        min-width: calc(50% - 8px) !important;
        flex: 0 0 calc(50% - 8px) !important;
        height: auto !important;
        margin: 0 0 20px 0 !important; /* 万が一gapが効かない環境用の下余白 */
        box-sizing: border-box !important;
    }

    /* --- 1-2. airhtlセクション内部の縦配置統一 --- */
    #airhtl .ui-static-product-card,
    #airhtl .ui-static-product-card-inner,
    #airhtl .grid-col__link,
    #airhtl .lx_textBox {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: 100% !important;
    }

    #airhtl .ui-static-product-card-summary,
    #airhtl .ui-static-product-card-summary-content,
    #airhtl .text--smallPrice,
    #airhtl .tour_box {
        margin-top: auto !important; /* 価格や注記エリアを下揃えにする */
    }


    /* --- 2. おすすめ特集バナー群 --- */
    section.tokusyuWrap .tokusyu,
    section.tokusyuWrap .reco-banner__list,
    .tokusyu,
    .reco-banner__list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 20px 15px !important;
        padding: 15px !important;
        box-sizing: border-box !important;
    }

    section.tokusyuWrap .reco-banner__item,
    .reco-banner__item,
    .tokusyu li {
        width: calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
        min-width: calc(50% - 8px) !important;
        flex: 0 0 calc(50% - 8px) !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
    }
}