:root {
    /* Transitions
       Range: 375px to 430px
    */
    --fs-sm: clamp(0.70rem, -0.49rem + 4.5vw, 0.875rem);
    --fs-base: clamp(0.80rem, -0.56rem + 5.5vw, 1rem);
    --fs-md: clamp(0.90rem, -0.63rem + 6.5vw, 1.125rem);
    --fs-lg: clamp(1.00rem, -0.70rem + 7vw, 1.25rem);
    --fs-xl: clamp(1.15rem, -1.23rem + 10vw, 1.50rem);
}

.content-holder {
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

main {
    margin-top: 66px;
    /* padding-top: 35px !important; */
    position: relative;
    font-family: YakuHanJP, "Noto Sans JP" !important;
    font-style: normal;
}

img {
    max-width: 100%;
}

p {
    font-size: var(--fs-md);
    font-weight: 550;
}

.page-content {
    width: unset;
    max-width: 430px;
    padding-bottom: 0px;
}


main::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: var(--image-bg) repeat top left / 36px 36px; */
    background: var(--image-bg);
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--color-main);
    z-index: -2;
}

@media (min-width: 500px) {

    main::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        /* background: var(--image-bg) repeat top left / 36px 36px; */
        background: var(--image-bg);
        background-size: cover;
        background-repeat: no-repeat;
        background-color: var(--color-main);
        z-index: -2;
    }
}



.content-holder {
    position: relative;
}

.shinkansen {
    position: relative;
    top: 20px;
    left: 20px;
}

.shinkansen img {
    width: 380px;
    left: 20px;
    height: auto;
    z-index: 2;
}

.placeName {
    /* display: flex; */
    align-items: center;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.itemDescription {
    text-align: left;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 15px;
    padding: 10px;
}

.titleText {
    display: flex;
    align-items: center;
    text-align: left;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    margin-left: 10px;
}

.placeName svg {
    margin-top: 1px;
    margin-right: 10px;
    width: 18px;
    z-index: 10;
}


ul {
    margin: 0;
    padding: 0;
    font-size: var(--fs-sm);
    list-style: none;
    -webkit-font-feature-settings: 'palt' 1;
    font-feature-settings: 'palt' 1;
}

ul.caution {
    margin: 20px 0 0 0;
    padding: 0;
    list-style: none;
    font-size: var(--fs-sm);
    -webkit-font-feature-settings: 'palt' 1;
    font-feature-settings: 'palt' 1;
}

ul.caution li {
    position: relative;
    padding: 0 0 0 1.1em;
}

ul.caution li::after {
    position: absolute;
    display: block;
    content: "※";
    top: 0;
    left: 0;
}

ul.caution li {
    list-style: none;
}


/* Exchange places */

.location-info {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.location-title {
    text-align: center;
    margin-bottom: 20px;
}

.spacer {
    margin: 20px 0;
}

.location-details {
    display: flex;
    margin-bottom: 10px;
    text-align: left;
}

.detail-label {
    min-width: 100px;
    font-size: 14px;
    font-weight: 600;
    text-align: justify;
    text-align-last: justify;
}


.detail-value {
    margin-left: 10px;
    flex-grow: 1;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.detail-value a {
    text-decoration: underline;
    color: inherit;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: inline-block;
    max-width: 100%;
}

.detail-value a:hover {
    color: #007BFF;
}


.thumbnails-container {
    display: grid;
    grid-template-columns: repeat(3, 30%);
    grid-template-rows: repeat(3, auto);
    grid-gap: 0px 10px;
    justify-content: center;
    padding: 10px;
}

.thumbnail {
    width: 100%;
    height: auto;
    overflow: hidden;
    margin-bottom: 10px;
}

.thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnails-container2 {
    display: grid;
    grid-template-columns: repeat(3, 30%);
    grid-template-rows: repeat(2, auto);
    grid-gap: 10px;
    justify-content: center;
    padding: 0px 10px;
}

.code-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 2px solid var(--color-tokai);
    border-radius: 10px;
    padding: 12px 16px;
    max-width: 600px;
    margin: 10px auto;
}

.code-text {
    font-family: var(--font-code);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-tokai);
    background: #f8f8f8;
    padding: 4px 8px;
    border-radius: 4px;
    word-break: break-all;
}

.copyButton {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem;
    background: var(--color-tokai);
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.copyButton:hover {
    background: var(--color-tokai);
}

.copy-icon {
    width: 16px;
    height: 16px;
}


/* collaboration css */



.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 300px;
    border-radius: 20px;
    text-align: center;
}

.modal-content button {
    margin-top: 20px;
    margin-right: 10px;
    margin-left: 10px;
    padding: 10px 20px;
    border: none;
    text-align: center;
    font-size: 1.125rem;
    transition: 0.3s;
    border-radius: 10px;
    width: 100px;
}

.modal-content #yesBtn {
    background-color: var(--color-sub1);
    color: white;
}

