/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
mobile first
pc     : @media (min-width: 1200px) {}
----------------------------------- */
@font-face { font-family: 'DotGothic16'; src: url('../fonts/DotGothic16-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Kosugi Maru'; src: url('../fonts/KosugiMaru-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Reddit Mono'; src: url('../fonts/RedditMono-VariableFont_wght.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
/* 「柴猫電脳本舗」6文字専用サブセット */
@font-face { font-family: 'WDXL Lubrifont JP N'; src: url('../fonts/WDXLLubrifontJPN-Sivaneco.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
/*
　root- .cssを動的に切り替え

/* Common
----------------------------------- */
:root {
  /* plan 2 */
  --color-primary: #000023;
  --color-primary-rgb: 0, 0, 35;

  --color-accent-blue: #00e5ff;
  --color-accent-pink: #ff4fd8;

  --color-gray: #f8f8f8;
  --color-black: #2e363e;

}
 
* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Kosugi Maru", sans-serif; -webkit-tap-highlight-color: transparent; }
*:focus { outline: none; }
a {
  text-decoration: none; 
  color: var(--font-black);
} 
/*
  index.php のみ シヴァネコピンクで世界観を出す
  商品一覧に入ったらbg2で一段薄くする。
*/
html,
body {
  width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}
body {
  color: var(--color-primary);
  overflow-y: scroll;
  scrollbar-gutter: stable;
  /* overflow-x: hidden; */
  background: var(--color-bg2);
  transition: background 0.2s ease-in-out;
  font-size: 16px;
  font-size: 87%;
}
body[data-page="index"] {
  background-image: linear-gradient(
    140deg,
    var(--color-bg) 47%,
    #d5dafd 100% 
  );
}

@media (min-width: 1200px) { body { font-size: 100%; } }

#main { 
  display: flex;
  flex-direction: column;
  max-width: 1100px;
  width: 90%;
  margin: auto;
  position: relative;
  gap: 30px;
}

*::-webkit-scrollbar { height: 7px; width: 2px; }
*::-webkit-scrollbar-thumb { background: var(--color-black);   border-radius: 15px; }
*::-webkit-scrollbar-track { background: var(--color-gray); }
/* .wrapper { margin: 52px 0; } */

/* header
----------------------------------- */
header { 
  z-index: 9997; 
  height: 64px;
  height: 8vh;
}
@media (min-width: 1200px) { header { height: 12vh; } }
header a:hover { color:#b4b4b4; }

nav {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background: transparent;
}

#logo { 
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  padding: 10px 0;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#logo div { 
  color: var(--color-bg);
  font-family: "WDXL Lubrifont JP N", sans-serif; 
  font-size: 60px; 
}

.parallax-bg {
	position: absolute;
	/* top: -4%; */
  top: -40px;
	left: calc(50% - 50vw);
  width: 100vw;
	height: 250px;
	z-index: -2;
	background: var(--color-primary);
	transform: skewY(-11deg);

	/* 登場アニメーション */
	clip-path: polygon(
		0 0,
		0 0,
		0 100%,
		0 100%
	);
	transition: clip-path .7s cubic-bezier(.76, 0, .24, 1);

	will-change: transform, clip-path;
}

@supports (animation-timeline: scroll(root block)) {
	.parallax-bg {
		animation-name: parallax-scroll;
		animation-duration: auto;
		animation-timing-function: linear;
		animation-fill-mode: both;
		animation-timeline: scroll(root block);
	}
}

@media (min-width: 1200px) {
  .parallax-bg { top: -115px; height: 400px; }
}

.parallax-bg.is-initialized {
	clip-path: polygon(
		0 0,
		100% 0,
		100% 100%,
		0 100%
	);
}

@keyframes parallax-scroll {
	from { transform: translateY(0) skewY(-11deg); }
  /* かなり速くしないとスマホで指を話したときにカクつく ていうか速い方がかっこいい奇跡 */
	to { transform: translateY(-550px) skewY(-11deg); }
}

/* .parallax-bg::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 100%;
	height: 4px;
	background: #fff7d6;

	box-shadow:
		0 0 4px #fff7d6,
		0 0 8px #ffd166,
		0 0 16px #ff9f1c,
		0 0 30px #ff5a1f,
		0 0 46px #ff3d00;

	animation: neon-flicker 4.5s infinite;
}

@keyframes neon-flicker {
	0%,
	88%,
	91%,
	94%,

	100% { opacity: 1;   filter: brightness(1.25); }
	89%  { opacity: .25; filter: brightness(.9);   }
	90%  { opacity: 0; }
	92%  { opacity: .75; filter: brightness(1);	   }
	93%  { opacity: 1;   filter: brightness(2);    }
} */
#img-behind {
  position: absolute;
  inset: 0;
  width: 650;
  height: 170px;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
#img-behind img { height: 100px; width: auto; animation: swing .5s ease-in-out infinite alternate; }
@keyframes swing {
  from { transform: translateX(-34px) rotate(-20deg); }
  to { transform: translateX(34px) rotate(20deg); }
}
#site-description {
  --terminal-bg: #080820;
  --terminal-text: var(--color-bg2);
  --terminal-cursor: #008c7b;

  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 1;
  height: 170px;
  width: 100%;
  max-width: 670px;
  margin-inline: auto;
  color: var(--terminal-text);
  background: var(--terminal-bg);

  border: 0.5px solid currentColor;
  outline: 0.5px solid currentColor;
  outline-offset: 4px;
  box-shadow: 0 0 0 4px var(--terminal-bg);

  box-sizing: border-box;
  transition: opacity 0.25s;
}

/* ヘッダ */
.site-description-header {
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;

  background: var(--terminal-bg);
  border-bottom: 0.5px solid currentColor;

  font-family: "DotGothic16", sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
}

#site-description-wrap { position: relative; isolation: isolate; }
#logo-behind {position: absolute;inset: 0;z-index: 0;pointer-events: none; }


/* 本文 */
.site-description-body {
  padding: 10px;
  background: var(--terminal-bg);
}

.site-description-body p {
  position: relative;
  width: 100%;
  margin: 0;
  padding-left: 13px;
  box-sizing: border-box;

  font-family: "DotGothic16", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.12em;
  text-align: left;
  white-space: pre-line;
}

.site-description-body p::before {
  content: ">";
  position: absolute;
  top: 0;
  left: 0;
}

.site-description-body p::after {
  content: "_";
  display: inline-block;
  margin-left: 2px;
  color: #008c7b; /* ネグリーン */
}

.description-complete::after {
  animation: cursor-blink 0.8s steps(1, end) infinite;
}
@keyframes cursor-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.site-description-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

#description-close {
  padding: 0;
  border: 0;
  color: currentColor;
  background: none;
  font: inherit;
  cursor: pointer;
}

.site-description-logo {
  font-family: "WDXL Lubrifont JP N", sans-serif;
} 

.notice-marquee {
	position: relative;
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
	overflow: hidden;
	padding: 12px 0;
	background: var(--color-primary);
	color: var(--color-bg);
	/* border-top: 1px solid currentColor;
	border-bottom: 1px solid currentColor; */
	white-space: nowrap;
  background-image:   linear-gradient(
    color-mix(in srgb, var(--color-primary) 85%, transparent),
    color-mix(in srgb, var(--color-primary) 85%, transparent)
  ),
  url("../images/noise.png");
  background-repeat: repeat;
  background-size: 100px;

}

.notice-marquee::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(
		circle,
		rgb(255 255 255 / 14%) 1px,
		transparent 1px
	);
  background-size: 4px 4px;
  opacity: .7;
	mix-blend-mode: screen;
	opacity: .5;
}

.notice-marquee-track {
	display: flex;
	width: max-content;
  position: relative;
  left: 100%;
  /* Vueでマーキー長さにあわせ動的に付与 */
	/* animation: notice-scroll 600s linear infinite; */
}

@media (min-width: 1200px) {
	.notice-marquee {
		left: auto;
		width: 100%;
		margin-left: 0;
	}
}

@keyframes notice-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-100%); }
}

