@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/
    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ========== Global ========== */
.c-gnav > .menu-item{
  width: 170px;           /* ナビ同士の間隔 */
  letter-spacing: .1rem;  /* 文字の間隔 */
}

.c-postThumb__cat{
  display: none;
}

/* ========== Archive subtitle（Races / Products） ========== */
/* Races */
.post-type-archive-races .c-pageTitle__subTitle{
  font-size: 0 !important;     /* 元の文字を消す */
  line-height: 0 !important;   /* 念のため */
}
.post-type-archive-races .c-pageTitle__subTitle::after{
  content: "các cuộc đua";
  font-size: 14px !important;
  font-style: italic;
  opacity: .8;
  color: currentColor;
}

/* Products */
.post-type-archive-products .c-pageTitle__subTitle{
  font-size: 0 !important;
  line-height: 0 !important;
}
.post-type-archive-products .c-pageTitle__subTitle::after{
  content: "các sản phẩm";
  font-size: 14px !important;
  font-style: italic;
  opacity: .8;
  color: currentColor;
}

/* ========== Latest list widget（Products/Races 共通） ========== */
.tsr-products-latest,
.tsr-races-latest{
  list-style: none;
  margin: 0;
  padding: 0;
}

.tsr-products-latest__item,
.tsr-races-latest__item{
  margin: 10px 0;
}

.tsr-products-latest__item > a,
.tsr-races-latest__item > a{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
}

/* 画像は固定幅：小さく潰れない */
.tsr-products-latest__thumb,
.tsr-races-latest__thumb{
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
}

/* タイトルは折り返す（サイドバーで重要） */
.tsr-products-latest__title,
.tsr-races-latest__title{
  flex: 1 1 auto;
  min-width: 0;            /* ←これがないと折り返し失敗しがち */
  white-space: normal;
  overflow-wrap: anywhere; /* 長い英数字も強制改行 */
  word-break: break-word;
  line-height: 1.4;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;   /* 2行で省略（不要なら消してOK） */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ブロックウィジェットの幅が変で崩れる対策 */
.widget.widget_block{
  max-width: 100%;
	width:250px;
}

/*TOPの余白なし*/
.top #content {
    padding-top: 0;
}
/*H2タイトルの赤ライン*/
.post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)) {
       border-top: none !important;
    border-bottom: solid 3px #ec2c0d !important;
}

/* =====================================================
  Races 個別ページ：top_title_area を固定ヘッダー化
===================================================== */

/* 1. races 個別だけ、背景画像を固定にする */
body.single-races #top_title_area{
  background: url("https://webstylix.xsrv.jp/swelltest/wp-content/uploads/2026/01/bg_title20230916g.webp")
              center / cover no-repeat;
}

/* 2. もともとのアイキャッチ画像(img)は完全に隠す */
body.single-races #top_title_area img{
  display: none !important;
}

/* 3. 投稿タイトル（Paris）と日付を消す */
body.single-races #top_title_area .c-postTitle{
  display: none !important;
}

/* 4. 表示用テキストを擬似要素で出す */
body.single-races #top_title_area .l-topTitleArea__body{
  position: relative;
  min-height: 240px; /* 高さは好みで調整 */
}

/* メイン表示文字 */
body.single-races #top_title_area .l-topTitleArea__body::before{
  content: "Races – các cuộc đua –";
  position: absolute;
  left: 24px;
  bottom: 24px;

  color: #fff;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: .04em;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}
/*==================================
 FVスライダー
====================================*/
.custom-fv {
	position: relative;
	width: 100%;
	overflow: hidden;
}

/*====================
 PC
====================*/
.custom-fv__pc {
	display: grid;
	grid-template-columns: 32% 65%;
	align-items: center;
	max-width: 1368px;
	margin: 0 auto;
	padding: 0;
	gap: 40px;
	background: #fff;
}

