/*
Theme Name: SWELL Child
Template: swell
*/


@charset "UTF-8";

/* ========== 1. 基本設定（共通） ========== */
.c-gnav > .menu-item {
    width: 170px;
    letter-spacing: .1rem;
}

/* カテゴリーバッジ非表示 */
.c-postThumb__cat {
    display: none;
}

/* カスタム投稿の日付調整 */
.c-postTitle__date {
    width: 25%;
    font-size: 15px;
}
/*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;
}
/* ========== 3. ウィジェット・カード関連 ========== */
.cptCards__list { display: grid; gap: .7em; }
.cptCards__link {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: .7em;
    align-items: center;
    text-decoration: none;
    padding: .6em;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.7);
}
.cptCards__thumb { width: 72px; aspect-ratio: 1/1; overflow: hidden;}
.cptCards__img { width: 100%; height: 100%; object-fit: cover; }
.cptCards__name { font-weight: 600; line-height: 1.45; font-size: .98em; }

.cptCards__body {
	color: #000;
}
/* ========== 4. フッター前ブロック（右側の隙間解消） ========== 
#before_footer_widget {
    background-color: #002f87;
    overflow: hidden; /* はみ出しによる隙間を強制カット 
}

#before_footer_widget .alignfull {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    left: 0 !important;
    transform: none !important;
}
*/

/* ========== 5. ヘッダー・メインビジュアル関連 ========== */
.p-mainVisual__slideTitle { font-size: 58px; }
.l-fixHeader__logo { padding: 5px 0; }

@media (min-width: 960px) {
    .-parallel .l-header__logo {
        display: flex;
        padding: 16px 48px;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        box-sizing: border-box;
    }
    .l-header.-parallel .w-header { display: block !important; }
}
/*============  タイトル装飾====================*/

.post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))  {
border-top: solid 1px var(--color_htag);
border-bottom: solid 1px var(--color_htag);
}
.post_content h2{
font-weight: 500;
}
/* ============== 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;
  }
}


/* ========== 6. レスポンシブ（PC・タブレット・スマホ） ========== */

/* タブレット〜PCでのサイドバーとコンテナの修正 */
@media (min-width: 960px) {
    .-sidebar-on #sidebar {
        width: 250px !important;
        position: sticky;
        top: 90px;
        align-self: flex-start;
		margin-top: 20px;
    }
    .-sidebar-on .l-mainContent {
        width: calc(100% - 250px - var(--swl-sidebar_margin));
    }
}

/* 1270px以下の右側空白対策（問題の箇所を修正） */
@media (max-width: 1270px) {
    .l-container {
        margin-left: auto !important; /* inheritを上書きして中央に戻す */
        margin-right: auto !important;
    }
    body.-sidebar-on #sidebar {
        width: min(362px, 100%) !important;
        margin: 2em auto !important;
    }
}

/* スマホ用フォントサイズ */
@media (max-width: 480px) {
    .p-mainVisual__slideTitle { font-size: 20px; }
}

/*footer*/
.footer-chokuzen {
    margin: 0 !important;
}

/*---------------------------
 * カスタム投稿（Products）
 * -------------------------*/

/* 製品ページ タイトル上のタグ */
.tsr-products-title {
	border-bottom: 1px solid var(--color_border);
    width: 100%;
    padding-left: 0;	
	height: 51px;
}
.tsr-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
	margin-top: 32px;
	width: 100%;
}
.c-pageTitle__inner {
	border-bottom: 1px solid var(--color_main);
    float: left;
    margin-bottom: -1px;
    padding: .25em .5em;
    font-size: 24px;	
}

.tsr-product-tags .c-tagList__link {
  display: inline-block;
  padding: .4em .8em;
  background: #f2f4f7;
  color: #333;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: .25s;
}
.c-tagList:before {
    padding-top: 10px;
}
.tsr-product-tags .c-tagList__link:hover {
  background: #0b56a6;
  color: #fff;
}




.tsr-hero--products .tsr-hero__inner {
  position: relative;
}

#tsr-product-content {
	width: 78%;
}
#main_content {
    width: 95%;
}
.single-products .c-postTitle {
  margin-bottom: 0;
}

.single-products .c-postTitle__ttl {
  margin-top: 0;
}

.single-products .c-postTitle__date {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

@media (max-width: 960px) {
#main_content {
    width: 100%;
}
	#tsr-product-content {
    width: 97%;
    margin: 0 auto;
}
.tsr-hero--products {
    padding: 36px 0;
  }
.tsr-product-tags {
margin-top: 24px;
}
.c-postTitle__ttl {
    font-size: 18px;
}
.tsr-hero--products .tsr-hero__title {
    font-size: 30px;
  }
.c-postTitle {
    display: inline-block;
	}
.single-products .c-postTitle__date {
  display: block;
	}
.c-postTitle__date {
    width: 36%;
	text-align: left;
}
	.tsr-pageTitle {
    margin-bottom: 18px;
    padding-bottom: 12px;
  }

  .tsr-pageTitle .c-pageTitle__inner {
    padding-bottom: 5px;
  }

  .tsr-pageTitle .c-pageTitle__inner::after {
    bottom: -13px;
    height: 2px;
  }

  .tsr-pageTitle .c-pageTitle__subTitle {
    display: inline;
    font-size: 14px;
  }
}
/*==================================
 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スライダーここまで===========*/
/*=====================================
* 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: 60px;
}

.tsr-author-box__inner {
  border: 1px solid #ddd;
  background: #fff;
  display: grid;
  grid-template-columns: 280px 1px 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 48px;
}

.tsr-author-box__profile {
  text-align: center;
}

.tsr-author-box__avatar img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #e5e5e5;
}

.tsr-author-box__name {
  margin-top: 18px;
  font-size: 24px;
  font-weight: 700;
}

.tsr-author-box__job{
  margin-top:8px;
  font-size:14px;
  color:#666;
  line-height:1.6;
}

.tsr-author-box__line {
  width: 1px;
  height: 180px;
  background: #ddd;
}

.tsr-author-box__desc {
  font-size: 16px;
  line-height: 2;
}

.tsr-author-box__sns {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.tsr-author-box__sns a {
  width: 34px;
  height: 34px;
  border: 1px solid #111;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
  color: #111;
}

@media screen and (max-width: 768px) {
  .tsr-author-box__inner {
    display: block;
    padding: 32px 24px;
    text-align: center;
  }

  .tsr-author-box__line {
    width: 80px;
    height: 1px;
    margin: 24px auto;
  }

  .tsr-author-box__desc {
    text-align: center;
    font-size: 15px;
  }

  .tsr-author-box__sns {
    justify-content: center;
  }
}
/*レールリポートの関連記事*/
.tsr-author-related{
 margin-top:40px;
}

.tsr-author-related__title{
 font-size:22px;
 font-weight:700;
 margin-bottom:20px;
}

.tsr-author-related__list{
 display:grid;
 grid-template-columns:repeat(2,1fr);
 gap:20px;
}

.tsr-author-related__item{
 text-decoration:none;
 color:#111;
}

.tsr-author-related__item img{
 width:100%;
 height:180px;
 object-fit:cover;
 margin-bottom:10px;
}
@media(max-width:768px){
.tsr-author-related__list{
 grid-template-columns:1fr;
}
}
/*関連記事ここまで*/