@charset "utf-8";

/* =====================================================
   Content Room 記事一覧（div.content-room-wrapper 内）

   全セレクタを .content-room-wrapper 配下にスコープし、
   サイト内の他 CSS と競合しないように。
   ===================================================== */

.contentroom-list-index{
	padding: 4rem 0 2rem;
}
   
.wrapper:has(.content-room-wrapper){
	max-width: 100%;

}

/* article/index.html の section.article-list は width:100% で全幅に広がるため、
   兄弟の h1（article-list-style.css）が .content-room-wrapper と左端が揃わなくなる。
   .content-room-wrapper と同じ幅・中央寄せに合わせる */
section.article-list:has(.content-room-wrapper) h1 {
	max-width: 90rem;
	margin: 0 auto 1.34rem;
}

.content-room-wrapper {
	--cr-blue: var(--primary-color, #140A9A);
	--cr-yellow: var(--accent-color, #FFC82F);
	--cr-ink: var(--base-textcolor, #111);
	--cr-chip-bg: var(--lightgray-bgcolor, #F6F6F6);
	--cr-btn-ink: #2A3238;
	--cr-placeholder: #666;

	--cr-card-gap: 2.5%;
	--cr-radius: 0.375rem;

	max-width: 90rem;
	width: 100%;
	margin: 0 auto;
	padding: 0;
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
	color: var(--cr-ink);
}

.content-room-wrapper .cr-articles {
	margin-top: 6.14rem;
}

.content-room-wrapper .cr-interviews {
	margin-top: 7.6rem;
}

/* ===== 共通: セクション見出し ===== */
.content-room-wrapper .cr-heading {
	text-align: center;
}

.content-room-wrapper .cr-heading__ja {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin: 0;
	font-size: clamp(1.3rem, 2cqw, 1.75rem);
	font-weight: 700;
	line-height: 1.0984;
	color: var(--cr-blue);
}

.content-room-wrapper .cr-heading__ja img {
	width: auto;
	height: 1.9375rem;
}

.content-room-wrapper .cr-heading__en {
	margin: 2.19rem 0 0;
	font-size: clamp(2rem, 3.4cqw, 3rem);
	font-weight: 700;
	line-height: 0.6039;
	color: #000;
}

.content-room-wrapper .cr-search .cr-heading__en {
	margin-top: 1.75rem;
}

/* Article 見出しの左に飾りイラストを添える。
   img と p を別要素にして div で囲むことで、イラストの高さをテキストの行の高さから独立させる
   （通常のブロックフローのままなので、上下の見出し・リード文とは margin の分だけ間隔が空き重ならない） */
.content-room-wrapper .cr-heading__en-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.content-room-wrapper .cr-articles .cr-heading__en-illust {
	flex: none;
	width: auto;
	height: 6rem;
}

.content-room-wrapper .cr-interviews .cr-heading__en-illust {
	flex: none;
	width: auto;
	height: 4.5rem;
}

/* .cr-heading__en 本体の margin-top はそのままだと flex item の中の余白になって
   テキストだけ縦にずれてしまうので、行（.cr-heading__en-row）側に付け替える */
.content-room-wrapper .cr-articles .cr-heading__en-row {
	margin-top: 2.19rem;
}

.content-room-wrapper .cr-articles .cr-heading__en {
	margin-top: 0;
}

.content-room-wrapper .cr-interviews .cr-heading__ja {
	line-height: 1.3802;
	    
}

.content-room-wrapper .cr-interviews .cr-heading__en-row {
	margin-top: 0.875rem;
}

.content-room-wrapper .cr-interviews .cr-heading__en {
	margin-top: 0;
	line-height: 0.8051;
}

.content-room-wrapper .cr-heading__lead {
	margin: 2rem 0 0;
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 2.147;
}

/* ＼ 最新記事　PICK UP！ ／ */
.content-room-wrapper .cr-eyebrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.05rem;
	margin: 0 0 0.795rem;
	font-size: 1.2rem;
	font-weight: 500;
	line-height: 1.6;
}

.content-room-wrapper .cr-eyebrow::before,
.content-room-wrapper .cr-eyebrow::after {
	content: "";
	width: 1px;
	height: 1.6rem;
	background: var(--cr-ink);
}


.content-room-wrapper .cr-eyebrow::before {
	margin-right: 0.13rem;
	transform: rotate(-36deg);
}

.content-room-wrapper .cr-eyebrow::after {
	transform: rotate(30deg);
}

/* ===== 共通: タグチップ ===== */
.content-room-wrapper .cr-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 1.015rem 0.875rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* .cr-tags 内の li はクラス無しなので、.cr-card と同じ理由で
   .list-article-container ul li のスタイルが無競合で漏れてくる。明示リセットする */
.content-room-wrapper .cr-tags li {
	display: block;
	margin: 0;
	padding: 0;
	background: none;
	border: none;
	position: static;
	transition: none;
}

.content-room-wrapper .cr-tags li:hover {
	border: none;
	box-shadow: none;
	position: static;
	top: 0;
}

.content-room-wrapper .cr-tag {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	gap: 0.9375rem;
	min-width: 8.1rem;
	min-height: 2.4625rem;
	padding: 0 1.55rem 0 0.6rem;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
	background-color: var(--cr-chip-bg);
	border-radius: var(--cr-radius);
	/* button 要素で使うため、ブラウザ既定を打ち消す（span のときと同じ見た目に揃える） */
	font-family: inherit;
	color: inherit;
	text-align: center;
	border: none;
	appearance: none;
}

.content-room-wrapper button.cr-tag {
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.content-room-wrapper .cr-tag::before {
	content: "";
	flex: none;
	width: 1rem;
	height: 1rem;
	background: url("../img/icon-tag.svg") no-repeat center / contain;
}

/* 選択中のタグ（色は CI カラーに沿わせる） */
.content-room-wrapper .cr-tag[aria-pressed="true"] {
	color: #fff;
	background-color: var(--cr-blue);
}

.content-room-wrapper .cr-tag[aria-pressed="true"]::before {
	filter: brightness(0) invert(1);
}

/* 押しても0件になるタグは選べなくする（AND のデッドエンド防止） */
.content-room-wrapper .cr-tag[disabled] {
	opacity: 0.3;
	cursor: default;
}

.content-room-wrapper .cr-tag__count {
	font-size: 0.8125rem;
	font-weight: 400;
	opacity: 0.7;
	/* サイト共通リセットが span に color を直接当てており継承では勝てないため明示する
	   （選択中は親ボタンの白文字に追随させる） */
	color: inherit;
}

/* ===== 共通: 黄色ボタン ===== */
.content-room-wrapper .cr-more,
.swiper-container .swiper-slide.slider-contentroom .cr-more {
	display: flex;
	justify-content: center;
	margin-top: 8rem;
}

.content-room-wrapper .cr-more a,
.swiper-container .swiper-slide.slider-contentroom .cr-more a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 20.25rem;
	min-height: 4.375rem;
	padding: 0 1.5rem;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.6;
	color: var(--cr-btn-ink);
	text-decoration: none;
	background-color: var(--cr-yellow);
	border-radius: var(--cr-radius);
	transition: opacity 0.2s;
}

.content-room-wrapper .cr-more a::after,
.swiper-container .swiper-slide.slider-contentroom .cr-more a::after {
	content: "";
	flex: none;
	width: 1.45rem;
	height: 1.45rem;
	background: url("../img/icon-arrow.svg") no-repeat center / contain;
}

/* ===== 共通: カードグリッド ===== */
.content-room-wrapper .cr-cards {
	display: grid;
	/* 常に4列固定。5件目以降は自動で次の行に折り返す（grid の標準挙動） */
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: var(--cr-card-gap);
	row-gap: 4rem;
	max-width: 90rem;
	margin: 3.65rem auto 0;
	padding: 0 1rem;
	list-style: none;
}

/* --compact 修飾: 同じ include(tmp_article_list.html 等) を使い回しつつ、
   このページでは最新4件だけ表示する（4列グリッドの1行分。5件目以降を非表示）。
   結果グリッドも同じ .cr-cards を使うため、絞り込み中は除外する（5件目以降が消えないように） */
.content-room-wrapper--compact:not(.is-filtering) .cr-cards > .cr-card:nth-child(n+5) {
	display: none;
}

/* 他ページの .list-article-container ul li（article-list-style.css）が
   無条件でカードにflex/padding/border/position等を当ててくるため、
   .cr-card 自体をラッパークラス起点で明示リセットして上書きする */
.content-room-wrapper .cr-card {
	display: block;
	margin: 0;
	padding: 0;
	background: none;
	border: none;
	position: static;
	transition: none;
}

.content-room-wrapper .cr-card:hover {
	border: none;
	box-shadow: none;
	position: static;
	top: 0;
}

.content-room-wrapper .cr-card a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.content-room-wrapper .cr-card__thumb {
	position: relative;
	aspect-ratio: 290 / 163;
	overflow: hidden;
	background-color: var(--cr-chip-bg);
}

.content-room-wrapper .cr-card__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

.content-room-wrapper .cr-card__label {
	position: absolute;
	top: 0;
	left: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	min-height: 1.6625rem;
	padding: 0 1rem 0 0.625rem;
	font-size: 0.65rem;
	font-weight: 400;
	line-height: 1.2;
	color: #fff;
	background-color: var(--cr-blue);
}

/* サムネイル右下の日付（トップページの最新4件で cr-latest.js が差し込む）。
   文字サイズは .cr-card__label に合わせ、背景は敷かない */
.content-room-wrapper .cr-card__date {
	position: absolute;
	right: 0.625rem;
	bottom: 0.375rem;
	font-size: 0.65rem;
	font-weight: 400;
	line-height: 1.2;
	color: var(--cr-blue);
	background-color:#fff ;
	display: none;
}

.content-room-wrapper .cr-card__label img {
	flex: none;
	width: auto;
	height: 0.875rem;
}


.content-room-wrapper .cr-card__label small {
	/* margin-left: 0.4375rem; */
	font-size: 0.46875rem;
	font-weight: 700;
	color: inherit;
}

.content-room-wrapper .cr-card__title {
	margin: 2.125rem 0 0;
	padding: 0;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.464;
	color: var(--cr-blue);
	/* タイトルが1行/2行のどちらでも高さを2行分で揃え、下の .cr-card__text の開始位置を記事間で一致させる。
	   em指定にすることで、カード種別（記事/インタビュー）やSP時のfont-size変更にも自動追従する */
	min-height: calc(1.464em * 2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.content-room-wrapper .cr-interviews .cr-card__title {
	min-height: calc(1.22em * 2);
}

.content-room-wrapper .cr-card__text {
	margin: 0.9375rem 0 0;
	padding: 0;
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1.464;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}


.content-room-wrapper .cr-card .cr-tags {
	column-gap: 0.75rem;
	margin-top: 1.9rem;
}

section.contentroom-list-index .content-room-wrapper .cr-card .cr-tags{
	display: none;
}

.content-room-wrapper .cr-card .cr-tag {
	padding-right: 1.25rem;
}

/* ===== 記事を検索 ===== */
.content-room-wrapper .cr-search__inner {
	max-width: 69.6875rem;
	margin: 0 auto;
}

.content-room-wrapper .cr-search__field {
	position: relative;
	max-width: 39.625rem;
	margin: 3.15rem auto 0;
}

.content-room-wrapper .cr-search__field input {
	width: 100%;
	min-height: 4.9375rem;
	padding: 0 4.5rem 0 1.6rem;
	font-family: inherit;
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.6;
	color: var(--cr-ink);
	background-color: var(--cr-chip-bg);
	border: none;
	border-radius: var(--cr-radius);
	appearance: none;
}

.content-room-wrapper .cr-search__field input::placeholder {
	color: var(--cr-placeholder);
	opacity: 1;
}

.content-room-wrapper .cr-search__field::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 1.6rem;
	width: 2.6rem;
	height: 2.6rem;
	background: url("../img/icon-search-gray.svg") no-repeat center / contain;
	transform: translateY(-50%);
	pointer-events: none;
}

.content-room-wrapper .cr-search .cr-tags {
	gap: 1.375rem 1.045rem;
	margin-top: 2.65rem;
	padding-top: 2.65rem;
	border-top: 1px solid var(--cr-yellow);
}

/* タグ開閉トグル。PC では常時展開のままなので基本は非表示（SP側の @media で表示に切り替える）。
   将来 PC も開閉式にする場合は、この display:none と下の @media 内の規則を
   通常のルールとして外に出せばよい */
.content-room-wrapper .cr-search__tags-toggle {
	display: none;
}



.content-room-wrapper .cr-search .cr-tag::before {
	width: 1.0625rem;
	height: 1.0625rem;
}

/* ===== 検索結果（モード切替） =====
   絞り込みが有効な間だけ .is-filtering が付き、
   キュレーション面（お役立ち情報／ユーザーインタビュー）と入れ替わる */
.content-room-wrapper .cr-results {
	display: none;
	margin-top: 6.14rem;
}

.content-room-wrapper.is-filtering .cr-results {
    display: block;
    /* flex-direction: column;
    align-items: center; */
}

.content-room-wrapper.is-filtering .cr-articles,
.content-room-wrapper.is-filtering .cr-interviews {
	display: none;
}

.content-room-wrapper .cr-results__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--cr-yellow);
	    /* max-width: 69.6875rem; */
		width: 100%;
}

.content-room-wrapper .cr-results__count {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.4;
}

.content-room-wrapper .cr-results__count strong {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--cr-blue);
}

.content-room-wrapper .cr-results__active {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* 選択中のタグ。× で個別に外せる */
.content-room-wrapper .cr-results__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	min-height: 2.25rem;
	padding: 0 0.875rem;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.4;
	color: #fff;
	background-color: var(--cr-blue);
	border: none;
	border-radius: var(--cr-radius);
	cursor: pointer;
	appearance: none;
}

.content-room-wrapper .cr-results__chip::after {
	content: "×";
	font-size: 1.125rem;
	line-height: 1;
}

.content-room-wrapper .cr-results__clear {
	margin-left: auto;
	margin-right: 4.3rem;
	display: inline-block;
	align-items: center;
	gap: 0;
	padding: 0;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--cr-ink);
	text-decoration: underline;
	background: none;
	border: none;
	cursor: pointer;
	appearance: none;
}

