/* KOジャパン 店舗詳細 リニューアル（PC） Figma 172:67 準拠 */

body.tenpo-renewal-body {
    /* 旧 cqh 相当（幅基準）。ステージをコンテンツで伸ばせるようにする */
    --tenpo-u: calc(100vw * 1024 / 1440 / 100);
    min-width: 0;
}

body.tenpo-renewal-body .wrapper {
    overflow: visible;
    width: 100%;
    max-width: none;
}

body.tenpo-renewal-body .shell {
    width: 100%;
    max-width: none;
    margin: 0;
}

body.tenpo-renewal-body .main {
    width: 100% !important;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: visible;
}

body.tenpo-renewal-body #footer {
    background: #1c1c1c;
    color: #999;
    border-top: 1px solid #333;
    box-shadow: none;
    margin-top: 0;
    position: relative;
    z-index: 5;
    width: 100%;
}

body.tenpo-renewal-body #footer .shell {
    width: 100%;
    max-width: none;
}

body.tenpo-renewal-body #footer p.copy {
    color: #5a5248;
}

body.tenpo-renewal-body .maptop_btn,
body.tenpo-renewal-body .topicPath {
    display: none;
}

/* --- ページキャンバス（Figma 1440×1024 ステージ） --- */
.tenpo-renewal {
    width: 100%;
    margin: 0;
    color: #3d2e1f;
}

body.tenpo-renewal-body .pc-renewal__stage {
    aspect-ratio: auto;
    /* マージン相殺で上下に body 色の帯が出るのを防ぐ */
    border-bottom: 1px solid transparent;
    border-top: 1px solid transparent;
    container-type: normal;
    height: auto;
    min-height: calc(100vw * 1024 / 1440);
}

/* フローレイアウトのステージでは JS スペーサー不要 */
body.tenpo-renewal-body .pc-renewal__stage-tail {
    display: none !important;
}

/* ステージが伸びてもヘッダー寸法を維持（cqh 非依存） */
body.tenpo-renewal-body .pc-renewal__header--stage {
    height: calc(11.23 * var(--tenpo-u));
}

body.tenpo-renewal-body .pc-renewal__header--stage .pc-renewal__logo img {
    height: calc(7.62 * var(--tenpo-u));
}

body.tenpo-renewal-body .pc-renewal__header--stage .pc-renewal__tagline--text {
    font-size: calc(1.95 * var(--tenpo-u));
    margin-top: calc(0.39 * var(--tenpo-u));
}

body.tenpo-renewal-body .pc-renewal__header--stage .pc-renewal__account-badge {
    height: calc(4.2 * var(--tenpo-u));
    width: calc(4.2 * var(--tenpo-u));
}

body.tenpo-renewal-body .pc-renewal__header--stage .pc-renewal__account-icon {
    height: calc(2.6 * var(--tenpo-u));
    width: calc(2.6 * var(--tenpo-u));
}

body.tenpo-renewal-body .pc-renewal__header--stage .pc-renewal__account-label {
    font-size: calc(2 * var(--tenpo-u));
}

/* --- メインコンテンツ（左右ペア） --- */
.tenpo-renewal__content {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: calc(2.73 * var(--tenpo-u));
    /* margin ではなく padding でヘッダー分を確保（相殺防止） */
    padding: calc(11.5 * var(--tenpo-u)) 3.47% calc(3 * var(--tenpo-u)) 5.28%;
    position: relative;
    z-index: 2;
}

.tenpo-renewal__shop-name {
    align-items: center;
    color: #2a2018;
    display: flex;
    flex-wrap: wrap;
    font-size: calc(3.52 * var(--tenpo-u));
    font-weight: 700;
    gap: calc(0.78 * var(--tenpo-u)) 12px;
    letter-spacing: 0.02em;
    line-height: 1.25;
    margin: 0 0 0 52.74%;
    width: 47.26%;
}

.tenpo-renewal__sale-badge {
    background: #3d2e1f;
    border-radius: 2px;
    color: #f5f0e6;
    display: inline-block;
    font-size: calc(1.17 * var(--tenpo-u));
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
    padding: calc(0.49 * var(--tenpo-u)) calc(0.78 * var(--tenpo-u));
    animation: tenpo-sale-pulse 1.8s ease-in-out infinite;
}

@keyframes tenpo-sale-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.82; transform: scale(1.04); }
}

.tenpo-renewal__sale--active .tenpo-renewal__panel--sale {
    border: 2px solid #3d2e1f;
    background-color: rgba(255, 252, 245, 0.55);
}

.tenpo-renewal__sale-now {
    margin-bottom: calc(1.37 * var(--tenpo-u));
    padding-bottom: calc(1.37 * var(--tenpo-u));
    border-bottom: 1px dashed rgba(61, 46, 31, 0.35);
}

