/* order_style.css の末尾に追記 */

/* ヘッダーがコンテンツに被るのを防ぐ */
/* body 要素の余白はヘッダー高さ調整時に有効化 */
/* body { padding-top:90px; } */

/* ログイン後に「ログイン」タブを非表示にする */
body.logged-in .nav-item a[href="#login"] {
    display: none !important;
}

/* 最終確認ページのプレビューの高さを揃える */
#finalImageConfirm .row.align-items-center .col-6 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#finalImageConfirm .img-fluid,
#purchase .img-fluid {
    /* #purchase にも適用 */
    border: 1px solid #ccc;
}

/* 盤面プレビューを円形にし、中央の穴を表現 */
.disc-preview-image {
    border-radius: 50%;
    position: relative;
    display: inline-block;
    max-width: 80%;
    /* サイズ調整 */
    height: auto;
    /* サイズ調整 */
}

.disc-preview-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10%;
    height: 10%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 50%;
    border: 1px solid #ddd;
}

.displayNone {
    display: none;
}

.fixed-bottom-div {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    /* ブートストラップのナビゲーションバーなどとの重なり順を考慮 */
}

#panel-login {
    opacity: 0;
}

.nowrap {
    white-space: nowrap;
}

.nav-link {
    padding: 0.2rem;
    /* ナビゲーションリンクのパディングを調整 */
    /* font-size: 90%; */
}

.nav-pills {
    border-radius: 0;
}

.tab-content {
    padding-top: 56px;
    /* 固定ヘッダーの高さに合わせて上部余白を調整 */
}

.cardImage,
.guideImage {
    max-width: 100%;
    box-shadow: 5px 5px 10px #333;
    -webkit-box-shadow: 5px 5px 10px #333;
    -moz-box-shadow: 5px 5px 10px #333;
}

.imgBox {
    margin: 0 auto;
}

.maxWidhth-600px {
    max-width: 600px;
    margin: 0 auto;
}

@font-face {
    font-family: 'icomoon';
    src: url('../fonts/icomoon.eot?-282x3b');
    src: url('../fonts/icomoon.eot?#iefix-282x3b') format('embedded-opentype'),
        url('../fonts/icomoon.woff?-282x3b') format('woff'),
        url('../fonts/icomoon.ttf?-282x3b') format('truetype'),
        url('../fonts/icomoon.svg?-282x3b#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
}

[class^="icon-"] [class*=" icon-"] {
    font-family: 'icomoon';
    /* speak: none; */
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-pimlogo1:before {
    content: "\e600";
}

.icon-indexTop {
    /* font-size: 50px; */
    font-size: 1.5rem;
    font-weight: bold;
    color: #777;
}

.order-nav-title {
    color: #777;
}

.panel-body {
    margin: 0 auto;
    max-width: 600px;
}

/* .card-artwork 旧調整コメントを整理 */

.add-progress {
    height: 2px;
    background-color: #FFF;
}

/* grid全体 */
.grid {
    background: #eee;
    border: solid 2px #EEE;
}

/* 各アイテム */
.grid-item {
    width: 170px;
    height: 170px;
    display: flex;
    justify-content: left;
    align-items: center;
    background: #FFF;
    border: solid 2px #eee;
    cursor: grab;
}

/* 幅大きめのgrid */
.grid-item--width2 {
    width: 100%;
    height: 40px;
}

/* 高さ大きめのgrid */
.grid-item--height2 {
    width: 170px;
    height: 340px;
}

/* hover時 */
.grid-item:hover {
    opacity: 0.6;
}

/* drug時 */
.packery-drop-placeholder {
    outline: 3px dashed hsla(0, 0%, 0%, 0.5);
    cursor: grabbing;
    outline-offset: -6px;
    -webkit-transition: -webkit-transform 0.2s;
    transition: transform 0.2s;
}

.icon-box {
    height: 34px;
    width: 24px;
    margin: 8px 5px;
    border-radius: 3px;
    background: #eee;
    float: left;
    color: #BBB;
}

.icon-innerBox {
    width: 100%;
    padding-top: 2px;
    font-size: 18px;
    text-align: center;
}

.icon-innerBox>i {
    margin: 0 auto;
}

.ext-box {
    width: 100%;
    font-size: 8px;
    padding-top: 1px;
    text-align: center;
}

.songTitle-box {
    width: 95%;
    text-align: left;
    padding-left: 5px;
    float: left;
}

.edit-box {
    width: 5%;
    color: #bbb;
    float: right;
}

/* .pim-panel-text { width:88%; margin-left:6%; }  // 必要なら再有効化 */

label {
    font-size: small;
}

/* .h-adr 住所マイクロフォーマット (スタイル不要) */

/* 盤面プレビュー用のスタイル */
.disc-preview-image {
    border-radius: 50%;
    /* 画像を円形にする */
    position: relative;
    display: inline-block;
    max-width: 80%;
    border: 1px solid #ccc;
}

.disc-preview-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10%;
    /* 穴の大きさ */
    height: 10%;
    /* 穴の大きさ */
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 50%;
    border: 1px solid #ddd;
}

/* 最終確認ページのプレビューの高さを揃えるためのスタイル */
#finalImageConfirm .row {
    align-items: center;
    /* これで画像が中央揃えになります */
}