/* .cr-results__chip::after と同じ×アイコン。色は .cr-results__clear の黒(--cr-ink)を継承 */
.content-room-wrapper .cr-results__clear::after {
	content: "×";
	font-size: 1.125rem;
	line-height: 1;
	text-decoration: none;
}

.content-room-wrapper .cr-results__empty {
	display: none;
	margin: 4rem 0 0;
	font-size: 1.25rem;
	line-height: 2;
	text-align: center;
}

.content-room-wrapper .cr-results__empty.is-shown {
	display: block;
}

/* ===== ユーザーインタビュー ===== */
.content-room-wrapper .cr-interviews .cr-card__title {
	line-height: 1.22;
}

.content-room-wrapper .cr-interviews .cr-card__title small {
	margin-left: 0.4375rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: inherit;
}

/* =====================================================
   movieの背景色
   ===================================================== */

.content-room-movie-wrapper {
	--gw-base:   rgb(0,167,225);
	/* Product Movie のボタン/再生アイコンのツートーンリング用（サービスブルー = --gw-base と同色 / モジュールブルー） */
	--cr-blue-module: rgb(43,125,225);
	/* .content-room-wrapper は兄弟要素で継承されないため、同じ値をここにも定義 */
	--cr-radius: 2rem;

	position: relative;
	width: 100%;
	max-width: 100%;
	/* 旧 .gw-content（削除済みの写真ループ）がこの高さを担っていたため、
	   .gw-content 削除に伴いここへ移設。.gw-bg（position:absolute; inset:0;）が
	   この高さを基準に広がるので、無いとセクション全体が0pxに潰れる。
	   min-height にするのは、SP（.gw-bg が position:relative に変わり通常フロー化）で
	   実コンテンツがこの値より高くなった時にクリップされないようにするため */
	min-height: clamp(380px, 42vw, 660px);
	padding: 0 1rem;
	margin: 5rem 0 0;
	overflow: hidden;
	background: var(--gw-base);
	container-type: inline-size;
}