.tenpo-renewal__sale-now-label {
    background: #3d2e1f;
    color: #f5f0e6;
    display: inline-block;
    font-size: calc(1.27 * var(--tenpo-u));
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: calc(0.78 * var(--tenpo-u));
    padding: calc(0.29 * var(--tenpo-u)) calc(0.78 * var(--tenpo-u));
}

.tenpo-renewal__sale-now-body {
    font-size: calc(1.46 * var(--tenpo-u));
    font-weight: 700;
    line-height: 1.6;
}

.tenpo-renewal__columns {
    align-items: start;
    display: grid;
    gap: calc(2.73 * var(--tenpo-u)) 0;
    grid-template-columns: 45.89% 6.85% 47.26%;
}

.tenpo-renewal__col--left {
    display: flex;
    flex-direction: column;
    gap: calc(2.73 * var(--tenpo-u));
    grid-column: 1;
    min-width: 0;
}

.tenpo-renewal__col--right {
    display: flex;
    flex-direction: column;
    gap: calc(2.73 * var(--tenpo-u));
    grid-column: 3;
    min-width: 0;
}

.tenpo-renewal__block {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tenpo-renewal__pair {
    align-items: stretch;
    display: grid;
    grid-template-columns: 45.89% 6.85% 47.26%;
}

.tenpo-renewal__pair > .tenpo-renewal__cell:first-child {
    grid-column: 1;
}

.tenpo-renewal__pair > .tenpo-renewal__cell:nth-child(2) {
    grid-column: 3;
}

.tenpo-renewal__cell {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
}

.tenpo-renewal__section-label {
    flex: 0 0 auto;
    line-height: 0;
    margin: 0;
}

.tenpo-renewal__section-label img {
    display: block;
    height: auto;
    max-height: calc(3.52 * var(--tenpo-u));
    max-width: 100%;
    width: auto;
}

.tenpo-renewal__map {
    background: #e8e0d4;
    border: 1px solid #3d2e1f;
    box-sizing: border-box;
    flex: 0 0 auto;
    margin-top: calc(1.17 * var(--tenpo-u));
    overflow: hidden;
    position: relative;
    width: 100%;
    /* iframe 固定高より枠だけ伸びないよう比率で高さを決める */
    aspect-ratio: 16 / 10;
}

.tenpo-renewal__map-embed,
.tenpo-renewal__map-leaflet {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.tenpo-renewal__map-embed iframe {
    display: block;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    max-height: none !important;
    min-height: 0 !important;
}

.tenpo-renewal__photo-grid {
    background: transparent;
    border: none;
    box-sizing: border-box;
    display: grid;
    flex: 1 1 auto;
    gap: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    margin-top: calc(0.98 * var(--tenpo-u));
    min-height: calc(36 * var(--tenpo-u));
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* 十字は疑似要素（セルサイズを変えないので上下の見え方が揃う） */
.tenpo-renewal__photo-grid::before,
.tenpo-renewal__photo-grid::after {
    background: #1a120c;
    content: "";
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.tenpo-renewal__photo-grid::before {
    bottom: 0;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 2px;
}

.tenpo-renewal__photo-grid::after {
    height: 2px;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.tenpo-renewal__photo-cell {
    background: transparent;
    min-height: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.tenpo-renewal__photo-cell img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.tenpo-renewal__info {
    background: rgba(255, 252, 245, 0.12);
    border: 1px solid #3d2e1f;
    box-sizing: border-box;
    flex: 1 1 auto;
    margin: calc(1.17 * var(--tenpo-u)) 0 0;
    min-height: 0;
    padding: calc(1.56 * var(--tenpo-u)) 1.25%;
}

.tenpo-renewal__info-row {
    align-items: flex-start;
    border-bottom: 1px solid rgba(61, 46, 31, 0.2);
    display: flex;
    font-size: calc(1.66 * var(--tenpo-u));
    gap: 0.83%;
    line-height: 1.55;
    padding: calc(0.78 * var(--tenpo-u)) 0;
}

.tenpo-renewal__info-row:last-child {
    border-bottom: none;
}

.tenpo-renewal__info-row dt,
.tenpo-renewal__info-label {
    background: #3d2e1f;
    box-sizing: border-box;
    color: #f5f0e6;
    flex: 0 0 9.17%;
    font-size: calc(1.46 * var(--tenpo-u));
    font-weight: 700;
    margin: 0;
    max-width: 152px;
    padding: calc(0.29 * var(--tenpo-u)) 0.56%;
    text-align: center;
}

.tenpo-renewal__info-row dt i,
.tenpo-renewal__info-label i {
    margin-right: 4px;
    font-size: 0.9em;
}

.tenpo-renewal__info-row dd,
.tenpo-renewal__info-value {
    margin: 0;
    flex: 1;
    min-width: 0;
    word-break: break-all;
}

.tenpo-renewal__info-row dd a,
.tenpo-renewal__info-value a {
    color: #3d2e1f;
    text-decoration: underline;
}

.tenpo-renewal__info-row dd a:hover,
.tenpo-renewal__info-value a:hover {
    opacity: 0.75;
}

.tenpo-renewal__info-row--sns dd,
.tenpo-renewal__info-row--sns .tenpo-renewal__info-value {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.tenpo-renewal__sns-link {
    color: #3d2e1f;
    font-size: calc(1.17 * var(--tenpo-u));
    font-weight: 700;
    text-decoration: none;
}

.tenpo-renewal__sns-link i {
    margin-right: 3px;
}

.tenpo-renewal__sns-link:hover {
    text-decoration: underline;
}

.tenpo-renewal__info-row--comment dt,
.tenpo-renewal__info-row--comment .tenpo-renewal__info-label {
    flex: 0 0 auto;
    min-width: 5.56%;
}

/* --- セール・お知らせ --- */
.tenpo-renewal__sale {
    width: 100%;
}

.tenpo-renewal__panel {
    border-top: 2px solid #3d2e1f;
    box-sizing: border-box;
    color: #3d2e1f;
    flex: 1 1 auto;
    font-size: calc(1.37 * var(--tenpo-u));
    line-height: 1.65;
    margin-top: calc(0.98 * var(--tenpo-u));
    min-height: 0;
    overflow: auto;
    padding: calc(1.37 * var(--tenpo-u)) 1.11%;
}

.tenpo-renewal__panel--sale {
    background: url("../img/tenpo_renewal/panel-sale.png") no-repeat left top;
    background-size: 100% 2px;
}

.tenpo-renewal__panel--news {
    background: url("../img/tenpo_renewal/panel-news.png") no-repeat left top;
    background-size: 100% 2px;
}

.tenpo-renewal__event + .tenpo-renewal__event,
.tenpo-renewal__news-item + .tenpo-renewal__news-item {
    border-top: 1px dashed rgba(61, 46, 31, 0.35);
    margin-top: calc(1.56 * var(--tenpo-u));
    padding-top: calc(1.56 * var(--tenpo-u));
}

.tenpo-renewal__event-title,
.tenpo-renewal__news-title {
    font-size: calc(1.46 * var(--tenpo-u));
    font-weight: 700;
    margin: 0 0 calc(0.39 * var(--tenpo-u));
}

.tenpo-renewal__event-date,
.tenpo-renewal__news-date {
    color: #6b5a48;
    font-size: calc(1.17 * var(--tenpo-u));
    margin: 0 0 calc(0.78 * var(--tenpo-u));
}

.tenpo-renewal__event-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 8px;
}

.tenpo-renewal__event-body,
.tenpo-renewal__news-body {
    word-break: break-word;
}

.tenpo-renewal__event-body img,
.tenpo-renewal__news-body img {
    max-width: 100%;
    height: auto;
}

/* --- モバイルオーダーフローティング --- */
body.tenpo-renewal-body .floatingmbod_bnr {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 10;
}

body.tenpo-renewal-body .floatingmbod_bnr img {
    max-width: 300px;
    height: auto;
}

@supports not (height: 1cqh) {
  .tenpo-renewal__section-label img { max-height: 2.2vw; }
  .tenpo-renewal__map { aspect-ratio: 16 / 10; }
  .tenpo-renewal__shop-name { font-size: 2.5vw; }
  .tenpo-renewal__info-row { font-size: 1.15vw; }
  .tenpo-renewal__info-label { font-size: 1.05vw; }
  .tenpo-renewal__sns-link { font-size: 0.9vw; }
  .tenpo-renewal__panel { font-size: 0.97vw; }
  .tenpo-renewal__event-title,
  .tenpo-renewal__news-title { font-size: 1.05vw; }
  .tenpo-renewal__event-date,
  .tenpo-renewal__news-date { font-size: 0.85vw; }
}

@media (max-width: 900px) {
    .pc-renewal__header--stage,
    .tenpo-renewal__content,
    .tenpo-renewal__columns,
    .tenpo-renewal__col,
    .tenpo-renewal__pair,
    .tenpo-renewal__cell {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        width: auto;
    }

    .tenpo-renewal__content {
        padding: 8px 4% 24px;
        margin-top: 0;
    }

    .tenpo-renewal__columns,
    .tenpo-renewal__pair {
        display: block;
    }

    .tenpo-renewal__col + .tenpo-renewal__col,
    .tenpo-renewal__cell + .tenpo-renewal__cell {
        margin-top: 24px;
    }

    .tenpo-renewal__shop-name {
        margin-left: 0;
        width: auto;
    }

    .tenpo-renewal__sale {
        margin-left: 0;
        width: auto;
    }

    .tenpo-renewal__map {
        aspect-ratio: 4 / 3;
        min-height: 0;
    }

    .tenpo-renewal__photo-grid {
        grid-template-rows: auto;
        min-height: 200px;
    }

    .tenpo-renewal__photo-cell {
        min-height: 120px;
    }

    .tenpo-renewal__info-row dt,
    .tenpo-renewal__info-label {
        flex: 0 0 100px;
        max-width: none;
    }
}
