@charset "utf-8";

@import url("globals.css");

/* --- Swiper(Carousel) Common Style --- */
.swiper {
    max-width: 1054px;
    margin-inline: auto;
    padding: 20px 40px; /* 左右の矢印のために余白を確保 */
}
.swiper-slide {
    height: auto; /* スライドの高さをコンテンツに合わせる */
}
.swiper-pagination {
    position: static !important; /* ページネーションをカルーセルの下に配置 */
    margin-top: 20px;
}
.swiper-button-prev,
.swiper-button-next {
    color: #333; /* 矢印の色 */
}
/* BRAND / WORKS / PRODUCTS だけは見えるようにする */
.brand-carousel .swiper-wrapper,
.works-carousel .swiper-wrapper,
.products-carousel .swiper-wrapper {
  overflow: visible !important;
}

/* --- End Swiper Common Style --- */

/* Session 1: mainimg-3.svg を body 固定背景として残しつつ、
   透過セクション越しに見えたとき視認性が悪くなるため擬似要素で薄くする。
   body の background は削除し、::before で opacity 付きで描画する。 */
body{
	background: var(--white);
}
body::before {
	content: '';
	position: fixed;
	inset: 0;
	background: url('../img/toppage/bg-image.jpg') no-repeat top center;
	background-size: cover;
	opacity: 0.18;
	z-index: -1;
	pointer-events: none;
}
.bg-blur {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    background: url('../img/toppage/bg-image.jpg') no-repeat top center fixed;
    background-size: cover;
    transition: filter 0.4s;
    filter: blur(0px);
    pointer-events: none;
}


