* {
    box-sizing: border-box;
    margin: 0;
}

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;

    font-family: "dnp-shuei-mgothic-std", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 14px;
}

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

/* Web Font */

.wf-loading {
    opacity: 0;
    overflow: hidden;
}

.wf-active {
    animation: fade 120ms;
    animation-fill-mode: forwards;
}

@keyframes fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Content */

#content {
    display: flex;
    flex-direction: column;
}

/* FY27 common */

:root {
    --color-base: #FEFEF2;
    --color-text: #333;
    --color-accent: #CAFED6;
    --color-accent-dark: #3E9E6A;
    --color-campaign: #E5484D;
    --color-campaign-bg: #FFF1E6;
    --color-card: #FFFFFF;
    --content-width: 1080px;
}

body {
    color: var(--color-text);
    background-color: var(--color-base);
}

h1, h2, h3, h4 {
    font-weight: 700;
}

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

.badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 999px;
    background-color: var(--color-campaign);
    color: #fff;
    font-size: 12px;
}

br.pc {
    display: none;
}

@media only screen and (min-width: 800px) {
    br.pc {
        display: inline;
    }

    br.sp {
        display: none;
    }
}

/* 1. Key visual */

/* 見出しはKV画像内の文字で伝えるため、テキストは読み上げ・検索用にのみ残す */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.kv-inner {
    padding-bottom: 32px;
}

/* KV画像は文字入りの横長（3:2）なので切り抜かない */
.kv-image img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    background-color: #EFEDE4;
}

.kv-campaign {
    display: block;
    margin: 24px 16px 0;
    padding: 16px;
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    background-color: #fff;
    color: var(--color-text);
    text-decoration: none;
    box-shadow: 0 4px 12px #7272721c;
}

.kv-campaign .badge {
    margin-bottom: 8px;
}

.kv-campaign strong {
    color: var(--color-campaign);
}

@media only screen and (min-width: 800px) {
    .kv-inner {
        max-width: var(--content-width);
        margin: 0 auto;
        padding: 48px 24px 0;
    }

    .kv-image img {
        border-radius: 16px;
    }

    .kv-campaign {
        margin: 24px auto 0;
        max-width: 360px;
    }
}

/* 2. Intro */

section.intro {
    padding: 48px 24px;
    text-align: center;
}

section.intro h2 {
    font-size: 17px;
    line-height: 1.6;
}

section.intro p {
    margin-top: 16px;
    font-size: 14px;
    line-height: 2;
    text-align: left;
}

@media only screen and (min-width: 800px) {
    section.intro {
        padding: 80px 24px;
    }

    section.intro h2 {
        font-size: 28px;
    }

    section.intro p {
        font-size: 16px;
        text-align: center;
    }
}

/* 5. Campaign */

section.campaign {
    padding: 0 16px;
}

.campaign-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    border-radius: 16px;
    background-color: var(--color-campaign-bg);
    overflow: hidden;
}

.campaign-text {
    padding: 32px 24px;
    text-align: center;
}

.campaign-text h2 {
    margin-top: 12px;
    font-size: 20px;
    line-height: 1.6;
}

.campaign-text h2 strong {
    color: var(--color-campaign);
    font-size: 1.2em;
}

.campaign-text > p:not(.badge) {
    margin-top: 12px;
    font-size: 13px;
}

.campaign-text dl {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    background-color: #fff;
    text-align: left;
}

.campaign-text dt {
    font-size: 13px;
    color: var(--color-campaign);
}

.campaign-text li {
    margin-top: 4px;
    padding-left: 1em;
    text-indent: -1em;
}

.campaign-text li::before {
    content: "・";
}

.campaign-text small {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.6;
    color: #666;
}

.campaign-image img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background-color: #F3E2CF;
}

@media only screen and (min-width: 800px) {
    section.campaign {
        padding: 0 24px;
    }

    .campaign-inner {
        display: flex;
        align-items: stretch;
    }

    .campaign-text {
        flex: 1;
        padding: 48px;
    }

    .campaign-text h2 {
        font-size: 26px;
    }

    .campaign-image {
        flex: 1;
    }

    .campaign-image picture {
        display: block;
        height: 100%;
    }

    /* ステッカーシートが右寄りの構図なので、切り抜き位置を右に寄せる */
    .campaign-image img {
        height: 100%;
        aspect-ratio: auto;
        object-position: 80% center;
    }
}

/* 3. Products */

section.products, section.tegaki {
    padding: 56px 16px 24px;
    max-width: var(--content-width);
    margin: 0 auto;
    width: 100%;
}

section.products > h2 {
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
}

h3.category {
    margin: 40px 0 16px;
    padding-left: 12px;
    border-left: 4px solid var(--color-accent-dark);
    font-size: 17px;
}

.product-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.product {
    background-color: var(--color-card);
    border-radius: 16px;
    overflow: hidden;
    padding-bottom: 20px;
    box-shadow: 0 4px 12px #7272721c;
}

.product-image {
    position: relative;
}

.product-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background-color: #EFEDE4;
}

