@charset "Shift-JIS";
:root {
    /* カラーパレット */
    --bc-1: #d5f2f8;
    --bc-2: #fae9df;
    --green: #2ecc71;
    --accent-1: #d4844a;
    --vending-red: #d45252;
    --vending-dark: #b22f2f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*　共有ヘッダー用＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝*/
#topBar td img {
    display: block;
}

@media screen and (max-width: 768px){
    #topBar {
        max-width: 100% !important;
        overflow-x: scroll;
    }
    
    .inc-head-div {
        width: 100% !important;
    }
}
/*＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝*/

/* 基本レイアウト */
html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg,var(--bc-1), var(--bc-2));
    min-height: 100vh;
}

.container {
    container-type: inline-size;
    container-name: main-container;
    font-family: "M PLUS Rounded 1c", "メイリオ", "Meiryo", sans-serif;
    font-style: normal;
    font-weight: 400;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    background: #f5f5f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.font-s {
    font-size: 0.8em;
}

/* パンくずリスト */
.breadcrumbs-list ul {
    font-family: "メイリオ", "Meiryo", sans-serif;
    list-style: none;
}

.breadcrumbs-list li {
    display: inline-block;
    font-size: 12px;
}

.breadcrumbs-list li a {
    text-decoration: none;
    color: #003295;
}

.breadcrumbs-list li:after {
    content: '>';
    padding: 0 0.5em;
    color: #555;
}

.breadcrumbs-list li:last-child::after {
    content: '';
}

/* ヘッダー */
.header {
    background: #fff;
    margin-bottom: 20px;
}

.header img {
    display: block;
    max-width: 100%;
}

.intro-text {
    position: relative;
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 30px;
    background: #fff;
    padding: 15px;
}

/* ===== 自販機 ===== */
.vending-machine {
    background: linear-gradient(135deg, 
        var(--vending-red), 
        var(--vending-dark) 50%, 
        var(--vending-red));
    padding: 20px 30px 30px;
    margin: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
}

/* メタリック質感のテクスチャ */
.vending-machine::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    pointer-events: none;
    border-radius: 12px;
}

.scroll-hint {
    text-align: center;
    padding: 10px;
    background: rgba(0,0,0,.3);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 10px;
}


/* ===== 商品コンテナ ===== */
.products-container {
    background: linear-gradient(180deg, #e8f0f5, #f5f8fa);
    border-radius: 8px;
    box-shadow: 
        inset 0 3px 10px rgba(0, 0, 0, 0.15),
        inset 0 -1px 3px rgba(255, 255, 255, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 25px;
    max-height: 750px;
    overflow-y: auto;
    position: relative;
}

/* スクロールバーのカスタマイズ */
.products-container::-webkit-scrollbar {
    width: 12px;
}

.products-container::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #ccc, #ddd);
    border-radius: 0 8px 8px 0;
}

.products-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #666, #888);
    border-radius: 6px;
    border: 2px solid #999;
}

/* スクロールバー */
.products-container {
    scrollbar-width: thin;
    scrollbar-color: #888 #ddd;
}

/* 内部照明効果 */
.products-container::before {
    content: '';
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent);
    pointer-events: none;
    z-index: 10;
}

/* ===== 商品グリッド ===== */
.drinks-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 25px;
}

.product-slot {
    position: relative;
}

/* 商品番号ラベル */
.product-slot::before {
    content: attr(data-slot);
    position: absolute;
    top: -5px;
    left: 5px;
    background: #333;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 10;
}

/* 執筆中の缶には番号を表示しない */
.product-slot[data-slot^="coming"]::before {
    display: none;
}

/* ===== ドリンク缶 ===== */
.drink-can {
    aspect-ratio: 1/1.5;
    border-radius: 12px 12px 8px 8px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-weight: bold;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
    position: relative;
    background-image: url('../images/drink-kan.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

/* 執筆中の缶 */
.drink-can.coming-soon {
    background-image: url('../images/drink-kan.png');
    background-size: cover;
    background-position: center;
    filter: grayscale(80%) brightness(0.8);
}

/* ツールチップの三角矢印 */
.drink-can[onclick]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.75);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 20;
}

