/* KOジャパン トップページ リニューアル（PC） */

body.top-renewal-body {
    background: #1c1c1c;
    min-width: 0;
}

body.top-renewal-body .maptop_btn {
    display: none;
}

body.top-renewal-body .shell {
    width: 100%;
    max-width: none;
}

body.top-renewal-body .main {
    width: 100% !important;
    max-width: none;
    padding: 0;
    overflow: visible;
}

.top-renewal {
    width: 100%;
    margin: 0;
}

/* Figma 1440×1024 ステージ（背景とオーバーレイを同一座標系に固定） */
.top-renewal__stage {
    container-type: size;
    container-name: top-stage;
    position: relative;
    width: 100%;
    aspect-ratio: 1440 / 1024;
    margin: 0 auto;
}

.top-renewal__stage-bg {
    display: block;
    height: 100%;
    left: 0;
    object-fit: fill;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0;
}

/* Figma 481:148 — 開いた本（top 613 / 1024, height 411） */
.top-renewal__book-bg {
    height: 40.13671875%;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    top: 59.86328125%;
    width: 100%;
    z-index: 5;
}

.top-renewal__book-bg img {
    display: block;
    height: 105.32%;
    left: -2.38%;
    max-width: none;
    object-fit: fill;
    position: absolute;
    top: -1.89%;
    width: 103.43%;
}

/* Figma 488:6 — こぐまby航海士（69, 501 / 101×101） */
.top-renewal__mascot {
    display: block;
    height: 9.86328125%;
    left: 4.79166667%;
    object-fit: contain;
    pointer-events: none;
    position: absolute;
    top: 48.92578125%;
    width: 7.01388889%;
    z-index: 18;
}

/* --- 下部（開いた本）: 左=SNS+NEW RELEASE / 右=NEWS --- */
/* Figma: SNS見出しを本の上端寄りに */
.top-renewal__book {
    position: absolute;
    left: 4.5%;
    right: 5.5%;
    top: 61%;
    bottom: 2%;
    z-index: 15;
    pointer-events: auto;
    display: grid;
    grid-template-columns: 46% 1fr;
    grid-template-rows: 1fr;
    column-gap: 7%;
    align-content: stretch;
    overflow: hidden;
    box-sizing: border-box;
}

.top-renewal__book-left {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
    overflow: hidden;
}

.top-renewal__section-title {
    margin: 0 0 6px;
    border: none;
    padding: 0;
    background: none;
}

.top-renewal__section-title img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
}

/* SNS（左ページ・上） */
.top-renewal__sns {
    overflow: visible;
    align-self: start;
}

.top-renewal__sns .top-renewal__section-title {
    margin-bottom: 4px;
}

body.top-renewal-body .top-renewal .sns_block {
    padding: 0;
    margin: 0;
}

body.top-renewal-body .top-renewal .sns_col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-height: 100%;
    overflow: visible;
}

body.top-renewal-body .top-renewal .sns_col li {
    width: auto;
    margin: 0;
    float: none;
}

body.top-renewal-body .top-renewal .sns_col li a {
    align-items: center;
    color: #3d2e1f;
    display: flex;
    font-size: 1.07cqh;
    gap: 0.59cqh;
    line-height: 1.45;
    padding: 0;
    text-decoration: none;
}

body.top-renewal-body .top-renewal .sns_col li a:hover {
    opacity: 0.75;
}

body.top-renewal-body .top-renewal .sns_col li a img {
    flex-shrink: 0;
    height: 1.95cqh;
    margin-top: 0;
    object-fit: contain;
    width: 1.95cqh;
}

body.top-renewal-body .top-renewal .sns_col li a p {
    display: block;
    margin: 0;
    align-items: unset;
    gap: 0;
}

body.top-renewal-body .top-renewal .sns_col li a p:after {
    display: none;
    content: none;
}

body.top-renewal-body .top-renewal .sns_col_detail_txt {
    color: #3d2e1f;
    flex: 1;
    font-size: 1.07cqh;
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
    max-width: none;
    min-width: 0;
    white-space: normal;
    width: auto;
    word-break: break-word;
}

/* NEWS（右ページ） */
.top-renewal__news {
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding-left: 3%;
    padding-right: 2%;
    box-sizing: border-box;
}

.top-renewal__news .top-renewal__section-title {
    flex: 0 0 auto;
}

body.top-renewal-body .top-renewal .information h2 {
    border-bottom: none;
    padding: 0;
    font-size: inherit;
    background: none;
    color: inherit;
}

body.top-renewal-body .top-renewal .information .information_body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    background: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(61, 46, 31, 0.28) transparent;
}

body.top-renewal-body .top-renewal .information .information_body::-webkit-scrollbar {
    width: 4px;
}

