/* ==========================================================================
//  Styles.css
// ========================================================================== */
/* ==========================================================================
//  1. グローバル設定 (Global Settings)
//  - サイト全体の基本的なHTML要素、フォント、リセットスタイルなど。
// ========================================================================== */
html,
body {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	/* スムーズスクロールを有効にする */
	scroll-behavior: smooth;
}

body {
	/* 基本フォント設定 */
	font-family: "游ゴシック", YuGothic, "Hiragino Kaku Gothic ProN", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
	color: #313131;
	background: #fff;
	/* フォントのアンチエイリアスとレンダリングを最適化 */
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body#childs {
	padding-top: 72px;
}

img {
	border: 0;
	vertical-align: middle;
	max-width: 100%;
	height: auto;
}

/* Link Style  */
a,
a:link,
a:visited,
a:focus {
	color: #000000;
	text-decoration: none;
	outline: 0;
}

p a,
p a:visited {
	line-height: inherit;
}

a,
input {
	transition: all 0.2s ease-in-out 0s;
}

button:focus,
:focus-visible {
	outline: none !important;
}

a {
	-webkit-tap-highlight-color: transparent;
	/* モバイル用 強調をなくす */
}

/* ==========================================================================
//  2. タイポグラフィ (Typography)
//  - 特定のフォントスタイルやテキストの表示に関する設定。
// ========================================================================== */
.karla {
	font-family: 'Karla', sans-serif;
	font-weight: 400;
}

.vollkorn {
	font-family: 'Vollkorn', serif;
	font-weight: 400;
}

.text-hide {
	/* テキストを視覚的に隠すためのテクニック（SEO目的などで要素は残したい場合） */
	font: 0 / 0 a;
	color: transparent;
	text-shadow: none;
	background-color: transparent;
	border: 0;
}

.title {
	margin: 0 0 20px;
	text-align: center;
	font-family: 'Vollkorn', serif;
	font-weight: 400;
	font-size: 36px;
}

small,
.small {
	font-size: .875rem;
}

/* ==========================================================================
//  3. ヘッダーセクション (Header Section)
//  - サイトのナビゲーションバー、ロゴ、ハンバーガーメニューなど。
// ========================================================================== */
header {
	position: fixed;
	/* ページ上部に固定表示 */
	top: 0;
	left: 0;
	width: 100%;
	height: 72px;
	background: #222;
	z-index: 100;
	/* 他の要素より手前に表示 */
}

.header-container {
	display: flex;
	justify-content: space-between;
	/* 要素を両端に配置 */
	align-items: center;
	/* 垂直方向の中央揃え */
	padding: .5rem 0;
	max-width: none;
	/* 最大幅の制限をなくす */
	margin: 0;
	/* マージンをリセット */
}

.navbar-brand {
	margin-left: 2rem;
	/* 左側に余白 */
}

/* H1要素（ロゴのコンテナ）のスタイル */
.navbar-brand .brand {
	position: relative;
	/* 子要素の絶対配置の基準 */
	width: 119px;
	/* 通常時のロゴの幅 */
	height: 40px;
	/* 通常時のロゴの高さ */
	margin: 0;
	padding: 0;
	display: block;
	/* ブロック要素として表示 */
	transition: width 0.5s ease-in-out, height 0.5s ease-in-out;
	/* ロゴコンテナのサイズ変化をスムーズに */
	overflow: hidden;
	/* ロゴがはみ出さないように */
}

