/* リセットスタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  font-size:100%;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

body {
  /* font-family: 'Zen Old Mincho', serif; */
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', Meiryo, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
  font-size:1.000rem;
}

  button,
  input,
  select,
  textarea {
  font-family: 'Zen Old Mincho', serif;
  }


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 20px;
}

h1,h2,h3,h4,h5{
  font-family: 'Zen Old Mincho', serif;

}

h1 {
  font-size: 1.625rem; /* 26px */
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
}

.option-empty{
  color:#406c85;
  font-size:0.75rem;
  padding:5px 0;
  line-height:1.2em;
}

.ss{
  font-size:0.65rem;
  text-align:center;
}

/* トップメッセージ */
.top-message {
  width: 100%;
  background: linear-gradient(90deg, #111827, #1f2937 50%, #374151);
  color: #ffffff;
  padding: 8px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.top-message-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.top-message-text {
  font-size: 1.0rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

@keyframes topMessageScroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* トップヘッダー */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  width: 100%;
  padding: 5px 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.top-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-header .logo {
  margin: 5px 0 0 0;
  text-align: left;
}

.top-header .logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.top-header .logo img {
  height: 40px;
  width: auto;
  display: block;
}

.top-header .title {
  margin: 0 auto;
  text-align: center;
  font-size: 1.625rem;
  line-height:1.0em;
}

.top-order-link {
  text-decoration: none;
  font-size: 0.9375rem;
  color: #1f2937;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.top-order-link:hover,
.top-order-link:focus-visible {
  border-color: #1f2937;
  outline: none;
}

.top-header .cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background-color: #111827;
  color: #ffffff;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #111827;
}

.cart-button-icon {
  display: inline-flex;
  margin-right: 0px;
  font-size: 1rem;
}

.cart-button-label {
  display: inline-flex;
  align-items: center;
}

.top-header .cart-button:hover,
.top-header .cart-button:focus {
  background-color: #1f2937;
  border-color: #1f2937;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.3);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .top-message {
    padding: 5px 12px;
  }

  .top-message-text {
    font-size: 0.75rem;
    display: inline-block;
    animation: topMessageScroll 20s linear infinite;
  }

  .top-header {
    padding: 5px 15px 0;
  }

  .top-header-inner {
    gap: 10px;
    flex-wrap: wrap;
  }

  .top-header-right {
    gap: 8px;
  }

  .top-header .title {
    font-size: 1rem;
    white-space: nowrap;
  }

  .top-header .logo img {
    height: 30px;
  }

  .top-header .cart-button {
    padding: 6px 12px;
    font-size: 0.875rem;
  }

  .cart-button-icon {
    /* margin-right: 6px; */
  }
}

p {
  font-size: 1.0rem; /* 16px */
}

.customizer-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-banner {
  position: relative;
  width: 100%;
  margin-bottom: 30px;
  border-radius: 1px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.material-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(8px);
}

.material-site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.material-site-logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #111827;
}

.material-site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9375rem;
}