#finalImageConfirm img {
    max-width: 100%;
    border: 1px solid #ccc;
}

/* 最終確認ページのプレビューの高さを揃えるためのスタイル */
#finalImageConfirm .row.align-items-center .col-md-6 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* purchaseページの画像プレビューのサイズ調整 */
.purchase-image-row {
    /* Rowに適用することで子要素のalignmentを制御 */
    align-items: center;
    justify-content: center;
    /* 中央寄せ */
}

#purchase .purchase-image-row .col-6 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* 個々の列内のimgも中央寄せ */
}

#purchase .img-fluid,
#purchase .disc-preview-image {
    width: 150px;
    /* Step4のサイズに合わせる (仮) */
    height: 150px;
    /* Step4のサイズに合わせる (仮) */
    object-fit: contain;
    /* アスペクト比を維持しつつ収める */
    border: 1px solid #ccc;
    display: block;
    /* imgがインライン要素なのでブロック化 */
    margin: 0 auto;
    /* 中央寄せ */
}

#purchase .disc-preview-image {
    border-radius: 50%;
    /* 円形を保持 */
}

/* 盤面の中央の穴を表現するスタイル (purchaseページ用) */
#purchase .disc-preview-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10%;
    /* 穴の大きさ */
    height: 10%;
    /* 穴の大きさ */
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 50%;
    border: 1px solid #ddd;
}


.tab-pane {
    display: none;
    /* 非アクティブなタブは完全に非表示にする */
}

.tab-pane.active {
    display: block;
    /* アクティブなタブのみ表示する */
}


@media (max-width: 775px) {
    .tab-content {
        padding-top: 90px;
    }
}

@media (max-width: 481px) {

    /* .icon-indexTop {
        font-size: 35px;
    }

    .order-nav-title {
        font-size: 90%;
    } */
}

/* 注文履歴ページ用CSS */
.pastOrderDisplay {
    list-style: none;
    /* リストの点マークを削除 */
    padding: 0;
}

.pastOrderDisplay>li {
    margin-bottom: 20px;
    /* 各注文アイテム間の余白 */
}

.card-well .card-body .btn {
    margin-right: 5px;
    /* ボタン間のスペース */
    margin-bottom: 5px;
    /* ボタン間のスペース */
}

.input-group-text.service-icon-label {
    display: flex;
    align-items: center;
    gap: 5px;
    /* アイコンとテキストの間隔 */
    padding: .375rem .75rem;
    /* Bootstrapデフォルト */
    min-width: 150px;
    /* アイコン+テキストの幅を揃えるため (YouTube Musicに合わせて調整) */
    justify-content: flex-start;
    /* 左寄せ */
}

.service-icon {
    /* height: 20px; */
    /* アイコンの高さ */
    /* width: auto; */
    /* アスペクト比を維持 */
    vertical-align: middle;
    font-size: 1.2rem;
    /* Bootstrap Iconsのサイズ */
    line-height: 1;
    /* アイコンとテキストの行の高さを揃える */
}

