@charset "utf-8";

/* reset {{{ */

*,
::before,
::after {
    box-sizing: border-box;
    border-color: currentcolor;
    border-style: solid;
    border-width: 0;
}

html {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    line-height: 1.5;
    -moz-tab-size: 4;
    tab-size: 4;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    line-height: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
}

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

code,
kbd,
samp,
pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 1em;
}

table {
    text-indent: 0;
    border-collapse: collapse;
    border-color: inherit;
}

/* フォーム */
button,
input,
optgroup,
select,
textarea {
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: 100%;
    font-variation-settings: inherit;
    font-weight: inherit;
    font-feature-settings: inherit;
    line-height: inherit;
    color: inherit;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}

button,
[role="button"] {
    cursor: pointer;
}

textarea {
    resize: vertical;
}

/* デフォルトのマージンやパディングを削除 */
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
    margin: 0;
}

fieldset {
    margin: 0;
    padding: 0;
}

legend {
    padding: 0;
}

ol,
ul,
menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

dialog {
    padding: 0;
}

/* 埋め込み要素をブロック要素に指定（要素の下に小さなスペースが入るのを防ぐ） */
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
    display: block;
    vertical-align: middle;
}

/* 画像とビデオを可変サイズに指定 */
img,
video {
    max-width: 100%;
    height: auto;
}

/* }}} */

/* base{{{ */

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&display=swap&text=0123456789,%2F%5C%C2%A5円円月");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap");

body {
    font-family: Inter, "Noto Sans JP", sans-serif;
}

/* カラー */
:root {
    --color-accent: #ffcd6d;
    --firmament-blue: #102f3a;
}