.material-site-link,
.material-site-cart {
  text-decoration: none;
  color: #1f2937;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.material-site-link:hover,
.material-site-cart:hover,
.material-site-link:focus-visible,
.material-site-cart:focus-visible {
  border-color: #1f2937;
  outline: none;
}

.material-site-cart-label {
  letter-spacing: 0.05em;
}

.material-site-footer {
  margin-top: 60px;
  padding: 48px 12px 12px;
    background: linear-gradient(90deg, #111827, #1f2937 50%, #374151);
  border-top: 1px solid #e5e7eb;
  color: #fff;
}

.material-site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
}

.material-site-footer-info {
  flex: 1 1 320px;
}

.material-site-footer-title img {
  width:70%;
}

.material-site-footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.material-site-footer-text {
  margin-bottom: 6px;
  font-size: 0.75rem;
}

.material-site-footer-text a {
  color: inherit;
}

.material-site-footer-link {
  display: inline-flex;
  margin-top: 6px;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-decoration: underline;
    color: #fff;
  /* border-bottom: 1px solid #94a3b8; */
}

.material-site-footer-photo {
  flex: 1 1 320px;
  /* border-radius: 8px; */
  overflow: hidden;
  /* border: 1px dashed #cbd5f5; */
  /* background: #fff; */
}

.material-site-footer-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (max-width: 640px) {
  .material-site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .material-site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .material-site-footer-link {
    display: flex;
    justify-content: flex-end;
  }
}

.about-furiko {
  background-color: #ffffff;
  border-radius: 1px;
  margin-bottom: 10px;
  /* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); */
  overflow: hidden;
}

.about-furiko-title {
  background: linear-gradient(90deg, #111827, #1f2937 50%, #374151);
  color: #ffffff;
  margin: 0;
  padding: 10px 24px;
  font-size: 1.0rem;
  font-weight:normal;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.about-furiko-title:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 4px;
}

.about-furiko-title::after {
  content: '+';
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.about-furiko.is-open .about-furiko-title::after {
  transform: rotate(45deg);
}

.about-furiko-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 24px;
  /* border-top: 1px solid #e5e7eb; */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

.about-furiko-body p{
  font-family: 'Zen Old Mincho', serif;
  font-size: 1.0rem;
  color:#000;
  margin:12px 0 36px;
}

.about-furiko.is-open .about-furiko-body {
  padding: 0 24px 24px;
  opacity: 1;
}

.about-furiko .left,
.about-furiko .right {
  flex: 1;
  text-align:center;
}

.about-furiko .left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-furiko .right img {
  width: 100%;
  height: auto;
  margin: 20px 0;
  /* border-radius: 4px; */
  /* box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08); */
}

.about-furiko .furiko-feature img {
  width: 50%;
  height: auto;
  /* border-radius: 4px; */
  /* box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08); */
  margin: 20px 0;
}

.about-furiko h2 {
  margin-bottom: 8px;
  font-size: 1.0rem;
}

.about-furiko p {
  font-size: 1rem;
}

@media (min-width: 768px) {
  .about-furiko-body {
    flex-direction: row;
  }

  .about-furiko h2 {
    font-size: 1.2rem;
  }

  .about-furiko-title {
    font-size: 1.2rem;
  }
}

.order-menu {
  background-color: #ffffff;
  border-radius: 1px;
  margin-bottom: 5px;
  /* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); */
  overflow: hidden;
  margin-left: -10px;
  margin-right: -10px;
}

.order-menu-title {
  background: linear-gradient(90deg, #111827, #1f2937 50%, #374151);
  color: #ffffff;
  margin: 0;
  padding: 5px 24px;
  font-size: 1.0rem;
  font-weight:normal;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 768px) {

  .order-menu {
    margin-left: 0;
    margin-right: 0;
  }

  .order-menu-title {
    font-size: 1.2rem;
  }
}

.hero-logo {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: rgba(255, 255, 255, 0.85);
  color: #111827;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.summary-preview {
  position: relative;
  margin-bottom: 2px;
  /* border: 1px solid #e5e7eb; */
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* .summary-preview-sp {
      margin-bottom: 2px;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    } */

/* 製品プレビュー */
.product-preview {
  display: none;
}

@media (min-width: 768px) {
  .customizer-container {
    flex-direction: row;
  }

  .summary-preview-sp {
    display: none;
  }

  .product-preview {
    display: block;
    flex: 1;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: sticky;
    top: 10px;
    align-self: flex-start;
  }
}


.preview-image {
  /* JS: updateBeltPreview/updateBeltTexture が背景を切り替える領域 */
  position: relative;
  aspect-ratio: 16/4;
  background-color: #f8f8f8;
  border-radius: 6px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preview-image-sp {
  /* JS: updateBeltPreview/updateBeltTexture が背景を切り替える領域 */
  position: relative;
  /* aspect-ratio: 16/4; */
  height: 40px;
  background-color: #f8f8f8;
  border-radius: 1px;
  margin-bottom: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.belt-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.belt-base {
  /* JS: updateBeltPreview で表示/高さクラスを切り替え */
  width: 90%;
  position: relative;
  justify-content: left;
  border-radius: 1px;
}

/* ベルトの幅に応じてスタイルを変更 */
.belt-width-25 {
  height: 20px;
  min-height: 20px;
  max-height: 20px;
}

.belt-width-30 {
  height: 25px;
  min-height: 25px;
  max-height: 25px;
}

.belt-width-35 {
  height: 30px;
  min-height: 30px;
  max-height: 30px;
}

.belt-texture {
  /* JS: updateBeltTexture で素材テクスチャを設定 */
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  /* background-repeat: repeat-x;
      background-size: 140px auto; */
}

/* 船先剣が選択されたときのスタイル */
.belt-texture.tip-fune {
  /* SVG clip-pathを無効化 */
  clip-path: none;

  /* マスク合成で左側の矩形と右側の剣先形状を結合 */
  /* viewBox="368 114 297 364" は、提供されたSVGから剣先部分（右側）を切り抜くための設定 */
  --tip-ratio-fune: 0.8159;
  --tip-width-fune: calc(var(--preview-height, 40px) * var(--tip-ratio-fune));

  -webkit-mask-image:
    linear-gradient(to right, black, black),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="368 114 297 364" preserveAspectRatio="none"><path d="M656.09,278.54c-105.75-152.21-288.94-164.6-288.94-164.6l-187.17,1.77v364.6l187.17,1.77s183.19-12.39,288.94-164.6c0,0,5.75-3.98,6.19-19.47-.44-15.49-6.19-19.47-6.19-19.47Z" fill="black"/></svg>');
  mask-image:
    linear-gradient(to right, black, black),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="368 114 297 364" preserveAspectRatio="none"><path d="M656.09,278.54c-105.75-152.21-288.94-164.6-288.94-164.6l-187.17,1.77v364.6l187.17,1.77s183.19-12.39,288.94-164.6c0,0,5.75-3.98,6.19-19.47-.44-15.49-6.19-19.47-6.19-19.47Z" fill="black"/></svg>');

  /* 左側は (100% - tip-width) の幅、右側は tip-width の幅 */
  -webkit-mask-size: calc(100% - var(--tip-width-fune)) 100%, var(--tip-width-fune) 100%;
  mask-size: calc(100% - var(--tip-width-fune)) 100%, var(--tip-width-fune) 100%;

  /* 左側は左端、右側は右端に配置 */
  -webkit-mask-position: left top, right top;
  mask-position: left top, right top;

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  /* 重なりは単純に合成（デフォルト） */
  -webkit-mask-composite: source-over;
  mask-composite: add;
}

/* （参考）メンズ剣が選択されたときのスタイル（四角を維持→台形に変更） */
.belt-texture.tip-mens {
  /* SVG clip-pathを無効化 */
  clip-path: none;

  /* viewBox="217.59 119.69 441.15 356.64" -> Ratio: 441.15 / 356.64 ≈ 1.2369 */
  /* ユーザー要望により、高さが変わり始める部分（テーパー開始位置 X=217.59）から最後までを表示 */
  --tip-ratio-mens: 1.2369;
  --tip-width-mens: calc(var(--preview-height, 40px) * var(--tip-ratio-mens));

  /* マスク合成で左側の矩形と右側の剣先形状を結合 */
  /* レイヤー順序を変更: 1. SVG (右), 2. Gradient (左) */
  -webkit-mask-image:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="217.59 119.69 441.15 356.64" preserveAspectRatio="none"><path d="M179.98,298.01V119.69h37.61l411.06,69.91s28.76,2.65,30.09,29.2c1.33,26.55,3.54,79.2,3.54,79.2,0,0-2.21,52.65-3.54,79.2-1.33,26.55-30.09,29.2-30.09,29.2l-411.06,69.91h-37.61v-178.32Z" fill="black"/></svg>'),
    linear-gradient(to right, black, black);
  mask-image:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="217.59 119.69 441.15 356.64" preserveAspectRatio="none"><path d="M179.98,298.01V119.69h37.61l411.06,69.91s28.76,2.65,30.09,29.2c1.33,26.55,3.54,79.2,3.54,79.2,0,0-2.21,52.65-3.54,79.2-1.33,26.55-30.09,29.2-30.09,29.2l-411.06,69.91h-37.61v-178.32Z" fill="black"/></svg>'),
    linear-gradient(to right, black, black);

  /* 1. SVG (Tip): tip-width, 2. Gradient: 100% - tip-width */
  -webkit-mask-size: var(--tip-width-mens) 100%, calc(100% - var(--tip-width-mens)) 100%;
  mask-size: var(--tip-width-mens) 100%, calc(100% - var(--tip-width-mens)) 100%;

  /* 1. SVG (Tip): right top, 2. Gradient: left top */
  -webkit-mask-position: right top, left top;
  mask-position: right top, left top;

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  /* 重なりは単純に合成（デフォルト） */
  -webkit-mask-composite: source-over;
  mask-composite: add;
}

.belt-buckle {
  /* JS: updateBucklePreview で色を更新 */
  position: absolute;
  top: 50%;
  /* left: 10px; */
  left:35px;
  transform: translateY(-50%);
  width: 40px;
  /* height: 100%; -> .belt-width-XX クラスで高さを制御するため削除 */
  border-radius: 2px;
}

.belt-width-label {
  position: absolute;
  bottom: 8px;
  right: 16px;
  background-color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 1.0rem; /* 16px */
  font-weight: bold;
}

.guidance-text {
  text-align: center;
  font-size: 1.0rem; /* 16px */
  color: #777;
}

.product-details {
  margin-top: 20px;
}

.product-details-secondary {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.product-title {
  font-size: 1.375rem; /* 22px */
  font-weight: 600;
  margin-bottom: 10px;
}

.product-description {
  /* font-size: 0.875rem; /* 14px */
  font-size: 0.75rem; /* 12px */
  color: #666;
  background-color:#efefff;
  line-height:1.1em;
  margin-bottom: 3px;
  padding:1px;
}

.product-price {
  font-size: 1.375rem; /* 22px */
  font-weight: bold;
  text-align: right;
  margin-bottom: 20px;
}

.product-price-secondary {
  display: none !important;
}

.add-to-cart-btn {
  width: 100%;
  padding: 12px;
  /* background-color: #8fa1c8; */
  background-color: #406c85;
  color: white;
  border: none;
  border-radius: 3px;
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', Meiryo, sans-serif;
  font-weight: bold;
  font-size: 1.0rem; /* 16px */
  cursor: pointer;
  transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
  /* background-color: #1d4ed8; */
  background-color: #274151;
}

.add-to-cart-btn:disabled {
  background-color: #a7cbe0;
  cursor: not-allowed;
}

.cart-success {
  margin-top: 8px;
  padding: 8px;
  background-color: #dcfce7;
  color: #166534;
  border-radius: 6px;
  text-align: center;
}

.cart-success.error {
  background-color: #fee2e2;
  color: #b91c1c;
}

.cart-warning {
  margin-top: 10px;
  font-size: 0.875rem; /* 14px */
  color: #b91c1c;
  text-align: center;
}

/* カスタマイズパネル */
.customizer-options {
  flex: 1;
  padding-bottom: 80px;
}

.option-panel {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.selection-summary {
  position: sticky;
  top: 120px;
  z-index: 10;
  background-color: #ffffff;
}

#selectionSummaryMobileMount {
  display: contents;
}

@media (min-width: 768px) {
  .product-preview .selection-summary {
    position: sticky;
    top: 80px;
    margin-top: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }

  .belt-buckle {
  left:40px;
}

}

.selection-summary_inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

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

.summary-card-clickable {
  cursor: pointer;
}

.summary-card-full {
  grid-column: span 3;
  text-align: left;
}

.summary-card-body {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 3px 0;
  flex-wrap: wrap;
}

.summary-card-body .summary-card {
  flex: 1 1 90px;
  width:auto;
  /* height: 100px; */
}

#summaryCardBody {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#summaryCardBody.hidden {
  display: none;
}

#summaryCardBody .summary-card {
  width: 100%;
  /* height: 100px; */
}

.summary-label {
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 8px;
}

.summary-image {
  width: 100%;
  height:100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto 8px;
  border-radius: 1px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid #e5e7eb;
  background-color: #f3f4f6;
}

.summary-text {
  font-size: 0.750rem; /* 12px */
  font-weight: 500;
}

.option-file-name {
  font-size: 0.875rem; /* 14px */
  color: #6b7280;
  margin-bottom: 4px;
  word-break: break-all;
}

.image-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.image-modal.hidden {
  display: none;
}

.image-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.image-modal-content {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1;
  text-align: center;
}

.image-modal-content img {
  max-width: 80vw;
  max-height: 70vh;
  border-radius: 8px;
  object-fit: cover;
}

.image-modal-title {
  font-size: 1.1875rem; /* 19px */
  font-weight: 600;
  margin-bottom: 12px;
}

.image-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.625rem; /* 26px */
  cursor: pointer;
  line-height: 1;
}

.image-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.625rem; /* 26px */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.image-modal-nav.prev {
  left: 10px;
}

.image-modal-nav.next {
  right: 10px;
}

.image-modal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .container {
    padding: 0 10px 10px;
  }

  .option-panel {
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin-bottom: 20px;
  }

  .summary-card-body {
    justify-content: flex-start;
  }

  .summary-card-body .summary-card {
    height: 80px;
  }

  #summaryCardBody .summary-card {
    height: 80px;
  }

  .selection-summary {
    top: 40px;
    left: 0;
    right: 0;
    z-index: 30;
  }

  .selection-summary_inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 0;
    margin: 0 -10px 4px;
    padding: 12px 4px 2px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }

  .summary-card-full {
    grid-column: span 3;
  }

  .hero-banner {
    margin-top:0;
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px);
    border-radius: 0;
  }
}

.option-panel h3 {
  font-size: 1.1875rem; /* 19px */
  font-weight: 600;
  margin-bottom: 15px;
}

.option-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.option-panel-header h3 {
  margin-bottom: 0;
}

.material-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 3px;
  border: 1px solid #406c85;
  color: #fff;
  font-size: 0.750rem; /* 12px */
  font-weight: 600;
  text-decoration: none;
  background-color: #406c85;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.material-detail-link:hover {
  background-color: #5999be;
  color: #ffffff;
  border-color: #5999be;
}