body.top-renewal-body .top-renewal .information .information_body::-webkit-scrollbar-track {
    background: transparent;
}

body.top-renewal-body .top-renewal .information .information_body::-webkit-scrollbar-thumb {
    background: rgba(61, 46, 31, 0.28);
    border-radius: 4px;
}

body.top-renewal-body .top-renewal .information .information_body::-webkit-scrollbar-thumb:hover {
    background: rgba(61, 46, 31, 0.45);
}

body.top-renewal-body .top-renewal .information .information_body_in {
    padding: 0;
    background: none;
}

body.top-renewal-body .top-renewal .information .information_body dl {
    background: none;
    list-style: none;
    margin: 0 0 8px;
    padding: 0 0 6px;
    border-bottom: 1px solid rgba(61, 46, 31, 0.15);
}

body.top-renewal-body .top-renewal .information .information_body dl:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

body.top-renewal-body .top-renewal .information .information_body dl dt {
    color: #3d2e1f;
    font-size: 1.45cqh;
    font-weight: bold;
    line-height: 1.4;
}

body.top-renewal-body .top-renewal .information .information_body dl dd {
    color: #5a4a38;
    font-size: 1.3cqh;
    font-weight: normal;
    line-height: 1.45;
    margin: 0.25cqh 0 0;
    padding: 0;
}

.top-renewal__news .reserve_date {
    color: #7a6a58;
    display: inline-block;
    font-size: 1.3cqh;
    font-weight: normal;
    margin-left: 0.59cqh;
}

/* NEW RELEASE（左ページ・下） */
.top-renewal__release {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

body.top-renewal-body .top-renewal .slide_bnr h2 {
    border-bottom: none;
    padding: 0;
    font-size: inherit;
    background: none;
}

body.top-renewal-body .top-renewal .slide_bnr .slider {
    margin: 0;
}

.top-renewal__release .top-renewal__section-title {
    margin-bottom: 2px;
    flex: 0 0 auto;
}

.top-renewal__release-slider {
    flex: 1;
    min-height: 0;
    margin: 0;
    overflow: hidden;
}

body.top-renewal-body .top-renewal__release-slider.slick-slider {
    padding: 0;
}

.top-renewal__release-slider .slick-list {
    overflow: hidden;
    margin: 0 -4px;
}

.top-renewal__release-slider .slider-img {
    margin: 0 4px;
    padding: 0;
}

.top-renewal__release-slider .slider-img a {
    display: block;
}

.top-renewal__release-slider .slider-img img {
    border-radius: 0.29cqh;
    box-shadow: 0 0.1cqh 0.39cqh rgba(0, 0, 0, 0.2);
    display: block;
    height: auto;
    max-height: 26cqh;
    object-fit: contain;
    width: 100%;
}

.top-renewal__release-slider .slick-dots {
    position: relative;
    bottom: auto;
    margin: 2px 0 0;
    padding: 0;
    line-height: 1;
}

.top-renewal__release-slider .slick-dots li {
    margin: 0 2px;
}

.top-renewal__release-slider .slick-dots li button:before {
    font-size: 8px;
    color: #8a6a50;
}

/* バナー（左ページ・非表示寄り。必要時のみ表示） */
.top-renewal__banners {
    display: none;
    grid-column: 1 / -1;
    gap: 8px;
    flex-wrap: wrap;
}

.top-renewal__banners div {
    flex: 1;
    min-width: 120px;
    max-width: 48%;
}

.top-renewal__banners img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

body.top-renewal-body .sns_block h2 {
    border-bottom: none;
    padding: 0;
    font-size: inherit;
    background: none;
    margin: 0;
}

body.top-renewal-body .main .information,
body.top-renewal-body .main .cols {
    overflow: visible;
    padding: 0;
    margin: 0;
}

body.top-renewal-body .wrapper {
    overflow: visible;
}

body.top-renewal-body #footer {
    background: #1c1c1c;
    color: #999;
    border-top: 1px solid #333;
    box-shadow: none;
    margin-top: 0;
    position: relative;
    z-index: 5;
}

body.top-renewal-body #footer p.copy {
    color: #5a5248;
}

/* --- 上部: 地図タイル（ステージ全面）・CTA --- */
.top-renewal__cta {
    height: 100%;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 20;
}

.top-renewal__cta-link {
    position: absolute;
    display: block;
    pointer-events: auto;
    transition: opacity 0.2s;
}

.top-renewal__cta-link:hover {
    opacity: 0.88;
}

.top-renewal__cta-link img {
    display: block;
    height: 100%;
    mix-blend-mode: lighten;
    object-fit: contain;
    object-position: left center;
    width: 100%;
}