/* スクリーンリーダー用（画面に表示しない） */
.sr-only {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 画像を配置先に合わせたサイズにして切り抜く */
.img-fill {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 角丸にする */
.radius {
    border-radius: 8px;
}

/* コードのスタイル */
pre {
    overflow-x: auto;
    padding: 16px;
    font-size: 85%;
    line-height: 1.45;
    color: white;
    background-color: #222;
    border-radius: 6px;
}


/* }}} */


body {
    font-family: Inter, "Noto Sans JP", sans-serif;
/*     overflow: clip; */
}

.js .fade-in {
    opacity: 0;
    transform: translateY(100%);
}

.js .website-photo ,
.js .point-item ,
.js .app-photo {
    opacity: 0;
}

.price {
    font-family: "Noto Serif JP", "Noto Sans JP", Inter, serif;
    font-weight: 700;
}


.br-pc {
    display: none;
}

.br-sp {
    display: inline;
}

@media (min-width: 769px) {
    .br-pc {
        display: inline;
    }
    .br-sp {
        display: none;
    }
}

/* モバイルでは改行しない */
@media (max-width: 768px) {
  .br-pc {
    display: none;
  }
}

header {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    position: absolute;
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: center;
    padding: 8px 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    .site-logo {
        width: clamp(110px, 34vw, 160px);
    }

/*     .site-logo svg { */
/*         width: 100%; */
/*         height: auto; */
/*         display: block; */
/*     } */

    .tel {
        font-size: 1.5rem;
        font-style: normal;
        color: #fff;
        @media (max-width: 768px) {
            font-size: clamp(1.2rem, 6vw, 2rem);
        }
    }

}

.hero {
    display: grid;
    height: 100svh;
    min-height: 500px;
    grid-template-areas:
        ". . ."
        ". heading ."
        ". text ."
        ". price ."
        ". . .";
    grid-template-columns: 40px auto 40px;
    grid-template-rows: auto repeat(3, auto) auto;
    row-gap: 24px;
    justify-items: start;
    color: white;
    text-align: left;
    margin-bottom: 80px;

    @media (max-width: 768px) {
        align-content: start;
        grid-template-columns: 16px auto 16px;
        /* grid-template-rows: auto repeat(3, min-conetnt) auto; */
        grid-template-rows:
            clamp(40px, 8vh, 100px)
            min-content
            min-content
            min-content
            auto;
        row-gap: clamp(22px, 7.7vh, 80px);
    }

    /* アイテムの配置先 */
    & h1.hero-heading {
        /* font-size: min(30px, 6vw); */
        display: flex;
        flex-direction: column;
        font-size: clamp(1.2rem, 3vw, 2.4rem);
        font-weight: bold;
        grid-area: heading;

        & span {
            font-size: 0.5em;
            font-style: italic;
        }

        @media (max-width: 768px) {
            font-size: clamp(1.2rem, 3vw, 2rem);
        }
    }

    > .hero-text {
        grid-area: text;
        font-size: min(18px, 4vw);
    }

    > .hero-price {
        grid-area: price;
        /* font-size: min(3rem, 6vw); */
        font-size: clamp(2rem, 5vw, 3rem);
        line-height: 1;

        & span {
            font-size: 0.6em;  /* 親のフォントサイズの75% */
            margin-left: 0.25em;
        }
        & small {
            font-size: 0.4em;  /* 親のフォントサイズの75% */
            opacity: 0.7;
            margin-left: 0.25em;
        }
    }

    > .hero-video {
        display: block;
        grid-column: 1 / -1;
        grid-row: 1 / -1;
        z-index: -1;
        filter: brightness(0.7);
        width: 100%;
        height: inherit;
        min-height: inherit;
        object-fit: cover;
        background-image: url('./images/pre_image_sp.jpg');
        background-size: cover;
        background-position: center;
/*         height: 0; */
/*         min-height: 100%; */

        /* PC時だけ切り替え */
        @media (min-width: 769px) {
            background-image: url('./images/pre_image_pc.jpg'); /* ← PC用画像 */
        }


    }

}


.website-features {
    padding-bottom: 80px;
    position: relative;
    display: grid;
    grid-template-columns: minmax(16px, 1fr) minmax(auto, 1120px) minmax(16px, 1fr);
    row-gap: 44px;

    > * {
        grid-column: 2 / -2;
    }

    &::before {
        content: "";
        background-image: url(./images/background.jpg);
        background-repeat: no-repeat;
        background-position: 50% 100%;
        /* background-size: cover; */
        background-size: 100% auto;
        /* background-size: contain; */
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        z-index: -2;
    }

}

/* {{{ */

.intro-inner {
    display: grid;
    gap: 24px;
    grid-template-areas: 
    "photo ."
    "photo heading"
    "photo subheading"
    "photo text"
    "photo price"
    "photo .";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr repeat(4, auto) 1fr;

    > .heading {
        grid-area: heading;
        font-size: min(2rem, 6vw);
        line-height: 1.4;
        font-weight: bold;
    }

    > .subheading {
        grid-area: subheading;
        font-size: min(1.5rem, 4vw);
        line-height: 1.4;
        font-weight: bold;
    }

    > .text {
        grid-area: text;
        font-size: min(16px, 3.5vw);
    }

    > .price {
        grid-area: price;
        font-size: min(3rem, 6vw);
        /* line-height: 1; */
        text-align: right;

        & span {
            font-size: 0.6em;  /* 親のフォントサイズの75% */
            margin-left: 0.25em;
        }
        & small {
            font-size: 0.4em;  /* 親のフォントサイズの75% */
            opacity: 0.7;
            margin-right: 0.25em;
            vertical-align: middle;
            /* display: block; */
        }
    }

    > .website-image {
        position: relative;
        height: 0;
        min-height: 100%;
        grid-area: photo;
        display: grid;
        > * {
            grid-column: 1 / -1;
            grid-row: 1 / -1;
        }
        > .website-photo {
            position: absolute;
            /* transition: opacity 1s ease-in-out; */

            /* 行のトラックサイズ確定の処理から画像を除外 */
            height: 0;
            min-height: 100%;

            /* opacity: 0; */
            transform: translateY(40px) scale(0.95);
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: 50% 10%;

        }
        > svg rect {
            fill: none;
            stroke: #2c2304;
            stroke-dashoffset: 2500px;
            stroke-dasharray: 2500px 2500px;
        }
    }

    @media (max-width: 768px) {
        grid-template-areas: 
        ". . ."
        ". heading ."
        ". subheading ."
        ". text ."
        ". price ."
        ". . .";
        grid-template-columns: 16px auto 16px;
        grid-template-rows: 20px repeat(4, auto) 20px;

        color: #fff;

        .heading {
            text-align: center;
        }

        .website-image {
            grid-column: 1 / -1;
            grid-row: 1 / -1;
            z-index: -1;
            filter: brightness(0.4);
        }
    }

    &.is-active {

        > .fade-in {
            transition: opacity 0.6s cubic-bezier(0.1, 0.8, 0.4, 1), transform 0.6s cubic-bezier(0.1, 0.8, 0.4, 1);
            transform: translateY(0);
            opacity: 1;
        }

        > .heading {
            transition-delay: 0.6s;
        }

        > .subheading {
            transition-delay: 1.0s;
        }

        > .text {
            transition-delay: 1.4s;
        }

        > .price {
            transition-delay: 1.8s;
        }

        > .website-image .website-photo {
            transition: transform 1.2s cubic-bezier(0.1, 0.8, 0.4, 1) 0.5s, opacity 1s ease-in-out;
            transform: translateY(0);
            /* opacity: 1; */

            &.active {
                opacity: 1;
                z-index: 1;
            }
        }
        > .website-image svg {
            transition: 1.2s cubic-bezier(0.1, 0.8, 0.4, 1) 0.8s;
            overflow: visible;
            pointer-events: none;
        }
        > .website-image svg rect {
            transition: 1.2s cubic-bezier(0.1, 0.8, 0.4, 1);
            stroke-dashoffset: 0%;
        }
    }

}

.website-point {

    display: grid;
    grid-template-columns: minmax(16px, 1fr) minmax(auto, 1120px) minmax(16px, 1fr);

    > * {
        grid-column: 2 / -2;
    }


    & h3 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        text-align: center;
        font-weight: bold;
    }

    .point-list {
        display: grid;
        margin: 24px;
        /* grid-template-columns: 1fr 1fr 1fr; */
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;

        @media (max-width: 768px) {
            margin: 0;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        }

        .point-item {
            display: grid;
            grid-template-areas:
                "icon"
                "heading"
                "text";
            grid-template-rows: auto auto 1fr;
            height: 100%;
            align-items: start;
            text-align: center;
            padding: 32px 16px;
            /* border: 1px solid #2c2304; */
            /* background-color: #ffc; */
            /* opacity: 0; */
            transform: translateY(100px) scale(0.9) skewY(7.5deg);
            background: rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            border: 1px solid #2c2304;
            box-shadow: 0px 12px 40px rgba(4, 176, 251, 0.15);

            > h4 {
                position: relative;
                grid-area: heading;
                text-align: center;
                font-size: 1.2rem;
                margin-bottom: 1rem;
            }

/*             > h4:after { */
/*                 position: absolute; */
/*                 bottom: 0; */
/*                 content: ' '; */
/*                 display: block; */
/*                 width: 100%; */
/*                 height: 1px; */
/*                 background-color: #000; */
/*             } */

            > p {
                grid-area: text;
            }
                        
            > img {
                grid-area: icon;
                justify-self: center;
                margin-bottom: 1rem;
            }
        }

    }

}

.website-point.is-active {

    .fade-in {
        transition: opacity 0.6s cubic-bezier(0.1, 0.8, 0.4, 1), transform 0.6s cubic-bezier(0.1, 0.8, 0.4, 1);
        transform: translateY(0);
        opacity: 1;
    }

    .point-item {
        &:nth-child(1) {
            opacity: 1;
            transition: 0.8s cubic-bezier(0.1, 0.8, 0.4, 1) 0.6s;
            transform: translateY(0px) scale(1);
        }

        &:nth-child(2) {
            opacity: 1;
            transition: 0.8s cubic-bezier(0.1, 0.8, 0.4, 1) 1.0s;
            transform: translateY(0px) scale(1);
        }

        &:nth-child(3) {
            opacity: 1;
            transition: 0.8s cubic-bezier(0.1, 0.8, 0.4, 1) 1.4s;
            transform: translateY(0px) scale(1);
        }

        &:nth-child(4) {
            opacity: 1;
            transition: 0.8s cubic-bezier(0.1, 0.8, 0.4, 1) 1.6s;
            transform: translateY(0px) scale(1);
        }

        &:nth-child(5) {
            opacity: 1;
            transition: 0.8s cubic-bezier(0.1, 0.8, 0.4, 1) 2.0s;
            transform: translateY(0px) scale(1);
        }

        &:nth-child(6) {
            opacity: 1;
            transition: 0.8s cubic-bezier(0.1, 0.8, 0.4, 1) 2.4s;
            transform: translateY(0px) scale(1);
        }
    }
}



/* }}} */


.website-faq {
    margin: 0 auto 2rem;
    padding: 2rem 1rem;
    background-color: var(--firmament-blue);
    color: #fff;
    display: grid;
    grid-template-columns: minmax(16px, 1fr) minmax(auto, 860px) minmax(16px, 1fr);

    > * {
        grid-column: 2 / -2;
    }

    & h3 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        text-align: center;
        font-weight: bold;
    }
  
    .website-faq-item {
        margin-bottom: 2rem;
        border-bottom: 1px solid #eee;
        padding-bottom: 1rem;
  
        & h4 {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
            display: inline;
        }
  
        .question-wrap {
            display: grid;
            grid-template-columns: auto 1fr;
            align-items: start;
            justify-items: start;
        }

        & div[itemscope] {
            display: grid;
            grid-template-columns: auto 1fr;
            align-items: start;
            justify-items: start;
            font-size: 1.1rem;
        }

        & p[itemprop="text"] {
            line-height: 1.6;
        }
  
        .label {
            font-size: 1.4rem;
            font-weight: bold;
            display: inline-block;
            margin-right: 0.5rem;
            margin-bottom: 0.5rem;
            line-height: 1;
            padding-top: 0.05em;
  
            &.q {
                color: #f57c00; /* オレンジ系 */
            }
  
            &.a {
                color: #0070f3; /* ブルー系 */
            }
  
        }
  
    }

    > h3.is-active ,
    .website-faq-item.is-active {
        transition: opacity 0.6s cubic-bezier(0.1, 0.8, 0.4, 1), transform 0.6s cubic-bezier(0.1, 0.8, 0.4, 1);
        transform: translateY(0);
        opacity: 1;
    }
}