.material-guide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.material-guide-hero {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.material-guide-lead {
  font-size: 0.750rem; /* 12px */
  letter-spacing: 0.2em;
  color: #94a3b8;
  margin-bottom: 10px;
}

.material-guide-hero h1 {
  font-size: 1.625rem; /* 26px */
  margin-bottom: 8px;
}

.material-guide-description {
  font-size: 1.0rem; /* 16px */
  color: #475569;
  line-height: 1.8;
}

.material-guide-actions {
  display: flex;
  justify-content: flex-start;
}

.material-guide-actions-bottom {
  justify-content: center;
  margin-top: 32px;
}

.material-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.material-card {
  background-color: #ffffff;
  border-radius: 1px;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.material-card-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  padding: 10px 10px 0;
}

.material-card-image img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 1px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.material-card-image img:hover,
.material-card-image img:focus {
  transform: scale(1.02);
}

.material-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.material-card-body h2 {
  font-size: 1.1875rem; /* 19px */
  color: #111827;
}

.material-card-body p {
  font-size: 0.875rem; /* 14px */
  color: #4b5563;
  line-height: 1.7;
}

.material-color-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.material-color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60px;
}

.material-color-badge {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  border: 1px solid #e5e7eb;
  padding: 0;
  background-color: #ffffff;
  background-size: 150% 150%;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.material-color-badge:hover,
.material-color-badge:focus {
  transform: scale(1.05);
  outline: none;
  border-color: #406c85;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.material-color-label {
  margin-top: 4px;
  font-size: 0.750rem; /* 12px */
  color: #4b5563;
  text-align: center;
  line-height: 1.2;
  width: 100%;
}

@media (max-width: 768px) {
  .material-guide-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (min-width: 768px) {
  .material-guide-hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .material-guide-hero h1 {
  font-size: 1.625rem; /* 26px */
  }

  .material-guide-actions {
    justify-content: flex-end;
    align-items: center;
  }
}

.option-grid {
  display: grid;
  gap: 8px;
  justify-items: stretch;
  align-items: stretch;
}

.option-grid > * {
  min-width: 0;
}

.option-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

.buckle-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .buckle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.option-btn {
  border: 1px solid #d1d5db;
  border-radius: 2px;
  padding: 0px;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 0;
}

.option-btn:hover {
  border-color: #93c5fd;
}

.option-btn.selected {
  border-color: #406c85;
  background-color: #d9cbc0;
}

.option-btn.disabled-option,
.option-btn.disabled-option:hover {
  border-color: #d1d5db;
  background-color: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
}

.option-grid .option-btn {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.option-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  width: 100%;
  min-width: 0;
  text-align: center;
  margin-bottom:4px;
}

.width-sample {
  display: block;
  height: 30px;
  width: 80%;
  margin: 8px auto;
  background-color: #9c9c9c;
  border-radius: 3px;
}

.width-25 {
  height: 25px;
  margin-bottom:18px;
}

.width-30 {
  height: 30px;
  margin-bottom:13px;
}

.width-35 {
  height: 35px;
}

.buckle-sample {
  width: 100%;
  aspect-ratio: 8 / 5;
  margin: 0 0 8px;
  border-radius: 1px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid #e5e7eb;
}

.material-sample {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 8px;
  border-radius: 1px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid #e5e7eb;
}

.color-sample {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 8px;
  border-radius: 1px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid #e5e7eb;
}

.option-name {
  font-size: 0.750rem; /* 12px */
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', Meiryo, sans-serif;
  width: 100%;
  margin-bottom: 4px;
  overflow-wrap: break-word;
}

.option-price {
  width: 100%;
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', Meiryo, sans-serif;
  font-size: 0.750rem; /* 12px */
  color: #666;
  overflow-wrap: break-word;
}

.color-preview {
  margin: 16px auto 0;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.color-preview-image {
  width: 220px;
  height: 220px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid #d1d5db;
  flex-shrink: 0;
  position: relative;
}

.color-preview-info {
  flex: 0 0 auto;
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-preview-label {
  font-size: 0.75rem; /* 12px */
  font-weight: 600;
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  color: #111827;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.classic-banner {
  background: linear-gradient(135deg, #fff9f5, #fdb28a);
  border: 1px solid #fdb28a;
}

.classic-banner-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.classic-banner-text {
  flex: 1;
}

.classic-banner-label {
  font-size: 0.750rem; /* 12px */
  font-weight: 700;
  color: #893f06;
  margin-bottom: 4px;
}

.classic-banner-description {
  font-size: 0.750rem; /* 12px */
  font-weight: 600;
  color: #893f06;
}

.classic-banner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 2px;
  border: 1px solid #893f06;
  color: #893f06;
  font-weight: 600;
  text-decoration: none;
  background-color: #fff7ed;
  transition: background-color 0.2s, color 0.2s;
}

.classic-banner-link:hover {
  background-color: #893f06;
  color: #fff;
}

.standard-product-banner {
  background: linear-gradient(135deg, #f0f9ff, #7dd3fc);
  border: 1px solid #7dd3fc;
}

.standard-product-banner-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.standard-product-banner-text {
  flex: 1;
}

.standard-product-banner-label {
  font-size: 0.750rem; /* 12px */
  font-weight: 700;
  color: #0c4a6e;
  margin-bottom: 4px;
}

.standard-product-banner-description {
  font-size: 0.750rem; /* 12px */
  font-weight: 600;
  color: #0c4a6e;
}

.standard-product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 2px;
  border: 1px solid #0c4a6e;
  color: #0c4a6e;
  font-weight: 600;
  text-decoration: none;
  background-color: #f0f9ff;
  transition: background-color 0.2s, color 0.2s;
}

.standard-product-link:hover {
  background-color: #0c4a6e;
  color: #fff;
}

.selection-guidance {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  font-size: 0.750rem; /* 12px */
  padding: 10px 16px;
  margin: 0;
  background-color: #eff6ff;
  border-top: 1px solid #bfdbfe;
  color: #1e40af;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 200;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.selection-scroll-btn {
  background: #406c85;
  color: #fff;
  border: none;
  border-radius: 3px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.750rem; /* 12px */
  line-height: 1;
}

.selection-guidance-inline {
  width: 100%;
  font-size: 0.750rem; /* 12px */
  padding: 6px 10px;
  margin-bottom: 3px;
  background-color: #eff6ff;
  /* border: 1px solid #406c85; */
  border-radius: 1px;
  color: #576aaa;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.confirmation-code {
  margin-top: 8px;
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  color: #1e40af;
}

.tip-sample {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto 8px;
  border-radius: 1px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid #e5e7eb;
}

/* 非表示クラス */
/* バックルを全部表示するにはここ修正 */
.hidden {
  display: none !important;
  /* display: none; */
}

/* カートフォームのスタイル */
.cart-note {
  margin-bottom: 15px;
  padding: 10px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 0.875rem; /* 14px */
  line-height: 1.5;
}

/* カラーミーカートボタン用スタイル */
#cartjs-container .cartjs_product {
  margin-bottom: 15px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 6px;
}

#cartjs-container .cartjs_product_table {
  width: 100%;
  margin-bottom: 15px;
}

#cartjs-container .cartjs_product_img {
  /* display: none; */
}

#cartjs-container .cartjs_product_name {
  font-size: 1.1875rem; /* 19px */
  font-weight: bold;
  margin-bottom: 10px;
}