.modal-content #yesBtn:hover {
    background-color: #eb6c00;
}

.modal-content #noBtn {
    background-color: gray;
    color: white;
}

.modal-content #noBtn:hover {
    background-color: darkgray;
}

.toOshitabi {
    color: blue;
    text-decoration: underline;
}


/* novelity */

.novelity-location {
    width: 100%;
    margin: auto;
    border: 2px solid var(--color-sub1);
    background: white;
}

.novelity-title {
    font-size: 1.125rem;
    font-weight: 700;
    padding: 10px;
}

.novelity-border-full {
    margin: 1% auto 10px;
    width: 100%;
}

.novelity-city {
    font-size: 1.25rem;
    font-weight: 700;
    padding: 2px;
    border: 3px solid var(--color-sub4);
    border-radius: 50px;
    width: 40%;
    margin: auto;
}

.novelity-place-inner {
    margin: 10px auto;
}

.novelity-place {
    font-size: 1.25rem;
    font-weight: 700;
    padding: 10px;
}

.novelity-hours {
    font-size: 1rem;
    font-weight: 700;
}

.novelity-caution {
    margin: auto;
    text-align: left;
    padding: 10px 10px 20px !important;
}


.stamp-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px auto;
}

.stamp {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stamp img {
    max-width: 100%;
    max-height: 100%;
}

/* Functional Classes */
.text-sm {
    font-size: var(--fs-sm);
}

.text-base {
    font-size: var(--fs-base);
}

.text-md {
    font-size: var(--fs-md);
}

.text-lg {
    font-size: var(--fs-lg);
}

.text-xl {
    font-size: var(--fs-xl);
}

/* Utility for Bold/Weight */
.fw-500 {
    font-weight: 500;
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

/* Voice actor cards */
.voice-actor-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
}

.voice-actor-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px;
    gap: 14px;
    box-sizing: border-box;
}

.voice-actor-card img {
    width: 100px;
    height: auto;
    flex-shrink: 0;
    border-radius: 8px;
    display: block;
}

.voice-actor-card .va-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.voice-actor-card .va-name {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: var(--fs-md);
    color: var(--color-text);
    line-height: 1.4;
    text-align: center;
}

.voice-actor-card .va-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    border-radius: 8px;
    border: 2px solid #000;
    background: #fff;
    font-size: var(--fs-sm);
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 600;
    color: #000;
    box-sizing: border-box;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.fw-800 {
    font-weight: 800;
}

/* ===== How-to toggle ===== */
.how-to-toggle {
    padding: 0 !important;
}

.how-to-toggle-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 14px 18px;
    cursor: pointer;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: var(--fs-md);
    color: var(--color-text);
    list-style: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Hide default marker in all browsers */
.how-to-toggle-summary::-webkit-details-marker {
    display: none;
}

.how-to-toggle-summary::marker {
    display: none;
}

.how-to-toggle-icon {
    font-size: 0.85rem;
    transition: transform 0.25s ease;
    position: absolute;
    right: 18px;
}

details[open] .how-to-toggle-icon {
    transform: rotate(180deg);
}

.how-to-content {
    overflow: hidden;
    display: none;
}

/* ===== How-to section ===== */