.content-room-movie-wrapper .gw-bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: var(--gw-base);
}

/* ----- レイヤー2: 粒状フィルター（しわ） ----- */
.content-room-movie-wrapper .gw-grain {
	position: absolute;
	pointer-events: none;
}

.content-room-movie-wrapper .gw-grain--wrinkle {
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
	background-size: 130% 130%;
	background-repeat: repeat !important;
	mix-blend-mode: soft-light;
	opacity: 0.85;
	animation: gw-wrinkle 24s ease-in-out infinite alternate;
	will-change: transform;
}

@keyframes gw-wrinkle {
	0%   { transform: scale(1)    translate(0, 0); }
	50%  { transform: scale(1.12) translate(-2%, 1%); }
	100% { transform: scale(1.05) translate(2%, -1.5%); }
}

.content-room-movie-wrapper .gw-grain--fine {
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 160px 160px;
	background-repeat: repeat !important;
	mix-blend-mode: overlay;
	opacity: 0.7;
	animation: gw-grain-crackle 0.7s steps(1) infinite;
	will-change: transform;
}

@keyframes gw-grain-crackle {
	0%   { transform: translate(0, 0); }
	10%  { transform: translate(-3%, -4%); }
	20%  { transform: translate(2%, -2%); }
	30%  { transform: translate(-2%, 3%); }
	40%  { transform: translate(3%, 1%); }
	50%  { transform: translate(-3%, -3%); }
	60%  { transform: translate(2%, 4%); }
	70%  { transform: translate(-1%, -2%); }
	80%  { transform: translate(4%, 2%); }
	90%  { transform: translate(-2%, -4%); }
	100% { transform: translate(0, 0); }
}