/* スクリーンリーダーのみに表示されるテキストのスタイル */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ロゴ表示要素共通のスタイル */
.logo-display {
	position: absolute;
	/* H1要素を基準に絶対配置 */
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-repeat: no-repeat;
	/* 画像の繰り返しなし */
	background-position: left;
	/* 画像を中央に配置 */
	background-size: contain;
	/* 要素内に画像を収める */
	/* 不透明度と拡大縮小の変化をスムーズに */
	transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* 通常時の小さなアイコンスタイル */
.full-logo {
	background-image: url('../img/Time-R_round.svg');
	background-position: left;
	/* 画像配置場所設定 */
	opacity: 1;
	/* 最初は完全に表示 */
	transform: scale(1);
	/* 最初は元のサイズ */
}

/* スクロール時に表示されるロゴスタイル */
.icon-logo {
	background-image: url('../img/Time-R_white.svg');
	opacity: 0;
	/* 最初は非表示 */
	transform: scale(0.25);
	/* 最初は小さくしておく */
}

/* スクロール時のロゴコンテナのスタイル */
.fixed-top.scrolled .navbar-brand .brand {
	width: 119px;
	/* スクロール時にアイコンの幅に縮小 */
	height: 45px;
	/* スクロール時にアイコンの高さに縮小 */
}

/* スクロール時に大きなロゴを非表示にする */
.fixed-top.scrolled .full-logo {
	opacity: 0;
	/* 不透明度を0に */
	transform: scale(0.5);
	/* 縮小 */
}

/* スクロール時にアイコンを表示する */
.fixed-top.scrolled .icon-logo {
	opacity: 1;
	/* 不透明度を1に */
	transform: scale(1);
	/* 元のサイズに拡大 */
}

/* NAVIGATION SWITCH */
.navswitch {
	margin-right: 20px;
	/* 右側に余白 */
	padding: .5rem 0;
	line-height: 0;
	/* 余分なスペースを削除 */
}

.navswitch a {
	cursor: pointer;
	/* クリック可能なことを示すカーソル */
}

/* ハンバーガーメニューアイコン */
.hamburger {
	display: inline-block;
	cursor: pointer;
}

.hamburger span {
	display: block;
	width: 35px;
	height: 5px;
	background-color: white;
	margin: 6px 0;
	transition: 0.4s;
	/* ホバー時のアニメーション */
}

:target {
	/* 固定ヘッダー回避用マージン */
	scroll-margin-top: 88px;
}

/* ==========================================================================
//  4. ナビゲーションモーダル (Navigation Modal)
//  - ハンバーガーメニューをクリックした際に表示されるオーバーレイ。
// ========================================================================== */
.modal {
	/* 全画面を覆うオーバーレイ */
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background-color: rgb(0 0 0 / 60%);
	/* 半透明の黒背景 */
	opacity: 0;
	transition: opacity 0.5s, scale 0s 0.5s;
	/* 表示・非表示のアニメーション */
	scale: 0;
	/* 初期状態では非表示 */
}

.modal:target {
	opacity: 1;
	/* 表示状態 */
	transition: opacity 0.5s;
	scale: 1;
}

/* JavaScriptで付加されたクラスを使ったbodyの制御 */
body.modal-open {
	overflow: hidden;
	/* 背景のスクロールを止める */
}

.close {
	position: absolute;
	top: 3rem;
	right: 3rem;
	font-size: 4rem;
	color: black;
	text-decoration: none;
	cursor: pointer;
	/* アイコンの位置調整 */
	transform: translate(50%, -50%);
	transition: opacity 0.5s;
}

.close:hover {
	opacity: .5;
}

.modal-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	padding: 4rem;
	margin: auto;
	overflow: scroll;
	/* コンテンツがはみ出たらスクロール */
	background-color: rgba(254, 254, 254, 0.85);
	transition: transform 0.5s;
	/* 表示時のアニメーション */
	transform: translateY(-200%);
	/* 初期状態では画面外に配置 */
}

.modal:target .modal-wrapper {
	transform: translateY(0%);
	/* 表示時に画面内に移動 */
}