.notice-marquee-text {
  font-family: "DotGothic16", sans-serif;
	flex-shrink: 0;
	padding-right: 60px;
	color: var(--color-bg2);
	font-weight: 500;
	letter-spacing: .12em;
  font-size: larger;
	text-shadow:
		0 0 3px var(--color-bg),
		0 0 7px #ffc04d,
		0 0 14px var(--color-bg2),
		0 0 24px #ff4d00;
	animation: marquee-flicker 5s infinite;
}

@keyframes marquee-flicker {
	0%,
	90%,
	93%,
	96%,

	100% { opacity: 1;   filter: brightness(1.05); }
	91% {  opacity: .72; filter: brightness(.35);  }
	92% {  opacity: 1;   filter: brightness(1.2);  }
	94% {  opacity: .82; }
	95% {  opacity: 1;   filter: brightness(1.0);  }
}

#nav-links {
  z-index: 1000;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 50vw;
  list-style: none;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 60px;
  background: var(--color-primary);
  transform: translateX(100%);
  transition: all 0.2s ease-in-out;
}

#nav-links li {
  margin-bottom: 20px;
  font-size: 1.4rem;
  width: 100%;
  text-align: left;
  padding: 0 20px;
  color: var(--color-gray);
}

#nav-links.nav-active {
  transform: translateX(0%) !important;
}

