

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

/* ヒーロー */
.hero {position: relative;}
.hero img {width:100%; height:auto; display:block;}
.hero .label {
    position: absolute; top:40px; left:40px;
    background:#fff; padding:12px 20px;
    font-size:1.2rem; font-weight:bold;
    box-shadow:0 2px 6px rgba(0,0,0,.1);
}
.hero .label p {margin-top:4px; font-size:.9rem; font-weight:normal;}

/* 説明 */
.section-info .container {
    padding:40px 0;
    margin-bottom: 100px;
    width: fit-content;
}

/* SAMPLE */
.section-sample {
    background: #ffffff88;
    border: solid 2px;
    width: fit-content;
    margin: auto;
    padding: 0 24px;
}
.section-sample .container {text-align:center; padding:60px 20px;}
.section-sample p.lead {margin-bottom:24px; font-size:1rem;}
.samples {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: nowrap;
    margin-bottom: 24px;
}
.sample-item 
{
    box-shadow: #ddd 4px 4px;
    background:#fff;
    padding:12px; 
    /*border:1px solid;*/
}
.sample-item img {
    width: 200px;
    height: 200px;
    border-radius: 4px;
    object-fit: contain;
}
.section-sample .goal-image {
    width: 300px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
}
.sample-item p {
    margin-top:8px; 
    font-size:18px;
}
.section-sample p.note 
{
    background-color: white;
    width: fit-content;
    padding: 12px 24px;
    margin: 36px auto;
}
.section-sample .arrow{
    width: 48px;
    height: auto;
    display: block;
    text-align: center;
    margin: 12px auto;
    mix-blend-mode: difference;
}

.section-order {
    padding: 0;
    padding-top: 48px;
}
.order-form{
    position:relative;
    max-width:1000px;
    margin:0 auto;}
.order-form p{
    font-weight: 600;
}

.order-block{
    background: #fff;
    border: 1px solid gray;
    border-radius: 5px;
    box-shadow: 0 2px 0 #ededed;
    margin-bottom: 26px;
    padding-bottom: 60px;
}
.block-head{
    display:flex;
    gap:18px;
    padding:22px 26px 12px;
}
.block-head--split{
    justify-content:space-between;
    align-items:flex-start;
}
.block-head label{
    font-size:16px;
}
.head-thumb{
    flex:0 0 auto;
    width:270px;
}
.head-thumb img{
    width:100%;
    height:auto;
    border-radius:4px;
    object-fit:cover;
}
.head-text{
    flex:1 1 auto; 
    min-width:0;
    margin: auto;
}
.head-text h3{
    width: auto;
    font-size:24px;
    text-align: left;
    margin:24px auto;
}
.head-text p{
    font-size:16px;
    color:#666;
}

.block-body--yellow{
    background:#ffdd55;
    border-top:1px solid #e7e7e7;
    margin: 12px 60px 0 60px;
    padding: 24px
}
.block-body label{
    display: block;
    width: fit-content;
    font-weight: 600;
    text-align: center;
    margin: 12px auto;
}

/* アップロード */
.upload-btn{
    display:inline-block;
    background:#fff;
    border:1px solid #999;
    border-radius:3px;
    padding:6px 14px;
    font-size:13px;
    cursor:pointer;
}
.upload-btn input[type=file]{display:none;}
.filename{margin-left:12px; font-size:13px;}

/* サイズ選択 */
/* ===== Yellow box inner layout ===== */
.block-body--yellow{
    background:#f9d857;               /* 既存の黄色と揃えるなら調整 */
    border-radius:18px;
    padding:28px 32px;
}

.size-row{
    display: flex;
    grid-template-columns: auto 56px 1fr;
    align-items: center;
    column-gap: 24px;
    flex-flow: wrap;
}
.size-col{
    margin: auto;
}

/* 共通見出し */
.size-col__title{
    text-align: center;
    font-weight:700;
    font-size:16px;
    line-height:1;
    margin-bottom:10px;
}
.size-col__title--center{ text-align:center; }

/* === 左：おすすめ指定 === */
.preset-wrap{
    display:flex;
    gap:10px;
    background:#fff;
    border-radius:8px;
    padding:8px 10px;
    border: 3px solid #111;
    margin-bottom: 24px;
    margin-top: 18px;
}
.size-radio{
    position:relative;
    display:inline-flex;
}
.size-radio input{
    position:absolute;
    inline-size:1px; block-size:1px;
    margin:-1px; padding:0; border:0;
    clip:rect(0 0 0 0); overflow:hidden;
}
.size-radio .ball{
    display:inline-grid;
    place-items:center;
    inline-size:40px; block-size:40px;
    border-radius:999px;
    background:#eee;
    font-weight:700;
    border:2px solid transparent;      /* 非選択時は枠なしっぽく */
}
/* 選択時：青いリング（お手本のトーンに合わせる） */
.size-radio input:checked + .ball{
    background:#fff;
    box-shadow: 0 0 0 3px #1e90ff inset;
    border:2px solid #1e90ff;
}

