@charset "UTF-8";

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    --color-primary: #e60012;
    --color-secondary: #f39800;
    --color-accent-blue: #0044cc;
    --color-accent-review: #cc6666;
    --color-accent-coupon: #d96cd2;
    --color-accent-flyer: #66bf60;
    --color-accent-info: #26adc2;

    --text-color: #333;
    --text-color-light: #666;
    --bg-color: #f9f9f9;
    --white: #ffffff;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);

    --radius-md: 8px;
    --radius-lg: 16px;

    --font-base: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}


/* ==========================================================================
   Base Styles & Reset (Scoped to #app_wrap)
   ========================================================================== */

#app_wrap {
    font-family: var(--font-base);
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    font-size: 16px;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding-bottom: 60px;
    overflow-x: hidden;
    text-align: left;
}

#app_wrap img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

#app_wrap a {
    text-decoration: none;
    color: inherit;
}

#app_wrap ul,
#app_wrap ol {
    list-style: none;
}

/* Utilities */
.pc-hide {
    display: none !important;
}

.sp-hide {
    display: block !important;
}

.color-red {
    color: var(--color-primary);
}

.clear {
    clear: both;
}

/* ==========================================================================
   Main Visual
   ========================================================================== */
#app_mainv {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
    background: var(--white);
}

#app_mainv img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    /* Remove inline-block gap */
}

/* ==========================================================================
   Lead & Download Section
   ========================================================================== */
#app_lead {
    position: relative;
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

#lead_heading {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
    background: var(--color-primary);
    line-height: 0;
}

#lead_heading img {
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
}

/* Download Box */
.app_download {
    position: relative;
    z-index: 2;
    background: var(--white);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    text-align: center;
}

.dl_heading {
    color: var(--color-primary);
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.dl_list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    list-style: none;
}

.dl_list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dl_btn img {
    height: 60px;
    width: auto;
    transition: transform 0.2s ease;
}

.dl_btn:hover img {
    transform: scale(1.05);
}

.dl_qr {
    width: 80px;
    height: 80px;
}

/* ==========================================================================
   Content Grid
   ========================================================================== */
#app_content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1080px;
    margin: 40px auto;
    padding: 0 20px;
}

#smile_banner {
    grid-column: 1 / -1;
    text-align: center;
}

#smile_banner a {
    display: block;
}

#smile_banner img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#smile_banner a:hover img {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

#smile_banner p {
    margin-top: 10px;
    font-weight: bold;
    font-size: 20px;
    color: var(--text-color);
}

#kids_banner {
    max-width: 1080px;
    margin: 0 auto 60px;
    /* Same margin-bottom as app_news */
    padding: 0 20px;
    text-align: center;
}

#kids_banner a {
    display: block;
}

#kids_banner img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#kids_banner a:hover img {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}


/* Content Items */
.content_item {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.content_item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.content_item_body {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    z-index: 1;
}

.content_item_body h3 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.content_item_body p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.content_item_eyecatch {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    /* Slight overlay */
}

/* Specific Item Styles */
.content_item-l {
    grid-column: 1 / -1;
    /* Full width */
    background: linear-gradient(135deg, #f39800, #ffb642);
}

.content_item-m#content_review {
    background: linear-gradient(135deg, #cc6666, #e78e8e);
}

.content_item-m#content_coupon {
    background: linear-gradient(135deg, #d96cd2, #f39ce1);
}

.content_item-s#content_flyer {
    background: linear-gradient(135deg, #66bf60, #8dd987);
}

.content_item-s#content_information {
    background: linear-gradient(135deg, #26adc2, #5cd0e2);
}

/* Buttons inside items */
.content_btn a {
    display: inline-block;
    background: var(--white);
    color: #333;
    /* Default text color */
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    position: relative;
    padding-right: 40px;
}

/* Match button text color to card color */
#content_member .content_btn a {
    color: var(--color-secondary);
}

#content_review .content_btn a {
    color: var(--color-accent-review);
}

.content_btn a::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transition: right 0.2s;
}

.content_btn a:hover::after {
    right: 10px;
}

/* ==========================================================================
   News Section
   ========================================================================== */
#app_news {
    max-width: 1080px;
    margin: 60px auto;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

#app_news h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.news_links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news_link {
    color: #0044cc !important;
    text-decoration: underline;
    font-size: 18px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
#app_faq {
    max-width: 1080px;
    margin: 60px auto;
    padding: 20px;
}