.nfc-qr-app {
    /* padding-top: 80px; */
    padding-bottom: 80px;
    position: relative;
    display: grid;
    grid-template-columns: minmax(16px, 1fr) minmax(auto, 1120px) minmax(16px, 1fr);
    row-gap: 44px;

    > * {
        grid-column: 2 / -2;
    }

    .app-overview {
        display: grid;
        gap: 24px;
        grid-template-areas: 
        ". photo"
        "heading photo"
        "subheading photo"
        "text photo"
        "point photo"
        ". photo";
        grid-template-columns: 4fr 3fr;
        grid-template-rows: repeat(5, auto) 1fr;
        align-items: start;

        &::before {
            content: "";
            background-image: url(./images/background.jpg);
            background-repeat: no-repeat;
            background-position: 50% 100%;
            /* background-position: bottom center; */
            /* background-size: cover; */
            background-size: 100% auto;
            /* background-size: 100% auto; */
            /* background-size: contain; */
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            z-index: -2;
        }

        .heading {
            grid-area: heading;
            font-size: min(2rem, 6vw);
            line-height: 1.4;
            font-weight: bold;
        }

        .subheading {
            grid-area: subheading;
            font-size: min(1.5rem, 7vw);
            line-height: 1.4;
            font-weight: bold;
        }

        .text {
            grid-area: text;
        }

        .app-point {
            grid-area: point;
            li {
                display: flex;
                align-items: flex-start;
                font-size: 1.5rem;
                background: rgba(255, 255, 255, 0.2);
                border-radius: 8px;
                border: 1px solid #2c2304;
                box-shadow: 0px 12px 40px rgba(4, 176, 251, 0.15);
                margin-bottom: 0.5rem;
                padding: 1rem;
                .emoji {
                  flex-shrink: 0;
                  margin-right: 0.5em;
                  line-height: 1.5;
                }
                .text {
                  display: inline-block;
                  line-height: 1.5;
                }
            }
        }

        .app-image {
/*             height: 0; */
/*             min-height: 100%; */
            grid-area: photo;
            display: grid;
            > * {
                grid-column: 1 / -1;
                grid-row: 1 / -1;
            }
            > .app-photo {

                /* 行のトラックサイズ確定の処理から画像を除外 */
                /* height: 0; */
                /* min-height: 100%; */
                /* Safariで画像の表示が崩れるのを防ぐ */
                height: auto;

                /* opacity: 0; */
                transform: translateY(20px) scale(0.95);
                width: 100%;
                /* height: 100%; */
                /* object-fit: cover; */
            }
            > svg rect {
                fill: none;
                stroke: #2c2304;
                stroke-dashoffset: 2500px;
                stroke-dasharray: 2500px 2500px;
            }

            @media (min-width: 480px) and (max-width: 767.98px){
                grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr);
                > * {
                    grid-column: 2 / -2;
                }
            }

        }
        
        /* モバイル */
        @media (max-width: 768px) {
            grid-template-areas:
                " . "
                " heading"
                " photo"
                " subheading"
                " text"
                " point"
                " .";
            grid-template-columns: auto;
            grid-template-rows: 20px repeat(5, auto) 20px;

            .heading {
                text-align: center;
            }

            .subheading {
                text-align: center;
            }

            .app-image {
                height: auto;
                min-height: auto;
            }
        }

        &.is-active {

            .fade-in {
                transition: opacity 0.6s cubic-bezier(0.1, 0.8, 0.4, 1), transform 0.6s cubic-bezier(0.1, 0.8, 0.4, 1);
                transform: translateY(0);
                opacity: 1;
            }

            > .heading { transition-delay: 0.6s; }

            > .subheading { transition-delay: 1.0s; }

            > .text { transition-delay: 1.4s; }

            > .app-point li:first-child { transition-delay: 1.8s; }

            > .app-point li:nth-child(2) { transition-delay: 2.2s; }

            > .app-point li:nth-child(3) { transition-delay: 2.6s; }

            > .app-image .app-photo {
                transition: 1.2s cubic-bezier(0.1, 0.8, 0.4, 1) 0.5s;
                transform: translateY(0);
                opacity: 1;
            }
            > .app-image svg {
                transition: 1.2s cubic-bezier(0.1, 0.8, 0.4, 1) 0.8s;
                overflow: visible;
                pointer-events: none;
            }
            > .app-image svg rect {
                transition: 1.2s cubic-bezier(0.1, 0.8, 0.4, 1);
                stroke-dashoffset: 0%;
            }
        }

    }

}