.liquid {
    margin: 32% 19px 0 16px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
    z-index: 1;
    text-align: center;
    border-radius: 25px;
}

.liquid img {
    width: 90%;
    aspect-ratio: 1.5;
    object-fit: cover;
    border-radius: 4px;
}

.title-label {
    display: block;
    margin: 14px 5px 14px 3px;
    font-size: 1em;
    font-weight: bold;
    line-height: 1.3;
}

.date-label {
    font-size: 11px;
    color: #555;
}

/* ===== ボタン（読むボタンを目立たせる） ===== */
.vending-btn {
    width: 100%;
    height: 35px;
    background: linear-gradient(180deg, #2a2a2a, #1a1a1a 50%, #111111);
    border: 2px solid #444;
    border-radius: 8px;
    cursor: pointer;
    box-shadow:
        0 5px 0 #000,
        0 6px 8px rgba(0, 0, 0, 0.4);
    margin-top: 10px;
    transition: all 0.1s;
    position: relative;
    overflow: hidden;
    color: var(--green);
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-shadow: 0 0 8px rgba(46, 204, 113, 0.8);
}

.vending-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
    pointer-events: none;
}

.vending-btn:active {
    transform: translateY(3px);
    box-shadow:
        0 2px 0 #000,
        0 3px 5px rgba(0, 0, 0, 0.4);
}

/* LEDランプ */
.vending-btn span:first-child {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #98ecbb, #0ba24a);
    border-radius: 50%;
    box-shadow: 0 0 6px #fff;
    vertical-align: middle;
    margin-right: 4px;
}