/* ----- テキストグループ ----- */
.content-room-movie-wrapper .gw-text-group {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: flex-start;
	padding: 9rem 4rem 0;
}

.content-room-movie-wrapper .gw-text-row {
	display: flex;
	align-items: baseline;
	width: 100%;
}

.content-room-movie-wrapper .gw-brand {
	flex: 1;
	margin: 0;
	font-size: clamp(2.6rem, 5.2cqw, 6rem);
	line-height: 1;
	letter-spacing: -0.05em;
	text-align: left;
}

.content-room-movie-wrapper .gw-copy {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

.content-room-movie-wrapper .gw-title {
	margin: 0;
	font-size: clamp(1.4rem, 3.8cqw, 4.6rem);
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-align: left;
}

.content-room-movie-wrapper .gw-lead {
	margin: clamp(1rem, 3cqw, 2.6rem) 0 0;
	font-size: clamp(0.9rem, 1.65cqw, 1.5rem);
	line-height: 1.75;
	text-align: left;
}

.content-room-movie-wrapper .gw-brand span,
.content-room-movie-wrapper .gw-lead span,
.content-room-movie-wrapper .gw-title span {
	color: rgba(255, 255, 255, 1);
	font-weight: 400;
}

.content-room-movie-wrapper .gw-brand span {
	font-weight: 500;
}

/* =====================================================
   Product Movie
   ===================================================== */

.content-room-movie-wrapper .cr-movie {
    position: relative;
    z-index: 3;
    display: flex;
    /* align-items: center; */
    gap: 4cqw;
    width: 100%;
    max-width: 82cqw;
    margin: 0 auto;
    padding: 4.5rem 0;
    color: #fff;
    height: 100%;
}

.content-room-movie-wrapper .cr-movie__detail {
    width: 34%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-evenly;
}

.content-room-movie-wrapper .cr-movie__label {
	margin: 0;
	color: #fff;
	font-size: clamp(2rem, 3.4cqw, 3rem);
	font-weight: 700;
	/* font-size: 3rem; */
    line-height: 0.8051;
}

.content-room-movie-wrapper .cr-movie__title {
	margin: 1.4rem 0 0;
	color: #fff;
	font-size: clamp(1.3rem, 1.85cqw, 1.8rem);
	font-weight: 700;
	line-height: 1.65;
}

.content-room-movie-wrapper .cr-movie__lead {
	margin: 1.3rem 0 0;
	color: #fff;
	font-size: clamp(1rem, 1.3cqw,1.2rem);
	font-weight: 400;
	line-height: 1.9;
	opacity: 0.85;
}

.content-room-movie-wrapper .cr-movie__button {
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
	margin-top: 2.2rem;
	padding: 0.25rem 0.25rem 0.25rem 1.25rem;
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	background-color: var(--cr-blue-module);
	border-radius: var(--cr-radius);
	transition: opacity 0.2s;
}

/* サービスブルー + 白丸 + 三角アイコン（お試し: cr-movie__play と同じ三角形を流用して比較確認用）
   背景がモジュールブルーなのでリングはサービスブルー単色に */
.content-room-movie-wrapper .cr-movie__button-icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--gw-base);
	transition: transform 0.2s;
}

