@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Kaisei+Opti&family=Zen+Old+Mincho&display=swap');

:root {
    /* Color tokens */
    --primary-color: #DCE0E9;
    --secondary-color: #EEF0F7;

    --footer-color: #B4AB7C;
    --strong-color: ##27353E;
    --btn-color: #69212C;
    --title-color: #665750;
    --text-color: #27353E;
    --white: #ffffff;

    /* Spacing tokens */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Typography tokens */
    --font-base: "Zen Old Mincho", system-ui, -apple-system, sans-serif;
    --font-mono: 'Courier New', monospace;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;

    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Container query units (Phần 3) */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
}

@import url("normalize.css") layer(reset);
@layer normalize, reset, base, components, utilities;

@layer normalize {
    /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

    /* Document
    ========================================================================== */

    /**
    * 1. Correct the line height in all browsers.
    * 2. Prevent adjustments of font size after orientation changes in iOS.
    */

    html {
        line-height: 1.15;
        /* 1 */
        -webkit-text-size-adjust: 100%;
        /* 2 */
    }

    /* Sections
    ========================================================================== */

    /**
    * Remove the margin in all browsers.
    */

    body {
        margin: 0;
    }

    /**
    * Render the `main` element consistently in IE.
    */

    main {
        display: block;
    }

    /**
    * Correct the font size and margin on `h1` elements within `section` and
    * `article` contexts in Chrome, Firefox, and Safari.
    */

    h1 {
        font-size: 2em;
        margin: 0.67em 0;
    }

    /* Grouping content
    ========================================================================== */

    /**
    * 1. Add the correct box sizing in Firefox.
    * 2. Show the overflow in Edge and IE.
    */

    hr {
        box-sizing: content-box;
        /* 1 */
        height: 0;
        /* 1 */
        overflow: visible;
        /* 2 */
    }

    /**
    * 1. Correct the inheritance and scaling of font size in all browsers.
    * 2. Correct the odd `em` font sizing in all browsers.
    */

    pre {
        font-family: monospace, monospace;
        /* 1 */
        font-size: 1em;
        /* 2 */
    }

    /* Text-level semantics
    ========================================================================== */

    /**
    * Remove the gray background on active links in IE 10.
    */

    a {
        background-color: transparent;
    }

    /**
    * 1. Remove the bottom border in Chrome 57-
    * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
    */

    abbr[title] {
        border-bottom: none;
        /* 1 */
        text-decoration: underline;
        /* 2 */
        text-decoration: underline dotted;
        /* 2 */
    }

    /**
    * Add the correct font weight in Chrome, Edge, and Safari.
    */

    b,
    strong {
        font-weight: bolder;
    }

    /**
    * 1. Correct the inheritance and scaling of font size in all browsers.
    * 2. Correct the odd `em` font sizing in all browsers.
    */

    code,
    kbd,
    samp {
        font-family: monospace, monospace;
        /* 1 */
        font-size: 1em;
        /* 2 */
    }

    /**
    * Add the correct font size in all browsers.
    */

    small {
        font-size: 80%;
    }

    /**
    * Prevent `sub` and `sup` elements from affecting the line height in
    * all browsers.
    */

    sub,
    sup {
        font-size: 75%;
        line-height: 0;
        position: relative;
        vertical-align: baseline;
    }

    sub {
        bottom: -0.25em;
    }

    sup {
        top: -0.5em;
    }

    /* Embedded content
    ========================================================================== */

    /**
    * Remove the border on images inside links in IE 10.
    */

    img {
        border-style: none;
    }

    /* Forms
    ========================================================================== */

    /**
    * 1. Change the font styles in all browsers.
    * 2. Remove the margin in Firefox and Safari.
    */

    button,
    input,
    optgroup,
    select,
    textarea {
        font-family: inherit;
        /* 1 */
        font-size: 100%;
        /* 1 */
        line-height: 1.15;
        /* 1 */
        margin: 0;
        /* 2 */
    }

    /**
    * Show the overflow in IE.
    * 1. Show the overflow in Edge.
    */

    button,
    input {
        /* 1 */
        overflow: visible;
    }

    /**
    * Remove the inheritance of text transform in Edge, Firefox, and IE.
    * 1. Remove the inheritance of text transform in Firefox.
    */

    button,
    select {
        /* 1 */
        text-transform: none;
    }

    /**
    * Correct the inability to style clickable types in iOS and Safari.
    */

    button,
    [type="button"],
    [type="reset"],
    [type="submit"] {
        -webkit-appearance: button;
    }

    /**
    * Remove the inner border and padding in Firefox.
    */

    button::-moz-focus-inner,
    [type="button"]::-moz-focus-inner,
    [type="reset"]::-moz-focus-inner,
    [type="submit"]::-moz-focus-inner {
        border-style: none;
        padding: 0;
    }

    /**
    * Restore the focus styles unset by the previous rule.
    */

    button:-moz-focusring,
    [type="button"]:-moz-focusring,
    [type="reset"]:-moz-focusring,
    [type="submit"]:-moz-focusring {
        outline: 1px dotted ButtonText;
    }

    /**
    * Correct the padding in Firefox.
    */

    fieldset {
        padding: 0.35em 0.75em 0.625em;
    }

    /**
    * 1. Correct the text wrapping in Edge and IE.
    * 2. Correct the color inheritance from `fieldset` elements in IE.
    * 3. Remove the padding so developers are not caught out when they zero out
    *    `fieldset` elements in all browsers.
    */

    legend {
        box-sizing: border-box;
        /* 1 */
        color: inherit;
        /* 2 */
        display: table;
        /* 1 */
        max-width: 100%;
        /* 1 */
        padding: 0;
        /* 3 */
        white-space: normal;
        /* 1 */
    }

    /**
    * Add the correct vertical alignment in Chrome, Firefox, and Opera.
    */

    progress {
        vertical-align: baseline;
    }

    /**
    * Remove the default vertical scrollbar in IE 10+.
    */

    textarea {
        overflow: auto;
    }

    /**
    * 1. Add the correct box sizing in IE 10.
    * 2. Remove the padding in IE 10.
    */

    [type="checkbox"],
    [type="radio"] {
        box-sizing: border-box;
        /* 1 */
        padding: 0;
        /* 2 */
    }

    /**
    * Correct the cursor style of increment and decrement buttons in Chrome.
    */

    [type="number"]::-webkit-inner-spin-button,
    [type="number"]::-webkit-outer-spin-button {
        height: auto;
    }

    /**
    * 1. Correct the odd appearance in Chrome and Safari.
    * 2. Correct the outline style in Safari.
    */

    [type="search"] {
        -webkit-appearance: textfield;
        /* 1 */
        outline-offset: -2px;
        /* 2 */
    }

    /**
    * Remove the inner padding in Chrome and Safari on macOS.
    */

    [type="search"]::-webkit-search-decoration {
        -webkit-appearance: none;
    }

    /**
    * 1. Correct the inability to style clickable types in iOS and Safari.
    * 2. Change font properties to `inherit` in Safari.
    */

    ::-webkit-file-upload-button {
        -webkit-appearance: button;
        /* 1 */
        font: inherit;
        /* 2 */
    }

    /* Interactive
    ========================================================================== */

    /*
    * Add the correct display in Edge, IE 10+, and Firefox.
    */

    details {
        display: block;
    }

    /*
    * Add the correct display in all browsers.
    */

    summary {
        display: list-item;
    }

    /* Misc
    ========================================================================== */

    /**
    * Add the correct display in IE 10+.
    */

    template {
        display: none;
    }

    /**
    * Add the correct display in IE 10.
    */

    [hidden] {
        display: none;
    }
}