.modal-body {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.modal-body .logo {
	width: 200px;
}

.navItem {
	margin: 0 auto;
	padding-top: 2rem;
}

.btn {
	display: block;
	margin: 1.5rem auto;
	padding: .5rem 1rem .4rem;
	font-size: 1.5rem;
	font-family: 'Vollkorn', serif;
	font-style: normal;
	text-align: center;
	background: rgba(255, 255, 255, 0.5);
}

.btn:hover,
.btn:active {
	background: rgba(255, 255, 255, 1.0);
}

.modal-footer {
	padding-top: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.modal-footer .icon {
	width: 3rem;
}

/* ==========================================================================
//  5. ヒーローセクション (Hero Section)
//  - トップページのメインビジュアルエリア（動画や画像）。
// ========================================================================== */
.hero {
	width: 100%;
	height: 46svh;
	margin-top: 72px;
	overflow: hidden;
	position: relative;
	/* 子要素の基準点にする */
	background-color: #000;
	/* 読み込み中の隙間対策 */
}

@media (min-width: 1024px) {
	.hero {
		height: calc(100svh - 72px);
	}
}

.hero__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ロゴコンテナ*/
.hero__content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10;
	pointer-events: none;
}

.hero__logo {
	width: clamp(300px, 50%, 900px);
	/* 画面幅に応じてロゴサイズを可変に */
	height: auto;
	z-index: 10;
	pointer-events: auto;
}

/* ==========================================================================
//  6. スクロールダウンインジケーター (Scroll Down Indicator)
//  - ページを下にスクロールすることを促すアニメーション。
// ========================================================================== */
.scrolldown {
	display: none;
	position: absolute;
	right: 50%;
	/* 中央に配置 */
	bottom: 20px;
	height: 50px;
	z-index: 80;
}

@media (min-width: 1024px) {
	.scrolldown {
		display: block;
	}
}

.scrolldown span {
	position: absolute;
	left: -30px;
	top: -15px;
	color: #eee;
	font-size: 1rem;
	letter-spacing: 0.05em;
}

.scrolldown::after {
	content: "";
	position: absolute;
	top: 0;
	width: 1px;
	height: 30px;
	background: #eee;
	animation: pathmove 1.4s ease-in-out infinite;
	/* 線の動きのアニメーション */
	opacity: 0;
}

@keyframes pathmove {
	0% {
		height: 0;
		top: 0;
		opacity: 0;
	}

	30% {
		height: 30px;
		opacity: 1;
	}

	100% {
		height: 0;
		top: 50px;
		opacity: 0;
	}
}

/* ==========================================================================
//  7. グリッドシステム (Grid System)
//  - コンテンツのレイアウトを構築するためのグリッド設定。
// ========================================================================== */
.container {
	max-width: 1140px;
	/* コンテンツの最大幅 */
	margin: 0 auto;
	/* 中央揃え */
	padding-Top: 0;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	/* 左右の余白 */
}

.grid {
	display: grid;
	gap: 1.5rem;
	/* グリッドアイテム間の間隔 */
	grid-template-columns: repeat(2, 1fr);
	/* デフォルト（スマホ）: 2カラム */
}

.productInfo .grid {
	grid-template-columns: 1fr;
	/* デフォルト（スマホ）: 1カラム */
}

#intro .grid {
	margin: 3.5rem 0;
	display: grid;
	grid-template-columns: 1fr;
	/* デフォルト（スマホ）: 1カラム */
}

.introduction p {
	font-size: 14px;
}

/* ==========================================================================
//  8. カードコンポーネント (Card Component)
//  - 情報をまとめるためのカード形式のUI要素。
// ========================================================================== */
.card {
	background: white;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	/* 子要素を水平方向に中央揃え */
	align-items: stretch;
	/* 子要素を垂直方向に中央揃え */
	transition: 0.5s ease;
	/* アニメーションの速度 */
}

/* ----- 画像入れ替えエフェクト -----*/
/* =========================
   IMAGE AREA
========================= */
.card-image {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	width: 100%;
}

.card-image img {
	width: 100%;
	display: block;
}

/* =========================
   PC（ホバー）
========================= */
@media (any-hover: hover) {
	.card-image {
		position: relative;
		aspect-ratio: 1 / 1;
		overflow: hidden;
		cursor: pointer;
	}

	/* sliderは普通に残す */
	.slider {
		position: relative;
		width: 100%;
		height: 100%;
	}

	/* pictureごと重ねる */
	.slider picture {
		position: absolute;
		inset: 0;
		transition: opacity .4s ease, transform .4s ease;
	}

	.slider picture img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: opacity .4s ease;
	}

	/* 2枚目（back）を非表示 */
	.slider picture:nth-child(2) {
		opacity: 0;
		transform: translateX(4%);
	}

	/* hoverで切替 */
	.card-image:hover .slider picture:nth-child(2) {
		opacity: 1;
		transform: translateX(0);
	}

	.card-image:hover .slider picture:nth-child(1) {
		opacity: 0;
		transform: translateX(-4%);
	}

	/* dotsは消す */
	.dots {
		display: none !important;
	}
}