/* --- 6. 各セクションのスタイル --- */
/* Hero */
.hero {
	display: grid;
	place-items: center;
	height: 100vh;
	
	text-align: center;
	padding: 20px;
	box-sizing: border-box;
	position: relative;
	z-index: 2;
	
}
.hero-movie{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	z-index: 1;
	background: url("../img/toppage/opening.jpg") no-repeat;
	background-size: 100% auto;
}
.hero-movie video{
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hero__title {
	font-family: var(--font-display), serif;
	font-size: clamp(2rem, 5vw, 3rem);
	margin-bottom: 1rem;
}

/* News Section */
.news-section{
	max-width: 1150px;
	margin: 80px auto;
	padding: 30px 5%;
	background-color: var(--bg-clear);
}

.swiper.news-carousel {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 2rem;
	max-width: 100%;
	padding: 20px 0!important;
}
/*
.swiper.news-carousel {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 2rem;
	max-width: 1150px;
	margin: 0 auto;
	border-bottom: 1px solid #eee;
	padding: 30px 5% !important;
	background-color: var(--bg-clear);
}
*/
.news-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1rem;
	flex-grow: 1;
}
.news-item__image {
	width: 120px;
	height: 100px;
	object-fit: cover;
}
.news-item__title {
	font-weight: 600;
	font-size: 1rem;
	margin-top: 1em;
}
.news-item__description {
	font-size: 0.9rem;
	max-width: 500px;
}
.news-nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	width: 150px;
	margin: auto;
}
.news-nav__controls {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.news-nav__controls .swiper-button-prev,
.news-nav__controls .swiper-button-next{
	position: static;
}
.view-all-link {
	font-weight: 700;
	text-transform: uppercase;
	color: #000;
}
@media (min-width: 769px) {
	.news-item {
		flex-direction: row;
		text-align: left;
	}
}

/* Category Section */
.products_wrapper{
	padding: 50px;
	overflow: hidden; /* カルーセルがはみ出ないように */
}
.category-section {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	max-width: 1200px;
	margin-inline: auto;
	text-align: center;
}
.category-card{
	background: #FFF;
	padding: 30px;
	text-align: left;
}
.category-card__image {
	margin: 0 auto 20px auto;
}
.category-card__title {
	font-family: var(--font-display);
	font-size: 1.5rem;
	margin-bottom: 10px;
	position: relative;
	z-index: 10;
}
.category-card__text {
	font-size: 0.9rem;
	line-height: 1.8;
	min-height: 3.5em;
}


/* Brand Section */
section.brand-section{
	padding: 40px 0; /* 左右のpaddingはswiper側で調整 */
}
.brand-item {
	text-align: center;
	background: #FFF;
	padding: 30px;
    height: 100%; /* 高さを揃える */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}
.brand-item img {
	margin: 0 auto 10px auto;
    max-width: 100%;
}
.brand-item__text-logo {
	font-size: 1.25rem;
	font-weight: 700;
	display: grid;
	place-items: center;
	height: 120px;
}

/* Products Section */
.product-card {
	border: 1px solid #eee;
	text-align: center;
	background: #FFF;
	padding: 30px;
    height: 100%; /* 高さを揃える */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}
.product-card .image{
	border: 1px solid #ccc;
	aspect-ratio: 1 / 1;
	margin: 0;
	overflow: hidden;
}
.product-card .image img{
	width: 100%;
	height: 100%;
	object-fit: contain;
	margin: auto;
	display: block;
}
.product-card__info {
	padding: 20px 0 0; /* paddingを調整 */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-card__brand {
	font-size: 14px;
	font-weight: 600;
}
.product-card__name {
	font-size: 1.2rem;
	margin: 15px 0 15px;
	min-height: 3.5em;
    flex-grow: 1;
}
.product-card__link {
	color: #555;
}

/* Order Section */
.order-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: var(--white);
	gap: 2rem;
	max-width: 1054px;
	margin-inline: auto;
	padding: 2rem;
	margin-top: 20px;
}
.order-section__text {
	flex: 1;
	text-align: center;
}
.order-section__title {
	font-size: 2rem;
	font-weight: 600;
	margin-bottom: 1rem;
}
.order-section__image {
	flex: 1;
	max-width: 415px;
	width: 100%;
}
@media (min-width: 769px) {
	.category-card__image{
		margin-top: -1.8em;
	}
	.order-section {
		flex-direction: row;
		text-align: left;
	}
}

/* About Section */
.about-section {
	max-width: 1150px;
	margin-inline: auto;
	position: relative;
}
.about-section:before{
	content: "";
	background: url("../img/toppage/about-photo.png") no-repeat;
	background-size: 100% auto;
	width: 50%;
	height: 100%;
	position: absolute;
	top: 5%;
	left: 0;
	z-index: -1;
}
.about-section__text-box {
	background: rgba(255, 255, 255, 0.8);
	padding: 40px;
	width: 100%;
	margin-left: auto;
	box-sizing: border-box;
}
.about-section__text {
	margin: 30px 0;
}
@media (min-width: 1025px) {
	.about-section {
		grid-template-columns: 1fr 2fr;
	}
	.about-section__image {
		grid-row: 1 / 2;
		grid-column: 1 / 2;
	}
	.about-section__text-box {
		grid-column: 2 / 3;
	}
}

/* Gray Background Wrapper */
.gray-background {
	background-color: var(--black-haze);
	padding: 40px 0;
}

/* News Topics Section */
.news-topics-section {
	max-width: 1150px;
	margin-inline: auto;
}
.news-topics-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2rem;
}
.news-topics-title {
	text-align: center;
}
.news-list {
	list-style: none;
	padding: 0;
}
.news-list li {
	display: flex;
	flex-direction: column;
	padding: 1rem 0;
	border-bottom: 1px solid #ddd;
	gap: 0.5rem;
}
.news-list li time {
	color: #555;
}
.news-list li a {
	text-decoration: none;
	color: inherit;
}
@media (min-width: 769px) {
	.news-topics-header {
		flex-direction: row;
	}
	.news-topics-title {
		text-align: left;
	}
	.news-list li {
		flex-direction: row;
		gap: 2rem;
	}
	.news-list li time {
		min-width: 100px;
	}
}

/* Column Section */
.column-section {
	text-align: center;
    padding: 40px 0; /* 上下のpadding */
    overflow: hidden; /* カルーセルがはみ出ないように */
}
.column-card {
	text-align: center;
    height: 100%; /* 高さを揃える */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
	background: #FFF;
}

