/* ===============================
	 Hicarix Website Unified Stylesheet (Light Theme)
	 =============================== */
@font-face {
	font-family: 'M PLUS Rounded 1c';
	src: url('/fonts/mplus_rounded_1c_regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

	 
:root {
	--accent-color: #111;
	--accent-hover: #555;
	--text-main: #111;
	--text-sub: #555;
	--text-muted: #777;
	--bg-dark: #f3f3f3;	/* page base */
	--bg-light: #ffffff; /* cards/inputs */
	--gray-light: #f7f8fa;
	--gray-lighter: #f9f9f9;
	--header-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }

/* Links */
a{ color: var(--accent-color); text-decoration: underline; }
a:hover{ color: var(--accent-hover); text-decoration: none; }

/* Inputs */
input[type="text"],
input[type="email"],
textarea,
select {
  font-size: 1rem;
  padding: .6rem;
  border: 2px solid #ccc;
  background-color: #fff;
  color: #111;
  border-radius: 6px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 2.4rem;
	background-image: url("data:image/svg+xml;charset=UTF-8,<svg width='12' height='8' xmlns='http://www.w3.org/2000/svg'><path d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px 8px;
}
input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
  color: rgba(0, 0, 0, 0.3);
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
	border-color: var(--accent-color);
	outline:none;
	background-color:#fff;
}

button{
	background-color: var(--accent-color);
	color: #fff;
	font-weight: bold;
	border: none;
	padding: .6rem 1.2rem;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color .3s;
	font-size: .9rem;
}
button:hover{
	background-color: var(--accent-hover);
}
/* Tables */
table{
	width:100%;
	border-collapse:collapse;
	margin-top:1rem;
	font-size:.95rem;
	color:#222;
	background-color:#fff;
	border-radius:8px;
	overflow:hidden;
	border:1px solid rgba(0,0,0,.06);
	box-shadow:0 6px 16px rgba(0,0,0,.04);
}
th,td{ padding:.8rem 1rem; text-align:center; border-bottom:1px solid rgba(0,0,0,.06); }
th{
	background:#f6f7f9;
	font-weight:600;
}
tr:last-child td{ border-bottom:none; }
tr:hover{ background:#f1f5f9; }

/* 共通グリッドレイアウト */
.card-grid-1col, .card-grid-2col, .card-grid-3col, .card-grid-4col{
  display:grid; gap:2rem; justify-content:center;
}
.card-grid-1col{ grid-template-columns:1fr; margin:0 auto; }
.card-grid-2col{ grid-template-columns:repeat(auto-fit, minmax(280px,1fr)); margin:0 auto; }
.card-grid-3col{ grid-template-columns:repeat(auto-fit, minmax(240px,1fr)); margin:0 auto; }
.card-grid-4col{ grid-template-columns:repeat(4, 1fr); margin:0 auto; }

/* 768px以下：2〜4col系は2列に減らす（=スマホで“ちょい減らす”） */
@media (max-width: 768px) {
  .card-grid-2col {
    grid-template-columns: 1fr;
  }
  .card-grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid-4col {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 480px以下：さすがに1列に */
@media (max-width: 480px){
  .card-grid-2col {
    grid-template-columns: 1fr;
  }
  .card-grid-3col,
  .card-grid-4col {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === Base === */
body{
	font-family: 'M PLUS Rounded 1c', 'Outfit', sans-serif;
	font-weight: 500;
	margin:0;
	background-color: var(--bg-dark);
	color: var(--text-main);
	line-height:1.6;
}
[id]{ scroll-margin-top: var(--header-h); }

/* === Header === */
header{
	position:fixed; inset:0 0 auto 0; z-index:1000;
	display:flex; align-items:center; height:var(--header-h);
	padding-inline:max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
	background:rgba(255,255,255,.75);
	backdrop-filter:saturate(180%) blur(12px);
	-webkit-backdrop-filter:saturate(180%) blur(12px);
	border-bottom:1px solid rgba(0,0,0,.08);
	box-shadow:0 6px 18px rgba(0,0,0,.08);
}

/* 左：ロゴ群（常時表示） */
.site-title{ margin:0; flex:0 1 auto; min-width:0; }
.site-title a{ display: flex; align-items: center; gap: .5rem; text-decoration: none; line-height: 0; /* ←ここが効きます */ }

.logo-mark, .logo-type{display: block; height: auto; max-height: calc(var(--header-h) - 12px); }

 .logo-mark{ height:30px; }
 .logo-type{ height:30px; max-width:55vw;
 	transform: translateY(4px); /* +で下へ、-で上へ */ }
/* 右：ナビ（カート常時表示・メニューは可変） */
.site-nav{
	margin-left:auto; display:flex; align-items:center; gap:.8rem;
	position:relative; min-width:0; z-index:1001;
}
.menu-toggle{
	display:none; background:none; border:0; padding:0;
	width:auto; height:var(--header-h); line-height:0; cursor:pointer;
}
.menu-toggle img{ display:block; height:28px; width:auto; }

/* カートは<a>になったのでボタンと同等の見た目に */
#menu-cart-btn{
	display:flex; align-items:center; justify-content:center;
	height:var(--header-h); padding:0 .25rem; line-height:0;
}
#menu-cart-btn img{ display:block; height:28px; width:auto; }
#menu-cart-btn:focus-visible,
.menu-toggle:focus-visible{ outline:2px solid var(--accent-color); outline-offset:2px; }


/* メニューの通常表示（PC） */
.nav-list{
	list-style:none; display:flex; gap:1rem; margin:0; padding:0;
	width:max-content;
}
.nav-list a{ color:#111; text-decoration:none; }
.nav-list a:hover{ color: var(--accent-color); }

/* ドロップダウン（PC） */
.has-submenu{ position:relative; }
.has-submenu > a::after{ content:" ▼"; font-size:.8rem; }
.submenu{
	display:none; position:absolute; top:100%; right:0;
	background:#fff; padding:.5rem; list-style:none;
	border:1px solid rgba(0,0,0,.06);
	box-shadow:0 12px 30px rgba(0,0,0,.08);
}
.submenu li a{ display:block; padding:.5rem 1.2rem; white-space:nowrap; color:#111; }
.has-submenu:hover .submenu{ display:block; }

/* ハンバーガーはデフォ非表示（幅狭で出す） */
.menu-toggle{ display:none; }

/* === 幅が狭いとき：メニューのみ畳む（ロゴ＆カートは常時） === */
@media (max-width: 1024px){
	.menu-toggle{ display:block; }
	.nav-list{
		display:none; /* ← JSで .show を付けたら表示 */
		position:absolute; top:100%; right:0; left:auto;
		flex-direction:column; gap:.25rem;
		background:#fff; padding:1rem; margin:0;
		border:1px solid rgba(0,0,0,.06);
		box-shadow:0 12px 30px rgba(0,0,0,.08);
		min-width: 200px;
	}
	.nav-list.show{ display:flex; }

	/* タップ端末向け：ホバー無効、クリックで開閉 */
	.has-submenu:hover .submenu{ display:none; }
	.has-submenu.open .submenu{ display:block; }
	.submenu{ position:static; box-shadow:none; border:none; padding:.25rem 0; }
	.submenu li a{ padding-left:1.25rem; }
}

main {

	overflow:hidden;
}
main::before {
  content: "";
  display: block;
  height: var(--header-h);
  width: 100%;
  background-color:#fff;
}

/* === Section Background Colors === */
.section-dark{ background-color: var(--bg-dark); }
.section-light{ background-color: var(--bg-light); }
.hero{
	background: linear-gradient(135deg,#f8fbff,#ffffff);
}

/* === Common Section Styles === */
.section{ padding:4rem 1rem; color:#111; text-align:center; }
.section-inner{ max-width:800px; margin:0 auto; }
.section-title{ font-size:2rem; margin-bottom:1rem; }
.section-subtitle{
	display:block; font-size:1rem; color: var(--accent-color);
	margin-top:.3rem; letter-spacing:1px; font-weight:normal;
	font-family:'Outfit', sans-serif;
}

/* === 共通カード === */
.card{
	border-radius:12px; padding:1.2rem 1.4rem;
	box-shadow:0 8px 24px rgba(0,0,0,.06);
	border:1px solid rgba(0,0,0,.06);
	background-color:#fff; color:#111;
	transition: transform .3s, box-shadow .3s;
}
.card h4{ font-size:1.2rem; margin:.5rem 0; }
.section-light .card{ background: var(--bg-dark); color:#111; }
.section-dark .card{ background: var(--bg-light); color:#111; border:1px solid rgba(0,0,0,.06); }

/* === Hero === */
.hero{
	text-align:center; padding:6rem 2rem; position:relative; color:#111;
	background: url('/images/hero-bg.jpg'), linear-gradient(135deg, rgba(14, 14, 14, 0.6), rgba(26, 26, 26, 0.6));
	background-size:cover; background-position:center;
}
.hero::after{ content:""; position:absolute; inset:0; background:none; }
.hero-content{ position:relative; z-index:1; }
.hero h2{
	font-size:2.4rem;
	margin-bottom:1rem;
		text-shadow:
			1px 1px 2px rgba(255, 255, 255, 0.9),
		 -1px 1px 2px rgba(255, 255, 255, 0.9),
			1px -1px 2px rgba(255, 255, 255, 0.9),
		 -1px -1px 2px rgba(255, 255, 255, 0.9);
	}
.hero p{
		text-shadow:
		 -1px -1px 0 #fff,
			1px -1px 0 #fff,
		 -1px	1px 0 #fff,
			1px	1px 0 #fff;
	}
.cta-button{
	display: inline-flex;
	padding:.8rem 1.6rem;
	background-color: var(--accent-color); color:#fff;
	border-radius:6px; text-decoration:none; font-weight:bold; margin-top:1.5rem;
	transition: background-color .3s;
	align-items: center;
}
.cta-button:hover{ background-color: var(--accent-hover); color:#fff}

.cta-button::before {
	content: "";
width: 1.4em;
	height: 1.4em;
	background-color: currentColor;
	-webkit-mask: url("/images/icon_shopping.svg") no-repeat center / contain;
					mask: url("/images/icon_shopping.svg") no-repeat center / contain;
	display: inline-block;
	margin-right: 5px;
}

/* === Store Badges === */
.store-badges{ text-align:center; padding:2rem 1rem; }
.store-badges p{ font-size:1.2rem; margin-bottom:1rem; color: var(--text-sub); }
.store-badges .badges{ display:flex; justify-content:center; gap:1rem; flex-wrap:wrap; }
.store-badges img{ height:50px; transition: transform .2s ease; }
.store-badges img:hover{ transform:scale(1.05); }

.video-wrapper{
	position:relative; padding-bottom:56.25%; height:0; overflow:hidden;
	border-radius:12px; box-shadow:0 0 16px rgba(0,200,220,.08); margin-top:2rem;
}
.video-wrapper iframe{
	position:absolute; top:0; left:0; width:100%; height:100%;
	border:none; border-radius:12px;
}

/* === Features === */
.feature-card{
	border-radius:12px; padding:2rem; transition: transform .3s, box-shadow .3s;
	background:#fff; color:#111; border:1px solid rgba(0,0,0,.06);
}
.feature-card:hover{ transform:translateY(-5px); box-shadow:0 8px 24px rgba(0,0,0,.08); }
.feature-card img{ width:50%; height:auto; margin-bottom:1rem; }
.feature-card h4{ font-size:1.2rem; margin:.5rem 0; }
.feature-card p{ font-size:.95rem; color: var(--text-sub); }

/* === App Intro === */
.app-grid{ display:flex; flex-wrap:wrap; gap:2rem; align-items:center; justify-content:center; }
.app-image img{ width:280px; border-radius:16px; }
.app-text{ max-width:500px; }
.app-text h3{ font-size:2rem; margin-bottom:1rem; }
.app-text p{ font-size:1rem; margin-bottom:1.5rem; color: var(--text-sub); }
.badges{ display:flex; gap:2rem; flex-wrap:wrap; justify-content:center; align-items:flex-start; }
.badge-block{ display:flex; flex-direction:column; align-items:center; gap:.5rem; width:45%; }
.qr-code{
	height:140px; border:1px solid #e5e7eb; border-radius:8px; margin-top:.5rem;
}
.badges a img{ height:50px; transition: transform .2s ease; }
.badges a img:hover{ transform:scale(1.05); }
.qr-note{ font-size:.75rem; color: var(--text-muted); margin-top:.3rem; text-align:center; }

@media (max-width:768px){
	.app-image img{ height:250px; width:auto;}
}
/* ========================================= */
.color-scroll-wrapper{ position:relative; display:flex; align-items:center; }
.scroll-btn{
	background-color:rgba(255,255,255,.9); color: var(--accent-color);
	border:1px solid rgba(0,0,0,.06);
	border-radius:50%; width:36px; height:36px; font-size:1.2rem;
	cursor:pointer; z-index:10; display:inline-flex; align-items:center; justify-content:center;
	transition: background-color .2s ease;
}
.scroll-btn:hover{ background-color:#fff; }
.scroll-btn.left{ margin-right:.5rem; }
.scroll-btn.right{ margin-left:.5rem; }
.scroll-instruction{ font-size:.9rem; color: var(--text-muted); margin-bottom:1rem; text-align:center; }

.color-variant-scroll{
	display:flex; gap:1.5rem; overflow-x:auto; padding:1rem 0;
	scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; position:relative;
	mask-image:linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
	-webkit-mask-image:linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
	scrollbar-width:none; -ms-overflow-style:none;
}
.color-variant-scroll::-webkit-scrollbar{ display:none; }
.color-card{ flex:0 0 auto; scroll-snap-align:center; text-align:center; width:240px; color:#111; }
.badge-wrapper{ position:relative; width:220px; height:220px; margin:0 auto; }
.badge-base,.badge-glow{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; pointer-events:none; }
.color-name{ margin-top:.5rem; font-weight:bold; }
.color-price{ font-size:.9rem; color: var(--text-muted); }
.color-barcode{ font-size:.8rem; color:#999; margin-top:.2rem; }

/* 共通タグスタイル */
.color-tag{
	position:absolute;
	top:10px;
	left:10px;
	padding:0.25rem 0.6rem;
	font-size:0.75rem;
	font-weight:bold;
	border-radius:999px;
	color:#fff;
	background:rgba(0,0,0,.7);
	backdrop-filter:blur(4px);
}
/* 種類ごとの色分け */
.color-tag.tag-new     { background:#ff3366; }
.color-tag.tag-popular { background:#ff9800; }
.color-tag.tag-limited { background:#673ab7; }
.color-tag.tag-sale    { background:#2196f3; }

/* === Purchase timeline === */
/* Color options */
.color-options{ margin:5px auto; }
.color-dot-wrapper{ display:inline-block; cursor:pointer; margin:0 1px; }
.color-dot-wrapper input[type="radio"]{ display:none; }
.color-dot{
	display:inline-block; width:32px; height:32px; border-radius:10%;
	border:2px solid #ddd; position:relative; transition:border .2s ease;
}
.color-dot.red{ background-color:#FF4444; }
.color-dot.amber{ background-color:#FF8833; }
.color-dot.yellow{ background-color:#FFBF47; }
.color-dot.green{ background-color:#88FF44; }
.color-dot.aqua{ background-color:#8AFFFF; }
.color-dot.blue{ background-color:#47A3FF; }
.color-dot.purple{ background-color:#D68AFF; }
.color-dot.white{ background-color:#FFFDF0; }

.color-dot-wrapper input[type="radio"]:checked + .color-dot{ border:3px solid var(--accent-color); }
.color-dot-wrapper input[type="radio"]:checked + .color-dot::after{
	content:'✔'; position:absolute; color:#111; font-size:1rem; font-weight:bold;
	top:50%; left:50%; transform:translate(-50%,-50%); pointer-events:none;
}
.color-dot-wrapper input[type="radio"]:disabled + .color-dot{
	opacity:.4; cursor:not-allowed; filter:grayscale(100%) contrast(60%); position:relative;
}
.color-dot-wrapper input[type="radio"]:disabled + .color-dot::before{
	content:""; position:absolute; top:50%; left:0; width:100%; height:2px; background:rgba(0,0,0,.6); transform:rotate(-45deg);
}
.add-to-cart-btn{
	display:inline-block; background-color: var(--accent-color); color:#fff; font-weight:bold;
	text-decoration:none; padding:.6rem 1.2rem; border-radius:6px; transition: background-color .3s;
	border:none; cursor:pointer;
}
.add-to-cart-btn:hover{ background-color: var(--accent-hover); }

.shipping-method-list {
		padding: 0;
		margin: 0 0 0.5em 0;
		list-style: none;
}
.shipping-method-list li {
		margin-bottom: 2px;
}
.note {
		font-size: 0.9em;
		color: #666;
}

.event-timeline{ list-style:none; padding-left:0; border-left:2px solid var(--accent-color); margin-left:1rem; }
.event-timeline li{ position:relative; margin-bottom:1.5rem; padding-left:1rem; }
.event-timeline li::before{
	content:''; width:10px; height:10px; background-color: var(--accent-color);
	border-radius:50%; position:absolute; left:-6px; top:.4rem;
}
.event-info p{ margin:0; font-size:.95rem; color: var(--text-sub); text-align:left; }

/* Toggle */
.toggle-past-btn{
	background:none; border:none; color: var(--accent-color);
	cursor:pointer; font-size:.95rem; margin-top:0; transition: color .3s, transform .3s;
}
.toggle-past-btn:hover{ color:#111; transform:scale(1.05); background:none;}
.past-events{ opacity:0; max-height:0; transition:all .6s ease; margin-top:0; margin-bottom:0; }
.past-events.open{ opacity:1; max-height:1000px; margin-top:1rem; }

/* === Gallery === */
.gallery-description{ color: var(--text-sub); margin-bottom:2rem; font-size:1rem; }
.gallery-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(140px,1fr)); gap:12px; }
.gallery-grid img{
	width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:8px; transition: transform .2s, box-shadow .2s;
}
.gallery-grid img:hover{ transform:scale(1.03); box-shadow:0 0 16px rgba(0,200,220,.18); }


/* === Community === */
/* セクション間の重なり保護（前後のz-index干渉を遮断） */
#community { position: relative; isolation: isolate; z-index: 1; }

/* ここがポイント：.media ではなく figure/img/figcaption を直接スタイリング */
.pattern-card figure {
  margin: 0;
}

.pattern-card figure > img {
  width: 100%;
  height: auto;              /* ★ height:100% をやめる（重なり防止） */
  display: block;
  object-fit: contain;
  border-radius: 10px;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 10px, rgba(0,0,0,.03) 10px 20px),
              var(--card-bg, #ddd);
  transition: transform .15s ease, box-shadow .15s ease;
}

/* .caption ではなく figcaption に適用 */
.pattern-card figcaption {
  padding: .6rem .2rem 0;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
}

.pattern-card .title { font-weight: 600; display: block;}
.pattern-card .user  { font-size: .85em; opacity: .7; display: block;}
.pattern-card .meta  { font-size: .85em; opacity: .7; display: block;}

.pattern-card .meta .icon-heart,
.pattern-card .meta .icon-transfer {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  display: inline-block;
  object-fit: contain;
  margin-right: 0.25em;
}

.cta-row { margin-top: 1.25rem; text-align: center; }
.btn { display: inline-block; padding: .75rem 1.25rem; border-radius: 999px; font-weight: 700; text-decoration: none; }
.btn-accent { background: var(--accent-color, #06f); color: white; }
.btn-accent:hover { filter: brightness(1.05); }


/* === Specs === */
.spec-label{ display:block; font-size:.9rem; color: var(--accent-color); margin-bottom:.3rem; font-weight:bold; }
.spec-value{ font-size:1.05rem; color: var(--text-sub); }

/* === FAQ === */
.faq-item{ border-bottom:1px solid #e5e7eb; margin-bottom:1rem; }
.faq-question{
	background:none; border:none; color: var(--accent-color); font-size:1.1rem; text-align:left;
	width:100%; padding:1rem; cursor:pointer; transition: background .2s;
	font-weight:normal;
}
.faq-question:hover{ background-color:#f5f7fb; }
.faq-answer{
	display:none; padding:0 1rem 1rem 1rem; color: var(--text-sub); font-size:.95rem; text-align:left;
}

/* === Develop Story === */
.story-lead{ font-size:1.2rem; color: var(--text-sub); margin:2rem 0 1rem; line-height:1.8; }

.tech-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	list-style: none;	 /* ドットを消す */
	padding: 0;
	margin: 20px 0;
}

.tech-icons li {
	display: flex;
	align-items: center;
	justify-content: center;
}

.tech-icons img {
	height: 48px;
	width: auto;
	opacity: 0.85;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.tech-icons img:hover {
	opacity: 1;
	transform: scale(1.1);
}

.story-button{
	display:inline-block; padding:.75rem 1.5rem; background-color: var(--accent-color);
	color:#fff; font-weight:bold; border-radius:8px; text-decoration:none; transition: background-color .3s ease;
}
.story-button:hover{ background-color: var(--accent-hover); color:#fff}
.story-note{ font-size:.9rem; color:#bbb; margin-top:1rem; line-height:1.6; }

/* =========================== Maker / About ========================= */
.section-maker{ text-align:center; padding:4rem 1rem; }
.section-maker .section-lead{ font-size:1.2rem; margin:1rem auto 2rem; max-width:600px; line-height:1.8; }
.maker-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:2rem; max-width:900px; margin:0 auto; }
.maker-item{
	background:#fff; color:#444; border-radius:1rem; padding:1.5rem;
	box-shadow:0 8px 24px rgba(0,0,0,.06); border:1px solid rgba(0,0,0,.06);
	transition: transform .3s ease, box-shadow .3s ease;
}
.maker-item:hover{ transform:translateY(-4px); box-shadow:0 12px 32px rgba(0,0,0,.08); }
.maker-item h4{ font-weight:bold; margin-bottom:.5rem; }

.about-developer{
	padding:2rem; border-radius:16px;
	max-width:900px; margin:3rem auto; line-height:1.7;
	border:1px solid rgba(0,0,0,.06); box-shadow:0 8px 24px rgba(0,0,0,.06);
}
.about-developer h2{ font-size:2rem; margin-bottom:1.2rem; color:#111; }
.dev-process{ display:flex; flex-wrap:wrap; gap:1rem; margin:2rem 0 .5rem; }
.process-item{
	flex:1 1 250px; background-color:#fff; padding:1rem; border-radius:12px;
	box-shadow:0 4px 16px rgba(0,0,0,.05); border:1px solid rgba(0,0,0,.06);
}
.process-item h4{ font-size:1.2rem; margin-bottom:.5rem; color:#1890ff; }

/* =========================== Timeline ========================= */

.dev-scroll-wrapper {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
}

.dev-scroll-row {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 0.2rem 0 1rem 0;
  scroll-snap-type: x mandatory;
}

.dev-scroll-row::-webkit-scrollbar {
  display: none;
}

.dev-card {
  flex: 0 0 260px; /* カード幅固定 */
  background: var(--card-bg);
  border-radius: var(--card-border-radius);
  box-shadow: var(--card-shadow);
  padding: 0.8rem;
  scroll-snap-align: start;
}

.dev-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.6rem;
}

.year-label {
  display: inline-block;
  margin-bottom: 0.3rem;
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 600;
}

.dev-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.dev-card p {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.4;
}

/* =========================== Peek ========================= */

/* パララックス用セクション本体 */
.parallax-section {
  position: relative;
  z-index: -1;           /* 背景擬似要素より上にくるように */
  min-height: 120vh;    /* どれくらい「覗き込む」かの長さ。好みで100〜180vhくらいに */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

/* Qiita記事のやり方：親要素の ::before を固定配置にする */
.parallax-section::before {
  content: "";
  display: block;
  position: fixed;      /* ← 背景をビューポートに対して固定 */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;

  background-image: url("/images/covered_image2.jpg"); /* ← ここを差し替え */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* セクション内のコンテンツ（テキストを載せたい場合） */
.parallax-inner {
  padding: 3rem 1.5rem;
  max-width: 800px;
  box-sizing: border-box;
}

/* =========================== Footer ========================= */
.site-footer{
	background-color:var(--gray-light); padding:2rem; font-size:.9rem;
	border-top:1px solid rgba(0,0,0,.06);
}
.site-footer::before{
	content:""; display:block; height:32px;
	background: linear-gradient(to bottom, rgba(255,255,255,0), var(--gray-light));
}
.footer-grid{ display:flex; flex-direction:column; gap:2rem; max-width:1000px; margin:0 auto; }
.footer-inquiry{ order:1; padding:0; }
.footer-info{ order:2; }

.footer-payments{
  display:flex; flex-wrap:wrap; gap:.75rem .5rem; align-items:center;
  list-style:none; padding:0; margin:0 0 .5rem; justify-content: center;
}
.footer-payments img{
  display:block; width:auto; height:36px;
}
.footer-payments img:hover{ filter:none; }

.footer-inquiry h4{ font-size:1.2rem; color: var(--accent-color); margin-bottom:1rem; }
.footer-form label{ display:block; font-size:.9rem; font-weight:normal; color:#666; margin:.6rem 0 .2rem 0; }
.footer-form input, .footer-form textarea, .footer-form select{
	width:100%; margin-bottom:.5rem; box-sizing:border-box;
}
.footer-form p{ font-size:.9rem; font-weight:normal; color:#666; margin:0 0 .3rem 0; }
.footer-form .image-captcha label{ cursor:pointer; display:flex; flex-direction:column; align-items:center; margin:0; }
.footer-form .image-captcha input[type="checkbox"]{ display:none; }
.footer-form .image-captcha .form-field{
	background-color:#fff; border:2px solid #ccc; border-radius:6px; padding:.4rem; margin-bottom:.5rem;
	box-sizing:border-box; display:flex; gap:.4rem; flex-wrap:wrap; justify-content:flex-start;
}
.footer-form .image-captcha .symbol{
	width:32px; height:32px; background-image:url('/antispam'); background-repeat:no-repeat; background-size:256px 32px;
	border:1px solid transparent; border-radius:4px; transition:border-color .2s;
}
.footer-form .image-captcha .symbol-0{ background-position:0 0; }
.footer-form .image-captcha .symbol-1{ background-position:-32px 0; }
.footer-form .image-captcha .symbol-2{ background-position:-64px 0; }
.footer-form .image-captcha .symbol-3{ background-position:-96px 0; }
.footer-form .image-captcha .symbol-4{ background-position:-128px 0; }
.footer-form .image-captcha .symbol-5{ background-position:-160px 0; }
.footer-form .image-captcha .symbol-6{ background-position:-192px 0; }
.footer-form .image-captcha .symbol-7{ background-position:-224px 0; }
.footer-form .image-captcha input[type="checkbox"]:checked + .symbol{ border-color: var(--accent-color); }
.footer-form button{
	margin-top:.5rem;
}

.footer-info{ text-align:center; }
.footer-links-row{
	margin-top:1rem; font-size:.9rem; color:#666; text-align:center; display:flex; justify-content:center; gap:1rem; flex-wrap:wrap;
}
.footer-links-row a{ color:#666; text-decoration:none; font-weight:500; }
.footer-links-row a:hover{ color: var(--accent-color); }
.footer-social-icons{ margin-top:16px; text-align:center; display:flex; justify-content:center; gap:16px; }
.social-icon{ width:32px; height:32px; display:flex; align-items:center; justify-content:center; transition: transform .2s ease; }
.social-icon:hover{ transform:scale(1.1); }
.icon-img{ width:100%; height:100%; object-fit:contain; display:block; }
.footer-patent{ font-size:.8rem; color:#888; margin-top:.3rem; letter-spacing:1px; }
.footer-country-form{
	margin-top:1rem; display:flex; flex-direction:column; align-items:flex-start; gap:.3rem; font-size:.9rem; color:#666;
}
.footer-country-form label{ font-weight:normal; color:#666; }
.footer-lang-form{
	margin-top:1rem; display:flex; flex-direction:column; align-items:flex-start; gap:.3rem; font-size:.9rem; color:#666;
}
.footer-lang-form label{ font-weight:normal; color:#666; }
@media (min-width:768px){
	.footer-grid{ flex-direction:row; }
	.footer-inquiry{ order:2; flex:1; max-width:53%; box-sizing:border-box; padding-left:2rem; }
	.footer-info{ order:1; flex:1; max-width:43%; box-sizing:border-box; }
	.footer-links{ justify-content:flex-start; }
	.footer-legal{ text-align:left; }
}

/*=========================================================*/
#floating-cart{
	position:fixed; bottom:16px; right:16px; z-index:999; width:48px; height:48px; font-size:1.4rem;
	border-radius:50%; border:none; background-color: var(--accent-color); color:#fff;
	box-shadow:0 6px 16px rgba(0,0,0,.12); cursor:pointer;
}
.cart-drawer{
	box-sizing:border-box; position:fixed; top:0; right:-100%; width:320px; height:100%;
	background:#fff; color:#111; box-shadow:-8px 0 28px rgba(0,0,0,.12); z-index:2000; padding:1.5rem;
	transition:right .3s ease; overflow-y:auto; border-left:1px solid rgba(0,0,0,.06);
}
.cart-drawer.open{ right:0; }
.cart-overlay{
	position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,.35);
	opacity:0; visibility:hidden; z-index:1900; transition:opacity .3s ease;
}
.cart-overlay.show{ opacity:1; visibility:visible; }
.close-btn{
	position:absolute; top:.5rem; right:.75rem; background:none; border:none; font-size:1.5rem; cursor:pointer;
	appearance:none; -webkit-appearance:none; color:#666; text-decoration:none;
}
.close-btn:hover{
	background:none;
}
/* Drawer contents */
.cart-items{ padding:.5rem; background-color:#fff; border-radius:12px; overflow-y:auto;}
.cart-item{ display:flex; align-items:center; border-bottom:1px solid #ddd; padding:.8rem 0; position:relative; }
.cart-item img{ width:55px; height:55px; border-radius:8px; margin-right:.5rem; }
.cart-item-info{ flex-grow:1; }
.cart-item-info h4{ margin:0; font-size:1rem; }
.badge-color{ font-size:.85rem; padding:.2rem .4rem; border-radius:6px; margin-left:.3rem; color:#fff; border: solid 1px #ccc;}
.badge-color.red{ background-color:#e74c3c; }
.badge-color.amber{ background-color:#e67e22; }
.badge-color.yellow{ background-color:#f1c40f; }
.badge-color.blue{ background-color:#3498db; }
.badge-color.green{ background-color:#27ae60; }
.badge-color.white{ background-color:#fff; color:#111; }
.cart-item-info p{ margin:.2rem 0; color:#555; }

.cart-update-form{ margin-top:.4rem; display:flex; align-items:center; }
.qty-btn{
	display:flex; align-items:center; justify-content:center; background-color:#f4f4f4; color:#333;
	border:1px solid #ccc; border-radius:4px; font-size:1rem; width:2rem; height:2rem;
	font-family:'Outfit', sans-serif; cursor:pointer; padding:0; transition: background-color .2s ease;
}
.qty-btn:hover{ background-color:#e0e0e0; }
.qty-btn:disabled{ background-color:#e0e0e0; color:#aaa; border-color:#ccc; cursor:not-allowed; opacity:.5; }
.qty{ margin:0 .5rem; min-width:1.5rem; text-align:center; }
.qty-btn img {
  width: 18px;
  height: 18px;
  pointer-events: none; /* クリックをボタンに通す */
  filter: grayscale(100%); /* 落ち着いた色味に */
  transition: filter 0.2s;
  margin: 0;
}
.cart-footer{ padding-top:1rem; text-align:right; }

/* Shipping / checkout */
.shipping-form{ background-color:#fff; font-family:'Segoe UI',sans-serif; }
.shipping-form h2{ margin-top:0; font-size:1.2rem; border-bottom:1px solid #ccc; padding-bottom:.5rem; margin-bottom:1rem; }
.shipping-form form{ display:flex; flex-direction:column; }
.shipping-form label{ font-size:.9rem; margin-bottom:.2rem; color:#333; }
.shipping-form input[type="text"], .shipping-form input[type="email"]{
	margin-bottom:1rem;
}
.shipping-form select{
	margin-bottom:1rem;
}
.shipping-button-group{ display:flex; flex-wrap:wrap; gap:10px; }
.shipping-button{
	padding:6px 12px; font-size:13px; background-color:#f5f6f8; color:#333; border:1px solid #e1e4ea;
	border-radius:4px; cursor:pointer; transition:all .2s ease; min-width:100px; text-align:center; font-weight:normal;
}
.shipping-button:hover{ background-color:#eceff4; }
.shipping-button.selected{ background-color:#111; color:#fff; border:1px solid #111; }

.checkout-btn{
	display:block;
	width:100%;
	margin-top:.5rem;
}

.back-btn{ display:inline-block; background-color:transparent; color: var(--accent-color); border:none; font-size:.9rem; cursor:pointer; margin-bottom:1rem; padding:0; text-align:left; }
.back-btn:hover{ text-decoration:underline; background:none;}
.stripe-element-box{ padding:12px; border:1px solid #e5e7eb; border-radius:6px; margin-bottom:12px; background:#fff; }