.content-room-movie-wrapper .cr-movie__button-icon::after {
	content: "";
	position: absolute;
	inset: 0.1875rem;
	z-index: 0;
	background: rgba(255, 255, 255, 0.92);
	border-radius: 50%;
}

.content-room-movie-wrapper .cr-movie__button-icon::before {
	content: "";
	position: relative;
	z-index: 1;
	/* cr-movie__play と円・三角の比率を揃える（白丸の直径比 2.125rem/2.875rem ≒ 0.739 を三角形の寸法に掛けた値） */
	margin-left: 0.15rem;
	border-style: solid;
	border-width: 0.4rem 0 0.4rem 0.665rem;
	border-color: transparent transparent transparent var(--cr-blue, #140A9A);
}

.content-room-movie-wrapper .cr-movie__video {
	position: relative;
	flex: 1;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background-color: #000;
	border-radius: 0.25rem;
	box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.35);
}

.content-room-movie-wrapper .cr-movie__player-wrap {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.content-room-movie-wrapper .cr-movie__player,
.content-room-movie-wrapper .cr-movie__poster {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.content-room-movie-wrapper .cr-movie__thumb {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	cursor: pointer;
	background: none;
	border: none;
}

.content-room-movie-wrapper .cr-movie__play {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	/* サービスブルー/モジュールブルーのツートーンリング。内側の白丸は ::after で重ねる */
	background: conic-gradient(var(--gw-base) 0deg 180deg, var(--cr-blue-module) 180deg 360deg);
	border-radius: 50%;
	transition: transform 0.2s;
}

.content-room-movie-wrapper .cr-movie__play::after {
	content: "";
	position: absolute;
	inset: 0.1875rem;
	z-index: 0;
	background: rgba(255, 255, 255, 0.92);
	border-radius: 50%;
}

.content-room-movie-wrapper .cr-movie__play::before {
	content: "";
	position: relative;
	z-index: 1;
	margin-left: 0.2rem;
	border-style: solid;
	border-width: 0.55rem 0 0.55rem 0.9rem;
	border-color: transparent transparent transparent var(--cr-blue, #140A9A);
}

.content-room-movie-wrapper .cr-movie__video iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: none;
}

@media (hover: hover) {
	.content-room-movie-wrapper .cr-movie__button:hover .cr-movie__button-icon {
		transform: scale(1.08);
	}

	.content-room-movie-wrapper .cr-movie__thumb:hover .cr-movie__play {
		transform: scale(1.08);
	}
}



.cr-movie-modal {
	position: fixed;
	inset: 0;
	z-index: 10001;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 4vw;
}

.cr-movie-modal.is-open {
	display: flex;
}

.cr-movie-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
}

.cr-movie-modal__frame {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 75rem;
	aspect-ratio: 16 / 9;
}

.cr-movie-modal__player {
	width: 100%;
	height: 100%;
}

.cr-movie-modal__player iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: none;
}

.cr-movie-modal__close {
	position: absolute;
	top: -2.75rem;
	right: 0;
	width: 2.25rem;
	height: 2.25rem;
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	background: none;
	border: none;
	cursor: pointer;
}

@media (max-width: 1080px) {
	.cr-movie-modal__close {
		top: -2.25rem;
		right: 0.25rem;
	}
}

/* =====================================================
   イラストアイコン
   ===================================================== */

.illust-wrapper {
	/* .content-room-wrapper とは別ブロックなので、--cr-blue 等はここでも参照できるよう定義する */
	--cr-blue: var(--primary-color, #140A9A);

	position: relative;
	width: 100%;
	max-width: 100%;
	padding: 0 0 5rem;
	container-type: inline-size;
}

.cr-hero {
	display: flex;
	flex-direction: column;
	width: 100%;
	aspect-ratio: 1700 / 768;
	background: url("../img/main-bg.jpg") no-repeat center top;
	background-size: 100% 100%;
}

.cr-hero__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 3.588cqw;
}

.cr-hero__catch {
	display: flex;
	align-items: center;
	gap: 0.832cqw;
	margin: 0;
	color: #140A9A;
	font-size: 1.752cqw;
	font-weight: 500;
	line-height: 1.555;
}