footer {
    padding-top: 30px;
    background-color: var(--firmament-blue);
    text-align: center;
    color: #fff;

    & h3 {
        /* font-size: 2.0rem; */
        font-size: clamp(1.3rem, 6vw, 2rem);
    }

    .lead-text {
        font-size: clamp(1rem, 5vw, 1.5rem);
    }

    & address.footer-tel {
        /* font-size: 2.5rem; */
        font-style: normal;
        margin: 1rem 0;

        & span:first-child {
            font-size: 2.0rem;
            font-weight: 700;
        }
        & span:nth-child(2) {
            font-size: 3.2rem;
            font-weight: 700;
        }
        @media (max-width: 768px) {
            & span:first-child {
                font-size: clamp(1.2rem, 6vw, 1.5rem);
                font-weight: 700;
            }
            & span:nth-child(2) {
                font-size: clamp(2rem, 7vw, 5rem);
                font-weight: 700;
            }
        }
    }

    & address.company-location {
        font-style: normal;
        color: #888;
    }

    .footer-branding {
        background: #fff;
        padding-top: 2rem;
        color: #888;

        .footer-description {
            font-size: 0.9rem;
            line-height: 1.6;
            text-align: center;
            margin: 1.2rem 0;
        }

        .footer-copy {
          font-size: 0.8em;
        }

    }

}

.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 20px;
    z-index: 100;
    display: none;
    cursor: pointer;
    transition: opacity 0.3s;

    & img {
        width: 33px;
        height: 69px;
        opacity: 0.8;
    }

    &:hover img {
        opacity: 1;
    }
}

