@charset "UTF-8";
/* ===============================================
  * Common Styles - サイト全体で共通のスタイル *
=============================================== */
/* ===============================================
  * Base *
=============================================== */
:root {
  --padding-horizontal-global: 4%;
}

html {
  font-size: 62.5%;
  overflow-y: scroll;
  scroll-behavior: smooth;
  scroll-padding-top: var(--height-header);
}


html[data-scroll-fixed=active] {
  overflow: hidden;
}

body {
  width: 100%;
  color: var(--color-text-default);
}
body.is-fixed {
  position: fixed;
  left: 0;
}

summary {
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}

:where(a) {
  color: var(--color-textlink, inherit);
}

/* ===============================================
  * Utilities *
=============================================== */
.u-visually-hidden {
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(0px 0px 99.9% 99.9%);
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip-path: inset(0px 0px 99.9% 99.9%);
}

/* ===============================================
  * Animation *
=============================================== */
[data-animation-type] {
  --animation-hover: 150ms ease-in;
}

[data-animation-type=opacity] {
  transition: opacity var(--animation-hover);
}

[data-animation-type=image-circle] {
  display: grid;
  place-content: center;
  border-radius: 4px;
  transition: border-radius var(--animation-hover), background var(--animation-hover);
}
[data-animation-type=image-circle] > * {
  transition: scale var(--animation-hover);
}

/* ===============================================
  * Layout *
=============================================== */
.global-contents__inner {
  width: 100%;
  margin-inline: auto;
  padding-bottom: 8rem;
}

.global-container {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-auto-columns: 100%;
  min-height: 100svh;
}

.global-content__fluid-wrapper {
  width: var(--container-default);
  margin: auto;
  padding-right: var(--padding-horizontal-global) !important;
  padding-left: var(--padding-horizontal-global) !important;
}

@media screen and (min-width: 768px){
  :root {
    --container-default: min(100%, calc(114rem + (var(--padding-horizontal-global) * 2)));
    --padding-horizontal-global: min(4.375%, 7rem);
  }
  html {
    font-size: 10px;
  }
  .global-contents__inner {
    width: min(90%, 114rem);
    padding-bottom: 10rem;
  }
}

@media (min-width: 768px) and (max-width: 1199px){
  html {
    font-size: calc(10 * 100vw/1200);
  }
}

@media screen and (min-width: 768px) and (hover: none){
  [data-animation-type=text-underline] {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }
  [data-animation-type=text-underline]:active {
    text-decoration: underline !important;
  }
}

@media screen and (min-width: 768px) and (-ms-high-contrast: none), screen and (min-width: 768px) and (-ms-high-contrast: active), screen and (min-width: 768px) and (-moz-touch-enabled: 0), screen and (min-width: 768px) and (hover: hover){
  [data-animation-type=text-underline]:hover {
    text-decoration: underline !important;
  }
}

@media (hover: none){
  [data-animation-type=opacity] {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }
  [data-animation-type=opacity]:active {
    opacity: var(--hover-opacity);
  }
  [data-animation-type=image-circle] {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }
  [data-animation-type=image-circle]:active {
    background-color: var(--color-gray-500);
    border-radius: 50%;
  }
  [data-animation-type=image-circle] {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }
  [data-animation-type=image-circle]:active > * {
    scale: 0.8;
  }
}

@media (-ms-high-contrast: none), (-ms-high-contrast: active), (-moz-touch-enabled: 0), (hover: hover){
  [data-animation-type=opacity]:hover {
    opacity: var(--hover-opacity);
  }
  [data-animation-type=image-circle]:hover {
    background-color: var(--color-gray-500);
    border-radius: 50%;
  }
  [data-animation-type=image-circle]:hover > * {
    scale: 0.8;
  }
}
/* ==========================================
 * 注文確定エリア レイアウト崩れ修正＆最適化
 * ========================================== */

/* 1. 親要素（ボタンエリア全体）の横幅制限を解除して注意事項を横いっぱいに広げる */
.form__submitarea {
    width: 100% !important;
}

/* 2. 注文ボタン自体の横幅を維持しつつ、スマホ表示時は画面幅に自動収縮（中央揃え） */
.form__submitarea .c-button {
    width: min(100%, 38rem) !important;
    margin-inline: auto !important;
}

/* 3. 注意事項エリア */
.order-caution-area {
    text-align: left !important;
    background: #f9f9f9 !important;
    padding: 15px !important;
    margin-bottom: 20px !important;
    font-size: 12px !important;
    border: 1px solid #ddd !important;
}

/* ==========================================
 * 4. 注意書き内の見出し・リスト装飾（元の見栄えを復元）
 * ========================================== */
.order-caution-area .price-section h3 {
    font-size: 1.0em;
    font-weight: bold;
    margin-bottom: 10px;
    padding-left: 0;
    border-left: none;
}

.order-caution-area .price-section h3::before {
    content: '●';
    font-size: 0.6em;
    margin-right: 8px;
    vertical-align: middle;
}

.order-caution-area .set-contents {
    list-style-position: inside;
    padding-left: 15px;
    margin-bottom: 15px;
}

.order-caution-area .table-wrapper {
    margin-bottom: 20px;
}

.order-caution-area .price-table {
    width: auto;
    border-collapse: collapse;
    margin: 0;
}

.order-caution-area .price-table th,
.order-caution-area .price-table td {
    border: 1px solid #ccc;
    padding: 12px;
    text-align: center;
    vertical-align: middle;
}

.order-caution-area .price-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.order-caution-area .price-table .item-name {
    text-align: left;
}

/* ==========================================
 * 5. スマホ表示用の横スクロール対応
 * ========================================== */
@media screen and (max-width: 767px) {
    .order-caution-area .table-wrapper {
        /* はみ出た部分を横スクロール可能にし、iOS端末でも滑らかに動くように設定 */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; 
    }
    .order-caution-area .price-table {
        /* スマホ幅でもテーブルが一定以上潰れないよう最低幅を担保する */
        width: 100%;
        min-width: 450px; 
    }
    .order-caution-area .price-table th,
    .order-caution-area .price-table td {
        font-size: 13px;
        padding: 8px 4px;
        /* 文字の強制折り返し（word-break: break-all）はスクロールの妨げになるため削除 */
    }
}

/* ==========================================
 * 6. 規約・注意事項エリアのスクロールボックス化
 * ========================================== */
.scrollable-terms-box {
    height: 400px;
    overflow-y: auto;
    /* iOS端末で滑らかにスクロールさせるための保険 */
    -webkit-overflow-scrolling: touch; 
}

/* スマホ表示時（画面幅767px以下）は高さを画面の30%にする */
@media screen and (max-width: 767px) {
    .scrollable-terms-box {
        height: 30vh;
    }
}