.cr-hero__catch::before,
.cr-hero__catch::after {
	content: "";
	flex: none;
	width: 2px;
	height: 2.112cqw;
	background: #140A9A;
}

.cr-hero__catch::before {
	transform: rotate(-23deg);
}

.cr-hero__catch::after {
	transform: rotate(23deg);
}

.cr-hero__title {
	width: 45.838cqw;
	margin: 1.4cqw 0 0;
}

.cr-hero__title img {
	display: block;
	width: 100%;
	height: auto;
}

.cr-hero__foot {
	display: flex;
	flex: 1;
	align-items: flex-end;
	justify-content: space-between;
}

.cr-hero__plant {
	flex: none;
	width: 54.834cqw;
	margin-left: 0.422cqw;
}

.cr-hero__plant img {
	display: block;
	width: 100%;
	height: auto;
}

.cr-hero__lead {
	flex: none;
	width: 25.176cqw;
	margin: 0 5.294cqw 3.647cqw 0;
	color: #fff;
	font-size: 1.573cqw;
	font-weight: 700;
	line-height: 1.538;
}


.cr-hero__lead-highlight {
	background-color: var(--cr-blue);
	color: #fff;
}

/* ===== トップページ スライダー（_index.html .slider-contentroom） ===== */
/* Content room のヒーローをスライド全面に広げる。背景画像はスライド全面に敷く */
.swiper-container .swiper-slide.slider-contentroom {
	position: relative;
	overflow: hidden;
	container-type: size;
}
.swiper-container .swiper-slide.slider-contentroom::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("../img/main-bg.jpg") center center no-repeat;
	background-size: cover;
}
.swiper-container .swiper-slide.slider-contentroom .illust-wrapper {
	/* ボタンの色・角丸は .content-room-wrapper に定義された変数なので、スライドでも参照できるようにする */
	--cr-yellow: var(--accent-color, #FFC82F);
	--cr-btn-ink: #2A3238;
	--cr-radius: 0.375rem;

	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	height: 100%;
}
.swiper-container .swiper-slide.slider-contentroom .cr-hero {
	display: grid;
	grid-template-rows: 3fr 7fr;
	aspect-ratio: auto;
	background: none;
	height: 100%;
}
/* 上(3): タイトル / 下(7): 工場＋説明。どちらも各エリアの縦横中央 */
.swiper-container .swiper-slide.slider-contentroom .cr-hero__head {
	align-self: center;
	height: auto;
	padding-top: 3rem;
}
/* 上エリア(30cqh)に収まるよう、タイトル周りはスライド高さ基準で縮める */
.swiper-container .swiper-slide.slider-contentroom .cr-hero__catch {
	gap: 1cqh;
	font-size: 4cqh;
}
.swiper-container .swiper-slide.slider-contentroom .cr-hero__catch::before,
.swiper-container .swiper-slide.slider-contentroom .cr-hero__catch::after {
	height: 5cqh;
}
.swiper-container .swiper-slide.slider-contentroom .cr-hero__title {
	width: min(80cqw, 13cqh * 780 / 99);
	margin-top: 2cqh;
}
.swiper-container .swiper-slide.slider-contentroom .cr-hero__foot {
	align-self: center;
	align-items: center;
	justify-content: center;
	gap: 10cqw;
}
.swiper-container .swiper-slide.slider-contentroom .cr-hero__plant {
	/* 下エリア(70cqh)に収まる幅。cqh はスライド(container-type: size)基準 */
	width: min(60cqw, 67.5cqh * 933 / 525);
	margin-left: 0;
}
.swiper-container .swiper-slide.slider-contentroom .cr-hero__lead {
	margin: 0;
	align-self: flex-end;
	padding: 0 0 2rem;
}
/* 説明文＋「すべての記事へ」ボタンの縦積み */
.swiper-container .swiper-slide.slider-contentroom .cr-hero__text {
	display: flex;
	flex-direction: column;
	/* align-items: center; */
	gap: 4cqh;
}
/* 見た目は上の共通ルールのまま。記事一覧の下に置く前提の上マージンだけ消す */
.swiper-container .swiper-slide.slider-contentroom .cr-more {
	margin-top: 0;
	justify-content: flex-start;
}

/* ===== フローティング ページ内ナビ ===== */
html {
	scroll-behavior: smooth;
}

#cr-top,
#cr-movie,
#cr-related,
#cr-inquiry {
	scroll-margin-top: 4rem;
}

/* 固定ヘッダー .head_fixed が 81px あるので、それを超える余白を取る
   （4rem=64pxだと81pxのヘッダーの下に見出しがめり込みギリギリになるため8remに引き上げ。
   記事を検索・お役立ち情報・ユーザーインタビューの頭出しのみ対象） */
#cr-search,
#cr-articles,
#cr-interviews,
#cr-results {
	scroll-margin-top: 8rem;
}