.how-to-header {
    width: 100%;
    text-align: center;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: var(--fs-lg);
    padding: 12px 16px;
    box-sizing: border-box;
    letter-spacing: 0.05em;
}

.how-to-header-green {
    background: var(--color-sub1);
}

.how-to-green-text {
    color: var(--color-sub1) !important;
}

.how-to-steps {
    display: flex;
    flex-direction: column;
    padding: 16px 0px 8px;
    gap: 0;
}

.how-to-step {
    display: flex;
    gap: 12px;
    padding-bottom: 20px;
    position: relative;
}

/* Vertical connector line between steps */
.how-to-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 42px;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.step-label {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 800;
    font-size: 0.65rem;
    letter-spacing: 0.02em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 42px;
    flex-shrink: 0;
    padding-top: 2px;
}

.step-num {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.step-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step-desc {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 600;
    font-size: var(--fs-base);
    color: var(--color-text);
    margin: 0;
    line-height: 1.6;
}

.step-demo-btn {
    pointer-events: none;
    opacity: 0.85;
    margin: 4px 0 0 !important;
}

.how-to-access-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96%;
    height: 56px;
    border-radius: 10px;
    border: none;
    background: var(--color-sub1);
    color: #fff;
    font-family: "Noto Sans JP", sans-serif;
    font-size: var(--fs-md);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(53, 49, 255, 0.35);
    -webkit-user-select: none;
    user-select: none;
}

.how-to-access-btn:active {
    transform: scale(0.97);
    box-shadow: 0 1px 4px rgba(12, 1, 136, 0.3);
}



/* from here footer */

footer {
    /* background-color: #f2f2f7; */
    background-color: #fff;
    padding: 10px;
    text-align: center;
    width: auto;
    margin: auto;
    position: relative;
    height: auto;
    overflow-x: hidden;
    margin-top: 20px;
}

.footer-content {
    width: 96%;
    margin: 0 auto;
}

.footer-content h2 {
    margin-bottom: 5px;
    font-size: 1em;
}

.info-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.logo-text {
    display: flex;
    align-items: center;
}

.company-logo {
    flex: 0 0 auto;
    height: 35px;
    width: auto;
    margin-right: 10px;
}


.footer-content p {
    font-size: 0.7em;
    color: #666;
}

.info-section p {
    flex: 1 0 68%;
    text-align: left;
    font-size: 0.65em;
    margin-left: 10px;
}

.footer-content__obc {
    text-align: center;
    font-size: 9px;
    line-height: 15px;
    font-weight: 400;
    letter-spacing: 0.06em;
    padding-top: 17.8px;
    padding-bottom: 22px;
}

.footer-content__voistock {
    display: grid;
    grid-template-columns: 114px 1fr;
    column-gap: 20px;
    row-gap: 9px;
    width: calc(100% - 48px);
    margin: 0 auto;
    padding-bottom: 28px;
}

.footer-content__voistock-text1 {
    grid-column: 1/3;
    font-size: 9px;
    line-height: 15px;
    font-weight: 400;
    letter-spacing: 0.06em;
}

.footer-content__voistock-text2 {
    font-size: 9px;
    line-height: 15px;
    font-weight: 400;
    letter-spacing: 0.06em;
}

.footer-content__button {
    padding-bottom: 15px;
}

.footer-content__notice {
    width: calc(100% - 18px);
    margin: 0 auto;
    font-size: 10px;
    line-height: 20px;
    font-weight: 400;
    letter-spacing: 0.05em;
    padding-bottom: 20px;
}

.footer-content__notice-item {
    padding-left: 1.2em;
    position: relative;
}

.footer-content__notice-item::before {
    content: "※";
    display: block;
    position: absolute;
    left: 0;
}

.footer-content__notice-item a {
    text-decoration: underline;
}

.footer-content__pagetop {
    padding-bottom: 13px;
}

.footer-content__jr {
    padding-top: 4px;
    padding-bottom: 6px;
}

.footer-conent__jr-figure {
    width: 49px;
    margin: 0 auto;
}


.footer-content__jr-copyright {
    font-size: 9px;
    line-height: 15px;
    letter-spacing: 0.06em;
    text-align: center;
}