#cartjs-container .cartjs_option {
  margin-bottom: 10px;
}

#cartjs-container .cartjs_option_name {
  font-weight: bold;
  margin-right: 10px;
}

#cartjs-container input[type="text"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
}

#cartjs-container .cartjs_cart_in {
  text-align: center;
}

#cartjs-container input[type="submit"] {
  width: 100%;
  padding: 12px;
  background-color: #406c85;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.0rem; /* 16px */
  cursor: pointer;
  transition: background-color 0.3s;
}

#cartjs-container input[type="submit"]:hover {
  background-color: #1d4ed8;
}

/* デバッグパネル */
.debug-panel {
  margin-top: 30px;
  padding: 15px;
  background-color: #f8d7da;
  border: 1px solid #f5c2c7;
  border-radius: 8px;
}

.debug-title {
  font-weight: bold;
  margin-bottom: 10px;
}

.debug-content {
  font-family: monospace;
  background: #fff;
  padding: 10px;
  border-radius: 4px;
  overflow-x: auto;
}

.color-admin-panel {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: #f9fafb;
}

.color-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.color-admin-material {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
}

.color-admin-material h4 {
  margin-bottom: 8px;
  font-size: 1.0rem; /* 16px */
  color: #1f2937;
}

.color-admin-material label {
  display: block;
  font-size: 0.875rem; /* 14px */
  margin-bottom: 4px;
}