@layer reset {

    *,
    *::before,
    *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }
}

@layer base {
    html {
        scroll-behavior: smooth;
    }
    body {
        font-family: var(--font-base);
        font-size: var(--text-base);
        line-height: 2;
        letter-spacing: 0.48px;
        color: var(--dark-color);
    }

    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    a:hover {
        opacity: 0.7;
    }

    button {
        cursor: pointer;
        font-family: inherit;
    }

    ul,
    ol,
    li {
        list-style: none;
    }

    .container {
        width: 100%;
        max-width: 1120px;
        margin-inline: auto;
        padding-inline: 20px;
        position: relative;
    }

    section {
        background: var(--primary-color);
        padding-top: 120px;
        position: relative;
    }

    .sp_only {
        display: none;
    }

    .pc_only {
        display: block;
    }

    @media screen and (max-width: 768px) {
        .sp_only {
            display: block;
        }

        .pc_only {
            display: none;
        }
    }
}

@layer components {
    #page {
        overflow: hidden;
    }

    .header-ctn {
        position: absolute !important;
        display: flex;
        justify-content: center;
    }

    .two-col {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        position: relative;
        align-items: center;
        justify-items: center;
        z-index: 2;
    }

    .header-images {
        width: 100%;
    }

    img.header-img {
        width: 100%;
        max-height: 650px;
        object-fit: cover;
    }

    img.intro-img {
        width: 100%;
        max-height: 184px;
        object-fit: cover;
    }

    .intro-title {
        color: var(--title-color);
        text-align: center;
        font-family:
            "Kaisei Opti";
        font-size: 36px;
        font-weight: 500;
        line-height: 1.6;
        /* 57.6px */
        letter-spacing: 1.8px;
        margin-bottom: 40px;
        position: relative;
    }

    p {
        color: var(--text-color);
        text-align: center;
        font-family: "Zen Old Mincho";
        font-size: 1rem;
        line-height: 2;
        letter-spacing: 0.48px;
        position: relative;
        z-index: 2;
    }

    h2 {
        color: var(--title-color);
        text-align: center;
        font-family:
            "Zen Old Mincho";
        font-size: 40px;
        font-weight: 600;
        line-height: 1.6;
        /* 64px */
        grid-column: 2 span;
        margin-bottom: 48px;
    }

    #sunset {
        padding-top: 160px;
    }

    #onsen {
        padding-bottom: 80px;
    }


    .intro-ctn {
        margin-bottom: 80px;
    }

    #plan {
        background: var(--third-color);
        padding-top: 80px;
    }

    #kaiseki {
        background: var(--third-color);
        padding-block: 160px;
    }

    div.three-col {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        column-gap: 16px;
        text-align: center;
    }

    h2.three-col {
        grid-column: 1 / -1;
        margin-bottom: 80px;
    }

    .card {
        grid-column: span 2;
        display: grid;
        grid-template-rows: 1fr auto auto;
    }

    figcaption {
        min-height: 90px;
        display: flex;
        justify-content: center;
        margin-top: 20px;
        font-family: "Zen Old Mincho";
        font-size: 24px;
        font-weight: 700;
        line-height: 130%;
        color: var(--text-color);
    }

    a.btn::before {
        content: "";
        background: var(--btn-color);
        padding: 13px 0 17px;
        color: white;
        width: 100%;
        height: 100%;
        display: block;
        text-align: center;
        font-size: 20px;
        font-family: "Zen Old Mincho";
        line-height: 1;
        /* 20px */
        letter-spacing: 0.6px;
        border-radius: 40px;
        box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.25);
    }

    a.stay-btn::before {
        content: "> 宿泊プランはこちら";
    }

    a.detail-btn::before {
        content: "> 詳細はこちら";
    }

    span.info {
        margin: 20px auto 40px;
        color: var(--text-color);
    }

    #bottom {
        padding: 0;
    }

    footer {
        background: var(--footer-color);
        color: white;
        padding-top: 60px;
    }

    .footer-ctn {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .logo {
        width: 218px;
    }

    h3.branch {
        font-size: 24px;
        font-weight: 700;
        line-height: 27.2px;
        /* 113.333% */
        letter-spacing: 3.12px;
        margin-top: 22px;
    }

    address.address {
        text-align: center;
        font-size: 16px;
        line-height: 150%;
        /* 24px */
        letter-spacing: 2.08px;
    }

    a.access-btn {
        width: 100%;
        max-width: 435px;
        text-align: center;
        background: white;
        height: 70px;
        border-radius: 50px;
        color: var(--footer-color);
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 20px;
        font-weight: 600;
        line-height: 40.8px;
        /* 204% */
        letter-spacing: 0.6px;
        margin-top: 50px;
    }

    a.footer-nav {
        font-family: Inter;
        font-size: 16px;
        font-weight: 500;
        line-height: 27.2px;
        /* 170% */
        padding-inline: 16px;
        border-left: 0.5px solid;
    }

    a.footer-nav:last-of-type {
        border-right: 0.5px solid;
    }


    .social {
        margin-top: 40px;
    }

    nav.footer-nav {
        margin-top: 28px;
        margin-bottom: 90px;
    }

    .copyright {
        font-size: 12px;
        text-align: center;
        background: #cccccc;
        min-height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 8px;
    }

    img.header-title {
        width: 50vw;
        max-width: 615px;
    }

    h2.intro-title::before {
        content: "";
        width: 45px;
        height: 45px;
        position: absolute;
        background: url(../icons/snow3.svg);
        bottom: 10px;
        right: calc(50% - 240px);
    }

    h2.intro-title::after {
        content: "";
        width: 31px;
        height: 31px;
        position: absolute;
        background: url(../icons/snow2.svg);
        bottom: 60px;
        right: calc(50% - 260px);
    }

    img.icon {
        position: absolute;
        bottom: -80px;
    }

    img.intro-icon1 {
        transform: translateX(-150%);
    }

    img.intro-icon2 {
        transform: translateX(-50%);
    }

    img.intro-icon3 {
        right: 0;
        transform: translateX(50%);
    }

    img.intro-icon4 {
        right: 0;
        transform: translateX(150%);
    }

    img.sunset-icon1 {
        top: 0;
        left: -12px;
    }

    img.sunset-icon2 {
        top: 32px;
        left: 112px;
    }

    img.sunset-icon3 {
        width: 138px;
        top: 56px;
        right: -12px;
    }

    img.sunset-icon4 {
        top: 56px;
        right: 72px;
    }

    img.sunrise-icon1 {
        top: -40px;
        left: -36px;
    }

    img.sunrise-icon2 {
        top: 58px;
        left: 72px;
    }

    img.sunrise-icon3 {
        width: 126px;
        bottom: -28px;
        right: 76px;
        z-index: 1;
    }

    img.sunrise-icon4 {
        bottom: -72px;
        right: 16px;
        z-index: 1;
    }

    img.night-icon1 {
        top: 152px;
        left: -8px;
    }

    img.night-icon2 {
        top: 186px;
        left: 110px;
    }

    img.night-icon3 {
        width: 138px;
        top: 200px;
        right: -12px;
    }

    img.night-icon4 {
        top: 200px;
        right: 72px;
    }

    img.late-icon1 {
        top: -50px;
        left: -32px;
    }

    img.late-icon2 {
        top: 32px;
        left: 80px;
    }

    img.late-icon3 {
        width: 126px;
        bottom: -128px;
        right: 80px;
        z-index: 1;
    }

    img.late-icon4 {
        bottom: -176px;
        right: 16px;
        z-index: 1;
    }

    img.onsen-icon1 {
        top: 380px;
        left: -8px;
    }

    img.onsen-icon2 {
        top: 412px;
        left: 110px;
    }

    img.onsen-icon3 {
        width: 126px;
        top: 440px;
        right: -8px;
    }

    img.onsen-icon4 {
        top: 450px;
        right: 68px;
    }

    img.bottom-img {
        width: 100%;
        max-height: 350px;
        object-fit: cover;
    }

    img.card {
        width: 100%;
    }

    .arrow {
        position: fixed;
        bottom: 32px;
        right: 32px;
        width: 48px;
        height: 48px;
        z-index: 100;
    }

    .fade {
        opacity: 0;
        transform: translateY(-50px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .fade.fade-in {
        opacity: 1;
        transform: translateY(0);
    }

    @media screen and (max-width: 768px) {
        img.header-title {
            width: 100%;
        }

        .container {
            padding-inline: 24px;
        }

        .header-images {
            height: 340px;
        }

        figure.header-img {
            display: block;
            height: 100%;
        }

        img.header-img {
            height: 100%;
        }

        h2 {
            grid-column: unset;
            font-size: 24px;
        }

        .two-col {
            grid-template-columns: 1fr;
        }

        h2.intro-title {
            font-size: 24px;
        }

        div.three-col {
            grid-template-columns: 1fr;
            row-gap: 40px;
        }

        div.three-col .card {
            grid-column: unset!important;
        }

        div.three-col h2 {
            margin-bottom: 0;
        }

        .intro-ctn {
            margin-bottom: 120px;
        }

        .footer-nav {
            display: flex;
            flex-direction: column;
            width: 100%;
        }

        a.footer-nav {
            width: 100%;
            padding-block: 16px;
            padding-inline: 0;
            text-align: center;
            border-left: none;
            border-top: 0.5px solid;
        }

        a.footer-nav:last-of-type {
            border-right: none;
            border-bottom: 0.5px solid;
        }

        img.icon {
            bottom: -120px;
        }


        img.intro-icon1 {
            display: none;
        }

        img.intro-icon2 {
            display: none;
        }

        img.intro-icon3 {
            width: 59px;
            right: 16px;
            transform: translateX(-100%);
        }

        img.intro-icon4 {
            width: 59px;
            right: 16px;
            transform: translateX(0);
        }

        img.sunset-icon1 {
            display: none;
        }

        img.sunset-icon2 {
            display: none;
        }

        img.sunset-icon3 {
            width: 83px;
            right: -16px;
        }

        img.sunset-icon4 {
            width: 104px;
            right: 36px;
        }

        img.sunrise-icon1 {
            width: 109px;
            left: -16px;
            top: 24px;
        }

        img.sunrise-icon2 {
            width: 93px;
            left: 36px;
            top: 72px;
        }

        img.sunrise-icon3 {
            display: none;
        }

        img.sunrise-icon4 {
            display: none;
        }

        img.night-icon1 {
            display: none;
        }

        img.night-icon2 {
            display: none;
        }

        img.night-icon3 {
            width: 104px;
            right: 0;
            top: 48px;
        }

        img.night-icon4 {
            width: 130px;
            right: 56px;
            top: 56px;
        }

        img.late-icon1 {
            width: 135px;
            left: -36px;
            top: 92px;
        }

        img.late-icon2 {
            width: 115px;
            left: 28px;
            top: 172px;
        }

        img.late-icon3 {
            display: none;
        }

        img.late-icon4 {
            display: none;
        }

        img.onsen-icon1 {
            display: none;
        }

        img.onsen-icon2 {
            display: none;
        }

        img.onsen-icon3 {
            width: 100px;
            right: 0;
            top: -6px;
        }

        img.onsen-icon4 {
            width: 126px;
            right: 0;
            top: 2px;
        }
    }
}

@layer utilities {
    .relative {
        position: relative;
    }

    .absolute {
        position: absolute;
    }

    .nowrap {
        white-space: nowrap;
    }

    .col-span-2 {
        grid-column: span 2 / span 2;
    }

    @media screen and (max-width: 1024px) {
        .\@5xl\:wrap {
            white-space: wrap;
        }

        .\@5xl\:relative {
            position: relative;
        }

        /* 
        .\@3xl\:w-\[59px\] {
            width: 59px;
        }

        .\@3xl\:w-\[83px\] {
            width: 83px;
        }

        .\@3xl\:w-\[104px\] {
            width: 104px;
        }

        .\@3xl\:w-\[109px\] {
            width: 109px;
        }

        .\@3xl\:w-\[93px\] {
            width: 93px;
        }

        .\@3xl\:w-\[130px\] {
            width: 130px;
        }

        .\@3xl\:w-\[135px\] {
            width: 135px;
        }

        .\@3xl\:w-\[115px\] {
            width: 115px;
        }

        .\@3xl\:w-\[100px\] {
            width: 100px;
        }

        .\@3xl\:w-\[126px\] {
            width: 126px;
        }
        .-translate-x-\[150\%\] {
            transform: translateX(-150%);
        }
        .-translate-x-\[50\%\] {
            transform: translateX(-50%);
        }
        .translate-x-\[150\%\] {
            transform: translateX(150%);
        }
        .translate-x-\[50\%\] {
            transform: translateX(50%);
        }
        .right-0 {
            right: 0;
        }
        .top-0 {
            top: 0;
        }
        .top-\[32px\] {
            top: 32px;
        }
        .-left-\[12px\] {
            left: -12px;
        }
        .\@3xl\:right-\[16px\] {
            right: 16px;
        }
        .\@3xl\:-translate-x-full {
            transform: translateX(-100%);
        }
        .\@3xl\:translate-x-0 {
            transform: translateX(0);
        }
        .\@3xl\:hidden {
            display: none;
        } */
    }
}