.cr-fixnav {
	--cr-fixnav-icon-w: 4.3125rem;
	--cr-fixnav-label-w: 14rem;
	--cr-fixnav-row-h: 4rem;
	position: fixed;
	top: 50%;
	right: 0;
	z-index: 999;
	transform: translate(var(--cr-fixnav-label-w), -50%);
	background: #fff;
	border: 1px solid rgba(20, 10, 154, 0.18);
	transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.cr-fixnav__list {
	margin: 0;
	padding: 0.625rem 0 1rem;
	list-style: none;
}

.cr-fixnav__link {
	display: flex;
	align-items: center;
	height: var(--cr-fixnav-row-h);
	color: #140A9A;
	text-decoration: none;
}

.cr-fixnav__icon {
	flex: 0 0 var(--cr-fixnav-icon-w);
	display: flex;
	align-items: center;
	justify-content: center;
}

.cr-fixnav__icon img {
	width: auto;
	height: auto;
	max-width: 2rem;
	max-height: 2rem;
}

.cr-fixnav__label {
	width: var(--cr-fixnav-label-w);
	padding-right: 1.25rem;
	font-size: 0.875rem;
	line-height: 1.4;
	opacity: 0;
	transition: opacity 0.3s ease;
}

/* キーボード操作でも展開する */
.cr-fixnav:focus-within {
	transform: translate(0, -50%);
}

.cr-fixnav:focus-within .cr-fixnav__label {
	opacity: 1;
}


/* ===== ホバー ===== */
@media (hover: hover) {
	.content-room-wrapper .cr-card a:hover .cr-card__title {
		text-decoration: underline;
	}

	.content-room-wrapper .cr-card a:hover .cr-card__thumb img {
		opacity: 0.8;
	}

	.content-room-wrapper .cr-more a:hover,
	.swiper-container .swiper-slide.slider-contentroom .cr-more a:hover {
		opacity: 0.8;
	}

	.content-room-wrapper button.cr-tag:not([disabled]):not([aria-pressed="true"]):hover {
		background-color: #e9e9e9;
	}

	.content-room-wrapper .cr-results__chip:hover,
	.content-room-wrapper .cr-results__clear:hover {
		opacity: 0.7;
	}

	.cr-fixnav:hover {
		transform: translate(0, -50%);
	}

	.cr-fixnav:hover .cr-fixnav__label {
		opacity: 1;
	}

	.cr-fixnav__link:hover .cr-fixnav__label {
		text-decoration: underline;
	}
}

/* ===== SP ===== */
@media (max-width: 1080px) {
	.cr-fixnav {
		display: none;
	}


	.cr-hero__catch {
		gap: 0.5rem;
		font-size: clamp(0.75rem, 1.752cqw, 1.86rem);
	}

	.cr-hero__catch::before,
	.cr-hero__catch::after {
		height: clamp(0.9rem, 2.112cqw, 2.25rem);
	}

	.cr-hero__lead {
		/* width: 42cqw;
		margin-right: 3cqw; */
		font-size: clamp(0.9rem, 1.573cqw, 1.67rem);
	}


	.swiper-container .swiper-slide.slider-contentroom .cr-hero__foot {
		flex-direction: column;
		gap: 0.5rem;
	}

	.swiper-container .swiper-slide.slider-contentroom .cr-hero__plant {
		/* ボタンが増えた分、下エリアに収まるよう少し小さくする */
		width: min(95cqw, 40cqh * 933 / 525);
	}

	.swiper-container .swiper-slide.slider-contentroom .cr-hero__lead {
		        width: 100%;
        text-align: center;
        padding: 0;
		
	}

	.swiper-container .swiper-slide.slider-contentroom .cr-hero__catch{
		font-size: 3cqh;
	}

	.swiper-container .swiper-slide.slider-contentroom .cr-hero__catch::before, .swiper-container .swiper-slide.slider-contentroom .cr-hero__catch::after{
		font-size: 2cqh;
		height: 3cqh;
	}


	.article-container .cr-hero__head{
		padding-top: 3rem;
	}
	.article-container .cr-hero__foot{
		flex-direction: column;
		gap: 0.5rem;
		    align-items: center;
			justify-content: center;
	}
	.article-container .cr-hero__plant{
		width: 74.834cqw;
    margin-left: 0;
	}
	.article-container .cr-hero__lead{
		width: 100%;
    display: block;
    text-align: center;
	    margin: 0 0 3.647cqw 0;
	}
	.article-container .cr-hero{
		    background-size: cover;
			background-position: right center;
	}

	.content-room-wrapper {
		padding: 0 1rem;
	}
	.illust-wrapper{
		padding: 0 0 3rem;
	}

	.content-room-wrapper .cr-articles{
		margin-top: 2rem;
	}
	.content-room-wrapper .cr-interviews {
		margin-top: 4rem;

	}

	.content-room-wrapper .cr-heading__ja {
		font-size: 1.375rem;
	}

	.content-room-wrapper .cr-heading__ja img {
		height: 1.5rem;
	}

	.content-room-wrapper .cr-heading__en {
		/* font-size: 2.25rem; */
	}
	.content-room-wrapper .cr-articles .cr-heading__en-illust{
		height: 3rem;
	}
	.content-room-wrapper .cr-interviews .cr-heading__en-illust{
		height: 2rem;
	}
	.content-room-wrapper .cr-heading__lead {
		font-size: 1rem;
		line-height: 1.9;
	}

	.content-room-wrapper .cr-heading__lead br {
		display: none;
	}

	.content-room-wrapper .cr-eyebrow {
		font-size: 1rem;
	}

	.content-room-wrapper .cr-search__field input {
		min-height: 3.75rem;
		padding: 0 3.5rem 0 1.2rem;
		font-size: 1.125rem;
	}

	.content-room-wrapper .cr-search__field::after {
		right: 1.2rem;
		width: 1.9rem;
		height: 1.9rem;
	}

	.content-room-wrapper .cr-tag {
        min-width: 6.5rem;
        min-height: 2rem;
        gap: 0.55rem;
        padding: 0 1rem 0 0.75rem;
        font-size: .8rem;
	}

	/* タグ開閉トグル（SP限定）。区切り線は元々 .cr-tags 側にあったのをここへ移し、
	   .cr-tags は展開時のみ表示するパネルにする */
	.content-room-wrapper .cr-search__tags-toggle {
		display: flex;
		align-items: center;
		gap: 0.75rem;
		width: 100%;
		margin-top: 2rem;
		padding: 1.5rem 1rem;
		border: none;
		border-top: 1px solid var(--cr-yellow);
		font-family: inherit;
		font-size: 1.0625rem;
		font-weight: 500;
		color: var(--cr-ink);
		background: none;
		appearance: none;
		cursor: pointer;
	}

	/* .cr-tag::before と同じタグアイコン・同じ余白（gap）で揃える */
	.content-room-wrapper .cr-search__tags-toggle::before {
		content: "";
		flex: none;
		width: 1rem;
		height: 1rem;
		background: url("../img/icon-tag.svg") no-repeat center / contain;
	}

	.content-room-wrapper .cr-search__tags-toggle-icon {
		margin-left: auto;
		width: 1rem;
		height: 1rem;
		transform: rotate(90deg);
		transition: transform 0.2s;
	}

	.content-room-wrapper .cr-search__tags-toggle[aria-expanded="true"] .cr-search__tags-toggle-icon {
		transform: rotate(-90deg);
	}

	.content-room-wrapper .cr-search .cr-tags {
		display: none;
		margin-top: 1.5rem;
		padding-top: 0;
		border-top: none;
	}

	.content-room-wrapper .cr-search__tags-toggle[aria-expanded="true"] + .cr-tags {
		display: flex;
	}

	.content-room-wrapper .cr-results {
		margin-top: 4rem;
	}

	.content-room-wrapper .cr-results__head {
		gap: 0.75rem 1rem;
	}

	.content-room-wrapper .cr-results__count {
		width: 100%;
		font-size: 1.125rem;
	}

	.content-room-wrapper .cr-results__count strong {
		font-size: 1.5rem;
	}

	.content-room-wrapper .cr-results__clear {
		margin-left: 0;
		margin-right: 0;
	}

	.content-room-wrapper .cr-results__empty {
		margin-top: 2.5rem;
		font-size: 1rem;
	}

	.content-room-wrapper .cr-cards {
		grid-template-columns: 1fr;
		row-gap: 3rem;
		margin-top: 2.5rem;
		padding: 0;
	}

	.content-room-wrapper .cr-card__title {
		margin-top: 1.5rem;
		font-size: 1.25rem;
	}

	.content-room-wrapper .cr-card__text {
		font-size: 1rem;
	}

	.content-room-wrapper .cr-more {
		margin-top: 3.5rem;
	}

	.content-room-wrapper .cr-more a,
	.swiper-container .swiper-slide.slider-contentroom .cr-more a {
		width: 100%;
		max-width: 16.25rem;
		min-height: 3.75rem;
		font-size: 1.25rem;
	}

	.content-room-movie-wrapper .gw-bg{
		position: relative;
	}
.content-room-movie-wrapper .cr-movie__video{
	overflow: visible;
}
	.content-room-movie-wrapper .gw-text-group {
		position: static;
		order: 1;
		padding: 0;
	}

	.content-room-movie-wrapper .gw-text-row {
		flex-direction: column;
		align-items: center;
		gap: clamp(1rem, 4vw, 1.6rem);
		width: auto;
	}

	.content-room-movie-wrapper .gw-brand,
	.content-room-movie-wrapper .gw-copy {
		flex: none;
	}

	.content-room-movie-wrapper .cr-movie {
		flex-direction: column;
		align-items: stretch;
		max-width: none;
		gap: 1.6rem;
		padding: 2.5rem 1.2rem;
	}

	.content-room-movie-wrapper .cr-movie__detail {
		width: auto;
	}

	.swiper-container .swiper-slide.slider-contentroom .cr-more a{
		font-size: 1rem;
	}
}

/* ===== 動きを減らす設定への配慮 ===== */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.cr-fixnav,
	.cr-fixnav__label {
		transition: none;
	}

	.content-room-movie-wrapper .gw-grain--wrinkle,
	.content-room-movie-wrapper .gw-grain--fine {
		animation: none;
	}
}