.color-admin-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.color-admin-message {
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 6px;
  background-color: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.color-admin-link {
  text-align: right;
  margin-bottom: 10px;
}

.color-admin-link a {
  /* color: #2563eb; */
  color: #406c85;
  text-decoration: underline;
}

/* 注文タイプリボン */
.order-type-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.order-type-ribbon::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 30px 30px 0;
}

.order-type-ribbon.simple::before {
  border-color: transparent #10b981 transparent transparent;
}

.order-type-ribbon.gift::before {
  border-color: transparent #ef4444 transparent transparent;
}

/* 完成メッセージパネル */
.completion-panel {
  text-align: center;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  background-color:#85664e;
  color: white;
  padding: 0;
  overflow: hidden;
}

.completion-header-img {
  width: 100%;
  margin: 0;
  line-height: 0;
}

.completion-header-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px 8px 0 0;
}

.completion-message {
  padding: 30px 20px 20px;
}

.completion-message h3 {
  font-size: 1.0rem; /* 16px */
  font-weight: bold;
  margin-bottom: 12px;
  color: white;
}

.completion-message p {
  font-size: 0.750rem; /* 12px */
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.95);
}

.completion-summary {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 20px;
  margin: 0 4px 14px;
  color: #333;
}

.completion-summary h4 {
  font-size: 1.0rem; /* 16px */
  font-weight: 600;
  margin-bottom: 12px;
  color: #406c85;
}