#app_faq h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

#app_faq h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
}

.faq_list {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 30px;
}


.faq_list dt {
    padding: 20px 50px 20px 20px;
    /* Make room for arrow */
    border-bottom: 1px solid #eee;
    font-weight: bold;
    font-size: 18px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
}

.faq_list dt:hover {
    background-color: #f9f9f9;
}

.faq_list dt i {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-style: normal;
    margin-right: 10px;
    font-size: 14px;
}

/* Accordion Arrow */
.faq_list dt::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%) rotate(0deg);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--text-color-light);
    transition: transform 0.3s ease;
}

.faq_list dt.is-show::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq_list dt.is-show {
    border-bottom: none;
    /* Merge with content visually */
}


.faq_list dd {
    padding: 20px 20px 20px 60px;
    color: var(--text-color-light);
    font-size: 16px;
    border-bottom: 1px solid #eee;
}

.faq_list dd:last-child {
    border-bottom: none;
}

.faq_list dd i {
    position: absolute;
    left: 50px;
}

.faq_list dd {
    position: relative;
}

.faq_list dd::before {
    content: 'A';
    position: absolute;
    left: 20px;
    top: 20px;
    width: 28px;
    height: 28px;
    background: #333;
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-weight: bold;
    font-size: 14px;
}

/* FAQ Images */
.faq_image_wrap {
    margin: 15px 0;
    text-align: left;
}

.faq_image_wrap img {
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.faq_note {
    font-size: 14px;
    color: #777;
    margin-top: 5px;
}

/* ==========================================================================
   Bottom Download & OS Notice
   ========================================================================== */
.bottom_dl {
    margin: 60px auto;
}

.os_notice {
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid #ddd;
    padding: 30px;
    border-radius: var(--radius-md);
    background: #fff;
    text-align: center;
}

.os_notice h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.notice_body {
    text-align: left;
    font-size: 15px;
}

.supported_os {
    background: #f0f0f0;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

/* ==========================================================================
   Modals (Magnific Popup overrides)
   ========================================================================== */
.modal_content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 800px;
    margin: 20px auto;
    position: relative;
}

.modal_heading {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--color-primary);
}

.modal_entry_banner {
    display: block;
    margin: 0 auto 30px;
    text-align: center;
}

.list_use {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.number_heading {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.about_number {
    background: #f5f5f5;
    padding: 20px;
    border-radius: var(--radius-md);
}

.about_wrap {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about_notes {
    flex: 1;
    font-size: 14px;
}

.about_image {
    width: 200px;
    flex-shrink: 0;
}

.center {
    text-align: center;
}

.check_card_img {
    text-align: center;
    margin: 20px 0;
}


/* ==========================================================================
   Responsive
   ========================================================================== */
@media screen and (max-width: 768px) {

    .pc-hide {
        display: block !important;
    }

    .sp-hide {
        display: none !important;
    }

    /* General Layout */
    #app_wrap {
        padding-bottom: 30px;
    }

    /* Downloads */
    .app_download {
        width: 90%;
        padding: 20px;
    }

    .dl_list {
        flex-direction: column;
        gap: 10px;
    }

    .dl_qr {
        display: none;
    }

    /* Content Grid to Single Column */
    #app_content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .content_item {
        flex-direction: column;
        text-align: center;
    }

    .content_item_eyecatch {
        width: 100%;
        order: -1;
        /* Move image to top */
        background: rgba(0, 0, 0, 0.05);
        /* Lighter bg for mobile */
    }

    .content_item_body {
        padding: 20px;
    }

    .content_btn a {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    /* Links */
    .news_links {
        text-align: left;
    }

    /* FAQ Mobile */
    .faq_list {
        padding: 15px;
    }

    .faq_list dt {
        font-size: 16px;
        padding: 15px 15px 15px 40px;
    }

    .faq_list dt i {
        position: absolute;
        left: 0;
        top: 15px;
    }

    .faq_list dd {
        padding: 15px 15px 15px 40px;
    }

    .faq_list dd::before {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 12px;
        left: 10px;
        top: 15px;
    }

    /* Modal Mobile */
    .about_wrap {
        flex-direction: column;
    }

    .about_image {
        width: 100%;
        text-align: center;
    }
}

/* Ensure global header priority doesn't break app layout */
@media screen and (max-width: 1091px) {

    #container_all,
    #container_all_w {
        width: 100% !important;
    }
}