/* 左：テキスト */
.custom-fv__pc .custom-fv__text {
	position: static;
	transform: none;
	color: #003894;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
	font-size: clamp(64px, 8vw, 120px);
	text-align: left;

	display: flex;
	align-items: center;
	height: 100%;
}

/* 右：画像 */
.custom-fv__pc .custom-fv__slider {
	position: relative;
	width: 100%;
	height: 500px;
	overflow: hidden;
}

.custom-fv__pc .custom-fv__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	animation: customFvFade 15s infinite;
}
/* 文字を画像より上にする */
.custom-fv__pc .custom-fv__text {
	position: relative;
	z-index: 3;
}

/* 画像側は下に */
.custom-fv__pc .custom-fv__slider {
	z-index: 1;
}

/* 背景に合わせて文字色を反転っぽく変える
.custom-fv__pc .custom-fv__text {
	mix-blend-mode: difference;
} */

/*====================
 SP
====================*/
.custom-fv__sp {
	display: none;
	position: relative;
}

.custom-fv__sp .custom-fv__slider {
	position: relative;
	width: 100%;
	height: 72vh;
	min-height: 520px;
	overflow: hidden;
}

.custom-fv__sp .custom-fv__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	animation: customFvFade 15s infinite;
}

.custom-fv__sp .custom-fv__text {
	position: absolute;
	top: 8%;
	left: 5%;
	z-index: 2;
	transform: none;
	color: #fff;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.04em;
	font-size: clamp(44px, 13vw, 60px);
	text-align: left;
}

/*====================
 スライダー
====================*/
.custom-fv__slide:nth-child(1) { animation-delay: 0s; }
.custom-fv__slide:nth-child(2) { animation-delay: 5s; }
.custom-fv__slide:nth-child(3) { animation-delay: 10s; }

@keyframes customFvFade {
	0% { opacity: 0; }
	6% { opacity: 1; }
	30% { opacity: 1; }
	38% { opacity: 0; }
	100% { opacity: 0; }
}

/*====================
 iPad
====================*/
@media screen and (max-width: 1024px) and (min-width: 769px) {
	.custom-fv__pc {
		grid-template-columns: 38% 62%;
		padding: 40px 28px 80px;
		gap: 28px;
	}

	.custom-fv__pc .custom-fv__text {
		font-size: clamp(48px, 6vw, 72px);
	}

	.custom-fv__pc .custom-fv__slider {
		height: 340px;
	}
}

/*====================
 SP切り替え
====================*/
@media screen and (max-width: 768px) {
	.custom-fv__pc {
		display: none;
	}

	.custom-fv__sp {
		display: block;
	}
}
/*==== FVスライダーここまで===========*/

/* ============== TSR 最新ニュースグリッド ================= */

.tsr-news-section {
  margin: 40px 0 60px;
}


.tsr-news-section__title {
    background: none;
    border: none !important;
    color: #000;
    display: block;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 20px !important;
}


.tsr-news-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-areas: "left main right";
  gap: 24px;
  align-items: start;
}

.tsr-news-grid > * {
  min-width: 0;
}

.tsr-news-grid__main {
  grid-area: main;
  min-width: 0;
}

.tsr-news-grid__side--left {
  grid-area: left;
  min-width: 0;
}

.tsr-news-grid__side--right {
  grid-area: right;
  min-width: 0;
}

.tsr-news-grid__side {
  display: grid;
  gap: 28px;
  align-content: start;
}

.tsr-news-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.tsr-news-card__thumbWrap {
  position: relative;
  margin-bottom: 16px;
  overflow: hidden;
}

.tsr-news-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.tsr-news-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .6s ease, opacity .3s ease;
}

@media (hover: hover) {
  .tsr-news-card__link:hover .tsr-news-card__thumb img {
    transform: scale(1.06);
    opacity: .96;
  }
}

.tsr-news-card__type {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-block;
  padding: 6px 10px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 3px;
}