.completion-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.completion-summary-item:last-child {
  border-bottom: none;
}

.completion-summary-label {
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  color: #6b7280;
}

.completion-summary-value {
  font-size: 0.875rem; /* 14px */
  color: #111827;
  text-align: right;
}

.completion-cart-section {
  padding: 0 20px 30px;
}

.product-price-completion {
  font-size: 1.625rem; /* 26px */
  font-weight: bold;
  text-align: center;
  margin-bottom: 16px;
  color: white;
}

.completion-panel .add-to-cart-btn {
  width: 100%;
  margin: 0;
}

.order-policy{
  color:#fff0c9;
  font-size: 1.0rem; /* 14px */
  line-height:1.6em;
  margin-bottom:6px;
}

.restart-box{
  width:100%;
  text-align:right;
}

.restart-btn {
  width: 100%;
  max-width: 150px;
  margin-top:56px;
  padding: 6px 6px;
  background-color: white;
  /* color: #667eea; */
  color: #406c85;
  border: none;
  border-radius: 3px;
  font-weight: bold;
  font-size: 0.750rem; /* 12px */
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.restart-btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.bgred{
  background:#f00;
}

/* フッター画像 */
.footer_img {
  width: 100%;
  margin: 40px 0 0 0;
  text-align: center;
}

.footer_img img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 素材ガイドモーダル */
.material-guide-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s, visibility 0.3s;
}