/* input-group-text内のテキストを垂直中央揃えにする */
.input-group-text.service-icon-label>span {
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.edit-mode-area {
    padding-top: 15px;
    /* 編集エリア上部の余白 */
    border-top: 1px solid #eee;
    /* 区切り線 */
    margin-top: 15px;
    /* 区切り線との余白 */
}

/* 入力済みURLのテキストカラー */
.input-service-url {
    color: var(--bs-primary);
    /* Bootstrapのプライマリーカラーを使用 */
}

/* プレースホルダーのカラーを薄くする (デフォルトではinput要素全体に影響しがちなので個別に) */
.input-service-url::placeholder {
    color: #ccc;
    /* 薄い灰色 */
    opacity: 1;
    /* Firefox対策 */
}

/* === Order Completion Overlay (custom) === */
#orderCompleteOverlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: system-ui,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
}
#orderCompleteOverlay .oc-box {
    background: #fff;
    max-width: 520px;
    width: 92%;
    padding: 26px 30px 24px;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,.28);
    animation: ocFade .18s ease;
}
@keyframes ocFade {
    from { opacity:0; transform: translateY(10px); }
    to   { opacity:1; transform: translateY(0); }
}
#orderCompleteOverlay .oc-title {
    font-size: 1.1rem;
    margin: 0 0 14px;
    font-weight: 600;
}
#orderCompleteOverlay .oc-message {
    margin: 0 0 24px;
    font-size: .9rem;
    line-height: 1.55;
    word-break: break-word;
}
#orderCompleteOverlay .oc-actions {
    text-align: right;
}
#orderCompleteOverlay .oc-ok {
    min-width: 120px;
    font-weight: 600;
    letter-spacing: .5px;
}

/* === Purchase 最終確認 画像レイアウト改善 (20250816) === */
#purchase .purchase-image-row.purchase-design-images {
        align-items: flex-start !important;
        justify-content: flex-start !important;
}
.purchase-design-images {
        display: flex;
        flex-wrap: wrap;
        gap: 32px 40px;
        margin-top: 4px;
}
.purchase-design-item {
        flex: 0 1 180px;
        display: flex;
        flex-direction: column;
        align-items: center;
}
.purchase-design-item h6 {
        margin-bottom: 8px;
        font-weight: 600;
}
.purchase-imgbox { width: 180px; max-width:100%; position:relative; }
#purchase .purchase-img {
        width:100%; height:auto !important; display:block; border:1px solid #ccc; object-fit:cover; background:#fff; box-shadow:0 2px 4px rgba(0,0,0,.08);
}
#purchase .disc-img { aspect-ratio:1 / 1; border-radius:50%; position:relative; overflow:hidden; }
#purchase .disc-img::after { content:""; position:absolute; top:50%; left:50%; width:14%; height:14%; transform:translate(-50%,-50%); background:#fff; border:1px solid #ddd; border-radius:50%; box-shadow:0 0 0 2px rgba(255,255,255,0.6); }
@media (min-width:700px) and (max-width:1000px){
    .purchase-design-images { gap:28px 32px; }
    .purchase-design-item { flex:0 1 160px; }
    .purchase-imgbox { width:160px; }
}
@media (max-width:699.98px){
    .purchase-design-images { justify-content:center; gap:24px 28px; }
    .purchase-design-item { flex:0 1 160px; }
    .purchase-imgbox { width:160px; }
}
@media (max-width:489.98px){
    .purchase-design-item { flex:0 1 140px; }
    .purchase-imgbox { width:140px; }
}
#purchase .img-fluid, #purchase .disc-preview-image, #purchase .disc-img { height:auto !important; max-height:none !important; }

/* ★オプションリンク and パネルのスタイル */

/* オプションリンク */
.options-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.options-link:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* オプションパネル */
.options-panel {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #fafafa;
    margin-top: 8px;
}

.options-panel .card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.options-panel .card-header {
    border-bottom: 1px solid #dee2e6;
    padding: 10px 14px;
    background-color: #f8f9fa;
}

.options-panel .card-header h6 {
    font-weight: 600;
    font-size: 13px;
    margin: 0;
}

.options-panel .close-options-btn {
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.options-panel .close-options-btn:hover {
    opacity: 0.9;
}

.options-panel .card-body {
    padding: 12px 14px;
}

.options-panel .form-check {
    margin-bottom: 0;
}

.options-panel .form-check-label {
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
}

.options-panel .form-text {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
}