.tsr-news-card__label {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-block;
  padding: 6px 10px;
  background: rgba(14, 59, 135, .92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.tsr-news-card__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  transition: color .2s ease;
}

.tsr-news-card:hover .tsr-news-card__title {
  color: #0e3b87;
}

.tsr-news-card__excerpt {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.9;
  color: #222;
}

.tsr-news-card__meta {
  font-size: 14px;
  color: #555;
}

.tsr-news-card__meta time::before {
  content: "◷ ";
}

.tsr-news-card--main .tsr-news-card__title {
  font-size: 34px;
  line-height: 1.35;
}

.tsr-news-card--main .tsr-news-card__excerpt {
  font-size: 16px;
}

.tsr-news-card--side .tsr-news-card__title {
  font-size: 18px;
  line-height: 1.45;
}

.tsr-news-card--side .tsr-news-card__excerpt {
  font-size: 15px;
  line-height: 1.75;
}

@media (max-width: 1024px) {
  .tsr-news-grid {
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 20px;
  }

  .tsr-news-card--main .tsr-news-card__title {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .tsr-news-section {
    margin: 30px 0 40px;
  }

  .tsr-news-section__title {
    margin-bottom: 20px;
    font-size: 22px;
  }

  .tsr-news-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "left"
      "right";
    gap: 20px;
  }

  .tsr-news-grid__side {
    gap: 20px;
  }

  .tsr-news-card--main .tsr-news-card__title,
  .tsr-news-card--side .tsr-news-card__title {
    font-size: 24px;
  }

  .tsr-news-card__excerpt {
    font-size: 14px;
    line-height: 1.75;
  }

  .tsr-news-card__type {
    top: 10px;
    left: 10px;
    font-size: 10px;
    padding: 5px 8px;
  }

  .tsr-news-card__label {
    top: 10px;
    right: 10px;
    font-size: 11px;
    padding: 5px 8px;
  }
}
/* アイキャッチ hoverでズーム */
.tsr-news-card__thumbWrap {
  overflow: hidden;
}

.tsr-news-card__thumb img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .5s ease;
}

.tsr-news-card__link:hover .tsr-news-card__thumb img {
  transform: scale(1.08);
}
.tsr-news-card__type{
position:absolute;
top:12px;
left:12px;
background:#111;
color:#fff;
font-size:11px;
padding:6px 8px;
font-weight:700;
letter-spacing:.05em;
z-index:3;
}


@media (max-width: 1024px) {
  .tsr-news-grid {
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 20px;
  }

  .tsr-news-card--main .tsr-news-card__title {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .tsr-news-section {
    margin: 30px 0 40px;
  }

  .tsr-news-section__title {
    margin-bottom: 20px;
    font-size: 22px;
  }

  .tsr-news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tsr-news-grid__side {
    gap: 20px;
  }
  .tsr-news-card--main .tsr-news-card__title,
  .tsr-news-card--side .tsr-news-card__title {
    font-size: 24px;
  }
  .tsr-news-card__excerpt {
    font-size: 14px;
  }
}


/*=====================================
* Footer
* ====================================*/
#custom_html-6 .swl-inline-icon:after {
    background: #fff;
}
.swell-block-linkList__link:hover .swl-inline-icon::after {
  background-color: #3d79d5;
}
.swl-inline-icon:hover::after {
  color: #3d79d5;
}

#before_footer_widget {
  color: #fff;
}
/*=====================================
* この記事を書いた人
* ====================================*/
.tsr-author-box {
	margin-top: 48px;
	padding: 24px;
	border: 1px solid #e5e5e5;
	background: #fff;
}

.tsr-author-box__title {
	font-weight: 700;
	margin-bottom: 16px;
}

.tsr-author-box__inner {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.tsr-author-box__avatar img {
	border-radius: 50%;
}

.tsr-author-box__name {
	font-weight: 700;
	margin-bottom: 8px;
}

.tsr-author-box__desc {
	font-size: 14px;
	line-height: 1.8;
}