/* === 中央：矢印 === */
.size-col--arrow{
    font-weight:700;
    font-size:24px;
    text-align:center;
}

/* === 右：ぴったり指定 === */
.custom-line{
    display:flex;
    align-items:flex-start;
    justify-content:center;
    gap:24px;
}
.multiply{
    font-size:22px;
    font-weight:700;
    height: max-content;
    padding-top: 7px;
}

/* 各ディメンション塊 */
.dim{ min-width:220px; }
.dim__label{
    font-weight:700;
    margin-bottom:6px;
    text-align:center;
}
.dim__field{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
}
.dim__field input{
    width:140px;             /* 視認性の高い大きめボックス */
    padding:10px 14px;
    font-size:18px;
    font-weight:800;
    line-height:1;
    border:3px solid #111;
    border-radius:10px;
    background:#fff;
    text-align:center;
    -moz-appearance:textfield;
}
.dim__field input::-webkit-outer-spin-button,
.dim__field input::-webkit-inner-spin-button{ -webkit-appearance: none; margin: 0; }

.unit{
    font-weight:700;
    font-size:18px;
}

/* 下段の＋額縁130mm（小さめ注釈） */
.dim__note{
    margin-top:8px;
    font-size:16px;
    text-align:center;
    font-weight:700;
}

/* ===== Responsive (下に縦積み) ===== */
@media (max-width: 820px){
    .size-row{
        grid-template-columns: 1fr;      /* 1列 */
        row-gap:16px;
    }
    .size-col--arrow{ display:none; }
    .size-col__title--center{ text-align:left; }
    .custom-line{
        justify-content:flex-start;
        gap:16px;
    }
    .dim{ min-width:auto; }
    .dim__field input{ width:120px; font-size:24px; }
}


/* 額縁の色（ボタン型ラジオ） */
.frame-colors{
    display:flex;
    gap:28px;                 /* ボタン間の余白 */
    max-width:720px;
    margin:0 auto;
    flex-flow: wrap;
}

.frame-radio{
    flex:1;                   /* 3つを等幅に */
    position:relative;
    cursor:pointer;
    display:flex;
}

/* inputはアクセシブルに隠す */
.frame-radio input{
    position:absolute;
    inline-size:1px;
    block-size:1px;
    margin:-1px;
    padding:0;
    border:0;
    clip:rect(0 0 0 0);
    overflow:hidden;
}

/* 見た目のボタン */
.frame-radio .content{
    display:flex;
    align-items:center;
    gap:14px;
    inline-size:100%;
    padding:16px 20px;
    border:2px solid #111;
    border-radius:12px;       /* 角丸はお好みで 12〜16 */
    background:#fff;
    transition: box-shadow .15s, border-color .15s, transform .05s;
}

.frame-radio:hover .content{ transform: translateY(-1px); }

/* 選択状態（2枚目の青いアウトライン風） */
.frame-radio input:checked + .content{
    box-shadow: 0 0 0 3px #1e90ff;
    background:#fff;
}

/* キーボード操作時のフォーカス */
.frame-radio input:focus-visible + .content{
    box-shadow: 0 0 0 3px #1e90ff;
}