.vending-btn.sold-out {
    cursor: not-allowed;
    opacity: 0.6;
    background: linear-gradient(180deg, #666, #444 50%, #333) !important;
    border-color: #555 !important;
    box-shadow: 0 3px 0 #1a1a1a !important;
    color: #fff;
    text-shadow: none;
}

.vending-btn.sold-out span {
    background: radial-gradient(circle, #e74c3c, #c0392b);
    box-shadow: 0 0 8px #e74c3c;
    color: #fff;
    font-size: 14px;
    line-height: 10px;
    animation: none;
}


/* 価格表示パネル */
.price-display {
    align-items: center;
    background: url(../images/h1-backimg.png) no-repeat;
    background-size: contain;
    background-position: center center;
    background-color: #fff;
    width: 70%;
    font-size: 1.3rem;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    border: 2px solid #333;
    box-shadow: inset  0 2px 5px rgba(0, 0, 0, 0.5);
}
.price-display p {
    padding: 0 150px 0 100px;
}

/* コイン投入口・返却口エリア */
.payment-area {
    display: flex;
    gap: 20px;
    justify-content: space-around;
    padding: 20px;
}

.coin-slot-graphic, .bill-slot-graphic {
    background: linear-gradient(180deg, #5a5a5a, #333);
    margin: 10px auto;
    box-shadow: inset 0 2px 5px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.1);
}

.coin-slot-graphic {
    width: 30px;
    height: 8px;
    border-radius: 2px;
}

.bill-slot-graphic {
    width: 50px;
    height: 15px;
    border-radius: 3px;
}

.change-tray {
    width: 100px;
    height: 50px;
    background: linear-gradient(180deg, #888, #666);
    margin: 10px auto;
    border-radius: 5px;
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid #555;
}

/* ===== 取り出し口 ===== */
.dispenser-area {
    background: linear-gradient(180deg, #bbb, #999 50%, #888);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
        inset 0 5px 15px rgba(0, 0, 0, 0.4),
        inset 0 -2px 5px rgba(255, 255, 255, 0.2);
    border: 3px solid #666;
    min-height: 200px;
    position: relative;
}

/* 取り出し口のラベル */
.dispenser-area::before {
    content: '記事お取り出し口';
    position: absolute;
    display: block;
    width: 95%;
    top: 10px;
    left: 12%;
    transform: translateX(-10%);
    background: #333;
    color: #fff;
    padding: 5px 0;
    border-radius: 5px;
    font-size: 1.3rem;
    text-align: center;
    letter-spacing: 0.05em;
    z-index: 1;
}

.dispenser {
    width: 95%;
    background: linear-gradient(180deg, #d8d8d8, #c0c0c0);
    margin: 50px auto 20px;
    border-radius: 8px;
    box-shadow: 
        inset 0 3px 8px rgba(0, 0, 0, 0.3),
        inset 0 -1px 2px rgba(255, 255, 255, 0.3);
    border: 2px solid #999;
    padding: 10px;
}


/* カード */
.card {
    border: 6px solid var(--vending-red);
    background-color: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card-header {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
}

.card-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--vending-red);
    margin-bottom: 10px;
}

.card-url {
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
}

.card-image img {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 20px 0;
}

.card-image iframe {
    display: block;
    margin: 20px auto;
}

.card-text, .card-author {
    line-height: 1.7;
    color: #333;
}

.card-text {
    text-align: justify;
}

.card-date,
.card-author {
    text-align: right;
}

.card-date {
    margin-top: 2em;
}

.card-author {
    margin-bottom: 2em;
}

.source-places {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

.source-places::before {
    display: block;
    content: "";
    height: 1px;
    border-top: 1px dotted #ccc;
    margin-bottom: 0.5rem;
}

/* ===== 燈 広告 ===== */
.ad-section {
    background: #fff;
    padding: 20px;
    text-align: center;
    margin: 30px 0;
    border-radius: 10px;
}

.ad-text {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: bold;
}

.ad-button {
    display: block;
    margin: 0 auto;
}

.ad-button img {
    max-width: 50%;
    box-shadow: 2px 2px 10px #a1a1a1;
    border: 1px solid #333;
}

/* ===== 更新情報 ===== */
.updates {
    background: #fff;
    padding: 20px;
    border-left: 5px solid var(--accent-1);
    position: relative;
}

.updates-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}

#updatesList {
    max-height: 120px; /* 2件分の高さ（1件約60px） */
    overflow-y: auto;
    padding-right: 10px; /* スクロールバー分の余白 */
}

.update-item {
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 15px;
}

.update-item:last-child {
    border-bottom: none;
}

.update-date {
    color: #666;
    white-space: nowrap;
}

@keyframes slideIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/*ページの先頭へ*/
.to-top {
    position: fixed;
    bottom: 60px;
    right: 20px;
    clear: both;
    text-align: right;
    border-radius: 50%;
    box-shadow: 0 2px 5px #33333333;
    background-color: rgb(255, 255, 255);
    z-index: 999;
}

.to-top a {
    display: block;
    text-decoration: none;
    font-size: 24px;
    color: #137af8;
    font-weight: bold;
    padding: 5px 14px;
}



/* ----------------------------------------------------------------------------
    ホバー時
---------------------------------------------------------------------------- */
@media (hover:hover) {

    /* ツールチップを表示 */
    .drink-can[onclick]:hover::after,
    .drink-can[onclick]:hover::before {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }

    .drink-can:hover {
        transform: translateY(-4px);
        box-shadow:
            0 8px 16px rgba(0, 0, 0, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }

    .ad-button:hover {
        opacity: 0.7;
    }

    .vending-btn:hover {
        background: linear-gradient(180deg, #333, #222 50%, #1a1a1a);
        box-shadow:
            0 5px 0 #000,
            0 6px 12px rgba(0, 0, 0, 0.5),
            inset 0 0 15px rgba(46, 204, 113, 0.1);
    }

    .to-top:hover {
        opacity: 0.7;
    }
    .to-top:active {
        transform: translateY(2px);
    }
}


/* --------------------------------------------------------------------
    コンテナクエリ
-------------------------------------------------------------------- */
@container main-container (max-width: 768px) {
    .drinks-display {
        grid-template-columns: repeat(2, 1fr);
    }
}

@container main-container (max-width: 480px) {
    .drinks-display {
        grid-template-columns: repeat(2, 1fr);
    }
}




@media screen and (max-width:925px) {
    .title-label {
        font-size: 12px;
    }
}
/* --------------------------------------------------------------------
    826px
-------------------------------------------------------------------- */
/* レスポンシブ対応 */
@media screen and (max-width:830px) {
    .liquid img {
        width: 85%;
    }
    .card-image iframe {
        max-width: 100%;
    }
}



/* --------------------------------------------------------------------
    768px
-------------------------------------------------------------------- */
@media screen and (max-width: 768px){
    .container {
        padding: 15px;
    }

    .header h1 {
        font-size: 28px;
    }

    .intro-text {
        font-size: 12px;
        padding: 12px;
    }

    .vending-machine {
        padding: 30px 10px 15px;
        border-radius: 10px;
    }

    .price-display {
        flex-direction: column;
        font-size: 12px;
        padding: 8px;
    }

    .scroll-hint {
        font-size: 10px;
        padding: 8px;
    }

    .products-container {
        max-height: 450px;
        border: 2px solid rgba(255, 255, 255, 0.3);
    }

    .products-container::-webkit-scrollbar {
        width: 6px;
    }

    .drinks-display {
        gap: 0.8em;
        padding: 15px 1em;
    }

    .product-slot::before {
        font-size: 8px;
        padding: 2px 4px;
    }

    .drink-can {
        border-radius: 6px;
    }

    .liquid {
        font-size: 12px;
    }

    .vending-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .vending-btn span:first-child {
        width: 10px;
        height: 10px;
    }

    .dispenser-area {
        min-height: 150px;
        border: 2px solid #666;
    }

    .dispenser-area::before {
        top: 5px;
        font-size: 10px;
        padding: 3px 10px;
    }

    .dispenser {
        margin: 30px auto 15px;
    }

    .card {
        border: 4px solid var(--vending-red);
        padding: 15px;
    }

    .card-title { font-size: 18px; }

    .card-url, .card-header { font-size: 11px; }

    .card-text, .card-date, .card-author { font-size: 12px; }

    .ad-section { padding: 20px 15px; }
    
    .ad-text { font-size: 14px; }

    
    .ad-button img {
        max-width: 80%;
    }

    .updates {
        padding: 15px;
    }

    #updatesList {
        max-height: calc(1.5 * 80px);
        padding-right: 5px;
    }

    .update-item {
        font-size: 11px;
        flex-direction: column;
        gap: 5px;
    }
}



/* --------------------------------------------------------------------
    480px
-------------------------------------------------------------------- */
@media screen and (max-width: 480px) {
    .vending-machine {
        margin: 30px 0.5em;
    }

    .products-container {
        max-height: 400px;
    }

    .drinks-display {
        grid-template-columns: repeat(2, 1fr);
        padding: 12px;
    }

    .liquid img {
        width: 90%;
    }

    .title-label {
        font-size: 10px;
    }

    .vending-btn {
        min-height: 30px;
        min-width: 0;
    }

    .dispenser-area::before {
        width: 88%;
    }

    .coin-slot-graphic {
        width: 35px;
        height: 5px;
    }

    /* 価格表示パネル */
    .price-display {
        align-items: center;
        background: url(../images/bouya-goron-mini.png) no-repeat;
        background-color: #fff;
        background-size: contain;
        width: 50%;
        font-size: 10pt;
    }
    .price-display p {
        display: none;
    }

    .bill-slot-graphic {
        width: 45px;
        height: 10px;
    }

    .change-tray {
        width: 40px;
        height: 12px;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }
    body {
        min-width: 1075px;
    }
    .to-top {
        display: none;
    }
}