.product .catch {
    margin: 16px 16px 0;
    font-size: 12px;
    color: var(--color-accent-dark);
}

.product h4 {
    margin: 4px 16px 0;
    font-size: 17px;
    line-height: 1.5;
}

.product h4 span {
    font-size: 13px;
}

.product .desc {
    margin: 8px 16px 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.8;
}

.product .spec {
    margin: 12px 16px 0;
    padding-top: 12px;
    border-top: 1px dashed #ddd;
    font-size: 12px;
    color: #666;
}

@media only screen and (min-width: 600px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (min-width: 800px) {
    section.products, section.tegaki {
        padding: 96px 24px 32px;
    }

    section.products > h2 {
        font-size: 28px;
    }

    h3.category {
        font-size: 20px;
    }

    .product-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-list.compact {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 4. Tegaki */

.tegaki-head {
    text-align: center;
}

.tegaki-head .lead {
    font-size: 15px;
}

.tegaki-logo {
    margin: 12px auto 0;
    width: 80%;
    max-width: 480px;
}

.tegaki-head p:last-child {
    margin-top: 16px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.9;
    text-align: left;
}

.tegaki-hero {
    margin-top: 24px;
}

.tegaki-hero img {
    width: 100%;
    aspect-ratio: 335 / 394;
    object-fit: cover;
    border-radius: 16px;
    background-color: #EFEDE4;
}

.tegaki-title {
    margin-top: 40px;
    text-align: center;
    font-size: 22px;
}

.steps {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.steps li {
    position: relative;
    padding: 16px 16px 16px 64px;
    border-radius: 12px;
    background-color: #fff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
}

.steps strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.steps .num {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-accent);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

@media only screen and (min-width: 800px) {
    .tegaki-head p:last-child {
        font-size: 15px;
        text-align: center;
    }

    /* 縦長の写真なので、PCでも切り抜かず中央に置く */
    .tegaki-hero img {
        max-width: 560px;
        margin: 0 auto;
    }

    .tegaki-title {
        font-size: 28px;
    }

    .steps {
        grid-template-columns: repeat(4, 1fr);
    }

    .steps li {
        padding: 64px 16px 20px;
        text-align: center;
    }

    .steps .num {
        top: 16px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Service section */

@media only screen and (max-width: 800px) {
    section.service .content {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    section.service .message {
        width: 100%;
        position: relative;
    }

    section.service .message p {
        position: absolute;
        top: calc(100vw * 54 / 375);
        left: calc(100vw * 48 / 375);
        font-size: calc(max(12px, 100vw * 12 / 375));
        line-height: 1.8;
    }

    section.service .message img {
        width: 100%;
    }

    section.service .image.sp {
        display: block;
    }

    section.service .image.pc {
        display: none;
    }

    section.service .app-summary {
        position: absolute;
        top: calc(100vw * (54 + 110 + 16 + 8) / 375);
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    section.service .logo {
        margin-left: calc(100vw * (48 - 16) / 375);
        width: calc(100vw * 180 / 375);
        height: calc(100vw * 76 / 375);
    }

    section.service .store-links {
        margin-top: calc(100vw * 24 / 375);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    section.service .store-links a {
        margin: 8px;
    }
}

@media only screen and (max-width: 320px) {
    section.service .message p {
        font-size: calc(100vw * 14 / 375);
    }
}

@media only screen and (min-width: 800px) {
    section.service {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 48px 24px;
    }

    section.service .content {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 1400px;
    }

    section.service .message {
        width: 60%;
        padding: 16px;
        position: relative;
    }

    section.service .message img {
        width: 100%;
    }

    section.service .message p {
        position: absolute;
        top: calc(min((100vw - 24px * 2) * 0.6, 808px) * 104 / 800);
        left: calc(min((100vw - 24px * 2) * 0.6, 808px) * 128 / 800);
        font-size: calc(min((100vw - 24px * 2) * 0.6, 808px) * 26 / 800);
        line-height: 2;
    }

    section.service .image.sp {
        display: none;
    }

    section.service .image.pc {
        display: block;
    }

    section.service .app-summary {
        width: 40%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    section.service .store-links {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    section.service .store-links a {
        margin: 16px;
    }
}

/* Action */

.action {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 104px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.action a {
    background-color: #CAFED6;
    padding: 12px 32px;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px #7272721c;
}

.action-background {
    background-color: #FEFEF2;
    height: 104px;
    margin-top: -104px;
}

@media only screen and (min-width: 800px) {
    .action {
        height: 120px;
    }

    .action a {
        padding: 24px 40px;
        transition: 200ms ease-out;
    }

    .action a:hover {
        scale: 1.08;
    }

    .action img {
        width: 200px;
    }

    .action-background {
        height: 120px;
        margin-top: -120px;
        padding-bottom: 176px;
    }
}

/* Footer */

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 16px 32px 16px;
}

footer .name, .email {
    font-size: 12px;
}

footer .address {
    font-size: 11px;
}

footer .email {
    color: #000;
}