/* ドット（色丸） */
.dot{
    inline-size:28px;
    block-size:28px;
    border-radius:50%;
    border:1px solid #bdbdbd;
}
.dot--gold{ background:#c0ab6a; }
.dot--silver{ background:#cccccc; }
.dot--white{ background:#fff; }

/* 文字 */
.frame-radio .label{
    font-size:16px;
    letter-spacing:.04em;
}

/* 既存の「青い太枠」を消す（不要なら） */
.frame-radio input:checked{
    /* 以前の border:4px solid deepskyblue; を無効化するため、このセレクタ自体を削除 or 空に */
}


/* 中縁選択 */
.matte-select{ position:relative; max-width:560px; }
.matte-select__button{
    width:100%; display:flex; align-items:center; justify-content:space-between;
    gap:12px; padding:12px 14px; border:2px solid #111; border-radius:10px;
    background:#fff; font-size:16px; font-weight:700; cursor:pointer;
}
.matte-select__button .swatch{
    width:22px; height:22px; border-radius:50%; border:1px solid #aaa; flex:0 0 22px;
    background:#fff;
}
.matte-select__button .label{ flex:1; text-align:left; }
.matte-select__button .caret{ font-size:16px; }

.matte-select__list{
    position:absolute; inset-inline:0; top:calc(100% + 6px);
    max-height:280px; overflow:auto; background:#fff; border:2px solid #111; border-radius:12px;
    box-shadow:0 10px 24px rgba(0,0,0,.14); padding:6px; display:none; z-index:30;
}
.matte-select[aria-expanded="true"] .matte-select__list{ display:block; }

.matte-option{
    display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:8px; cursor:pointer;
}
.matte-option:hover, .matte-option[aria-selected="true"]{ background:#f3f3f3; }
.matte-option .swatch{ width:18px; height:18px; border-radius:50%; border:1px solid #aaa; }
.matte-option .code{ width:46px; font-variant-numeric:tabular-nums; font-weight:700; }
.matte-option .name{ color:#555; font-size:12px; }

/* Yellow ボックスに置くなら余白をお好みで */
.block-body--yellow .matte-select{
    margin: 12px auto;
}


/* お客様情報 */
.order-customer .head-text h3
{
    padding-top: 36px;
    padding-bottom: 36px;
    text-align: center;
}
.customer-fields input:not(input[type=checkbox]){
    display:block;
    max-width:500px;
    width:100%;
    height:42px;
    padding:0 10px;
    margin: auto;
    margin-bottom:30px;
    font-size:16px;
    border: solid black;
}
.customer-fields input[type=checkbox]{
    width:20px;
    height:20px;
    margin-right:6px;
}
.agree{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:16px;
    margin-top:6px;
}

/* 最終確認 */
.order-confirm .confirm-inner{
    display:flex;
    gap:60px;
    align-items:flex-start;
    padding:60px 36px;
}
.confirm-thumb{
    flex:0 0 auto;
    width:340px;
}
.confirm-thumb img{
    width:100%;
    height:auto;
    object-fit:cover;
}
.confirm-text{flex:1 1 auto;}
.confirm-text dl{
    display: grid;
    grid-template-columns: 200px 1fr;
    row-gap: 16px;
    column-gap: 12px;
    font-size: 18px;
    font-weight: 600;
}
.confirm-text dt{color:#555;}
.price-box{
    margin-top:14px;
    border:1px solid #dcdcdc;
    display:inline-block;
    padding:10px 18px;
    text-align:center;
}
.price{
    font-size:22px;
    font-weight:bold;
    line-height:1;
}
.price span{font-size:14px;}
.tax-note{
    font-size:12px;
    color:#666;
}
.btn-submit{
    display: block;
    margin: 18px auto 26px;
    background: #ffde3b;
    border: none;
    border-radius: 40px;
    padding: 16px 100px;
    font-weight: bold;
    cursor: pointer;
    font-size: 18px;
    border: solid;
}
.confirm-description{
    font-size:14px;
    color: red;
    text-align: center;
}

/* 固定価格表示 */
.sticky-price{
    position: fixed;
    bottom: 22px;
    right: 0;
    background: white;
    color: black;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px 0 0 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
    z-index: 9999;
}
.sticky-price figure{
    width:60px;
    height:60px;
    flex:0 0 60px;
}
.sticky-price img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.sticky-price-text .label{
    display:block;
    font-size:11px;
    color:#333;
}
.sticky-price-text .value{
    display:block;
    font-size:18px;
    font-weight:bold;
    line-height:1.2;
}
.sticky-price-text .sub{
    display:block;
    font-size:11px;
    color:#333;
}

/* SP */
@media (max-width:768px){
    .section-sample {
        padding: 0;
        margin-bottom: 48px;
    }
    .sample-item img {
        width: 100px;
        height: 100px;
    }
    .section-sample .goal-image {
        width: 200px;
    }
    .order-container{max-width:94vw;}
    .block-head{flex-direction:column; padding:18px 18px 8px;}
    .head-thumb{width:100%;}
    .head-thumb img{max-height:fit-content; object-fit:cover;}
    .block-body{padding:16px;}
    .order-confirm .confirm-inner{flex-direction:column;}
    .confirm-thumb{width:100%; max-width:280px; margin:0 auto;}
    .section-order{
        padding: 0;
    }
    .custom-line {
        display: block;
    }
    .block-body--yellow{
        padding: 12px;
        margin: 12px;
    }
    .frame-colors {
        gap: 12px;
    }
    .confirm-text dl {
        display: block;
    }
    .confirm-text dd{
        margin-bottom: 24px;
    }
}