.material-guide-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.material-guide-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.material-guide-modal-content {
  position: relative;
  width: 95%;
  max-width: 1200px;
  height: 90%;
  max-height: 90vh;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

.material-guide-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.625rem; /* 26px */
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.material-guide-modal-close:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.material-guide-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  background-color: #f9fafb;
}

.material-guide-modal-header h2 {
  margin: 0;
  font-size: 1.1875rem; /* 19px */
  font-weight: 700;
  color: #111827;
}

.material-guide-modal-body {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.material-guide-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.order-about-header {
  background-color: #0f172a;
  color: #fff;
}

.order-about-header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.order-about-logo {
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.order-about-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.order-about-nav a {
  text-decoration: none;
  font-size: 0.875rem;
  color: #cbd5f5;
}

.order-about-nav a:hover,
.order-about-nav a:focus-visible {
  color: #fff;
}

.order-about {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  line-height: 1.8;
}

.order-about-hero {
  text-align: center;
  margin-bottom: 32px;
}

.order-about-hero h1 {
  font-size: 1.625rem; /* 26px */
  margin-bottom: 12px;
}

.order-about-hero p {
  font-size: 0.875rem;
  line-height:1.2em;
  text-align:left;
}

.order-about-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #818cf8;
}

.order-about-toc {
  margin: 0 auto 40px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background-color: #f8fafc;
}

.order-about-toc h2 {
  margin-bottom: 12px;
  font-size: 1.125rem;
}

.order-about-toc ol {
  list-style: decimal inside;
  color: #475569;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.order-about-section {
  margin-bottom: 48px;
}

.order-about-section h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #0f172a;
}