/* =========================
   モバイル（スワイプ）
========================= */
@media (hover: none) {
	.slider {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
	}

	.slide {
		flex: 0 0 100%;
		scroll-snap-align: start;
	}

	.dots {
		position: absolute;
		bottom: 10px;
		left: 50%;
		transform: translateX(-50%);
		display: flex;
		gap: 6px;
		z-index: 5;
	}

	.dot {
		width: 6px;
		height: 6px;
		border-radius: 50%;
		background: rgba(0, 0, 0, 0.3);
	}

	.dot.active {
		background: #000;
	}

	.card-image {
		margin-bottom: .5rem;
	}

	/* モバイルではabsolute解除 */
	.card-image .front,
	.card-image .back {
		position: relative;
		height: auto;
	}
}

.card-content {
	margin-bottom: 2rem;
	padding: .5rem 0 1rem 0;
	background: rgb(243, 243, 243);
	border-radius: 8px;
	transition: all 0.2s ease-in-out 0s;
}

.card-title {
	margin: .5rem 0;
	font-family: 'Vollkorn', sans-serif;
	font-weight: 400;
	text-align: center;
}

.card-swatch {
	text-align: center;
}

.card-link {
	display: block;
	color: inherit;
	text-decoration: none;
	transition: transform .2s cubic-bezier(.2, .8, .2, 1), filter .2s ease;
}

.card-content:hover {
	background: rgba(202, 202, 202, 1);
	cursor: pointer;
}

/* 押した瞬間 */
.card-link:active {
	transform: scale(0.97);
	filter: brightness(0.95);
}

.card-link:active .card-image img {
	transform: scale(0.98);
}

.card-link:active .card-image::after {
	background: rgba(0, 0, 0, 0.08);
}

.card a {
	display: inline-block;
	width: 100%;
}

/* ==========================================================================
//  9. プロダクトセクション (Product Section)
//  - 製品やサービスを紹介するセクション。
// ========================================================================== */
#product {
	padding: 2rem 0;
}

/* カラースウォッチ */
.color-swatch {
	width: 16px;
	height: 16px;
	border-radius: 2px;
	border: 1px solid black;
	display: inline-block;
	/* 横並び */
	margin: 1px;
	vertical-align: middle;
	/* 上下中央揃え */
}

/* 単色 */
.single-color {
	background-color: var(--swatch-color);
}

/* 2色（斜め分割） */
.two-tone.diagonal {
	background-image: linear-gradient(to top right, var(--color-left) 50%, var(--color-right) 50%);
}

/* ==========================================================================
//  10. 商品詳細 (Product Details Section)
//  - 製品の詳細を紹介するセクション。
// ========================================================================== */
.productDetail {
	margin: 2rem 0;
}

/* BREADCRUMB*/
.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	font-family: 'Karla', serif;
	font-size: .875rem;
	padding: .75rem 0;
	margin-bottom: 2rem;
	list-style: none;
	background-color: transparent;
}

.breadcrumb-item+.breadcrumb-item::before {
	float: left;
	padding-right: .5rem;
	color: #6c757d;
	content: "/";
}

.breadcrumb-item+.breadcrumb-item {
	padding-left: .5rem;
}

.productTitle {

	& h6,
	& h1 {
		margin: 0 auto;
		padding-bottom: .5rem;
		text-align: center;
	}

	& h6 {
		font-family: 'Karla', serif;
		font-size: .875rem;
		font-weight: normal;
	}

	& h1 {
		font-family: 'Vollkorn', serif;
		font-weight: 400;
		line-height: 1.0;
	}

	padding-bottom: 2rem;
}