/* Figma 137:6 モバイルオーダー（左上巻物） */
.top-renewal__cta-link--order {
    height: 7.8%;
    left: 2.4%;
    top: 7.2%;
    width: 33%;
}

/* Figma 137:9 近くの店舗を探す（下段巻物） */
.top-renewal__cta-link--shop {
    height: 7%;
    left: 4.86%;
    top: 18.6%;
    width: 20.5%;
}

.top-renewal__map {
    height: 100%;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}

.top-renewal__map-tiles-canvas {
    height: 100%;
    pointer-events: none;
    position: relative;
    /* 縮小＋上方向へ移動して本との重なりを解消 */
    transform: translateY(-4.5%) scale(0.88);
    transform-origin: 68% 38%;
    width: 100%;
}

.top-renewal__map-tile {
    position: absolute;
    display: block;
    line-height: 0;
    cursor: pointer;
    outline: none;
    pointer-events: auto;
    background: transparent;
}

.top-renewal__map-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    pointer-events: none;
    transition: filter 0.2s ease;
    background: transparent;
}

.top-renewal__map-tile:hover img,
.top-renewal__map-tile:focus img {
    filter: brightness(1.28) drop-shadow(0 0 8px rgba(255, 255, 255, 0.55));
}

.top-renewal__map-tile:focus-visible {
    outline: 2px solid rgba(233, 30, 99, 0.75);
    outline-offset: 1px;
}

.top-renewal__map-tiles-canvas--preview .top-renewal__map-tile--unmapped {
    cursor: default;
    outline: 1px dashed rgba(255, 255, 255, 0.35);
    outline-offset: -1px;
}

.top-renewal__map-tile__node-id {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    padding: 1px 3px;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 700;
    color: #111;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 2px;
    pointer-events: none;
    white-space: nowrap;
}

.top-renewal__map-region {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.15em;
    pointer-events: none;
    z-index: 3;
    color: #1a1a1a;
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    line-height: 1.35;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.85);
    text-align: left;
    /* 親の scale(0.88) を打ち消してラベルを元サイズに戻す */
    transform: scale(1.13636364);
    transform-origin: top left;
}

.top-renewal__map-region__title {
    font-size: 1.46cqh;
    font-weight: 700;
    margin: 0;
    pointer-events: auto;
}

.top-renewal__map-region__title-link {
    color: inherit;
    text-decoration: none;
}

.top-renewal__map-region__title-link:hover {
    text-decoration: underline;
}

.top-renewal__map-region__prefs {
    color: #fff;
    font-size: 1.17cqh;
    font-weight: 400;
    margin: 0;
    pointer-events: auto;
    text-shadow: 0 0 0.39cqh rgba(0, 0, 0, 0.65), 0 0.1cqh 0.2cqh rgba(0, 0, 0, 0.45);
    white-space: normal;
}

.top-renewal__map-region__pref-link {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.top-renewal__map-region__pref-link:hover {
    text-decoration: underline;
}

.top-renewal__map-region__sep {
    opacity: 0.75;
}

.top-renewal__map-region--hokkaido .top-renewal__map-region__title { color: #2f6fd6; }
.top-renewal__map-region--tohoku .top-renewal__map-region__title { color: #4a9fd4; }
.top-renewal__map-region--hokuriku .top-renewal__map-region__title { color: #5cb8a8; }
.top-renewal__map-region--kanto .top-renewal__map-region__title { color: #8bc34a; }
.top-renewal__map-region--tokai .top-renewal__map-region__title { color: #43a047; }
.top-renewal__map-region--kansai .top-renewal__map-region__title { color: #7cb342; }
.top-renewal__map-region--chugoku .top-renewal__map-region__title { color: #c0ca33; }
.top-renewal__map-region--sikoku .top-renewal__map-region__title { color: #ffb300; }
.top-renewal__map-region--kyusyu-okinawa .top-renewal__map-region__title { color: #fb8c00; }

.top-renewal__map-region--hokkaido {
    text-align: right;
}

body.top-renewal-body .maptop_btn {
    display: none;
}

@supports not (height: 1cqh) {
  .top-renewal__map-region__title { font-size: 1.05vw; }
  .top-renewal__map-region__prefs { font-size: 0.82vw; }
  body.top-renewal-body .top-renewal .sns_col li a,
  body.top-renewal-body .top-renewal .sns_col_detail_txt { font-size: 0.76vw; }
  body.top-renewal-body .top-renewal .information .information_body dl dd,
  .top-renewal__news .reserve_date { font-size: 0.92vw; }
  body.top-renewal-body .top-renewal .information .information_body dl dt { font-size: 1.02vw; }
  body.top-renewal-body .top-renewal .sns_col li a img { height: 1.39vw; width: 1.39vw; }
  .top-renewal__release-slider .slider-img img { max-height: 18.5vw; }
}