.order-about-section ol {
  /* list-style: decimal inside; */
 margin-left:45px;
}

.order-about-section p,
.order-about-section li {
  font-size: 0.95rem;
  color: #475569;
}

.order-about-section ul {
  margin-left: 1em;
  padding-left: 1em;
  list-style: disc;
}

.order-legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.95rem;
}

.order-legal-table th,
.order-legal-table td {
  border: 1px solid #e2e8f0;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.order-legal-table th {
  width: 30%;
  background-color: #f8fafc;
  font-weight: 600;
}

.order-about-cta {
  text-align: center;
  margin-top: 32px;
}

.order-about-cta a {
  display: inline-flex;
  padding: 12px 32px;
  border-radius: 999px;
  text-decoration: none;
  background-color: #111827;
  color: #fff;
  font-weight: 600;
}

@media (max-width: 640px) {
  .order-about-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-about-toc ol {
    grid-template-columns: 1fr;
  }

  .order-legal-table th,
  .order-legal-table td {
    display: block;
    width: 100%;
  }

  .order-legal-table th {
    border-bottom: none;
  }

  .order-legal-table td {
    border-top: none;
    margin-bottom: 12px;
  }
}

@media (max-width: 768px) {
  .material-guide-modal-content {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .material-guide-modal-header {
    padding: 16px 20px;
  }

  .material-guide-modal-header h2 {
  font-size: 1.1875rem; /* 19px */
  }

}

.footer_img{
  width:100%;
}

.material-name-en{
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', Meiryo, sans-serif;
  font-size: 0.750rem; /* 12px */
}
.material-name-kana{
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', Meiryo, sans-serif;
  font-size: 0.750rem; /* 12px */

}