.productPhoto {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	padding-bottom: 1rem;
}

.itemName {
	margin: 0;
	font-family: 'Vollkorn', serif;
	font-size: 1.25rem;
	font-weight: 400;
}

.itemPrice {
	margin: 0 0 1rem;
	font-family: 'Karla', sans-serif;
	font-size: 14px;
	font-weight: normal;
}

.trBtn {
	width: 80%;
	margin: 1rem auto;
	padding: .5rem 1.7rem .35rem;
	font-family: 'Vollkorn', serif;
	font-style: normal;
	color: #efefef !important;
	background: rgba(49, 49, 49, 1.0);
	border-radius: 2px;
}

.trBtn:hover {
	color: #222 !important;
	background: rgba(156, 156, 156, 1);
}

.itemNote {
	margin: 0 0 1rem 0;
	font-size: .875rem;
	text-align: justify;
}

/* サイズ表 */
.sizingTable {
	width: 100%;
	padding: .25rem;
	font-family: 'Karla', sans-serif;
	font-size: .875rem;
	caption-side: bottom;
	border-collapse: collapse;

	& thead {
		border-top: 2px solid #222;
		border-bottom: 2px solid #222;
	}

	& thead tr th:first-child {
		text-align: left;
	}

	& th {
		padding: .5rem 0;
		font-weight: normal;
	}

	& tbody th {
		text-align: left;
	}

	& td {
		text-align: center;
	}

	& caption {
		padding: 0;
		text-align: right;
		border-top: 2px solid #222;
	}
}

/* ==========================================================================
//  11. フッター (Footer)
//  - サイトの最下部に表示される情報。
// ========================================================================== */
footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2rem 0;
	font-size: .8rem;
	text-align: center;
	line-height: 1.7;
	color: rgba(254, 254, 254, 1.0);
	background-image: url(../img/Footer_BG-414@2x.jpg);
	background-size: cover;
	background-position: center bottom;
	background-repeat: no-repeat;
}

footer .icon {
	width: 48px;
	padding-right: 12px;
}

footer a:link {
	color: #fff;
}

.shoes {
	padding: .5rem 0;
	background: #222;
}

.shoes p {
	margin: 0 auto;
	color: #fff;
	font-family: 'Vollkorn', serif;
	font-weight: 400;
	font-size: 1rem;
	text-align: center;
}

/* ==========================================================================
//  11. レスポンシブ対応 (Responsive Design)
//  - 異なるデバイスサイズに応じたスタイル調整。
// ========================================================================== */
/* タブレット向け (768px以上) */
@media (min-width: 768px) {
	.grid {
		grid-template-columns: repeat(3, 1fr);
		/* パッド: 3カラム */
	}

	#childs .grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* パッド: 2カラム */
	#intro .grid {
		margin: 3.5rem 0;
		display: grid;
		gap: 3.5rem;
		/* グリッドアイテム間の間隔 */
		grid-template-columns: repeat(2, 1fr);
		/* PC用: 2カラム */
		align-items: center;
	}

	footer {
		background-image: url(../img/Footer_BG-768@2x.jpg);
	}
}

/* PC向け (1024px以上) */
@media (min-width: 1024px) {
	.grid {
		grid-template-columns: repeat(3, 1fr);
		/* トップページ PC: 3カラム */
	}

	#productGallery .grid {
		grid-template-columns: repeat(2, 1fr);
		/* プロダクトページ PC: 3カラム */
	}

	.productInfo .grid {
		grid-template-columns: 1fr 2fr;
		/* プロダクトページサイズ詳細 PC: 1：2カラム */
	}

	footer {
		background-image: url(../img/Footer_BG-1920@2x.jpg);
	}
}

/* 小さなデバイス向け (768px以下) */
@media (max-width: 768px) {
	#hero h2 {
		font-size: 36px;
	}

	#hero p {
		font-size: 16px;
	}
}

/* さらに小さなデバイス向け (480px以下) */
@media (max-width: 480px) {
	#hero h2 {
		font-size: 28px;
	}

	#hero p {
		font-size: 14px;
	}
}