.column-card .image{
	border: 1px solid #ccc;
	aspect-ratio: 1 / 1;
	margin: 0;
	overflow: hidden;
}
.column-card .image img{
	width: 100%;
	height: 100%;
	object-fit: contain;
	margin: auto;
	display: block;
}
.column-card__info {
	padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.column-card__info time {
	display: block;
	margin-bottom: 10px;
	font-weight: 600;
}
.column-card__info h3 {
	margin-bottom: 15px;
    flex-grow: 1;
}
.column-card__info a {
	color: #555;
}
.section-footer {
	margin-top: 40px;
}

/* ===========================================================
   Hero Slider (Session 1: TOPヒーロースライダー)
   - メイン01〜03 を Swiper で fade 切替
   - 5.5 秒間隔・loop・dots
   - .swiper の汎用ルール（max-width 1054px / padding 20px 40px）を override
   =========================================================== */
/* Session 1: 既存の .desktop { margin-top: -80px } で .desktop がヘッダーに
   80px 食い込んでヘッダーが透過的にヒーロー上に重なる構造。
   ここでは .hero-slider 周辺の padding 解除のみ行う（ヘッダー位置は既存仕様を維持）。 */
.is-home main > section.hero-slider {
    padding: 0;
}

.hero-slider {
    width: 100%;
    margin: 0;
    position: relative;
}

/* Session 1: 上部にダークグラデーションを追加してヘッダーの白文字/ロゴの視認性を確保。
   .desktop { margin-top: -80px } によりヘッダーがヒーロー上に重なるため、
   ヒーロー上部 160px を濃く暗くして白ロゴ・白ハンバーガーがどのスライドでも読めるようにする。 */
.hero-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.40) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 5;
    pointer-events: none;
}

/* 既存 .swiper スタイル（max-width:1054px / padding:20px 40px）を上書き */
.swiper.hero-swiper {
    max-width: none;
    padding: 0;
    margin: 0;
    width: 100%;
    height: clamp(420px, 70vh, 720px);
    overflow: hidden;
}

/* fade effect 用に wrapper / slide の高さを明示確保
   （汎用 .swiper-slide { height: auto; } を上書き） */
.swiper.hero-swiper .swiper-wrapper {
    height: 100%;
}

.swiper.hero-swiper .swiper-slide {
    height: 100%;
}

.hero-slide {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
    /* hero-02/03 が EXIF orientation で逆さま表示される場合への保険 */
    image-orientation: from-image;
}

/* 2026-05-14: フルオーバーレイ廃止 → 上部白帯方式に変更 */
.hero-slide::after {
    display: none;
}

.hero-slide__copy {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    width: 100%;
    padding: clamp(28px, 4vh, 48px) clamp(28px, 4vw, 52px);
    margin: 0;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.hero-slide__title {
    font-family: var(--font-family-noto_sans_jp), sans-serif;
    font-size: clamp(1.7rem, 2.8vw, 2.2rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.6;
    margin: 0;
    word-break: keep-all;
}

/* スライド①：Zen Old Mincho */
.hero-slide__title--meiryo {
    font-family: var(--font-family-zen_old_mincho);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.12em;
}

/* スライド②：Arial Black（英文太字）*/
.hero-slide__title--arial {
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-weight: 900;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    letter-spacing: 0.08em;
    word-break: normal;
    line-height: 1.4;
}

/* ── テキスト色：黒（スライド①②共通） ── */
.hero-slide__copy--black {
    color: #111;
    text-shadow: 0 1px 6px rgba(255, 255, 255, 0.45);
}

/* ── テキスト位置：右寄せ（スライド①） ── */
.hero-slide__copy--right {
    margin-left: auto;
    margin-right: 0;
    max-width: 52%;
    text-align: left;
    padding-left: 0;
    padding-right: clamp(40px, 6vw, 80px);
}

@media (min-width: 769px) {
    .hero-slide__copy--right {
        transform: translateY(-100px);
    }
}

/* ── テキスト位置：上部（スライド②） ── */
.hero-slide__copy--top {
    align-self: flex-start;
    margin-top: clamp(100px, 14vh, 140px);
}

/* タイプライター対象テキストはJS起動前に非表示（文字の先出し防止） */
[data-typewriter],
[data-typewriter-2] {
    visibility: hidden;
}

.hero-swiper__pagination {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
}

.hero-swiper__pagination .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 10px;
    height: 10px;
    margin: 0 6px;
}

.hero-swiper__pagination .swiper-pagination-bullet-active {
    opacity: 1;
}

@media (max-width: 768px) {
    .swiper.hero-swiper {
        height: clamp(360px, 60vh, 520px);
    }
    .hero-slide__title { letter-spacing: 0.02em; }
    /* スライド①：スマホで右端が切れないよう中央寄せに変更 */
    .hero-slide__copy--right {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        text-align: center;
        padding-left: 24px;
        padding-right: 24px;
    }
}