#burger {
  z-index: 1001;
  position: fixed;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  top: 10px;
  right: 10px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.2s linear;
}

#burger.highlight { background: rgba(var(--color-bg-rbg), 0.5); }

#burger div {
  width: 40px;
  height: 2px;
  background-color: var(--color-primary);
  margin: 5px;
  transition: var(--transition-nav);
}

.toggle .line1 { transform: translateY(6px) rotate(-30deg); background: var(--color-gray)!important; }
.toggle .line2 { transform: translateY(-6px) rotate(30deg); background: var(--color-gray)!important; }

#cart { 
  padding: 7px 14px;
  background: #1965A5;
  color: var(--color-gray);
  z-index: 1001;
  position: fixed;
  border-radius: 6px;
  bottom: 10px;
  right: 10px;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
#cart > :last-child { display: none; }

.nav-sns { display: flex; gap: 22px; align-items: center; }
.nav-sns-icon { height: 22px; width: auto; }

#sivacats-logo:hover img { filter: brightness(.7); }

@media (min-width: 1200px) {
  #nav-links { width: 320px; }
  #burger { top: 30px; right: 30px; }
  #cart { bottom: 30px; right: 30px; }
  #cart > :last-child { display: block; }
  #logo div { font-size: 100px; }
}

/* グッズサイトはなくていいとおもう */
/* 
  .overlay {
  inset: 0;
  position: fixed;
  transition: var(--transition-nav);
  pointer-events: none;
}

.overlay-intro { 
  z-index: 9999; 
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--color-gray);
  opacity: 1;
  animation-name: toPink;
  animation-duration: .5s;
  animation-fill-mode: forwards;
  animation-delay: 1s;
}
.overlay-intro img { height: 100px; }
.overlay-intro.initialized { opacity: 0; }
@keyframes toPink { 
  from { background: var(--color-gray); }
  to   { background: var(--color--accent); }
}

.overlay-menu { 
  z-index: 999;
  opacity: 0;
  background: var(--color--accent);
}

.overlay-menu.overlay-active { opacity: 1; pointer-events: auto; }
@media (min-width: 1200px) { .overlay-menu { display: none; } } */

/* navの順次アニメーション. Vueでburgerクリック時に動的に付与 */
@keyframes navLinksFade {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* index.php
----------------------------------- */

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 14px;
}

.product-card {
  /* border: .5px solid var(--color-bg2); */
  min-height: 250px;
  background: var(--color-bg3);
  border-radius: 2px;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}

.product-card:hover {
  border-color: currentColor;
  box-shadow: 4px 4px 0 currentColor;
  transform: translate(-2px, -2px);
}

.product-card-link {
  display: block;
  padding: 8px;
  color: inherit;
  text-decoration: none;
}

.product-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
}
.product-card-image .main {
  z-index: 999;
}
.product-card-image .sub {
  z-index: 998;
}
.product-card:hover .product-card-image .main { opacity: 0; }
.product-card:hover .product-card-image .sub { opacity: 1; }

.product-card-no-image {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 12px;
}

.product-card-soldout {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1000;
  background: rgb(0 0 0 / 55%);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.15em;
}

.product-card-body {
  padding-top: 10px;
}

.product-card-name {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  min-height: 50px;
  line-height: 1.5;
}

.product-card-price {
  margin: 4px 0 0;
  font-size: 14px;
}

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 24px;
  }

  .product-card-name,
  .product-card-price {
    font-size: 16px;
  }
}

/* product.php
----------------------------------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.product-detail-images {
  min-width: 0;
}

.product-detail-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f5f5;
}

.product-detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-thumbnails {
  margin-top: 10px;
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 4px; /* 上も空けないとtranslateしてるのでoutlineが消える */
}

.product-detail-thumbnail {
  /* .5分端を見せる */
	flex: 0 0 calc((100% - 32px) / 5.5);
}

