/* ==========================================================================
   Base
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: "Helvetica Neue", "Arial", "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "Segoe UI", "Meiryo", sans-serif;
    color: var(--main);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.6;
}

/* ==========================================================================
   Color
   ========================================================================== */
:root {
    --white: #fff;
    --black: #000;
    --main: #333;
    --flavia-primary: #00316E;
    --flavia-secondary: #CCD6E2;
    --flavia-cv-primary: #CD0000;
    --flavia-cv-shadow: #850000;
    --flavia-cv-confirm: #FF8C00;
    --modal-opacity: rgba(0, 0, 0, 0.7);
    --dark-gray: #8A8A8A;
    --light-gray-100: #F8F8F8;
    --light-gray-200: #EFEFEF;
    --gold: #987A55;
    --pale-yellow: #F9F7F3;
    --dark-yellow: #EAE9E4;
    --dark-brown: #2b1a11;
    --section-gradation-bk: linear-gradient(145deg, #FFF 0%, #EAE9E4 100%);
    --flavia-gradation-inner: linear-gradient(95deg, #FFECCC 0%, #FFF 30%, #FFECCC 75%, #E8CFA5 100%);
    --flavia-gradation-outer: linear-gradient(210deg, #FFF7E8 0%, #FFECCC 32%, #E8CFA5 64%);
    --flavia-gradation-inner-reverse: linear-gradient(275deg, #FFECCC 0%, #FFF 30%, #FFECCC 75%, #E8CFA5 100%);
    --flavia-gradation-outer-reverse: linear-gradient(30deg, #FFF7E8 0%, #FFECCC 32%, #E8CFA5 64%);
    --grow-shadow: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.3));
}

/* ==========================================================================
   Typography
   ========================================================================== */
.external-link {
    text-decoration: underline;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.external-link::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("../images/icon_external-link.svg");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 4px;
}

.lead-ttl {
    color: var(--flavia-primary);
    font-family:
        "Noto Serif JP",
        "Hiragino Mincho ProN",
        serif;
    font-size: 18px;
    line-height: 1.8;
}

.lead-text {
    color: var(--flavia-primary);
    font-family:
        "Noto Serif JP",
        "Hiragino Mincho ProN",
        serif;
    font-size: 14px;
    line-height: 1.8;
}

.section-ttl-left,
.section-ttl-center {
    color: var(--flavia-primary);
    font-size: 13px;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    margin-bottom: 32px;
}

.section-ttl-left {
    padding-left: 24px;
    border-left: 8px solid var(--flavia-primary);
    gap: 4px;
}

.section-ttl-center {
    align-items: center;
}

.section-ttl-center::after {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    background-color: var(--flavia-primary);
    margin-top: 12px;
}

.section-ttl-left span,
.section-ttl-center span {
    font-family: "Montserrat", sans-serif;
    font-size: 30px;
    line-height: 1;
}

.border-ttl {
    color: var(--flavia-primary);
    font-family:
        "Noto Serif JP",
        "Hiragino Mincho ProN",
        serif;
    font-size: 18px;
    line-height: 1.3;
    border-bottom: 1px solid var(--flavia-primary);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.body-s {
    font-size: 14px;
    line-height: 1.8;
}

.body-m {
    color: var(--flavia-primary);
    font-size: 16px;
    line-height: 1.8;
}

@media screen and (min-width: 769px) {
    .external-link:hover {
        text-decoration: none;
    }

    .lead-ttl {
        font-size: 28px;
    }

    .lead-text {
        font-size: 18px;
    }

    .section-ttl-left span,
    .section-ttl-center span {
        font-size: 40px;
    }

    .section-ttl-left,
    .section-ttl-center {
        font-size: 14px;
        margin-bottom: 64px;
    }

    .border-ttl {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .body-s {
        font-size: 16px;
    }

    .body-m {
        text-align: center;
    }
}

/* ==========================================================================
   Layout
   ========================================================================== */
img {
    max-width: 100%;
    height: auto;
}

.sp-none {
    display: none;
}

.pc-none {
    display: block;
}

section {
    scroll-margin-top: 64px;
}

.section-inner {
    width: 90%;
    max-width: 640px;
    margin: 0 auto;
}

.bk-img-left,
.bk-img-right {
    position: absolute;
    z-index: 20;
}

.bk-img-left {
    width: 160px;
    height: 144px;
    top: -40px;
    left: -40px;
}

.bk-img-right {
    width: 136px;
    height: 156px;
    top: -40px;
    right: 0;
}

@media screen and (min-width: 769px) {
    .sp-none {
        display: block;
    }

    .pc-none {
        display: none;
    }

    section {
        scroll-margin-top: 88px;
    }

    .section-inner {
        width: 84%;
        max-width: 1200px;
    }

    .bk-img-left {
        width: 400px;
        height: 360px;
        top: -80px;
        left: -120px;
    }

    .bk-img-right {
        width: 320px;
        height: 380px;
        right: 0;
        top: -80px;
    }

}

/* ==========================================================================
   矢印
   ========================================================================== */
/* 背景円 */
.arrow-primary-bottom,
.arrow-primary-left,
.arrow-primary-right,
.arrow-secondary-bottom,
.arrow-secondary-right {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.15s ease-out, background-color 0.3s ease, border-color 0.3s ease;
}

/* 矢印 */
.arrow-primary-bottom::after,
.arrow-primary-left::after,
.arrow-primary-right::after,
.arrow-secondary-bottom::after,
.arrow-secondary-right::after {
    content: '';
    width: 6px;
    height: 6px;
}

/* 色・向き */
.arrow-primary-bottom,
.arrow-primary-left,
.arrow-primary-right {
    background-color: var(--flavia-primary);
}

.arrow-primary-bottom::after {
    border-bottom: 2px solid var(--white);
    border-right: 2px solid var(--white);
    transform: translateY(-1px) rotate(45deg);
}

.arrow-primary-left::after {
    border-left: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: translateX(0.5px) rotate(45deg);
}

.arrow-secondary-bottom {
    background-color: var(--white);
}

.arrow-secondary-bottom::after {
    border-bottom: 2px solid var(--flavia-primary);
    border-right: 2px solid var(--flavia-primary);
    transform: translateY(-1px) rotate(45deg);
}

.arrow-secondary-right {
    background-color: var(--white);
}

.arrow-secondary-right::after {
    border-top: 2px solid var(--flavia-primary);
    border-right: 2px solid var(--flavia-primary);
    transform: translateX(-0.5px) rotate(45deg);
}

.arrow-primary-right::after {
    border-top: 2px solid var(--white);
    border-right: 2px solid var(--white);
    transform: translateX(-0.5px) rotate(45deg);
}

/* Hover */
@media screen and (min-width: 769px) {
    .header__btn:hover .arrow-secondary-bottom {
        transform: translateY(3px);
    }

    .modal__link-btn:hover .arrow-secondary-right {
        transform: translateX(3px);
    }
}

/* ==========================================================================
   CV-button
   ========================================================================== */

.cv-button {
    position: relative;
    max-width: 400px;
    border: 4px solid transparent;
    border-radius: 8px;
    background-image:
        var(--flavia-gradation-inner),
        var(--flavia-gradation-outer);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    filter: var(--grow-shadow);
    display: block;
    padding: 12px 20px 12px 84px;
    text-align: center;
    z-index: 2;
    background-size: 200% 200%;
    background-position: left center;
    transition:
        background-position 0.4s ease,
        filter 0.3s ease;
}

.cv-button img {
    position: absolute;
    left: 24px;
    bottom: 10px;
    width: 44px;
    height: 86px;
    transition: transform 0.25s ease-out;
}

.cv-button__sub {
    color: var(--white);
    background: var(--flavia-cv-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    display: inline-block;
    line-height: 1.2;
}

.cv-button__ttl {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    color: var(--flavia-primary);
    font-size: 18px;
    line-height: 1.2;
    align-items: center;
    justify-content: center;
}

@media screen and (min-width: 769px) {
    .cv-button {
        width: 100%;
    }

    .cv-button__sub {
        font-size: 16px;
    }

    .cv-button__ttl {
        margin-top: 8px;
        font-size: 28px;
    }

    .cv-button img {
        width: 56px;
        height: 109px;
    }

    .cv-button:hover {
        background-image:
            var(--flavia-gradation-inner-reverse),
            var(--flavia-gradation-outer-reverse);
        filter: drop-shadow(4px 6px 20px rgba(0, 0, 0, 0.4));
        background-position: right center;
    }

    .cv-button:hover img {
        transform: translateY(2.5px);
    }

    .cv-button:hover .arrow-primary-bottom {
        transform: translateY(3px);
    }
}

/* ==========================================================================
   Animation
   ========================================================================== */
.fade-in-section {
    opacity: 0;
}

.fade-in-section.is-show {
    opacity: 1;
    transition: opacity 1s ease;
}

/* ==========================================================================
   Header (Base Styles / 〜768px)
   ========================================================================== */
#header {
    width: 100%;
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header__inner {
    width: 100%;
    height: 64px;
    padding: 0 14px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 110;
}

.header__logo-img {
    width: 160px;
    height: auto;
}

.header__logo-ttl span {
    display: none;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

.header__link-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header__btn {
    font-size: 14px;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 10px;
    gap: 4px;
    border-radius: 6px;
    color: var(--white);
    border-bottom: 4px solid var(--flavia-cv-shadow);
    background: var(--flavia-cv-primary);
    position: relative;
    z-index: 110;
    transition:
        transform 0.15s ease-out,
        opacity 0.15s ease-out,
        border-bottom-width 0.15s ease-out;
}

.header__btn span {
    display: none;
}

/* ==========================================================================
   Header ( 769px 〜 1199px) 
   ========================================================================== */

@media screen and (min-width: 769px) {
    #header {
        padding: 0 24px;
    }

    .header__inner {
        height: 88px;
        max-width: 1440px;
        padding: 0;
    }

    .header__logo-img {
        width: 200px;
    }

    .header__logo-area a img {
        transition: opacity 0.3s ease;
    }

    .header__logo-area a:hover img {
        opacity: 0.6;
    }

    .header__btn {
        font-size: 16px;
        border-radius: 8px;
        display: flex;
        padding: 12px 16px;
        gap: 8px;
    }

    .header__logo-ttl span {
        display: block;
    }

    .header__btn:hover {
        transform: translateY(3px);
        border-bottom: 1px solid var(--flavia-cv-shadow);
        opacity: 0.95;
    }

    .header__btn span {
        color: var(--flavia-primary);
        font-size: 14px;
        line-height: 1.3;
        background-color: var(--white);
        padding: 2px 4px;
        display: flex;
    }

    .header__link-area {
        gap: 24px;
    }
}

/* ==========================================================================
   Header ( 1200px 〜 ) 
   ========================================================================== */

@media screen and (min-width: 1200px) {
    .header__link-area {
        flex-direction: row-reverse;
    }
}

/* ==========================================================================
   Hamburger ( Base Styles / 〜 1199px) 
   ========================================================================== */
.menu-trigger {
    position: relative;
    display: block;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.menu-trigger:focus-visible {
    outline: 3px solid var(--flavia-cv-confirm);
    outline-offset: 6px;
}

.menu-trigger span {
    position: absolute;
    left: 7px;
    width: 30px;
    height: 2px;
    background-color: var(--flavia-primary);
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.menu-trigger span:nth-of-type(1) {
    top: 10px;
}

.menu-trigger span:nth-of-type(2) {
    top: 21px;
}

.menu-trigger span:nth-of-type(3) {
    top: 32px;
}

.menu-trigger.active span:nth-of-type(1) {
    transform: translateY(11px) rotate(-45deg);
}

.menu-trigger.active span:nth-of-type(2) {
    opacity: 0;
}

.menu-trigger.active span:nth-of-type(3) {
    transform: translateY(-11px) rotate(45deg);
}

.global-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 105;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        right 0.3s ease;
    padding: 0 24px;
}

.global-nav.active {
    right: 0;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: min(80vw, 600px);
}

.nav__item {
    width: 100%;
}

.nav__item a {
    display: grid;
    grid-template-columns: 1fr auto 24px;
    align-items: center;
    column-gap: 16px;
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--flavia-secondary);
    color: var(--flavia-primary);
    font-size: 13px;
    line-height: 1.2;
    position: relative;
}

.nav__item-en {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
}

/* menu-trigger activeの時にスクロール禁止 */
body.is-fixed {
    overflow: hidden;
}

/* ==========================================================================
   Hamburger ( 1200px 〜 ) 
   ========================================================================== */

@media screen and (min-width: 1200px) {
    .menu-trigger {
        display: none;
    }

    .header__link-area {
        gap: 24px;
    }

    .header__nav-wrapper {
        display: flex;
        align-items: center;
        width: auto;
    }

    .global-nav {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        right: auto;
        padding: 0;
        transition: none;
    }

    .nav__list {
        display: flex;
        align-items: center;
        gap: 32px;
        flex-direction: row;
        width: auto;
    }

    .nav__item {
        flex-shrink: 0;
        width: auto;
    }

    .nav__item-en {
        display: none;
    }

    .nav__item a {
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
        width: auto;
        font-size: 16px;
        transition: transform 0.2s ease-out, opacity 0.2s ease-out;
        padding: 0;
        border: none;
        justify-content: flex-start;
    }

    .nav__item a:hover {
        transform: translateY(2px);
        opacity: 0.8;
    }

    .nav__item a:focus-visible {
        outline: 3px solid var(--flavia-cv-confirm);
        outline-offset: 4px;
    }
}

/* ==========================================================================
   Mainview (Base Styles / 〜768px)
   ========================================================================== */
#mv {
    background-color: var(--dark-brown);
    background-image: url("../images/flavia_wood_bk_sp.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mv__inner {
    width: 90%;
    max-width: 560px;
    margin: auto;
    display: flex;
    padding: 24px 0 140px;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.mv__medal {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 112px;
    height: 112px;
    aspect-ratio: 1 / 1;
    border: 4px solid transparent;
    border-radius: 50%;
    background-image:
        var(--flavia-gradation-inner),
        var(--flavia-gradation-outer);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    filter: var(--grow-shadow);
}

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

.mv__ttl-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mv__ttl,
.mv__catch {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.mv__ttl {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--white);
    color: var(--white);
}

.mv__subttl {
    font-size: 14px;
    line-height: 1.3;
}

.mv__mainttl,
.mv__ttl-en {
    font-family: "Montserrat", sans-serif;
}

.mv__ttl-en {
    line-height: 1.2;
}

.mv__mainttl {
    font-size: 36px;
    line-height: 1.2;
}

.mv__mainttl>span:not(.visually-hidden) {
    font-size: 13px;
}

.mv__catch {
    font-family: "Noto Serif JP", "Hiragino Mincho ProN", "MS Mincho", serif;
    font-size: 14px;
    color: var(--white);
    margin-bottom: 8px;
    filter: var(--grow-shadow);
}

.mv__cv-button {
    position: absolute;
    bottom: 24px;
}

/* ==========================================================================
   Mainview (PC Layout / 769px 〜 ) 
   ========================================================================== */
@media screen and (min-width: 769px) {
    #mv {
        background-image: url("../images/flavia_wood_bk_pc.jpg");
        background-repeat: no-repeat;
        background-position: center bottom;
        background-size: 1440px 626px;
        height: 626px;
    }

    .mv__inner {
        width: 100%;
        max-width: 1440px;
        height: 100%;
        position: relative;
        padding: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .mv__medal {
        width: 130px;
        height: 130px;
        flex-shrink: 0;
    }

    .mv__medal img {
        width: 100px;
        height: 100px;
    }

    .mv__subttl {
        font-size: 16px;
    }

    .mv__mainttl {
        font-size: 64px;
        letter-spacing: 0.3rem;
    }

    .mv__ttl-en {
        font-size: 20px;
        letter-spacing: 0.1rem;
    }

    .mv__catch {
        font-size: 18px;
    }

    .mv__ttl,
    .mv__catch {
        text-align: left;
    }

    .mv__lead {
        display: block;
        width: 100%;
    }

    .mv__text-area {
        width: 100%;
        margin-bottom: 144px;
        background: linear-gradient(90deg, rgba(68, 45, 30, 0.50) 0%, rgba(68, 45, 30, 0.50) 80%, rgba(68, 45, 30, 0.00) 100%);
        padding: 24px 0 24px 64px;
        max-width: 640px;
        position: relative;
        z-index: 2;
    }

    .mv__catch {
        line-height: 1.8;
    }

    .mv__img-area {
        position: absolute;
        right: 40px;
        z-index: 1;
    }

    .mv__cv-button {
        bottom: 72px;
        left: 64px;
    }
}


/* ==========================================================================
   Mainview Animation
   ========================================================================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mv__text-area {
    animation: fadeUp .8s ease-out forwards;
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mv__img-area {
    animation: fadeRight 1s ease-out .3s both;
}

/* ==========================================================================
   Concept (Base Styles / 〜768px)
   ========================================================================== */
#concept {
    background-color: var(--dark-yellow);
    background-image: url("../images/flavia_concept_bk_sp.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding-top: 56px;
}

.concept__inner {
    width: 90%;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.concept__text-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.concept__img-area-last picture {
    filter: var(--grow-shadow);
}

.concept__img-area-first img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.concept__img-area-last {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
    position: relative;
    width: 100%;
}

.concept__img-small {
    position: relative;
    min-width: 150px;
    max-width: 45%;
    height: auto;
    aspect-ratio: 1 / 1;
    display: inline-block;
    z-index: 2;
}

.concept__img-large {
    position: relative;
    min-width: 240px;
    max-width: 73%;
    height: auto;
    aspect-ratio: 3 / 2;
    display: inline-block;
    margin-top: 50px;
    margin-left: -18%;
    z-index: 1;
}

.concept__img-area-last picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Concept PC Layout (769px 〜 1199px)
   ========================================================================== */
@media screen and (min-width: 769px) {
    #concept {
        background-image: url("../images/flavia_concept_bk_pc.jpg");
        background-size: cover;
        background-position: center bottom;
        background-repeat: no-repeat;
        padding: 72px 0 40px;
    }

    .concept__inner {
        max-width: 960px;
        flex-direction: row;
        align-items: center;
        gap: 40px;
        margin: 0 auto;
    }

    .concept__img-area-first {
        display: none;
    }

    .concept__text-area {
        flex: 1;
        gap: 24px;
        text-align: left;
    }

    .concept__img-area-last {
        flex: 0 0 300px;
        max-width: 300px;
        width: 30%;
    }

    .concept__img-large {
        margin-top: 130px;
        margin-left: -90px;
    }
}

/* ==========================================================================
   Concept Large PC Layout (1200px〜) 
   ========================================================================== */
@media screen and (min-width: 1200px) {
    .concept__inner {
        max-width: 1440px;
        justify-content: space-between;
    }

    .concept__img-area-first {
        display: flex;
        flex: 0 0 260px;
        width: auto;
        align-self: flex-start;
    }

    .concept__img-area-first img {
        width: 260px;
        height: 195px;
        object-fit: cover;
    }

    .concept__text-area {
        flex: 0 0 500px;
        max-width: 500px;
        text-align: center;
    }

    .concept__img-area-last {
        flex: 0 0 300px;
        width: 300px;
        height: 330px;
        position: relative;
        display: block;
    }

    .concept__img-area-last picture {
        display: block;
        position: absolute;
    }

    .concept__img-small {
        width: 150px;
        max-width: none;
        height: 150px;
        aspect-ratio: 1 / 1;
        top: 40px;
        left: 0;
        z-index: 2;
    }

    .concept__img-large {
        width: 240px;
        max-width: none;
        height: 160px;
        aspect-ratio: 3 / 2;
        bottom: 0;
        right: 0;
        margin-top: 0;
        margin-left: 0;
        z-index: 1;
    }
}

/* ==========================================================================
   Lineup (Base Styles / 〜768px)
   ========================================================================== */
#lineup {
    padding-top: 80px;
}

.lineup__box {
    padding: 24px;
    border: 1px solid var(--flavia-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: 0 auto 64px;
    max-width: 640px;
}

.lineup__box picture {
    width: 200px;
}

.lineup__box img {
    width: 100%;
    height: auto;
}

.lineup__coffee,
.lineup__tea,
.lineup__specialities {
    margin-bottom: 64px;
    display: flex;
    flex-direction: column;
}

.lineup__menu {
    color: var(--white);
    height: 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    margin-bottom: 24px;
}

.lineup__menu span {
    font-family: "Noto Serif JP", serif;
    font-size: 22px;
    line-height: 1.6;
    display: block;
}

.lineup__coffee h3 {
    background-image: url("../images/flavia_img_lineup_coffee_sp.jpg");
}

.lineup__tea h3 {
    background-image: url("../images/flavia_img_lineup_tea_sp.jpg");
}

.lineup__specialities h3 {
    background-image: url("../images/flavia_img_lineup_specialities_sp.jpg");
}

.lineup__coffee-list,
.lineup__tea-list,
.lineup__specialities-list {
    margin-top: 16px;
    display: grid;
    justify-content: start;
    gap: 16px 4px;
}

.lineup__coffee-list,
.lineup__specialities-list {
    grid-template-columns: repeat(auto-fill, 80px);
}

.lineup__tea-list {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
}

.lineup__coffee-list li,
.lineup__tea-list li,
.lineup__specialities-list li {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lineup__coffee-list img,
.lineup__tea-list img,
.lineup__specialities-list img {
    width: 100%;
    height: auto;
    filter: var(--grow-shadow);
    object-fit: contain;
}

.lineup__arrange {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.lineup__arrange-list {
    background-color: var(--light-gray-200);
    padding: 16px 12px;
    gap: 12px;
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.lineup__arrange-list p {
    flex: 0 0 clamp(96px, 32vw, 120px);
    width: clamp(96px, 32vw, 120px);
    color: var(--flavia-primary);
    font-size: 14px;
    line-height: 1.3;
    background-color: var(--white);
    border-radius: 8px;
    padding: 10px 4px;
    align-self: flex-start;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.lineup__arrange-img {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.lineup__arrange-img img {
    max-width: 100%;
    height: auto;
    max-height: 108px;
    object-fit: contain;
    filter: var(--grow-shadow);
}

.lineup__arrange-img .lineup__plus {
    width: 16px;
    height: 16px;
    filter: none;
    flex-shrink: 0;
}

/* ==========================================================================
   Lineup (PC / 769px 〜 ) 
   ========================================================================== */

@media screen and (min-width: 769px) {
    #lineup {
        padding-top: 100px;
    }

    .lineup__box {
        max-width: 100%;
        flex-direction: row;
        padding: 24px 32px;
        align-items: center;
        justify-content: space-between;
    }

    .lineup__box picture {
        flex: 0 0 200px;
        width: 200px;
        height: auto;
    }

    .lineup__coffee,
    .lineup__tea,
    .lineup__specialities {
        flex-direction: row;
        gap: 64px;
        align-items: flex-start;
        margin-bottom: 100px;
    }

    .lineup__body {
        flex: 1;
    }

    .lineup__menu {
        flex: 0 0 200px;
        width: 200px;
        height: 200px;
        margin-bottom: 0;
    }

    .lineup__coffee h3 {
        background-image: url("../images/flavia_img_lineup_coffee_pc.jpg");
    }

    .lineup__tea h3 {
        background-image: url("../images/flavia_img_lineup_tea_pc.jpg");
    }

    .lineup__specialities h3 {
        background-image: url("../images/flavia_img_lineup_specialities_pc.jpg");
    }

    .lineup__arrange {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .lineup__arrange-list {
        flex: 0 0 300px;
    }
}

/* ==========================================================================
   Features (Base Styles / 〜768px)
   ========================================================================== */
#features {
    background-image: url("../images/flavia_img_features_bk_sp.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 64px 0;
}

.features__list {
    display: flex;
    flex-direction: column;
    margin-top: 32px;
    gap: 32px;
}

.features__item {
    display: flex;
    flex-direction: column;
    background-color: var(--flavia-primary);
}

.features__img-area {
    display: block;
    width: 100%;
    height: 200px;
}

.features__img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.features__text-area {
    background-color: var(--flavia-primary);
    color: var(--white);
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.features__text-area h3 {
    font-family:
        "Noto Serif JP",
        "Hiragino Mincho ProN",
        serif;
    font-size: 18px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--white);
    padding-bottom: 12px;
}

.features__text-area h3 span {
    font-size: 28px;
    flex: 0 0 32px;
    width: 32px;
    line-height: 1;
}

.features__text-area p {
    font-size: 14px;
}

/* ==========================================================================
   Features (PC / 769px〜)
   ========================================================================== */

@media screen and (min-width: 769px) {
    #features {
        background-image: url("../images/flavia_img_features_bk_pc.jpg");
        padding: 100px 0;
    }

    .features__list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 64px;
        gap: 32px 24px;
        align-items: stretch;
    }

    .features__item {
        flex: 0 0 384px;
        min-width: 280px;
        max-width: 100%;
    }

    .features__img-area {
        flex-shrink: 0;
    }

    .features__text-area {
        padding: 24px 24px 32px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .features__text-area h3 {
        font-size: 22px;
        align-items: flex-start;
    }

    .features__text-area p {
        font-size: 16px;
    }
}

/* ==========================================================================
   Cv-section (Base Styles / 〜768px)
   ========================================================================== */

#cv-section {
    background-color: var(--dark-brown);
    background-image: url("../images/flavia_wood_bk_sp.jpg");
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding: 40px 24px;
}

#cv-section .cv-button {
    margin: 0 auto;
}

/* ==========================================================================
   Cv-section (PC / 769px〜)
   ========================================================================== */
@media screen and (min-width: 769px) {
    #cv-section {
        background-image: url("../images/flavia_wood_bk_pc.jpg");
        padding: 80px;
    }
}

/* ==========================================================================
   Service (Base Styles / 〜768px)
   ========================================================================== */
#service {
    padding: 64px 0;
    background: var(--section-gradation-bk);
    position: relative;
    z-index: 1;
}

.service__box {
    max-width: 640px;
    margin: 0 auto;
}

.service__img-area {
    display: block;
    position: relative;
    z-index: 1;
}

.service__box:first-of-type .service__img-area {
    margin-top: 40px;
}

.service__img-area img {
    width: 100%;
    height: 188px;
    object-fit: cover;
}

.service__text-area {
    background-color: var(--white);
    width: 90%;
    padding: 24px;
    margin: -16px auto 40px;
    position: relative;
    z-index: 2;
}

.service__box~.service__box {
    margin-bottom: 64px;
}

.service__text-area h4 {
    background-color: var(--flavia-primary);
    color: var(--white);
    font-size: 16px;
    font-family:
        "Noto Serif JP",
        "Hiragino Mincho ProN",
        serif;
    line-height: 1.3;
    padding: 8px 20px;
}

.service__text-area p {
    margin-top: 16px;
    color: var(--main);
    font-style: normal;
    font-size: 14px;
    line-height: 1.8;
}

.service__text-area p strong {
    color: var(--flavia-cv-primary);
}

.service__point-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.service__point-item {
    background-color: var(--white);
    border: 1px solid var(--flavia-primary);
    padding: 24px;
}

.service__point-ttl {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--flavia-primary);
    margin-bottom: 16px;
}

.service__point-number {
    color: var(--white);
    font-family: "Montserrat", sans-serif;
    font-size: 22px;
    line-height: 1;
    background-color: var(--flavia-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    flex-shrink: 0;
}

.service__point-number span {
    font-size: 16px;
}

.service__point-ttl p {
    font-size: 18px;
    color: var(--flavia-primary);
}

.service__point-body {
    display: flex;
    gap: 16px;
    align-items: center;
}

.service__point-body img {
    width: 100px;
    height: 100px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

.service__point-body p {
    color: var(--flavia-primary);
    font-size: 14px;
    line-height: 1.8;
}

/* ==========================================================================
   Service (PC / 769px〜)
   ========================================================================== */

@media screen and (min-width: 769px) {
    #service {
        padding: 120px 0;
    }

    .service__box {
        max-width: 1200px;
        width: 84%;
        display: flex;
        margin: 0 auto 40px;
    }

    .service__img-area {
        flex: 0 0 38%;
        z-index: 2;
    }

    .service__box:first-of-type .service__img-area {
        margin-top: 64px;
    }

    .service__img-area img {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .service__text-area {
        flex: 1;
        padding: 48px 64px 48px 80px;
        margin: 32px 0 0 -32px;
        z-index: 1;
    }

    .service__text-area h4 {
        font-size: 18px;
    }

    .service__text-area p {
        font-size: 16px;
    }

    .service__box~.service__box {
        flex-direction: row-reverse;
        margin-bottom: 100px;
    }

    .service__box~.service__box .service__text-area {
        margin: 32px -32px 0 0;
        padding: 48px 80px 48px 64px;
    }

    .service__point-list {
        flex-direction: row;
        align-items: stretch;
    }

    .service__point-item {
        padding: 32px;
        flex: 1;
    }

    .service__point-ttl {
        font-size: 18px;
    }

    .service__point-number {
        flex-direction: column;
        gap: 0;
    }

    .service__point-body {
        flex-direction: column;
    }

    .service__point-body img {
        width: 160px;
        height: 160px;
    }

}

/* ==========================================================================
   Model (Base Styles / 〜768px)
   ========================================================================== */
#model {
    position: relative;
    padding: 64px 0;
    z-index: 10;
    overflow: visible;
}

.model__machine {
    background-color: var(--dark-brown);
    background-image: url("../images/flavia_img_model_bk_sp.jpg");
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 100% auto;
    margin-top: 40px;
}

.model__machine-inner {
    padding: 40px 0 160px 0;
    margin: auto;
}

.model__machine-inner-ttl {
    color: var(--white);
    font-family:
        "Noto Serif JP",
        "Hiragino Mincho ProN",
        serif;
    font-size: 16px;
    line-height: 1.3;
    text-align: center;
}

.model__item {
    max-width: 1120px;
    width: 84%;
    margin: 32px auto 0;
    display: flex;
    flex-direction: column;
}

.model__box {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 4px 4px 16px 0 rgba(0, 0, 0, 0.16);
    background-color: var(--white);
}

.model__box {
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.model__box h4 {
    font-size: 14px;
    line-height: 1.3;
    color: var(--flavia-primary);
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 4px solid var(--flavia-primary);
    padding-left: 16px;
}

.model__box h4 span {
    font-family:
        "Noto Serif JP",
        "Hiragino Mincho ProN",
        serif;
    font-size: 18px;
}

.modal__link-btn {
    background-color: var(--flavia-primary);
    color: var(--white);
    width: 240px;
    margin: 0 auto;
    text-align: center;
    border-radius: 4px;
    line-height: 1.3;
    padding: 14px 24px 14px 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
    position: relative;
    justify-content: center;
    gap: 8px;
}

.model__equipment-section {
    padding-top: 56px;
}

.model__equipment-section ul {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.model__equipment-section li h4 {
    font-size: 20px;
    line-height: 1.2;
    color: var(--flavia-primary);
    padding-left: 16px;
    border-left: 4px solid var(--flavia-primary);
}

.model__equipment-section li p {
    font-weight: 400;
}

.model__frame {
    margin-top: 24px;
    padding: 32px 20px;
    background: var(--light-gray-100);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.model__column {
    margin-top: 56px;
    border-radius: 8px;
    background: var(--dark-yellow);
    display: flex;
    padding: 24px 0;
    flex-direction: column;
    font-family:
        "Noto Serif JP",
        "Hiragino Mincho ProN",
        serif;
}

.model__column h3 {
    background: linear-gradient(90deg, #987A55 60%, rgba(152, 122, 85, 0.00) 100%);
    display: flex;
    padding: 10px 20px;
    color: var(--white);
    line-height: 1.3;
}

.model__column-body {
    display: flex;
    flex-direction: column;
}

.model__column-body p {
    font-size: 14px;
    padding: 16px 16px 24px 16px;
}

.model__column-body picture {
    width: 90%;
    margin: 0 auto;
}

.model__column-body picture img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

/* ==========================================================================
   Model (PC / 769px〜)
   ========================================================================== */

@media screen and (min-width: 769px) {
    #model {
        padding: 120px 0;
    }

    .model__machine {
        background-color: var(--dark-brown);
        background-image: url("../images/flavia_img_model_bk_pc.jpg");
        background-position: center bottom;
        background-repeat: no-repeat;
        background-size: 100% auto;
        margin-top: 40px;
    }

    .model__machine-inner {
        padding: 64px 0 240px 0;
    }

    .model__machine-inner-ttl {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        width: 100%;
    }

    .model__machine-inner-ttl::before,
    .model__machine-inner-ttl::after {
        content: '';
        width: 40px;
        height: 1px;
        background-color: var(--white);
        flex-shrink: 0;
    }

    .model__machine-inner-ttl::before {
        margin-right: 10px;
    }

    .model__machine-inner-ttl::after {
        margin-left: 10px;
    }

    .model__item {
        flex-direction: row;
        align-items: flex-start;
        cursor: pointer;
    }

    .model__item:hover .model__box {
        transform: translateY(-4px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    }

    .model__box-img {
        flex: 0 0 clamp(280px, 42%, 480px);
        width: auto;
        max-width: none;
        margin-top: 32px;
        overflow: hidden;
    }

    .model__box-img img {
        display: block;
        width: 100%;
        height: auto;
        transition: transform .4s ease;
    }

    .model__item:hover .model__box-img img {
        transform: scale(1.03);
    }

    .model__box {
        flex: 1 1 0;
        min-width: 0;
        padding: 56px 10% 56px 5%;
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin-right: -40px;
    }

    .model__box h4 {
        font-size: 16px;
    }

    .model__box h4 span {
        font-size: 24px;
    }

    .model__box-img {
        margin-top: 32px;
        max-width: 480px;
    }

    .modal__link-btn {
        margin-top: 16px;
    }

    .model__equipment-section {
        padding-top: 100px;
    }

    .model__equipment-section ul {
        flex-direction: row;
        gap: 40px;
    }

    .model__frame {
        padding: 40px;
    }

    .model__frame-img {
        max-width: 800px;
        margin: 0 auto;
        display: block;
    }

    .model__column {
        margin-top: 100px;
        padding: 40px 0 24px;
    }

    .model__column h3 {
        font-size: 22px;
        padding: 10px clamp(32px, 24vw, 288px) 10px 32px;
    }

    .model__column-body {
        flex-direction: row;
        gap: 16px;
        padding: 0 32px 0;
    }

    .model__column-body p {
        font-size: 18px;
        padding: 24px 0 0 0;
        line-height: 1.8;
    }

    .model__column-body picture {
        width: 240px;
        height: 240px;
        margin: -64px 0 0;
        flex-shrink: 0;
    }

    .model__column-body picture img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .model__item:hover .modal__link-btn {
        opacity: 0.9;
        box-shadow: 0 6px 15px rgba(0, 49, 110, 0.15);
    }

    .model__item:hover .modal__link-btn .arrow-secondary-right {
        transform: translateX(3px);
    }
}

/* ==========================================================================
   Offer (Base Styles / 〜768px)
   ========================================================================== */
#offer {
    background-color: var(--dark-brown);
    background-image: url("../images/flavia_img_offer_bk_sp.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: var(--flavia-primary);
    padding: 40px 0;
}

.offer__box {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

.offer__sub-lead {
    font-family:
        "Noto Serif JP",
        "Hiragino Mincho ProN",
        serif;
    line-height: 1.8;
}

.offer__main-lead {
    padding-top: 16px;
    font-size: 18px;
}

.offer__main-lead strong {
    display: inline-block;
    color: var(--white);
    background: var(--flavia-cv-primary);
    padding: 4px 8px;
    border-radius: 4px;
    margin: 0 4px;
}

/* ==========================================================================
   Offer (PC / 769px〜)
   ========================================================================== */

@media screen and (min-width: 769px) {
    #offer {
        padding: 80px 0;
        background-image: url("../images/flavia_img_offer_bk_pc.jpg");
    }

    .offer__box {
        width: 84%;
        padding: 32px 0;
    }

    .offer__sub-lead {
        font-size: 18px;
    }

    .offer__main-lead {
        padding-top: 8px;
        font-size: 20px;
    }

}

/* ==========================================================================
   Footer (Base Styles / 〜768px)
   ========================================================================== */
#footer {
    background-color: var(--white);
}

.footer__inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0 32px;
}

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

.footer__logo-img {
    display: block;
    width: 180px;
    height: auto;
}

.footer__company-text {
    text-align: center;
    margin-top: 16px;
}

.footer__company-name {
    font-size: 14px;
}

.footer__company-address {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
}

.footer__copyright {
    color: var(--dark-gray);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
    margin: 24px auto 0;
    display: block;
}

/* ==========================================================================
   Footer (PC / 769px〜)
   ========================================================================== */

@media screen and (min-width: 769px) {
    .footer__inner {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        padding: 40px 0;
        flex-direction: column;
    }

    .footer__company {
        flex-direction: row;
        align-items: flex-start;
        gap: 24px;
        margin-right: auto;
    }

    .footer__company-text {
        text-align: left;
        margin-top: 8px;
    }

    .footer__copyright {
        text-align: right;
        margin: 0 0 0 auto;
    }
}

/* ==========================================================================
   Modal (Base Styles / 〜768px)
   ========================================================================== */
/* 画面全体を覆う黒背景を非表示 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-opacity);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* 「is-open」クラスで表示 */
.modal-overlay.is-open {
    display: flex;
}

.modal-spec caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* レイアウト */
.modal-window {
    background-color: var(--white);
    width: min(90%, 1040px);
    padding: 24px 6px;
    position: relative;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

/* 中身のスクロールエリア */
.modal-content {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 18px;
}

/* 閉じるボタン */
.modal-close {
    position: absolute;
    top: -22px;
    right: -8px;
    background-color: var(--dark-gray);
    border-radius: 50%;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.modal-close img {
    width: 20px;
    height: 20px;
}

.modal-ttl {
    background-color: var(--flavia-primary);
    color: var(--white);
    padding: 6px 16px;
    margin-bottom: 16px;
    font-size: 14px;
}

.modal-ttl span {
    font-family:
        "Noto Serif JP",
        "Hiragino Mincho ProN",
        serif;
    font-size: 18px;
    line-height: 1.3;
}

.modal__lead {
    font-family:
        "Noto Serif JP",
        "Hiragino Mincho ProN",
        serif;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.modal__subttl {
    color: var(--flavia-primary);
    font-size: 18px;
    line-height: 1.2;
    padding-left: 16px;
    border-left: 4px solid var(--flavia-primary);
    margin-bottom: 16px;
}

.modal-spec,
.modal-method {
    margin-bottom: 64px;
}

/* 仕様 */
.modal-spec__inner {
    display: flex;
    flex-direction: column;
}

.modal-spec__inner table {
    font-size: 14px;
    margin-bottom: 32px;
}

.modal-spec__inner table tr {
    border-bottom: 1px solid var(--white);
}

.modal-spec__inner table th,
.modal-spec__inner table td {
    padding: 10px 8px;
}

.modal-spec__inner table th {
    background-color: var(--dark-yellow);
    border-right: 1px solid var(--white);
    width: 120px;
}

.modal-spec__inner table td {
    font-weight: 400;
    background-color: var(--pale-yellow);
}

.modal-spec__inner picture {
    width: 280px;
    height: auto;
    margin: 0 auto;
}

/* 手順 */
.modal-method__item {
    background-color: var(--white);
    border: 1px solid var(--flavia-primary);
    padding: 24px;
    margin-top: 40px;
    position: relative;
}

.modal-method__item:first-child {
    margin-top: 24px;
}

.modal-method__item::after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background-image: url("../images/icon_arrow-bottom_modal.svg");
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.modal-method__item:last-child::after {
    display: none;
}

.modal-method__figures {
    display: flex;
    gap: 8px;
}

.modal-method__figures figure {
    position: relative;
    flex: 1;
}

.modal-method__figures figcaption {
    color: var(--white);
    text-align: center;
    font-family:
        "Noto Serif JP",
        "Hiragino Mincho ProN",
        serif;
    font-size: 14px;
    line-height: 1.8;
    background: rgba(0, 49, 110, 0.90);
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 4px 8px;
}

.method__ttl {
    font-size: 18px;
    line-height: 1.2;
    color: var(--flavia-primary);
    margin-top: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--flavia-primary);
    margin-bottom: 8px;
}

.step-label {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    width: 80px;
    display: inline-block;
}

.step-label span {
    font-size: 24px;
}

.method__description {
    font-size: 14px;
    font-weight: 400;
}

/* サイズ */
.modal__box {
    background-color: var(--light-gray-100);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal__box-ttl {
    font-family:
        "Noto Serif JP",
        "Hiragino Mincho ProN",
        serif;
    color: var(--flavia-primary);
    font-size: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--flavia-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.modal__box-text p {
    font-weight: 400;
    font-size: 14px;
}

.modal__box-size {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    align-items: center;
    text-align: right;
}

.modal__box-size-jp,
.modal__box-size-en {
    border: 1px solid var(--flavia-primary);
    border-radius: 4px;
    min-width: 140px;
    padding: 0 12px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__box-size-jp {
    font-size: 14px;
    background-color: var(--white);
    color: var(--flavia-primary);
}

.modal__box-size-en {
    font-family: "Montserrat", sans-serif;
    background-color: var(--flavia-primary);
    color: var(--white);
}

.modal__box-size-wrapper picture {
    display: none;
}

/* ==========================================================================
   Modal (PC / 769px〜)
   ========================================================================== */

@media screen and (min-width: 769px) {

    /* 共通 */
    .modal-window {
        max-height: 88vh;
        padding: 64px 10px;
    }

    .modal-content {
        padding: 0 74px;
    }

    .modal-ttl {
        text-align: center;
        margin-bottom: 24px;
    }

    .modal__lead {
        font-size: 16px;
        text-align: center;
    }

    .modal__subttl {
        font-size: 20px;
    }

    /* 仕様 */
    .modal-spec__inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 40px;
    }

    .modal-spec__inner table {
        flex: 1;
        margin-bottom: 0;
    }

    .modal-spec__inner picture {
        margin: 0;
        flex-shrink: 0;
    }

    /* 手順 */
    .modal-method__item {
        display: flex;
        gap: 24px;
        align-items: flex-start;
    }

    .modal-method__figures figure {
        width: 160px;
        flex: none;
        margin: 0;
    }

    .modal-method__text {
        flex: 1;
    }

    /* サイズ */
    .modal__box {
        padding: 32px 40px;
    }

    .modal__box-ttl {
        font-size: 18px;
    }

    .modal__box-text p {
        font-size: 16px;
    }

    .modal__box-size-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    .modal__box-size-wrapper>picture {
        display: block;
        flex-shrink: 0;
    }

    .modal__box-size-wrapper>picture img {
        width: 100%;
        max-width: 180px;
        height: auto;
        display: block;
    }

    .modal__box-size-line {
        width: 12px;
        height: 180px;
        border: 1px solid var(--main);
        border-left: none;
        margin: 0 10px;
        flex-shrink: 0;
    }
}