.product-detail-thumbnail {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.product-detail-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-thumbnail:hover,
.product-detail-thumbnail.active {
  border-color: currentColor;
  box-shadow: 3px 3px 0 currentColor;
  transform: translate(-2px, -2px);
}

.product-detail-info {
  min-width: 0;
}

.product-detail-name {
  margin: 0;
  font-size: clamp(22px, 5vw, 34px);
  font-weight: 500;
  line-height: 1.4;
}

.product-detail-price {
  margin: 12px 0 0;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.product-detail-price::after {
  content: '(税込)';
  font-size: smaller;
  color: #3f3f3f;
}

.shipping-rule {
  margin-top: 10px;
  font-size: 13px;  
  color: #3f3f3f;
}
.product-detail-description {
  margin-top: 28px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.product-variants,
.product-quantity {
  margin-top: 30px;
}

.product-option-label {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.product-variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-variant-button {
  min-width: 64px;
  padding: 10px 18px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.product-variant-button:hover,
.product-variant-button.active {
  box-shadow: 4px 4px 0 currentColor;
  transform: translate(-2px, -2px);
}

.product-variant-button.active {
  background: currentColor;
}

.product-variant-button.active::first-line {
  color: var(--color-background, #fff);
}

.product-variant-button.soldout,
.product-variant-button:disabled {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.product-quantity-control {
  display: grid;
  grid-template-columns: 44px 56px 44px;
  width: fit-content;
  border: 1px solid currentColor;
}

.product-quantity-control button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
}

.product-quantity-control button:hover {
  background: rgb(127 127 127 / 15%);
}

.product-quantity-control span {
  display: grid;
  place-items: center;
  border-right: 1px solid currentColor;
  border-left: 1px solid currentColor;
}

.product-add-cart {
  width: 100%;
  margin-top: 34px;
  padding: 16px 20px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 15px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.product-add-cart:hover:not(:disabled) {
  box-shadow: 6px 6px 0 currentColor;
  transform: translate(-3px, -3px);
}

.product-add-cart:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.product-back-link {
  display: inline-block;
  margin-top: 26px;
  color: inherit;
  font-size: 13px;
  text-decoration: none;
}

.product-back-link:hover {
  text-decoration: underline;
}

.product-loading,
.products-empty {
  padding: 80px 0;
  text-align: center;
  letter-spacing: 0.08em;
}

/* カート件数 */
.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: 6px;
  left: 26.5px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--color-bg);
  color: #1965A5;
  font-size: 11px;
  line-height: 1;
}

.cart-count::first-line {
  color: var(--color-background, var);
}

@media (min-width: 1200px) {
  .product-detail {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 56px;
    align-items: start;
  }

  .product-detail-info {
    position: sticky;
    top: 40px;
  }

  .product-detail-thumbnails {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.product-variant-notice {
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed currentColor;
  font-size: 13px;
  letter-spacing: 0.05em;
  opacity: 0.7;
}
/* cart.php
----------------------------------- */
.cart-page {
  width: 100%;
}

.cart-loading {
  padding: 80px 0;
  text-align: center;
  letter-spacing: 0.08em;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.cart-items {
  display: grid;
  gap: 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  border: 1px solid currentColor;
}

.cart-item-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.cart-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cart-item-name {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.cart-item-name a {
  color: inherit;
  text-decoration: none;
}

.cart-item-name a:hover {
  text-decoration: underline;
}

.cart-item-variant {
  margin: 4px 0 0;
  font-size: 12px;
  opacity: 0.7;
}

.cart-item-remove {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cart-item-remove:hover {
  border-color: currentColor;
  box-shadow: 3px 3px 0 currentColor;
  transform: translate(-2px, -2px);
}

.cart-item-price {
  margin: 3px 0 ;
  font-size: 14px;
}

.cart-item-error {
  margin: 10px 0 0;
  color: #e53935;
  font-size: 12px;
  font-weight: 700;
}

.cart-item-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.cart-item-subtotal {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

/* カート内数量操作 */
.cart-item .product-quantity-control {
  display: grid;
  grid-template-columns: 38px 44px 38px;
  width: fit-content;
  border: 1px solid currentColor;
}

.cart-item .product-quantity-control button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
}

.cart-item .product-quantity-control button:hover:not(:disabled) {
  background: rgb(127 127 127 / 15%);
}

.cart-item .product-quantity-control button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.cart-item .product-quantity-control span {
  display: grid;
  place-items: center;
  border-right: 1px solid currentColor;
  border-left: 1px solid currentColor;
  font-size: 13px;
}

/* 注文概要
--------------------------- */
.cart-summary {
  align-self: start;
  padding: 22px;
  border: 1px solid currentColor;
}

.cart-summary-title {
  margin: 0 0 24px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.cart-summary-list {
  margin: 0;
}

.cart-summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgb(127 127 127 / 30%);
}

.cart-summary-list dt,
.cart-summary-list dd {
  margin: 0;
  font-size: 13px;
}

.cart-summary-list dd {
  text-align: right;
}

.cart-summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
}

.cart-summary-total span {
  font-size: 14px;
}

.cart-summary-total strong {
  font-size: 22px;
  font-weight: 500;
}

.cart-summary-note {
  margin: 18px 0 0;
  font-size: 11px;
  line-height: 1.7;
  opacity: 0.65;
}

.international-order-guide {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px dashed rgb(127 127 127 / 45%);
}

.international-order-title {
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.international-order-text,
.international-order-confirmed {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

.international-order-contact,
.international-order-checkout {
  width: 100%;
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.5;
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.international-order-contact:hover,
.international-order-checkout:hover:not(:disabled) {
  box-shadow: 4px 4px 0 currentColor;
  transform: translate(-2px, -2px);
}

.international-order-confirmed {
  margin-top: 22px;
  opacity: 0.7;
}

.international-order-checkout {
  border-style: dashed;
}

.international-order-checkout:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* 空カート
--------------------------- */
.cart-empty {
  padding: 80px 20px;
  border: 1px dashed currentColor;
  text-align: center;
}

.cart-empty p {
  margin: 0;
}

.cart-empty-link {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 22px;
  border: 1px solid currentColor;
  color: inherit;
  text-decoration: none;
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.cart-empty-link:hover {
  box-shadow: 5px 5px 0 currentColor;
  transform: translate(-3px, -3px);
}

@media (min-width: 1200px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    align-items: start;
  }

  .cart-item {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 22px;
    padding: 16px;
  }

  .cart-item-name {
    font-size: 17px;
  }

  .cart-summary {
    position: sticky;
    top: 40px;
  }
}


/* checkout.php / contact.php
----------------------------------- */
.form-title {
  margin: 0 0 32px;
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.form-page { padding: 0 0 80px }
.form-layout { display: grid; gap: 32px }
.form { display: grid; gap: 18px }
.form h2 { margin: 0 0 8px }
.form label { display: grid; gap: 8px; }
@media (min-width: 1200px) { .form label { font-size: 1.1rem; } } 
.form-label-text { display: flex; align-items: center; }
.form-required { margin-left: 4px; color: #d33; }

.form input, select, textarea { 
  width: 100%; 
  padding: 12px; 
  border: 1px solid var(--color-border,#ccc);
  border-radius: 2px; 
  background:#fff;
  color:#111
}
.form input, select { max-width: 800px; }
.form-help {
  display: block;
  max-width: 800px;
  font-size: 12px;
  line-height: 1.7;
  opacity: 0.7;
}
.form-error { 
  padding: 12px;
  border: 1px solid #d33; color:#d33
}
.form-payment { min-width: 0 }
.form-payment h2 { margin: 0 0 8px }
.form-payment-step { 
  margin: 0 0 6px;
  font-family: monospace; 
  font-size: .8rem; 
  letter-spacing: .16em;
  opacity: .65
}
.form-payment-note { 
  margin: 0 0 18px;
  font-size: .8rem;
  line-height: 1.7; 
  opacity: .65 
}
.form-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border, #ddd);
}

.form-summary-item span {
  min-width: 0;
}

.form-summary-item strong {
  white-space: nowrap;
}

.form-complete {
  max-width: 720px;
  margin: 80px auto;
  text-align: center;
}

.form-complete-status {
  margin: 24px 0;
  font-size: 1.1rem;
}

.form-complete-number {
  font-family: monospace;
  font-size: 1.1rem;
}

#form-embedded {
  min-height: 420px;
}

@media (min-width: 1200px) {
  .form-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
  }

  .form,
  .form-payment {
    padding-right: 24px;
  }
}

.form-button {
  width: 100%;
  max-width: 450px;
  margin-top: 26px;
  padding: 16px 20px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
  display: block;
  margin-inline: auto;
}

.form-button:hover:not(:disabled) {
  box-shadow: 6px 6px 0 currentColor;
  transform: translate(-3px, -3px);
}

.form-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.product-detail-main-image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1; /* 今の画像枠に合わせて調整 */
}

.product-detail-main-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.image-crossfade-enter-active,
.image-crossfade-leave-active {
	transition: opacity .25s ease;
}

.image-crossfade-enter-active {
	z-index: 1; /* 新画像は下 */
}

.image-crossfade-leave-active {
	z-index: 2; /* 旧画像が上でフェードアウト */
}

.image-crossfade-enter-from,
.image-crossfade-leave-to {
	opacity: 0;
}

/* legal.php
----------------------------------- */

.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 0 80px;
}

.legal-kicker {
  margin-bottom: 10px;
  font-family: "Reddit Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--color-accent-blue);
}

.legal-page h1 {
  margin-bottom: 32px;
  font-size: clamp(24px, 5vw, 38px);
  line-height: 1.35;
}

.legal-list {
  border-top: 1px solid rgba(var(--color-primary-rgb), 0.2);
}

.legal-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.2);
}

.legal-row dt,
.legal-row dd {
  padding: 18px 16px;
  line-height: 1.8;
}

.legal-row dt {
  font-weight: 700;
  background: rgba(var(--color-primary-rgb), 0.04);
}

.legal-row dd {
  margin: 0;
}

.legal-row a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-note {
  margin-top: 24px;
  font-size: 12px;
  line-height: 1.8;
  opacity: 0.7;
}

@media (max-width: 640px) {
  .legal-page {
    padding-top: 36px;
  }

  .legal-row {
    grid-template-columns: 1fr;
  }

  .legal-row dt {
    padding-bottom: 8px;
  }

  .legal-row dd {
    padding-top: 8px;
  }
}

/* footer
----------------------------------- */
footer {
  position: sticky;
  top: 100dvh;
  margin-top: 40px;
  text-align: center;
  padding: 23px 0;
  background-color: var(--color-black);
}
footer p small{ 
  color: var(--color-gray);
  font-size: 11px;
}

/* 共通ダイアログ
----------------------------------- */
body.dialog-open {
  overflow: hidden;
}

.app-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(var(--color-primary-rgb), 0.72);
  backdrop-filter: blur(5px);
}

.app-dialog {
  width: min(430px, 100%);
  color: var(--color-bg2);
  background: #080820;
  border: 1px solid var(--color-accent-pink);
  outline: 1px solid var(--color-accent-blue);
  outline-offset: 4px;
  box-shadow:
    0 0 0 4px #080820,
    0 18px 50px rgba(0, 0, 35, 0.45);
}

.app-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--color-primary);
  background: var(--color-accent-pink);
  border-bottom: 1px solid var(--color-accent-blue);
  font-family: "Reddit Mono", monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.app-dialog.is-success .app-dialog-header {
  background: var(--color-accent-blue);
}

.app-dialog.is-danger .app-dialog-header {
  color: var(--color-bg2);
  background: #c51f5d;
}

.app-dialog-status {
  font: 11px "Reddit Mono", monospace;
  letter-spacing: 0.08em;
}

.app-dialog-body {
  padding: 24px 20px 18px;
}

.app-dialog-body > p {
  min-height: 48px;
  margin: 0;
  line-height: 1.75;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.app-dialog-body > p::before {
  content: "> ";
  color: var(--color-accent-blue);
  font-family: "Reddit Mono", monospace;
}

.app-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.app-dialog-button {
  min-width: 100px;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--color-accent-pink);
  color: var(--color-bg2);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  transition:
    color 0.15s,
    background 0.15s,
    transform 0.15s;
}

.app-dialog-button:hover,
.app-dialog-button:focus-visible {
  color: var(--color-primary);
  background: var(--color-accent-pink);
  transform: translateY(-1px);
}

.app-dialog-button.is-primary {
  color: var(--color-primary);
  background: var(--color-accent-pink);
}

.app-dialog-button.is-primary:hover,
.app-dialog-button.is-primary:focus-visible {
  background: var(--color-accent-blue);
  border-color: var(--color-accent-blue);
}

.dialog-fade-enter-active,
.dialog-fade-leave-active {
  transition: opacity 0.18s ease;
}

.dialog-fade-enter-active .app-dialog,
.dialog-fade-leave-active .app-dialog {
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.dialog-fade-enter-from,
.dialog-fade-leave-to {
  opacity: 0;
}

.dialog-fade-enter-from .app-dialog,
.dialog-fade-leave-to .app-dialog {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}

@media (max-width: 480px) {
  .app-dialog-actions {
    flex-direction: column-reverse;
  }

  .app-dialog-button {
    width: 100%;
  }
}
