@charset "UTF-8";

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #f3f4f6;
    color: #333;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* =========================================
   Utilities
   ========================================= */
.sp-only { display: none; }
@media (max-width: 768px) {
    .sp-only { display: inline; }
    .pc-only { display: none; }
}

.text-red { color: #E60012; }
.text-blue { color: #0057D9; }
.text-gray { color: #4b5563; }

/* =========================================
   Header
   ========================================= */
   .header-logo-lp {
     display: block;
     background: url(https://www.ymobile.jp/common_c/images/common/logo.svg) no-repeat left top;
     background-size: 128px 26px;
     width: 128px;
     height: 26px;
     padding: 0px;
     margin: 0px auto 38px;
     text-indent: -99em;
     overflow: hidden;
   }

   .l-header-lp {
       position: relative;
       height: 58px;
       -webkit-box-sizing: border-box;
       box-sizing: border-box;
       padding-top: 15px;
   }


/* =========================================
   Hero Section (MV)
   ========================================= */
.hero-section {
    position: relative;
    color: white;
    overflow: hidden;
    text-align: center;
}
.hero-section img{
  width: 100%;
}

/* =========================================
   Navigation Bar
   ========================================= */
.nav-links {
    background-color: #eff6ff;
    border-bottom: 1px solid #dbeafe;
    padding: 1rem 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    position: sticky; /* Make it sticky below header? Or relative. */
    position: relative;
    z-index: 30;
    backdrop-filter: blur(8px);
    background-color: rgba(239, 246, 255, 0.95);
}

.nav-inner {
    max-width: 896px; /* max-w-4xl */
}

.nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
@media (min-width: 768px) { .nav-grid { gap: 1.5rem; } }

.nav-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 0.5rem; /* mobile p-2 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid transparent;
    transition: all 0.3s;
    overflow: hidden;
}
@media (min-width: 768px) { .nav-card { padding: 1rem; } }

.nav-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.nav-card-mnp:hover { border-color: #0057D9; }
.nav-card-upgrade:hover { border-color: #6b7280; }

.nav-card-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
@media (min-width: 768px) { .nav-card-content { gap: 1rem; } }

.nav-icon-wrapper {
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s;
}
.nav-card-mnp .nav-icon-wrapper { background-color: #eff6ff; color: #0057D9; }
.nav-card-mnp:hover .nav-icon-wrapper { background-color: #dbeafe; }
.nav-card-upgrade .nav-icon-wrapper { background-color: #f3f4f6; color: #4b5563; }
.nav-card-upgrade:hover .nav-icon-wrapper { background-color: #e5e7eb; }

.nav-icon {width: 1.9rem;height: 1.9rem;}
@media (min-width: 768px) { .nav-icon {width: 2.5rem;height: 2.5rem;} }

.nav-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.nav-sub {
    font-size: 0.625rem;
    font-weight: 700;
    color: #6b7280;
    line-height: 1;
    margin-bottom: 0.25rem;
}
@media (min-width: 768px) { .nav-sub { font-size: 0.75rem; } }

.nav-main {
    font-weight: 900;
    font-size: 0.75rem;
    line-height: 1.25;
}
@media (min-width: 768px) { .nav-main { font-size: 1.125rem; } }
.nav-card-mnp .nav-main { color: #0057D9; }
.nav-card-upgrade .nav-main { color: #374151; }

.nav-arrow {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s;
}
@media (min-width: 768px) { .nav-arrow { width: 1.5rem; height: 1.5rem; } }

.nav-card-mnp .nav-arrow {background-color: #317cf1;}
.nav-card-upgrade .nav-arrow { background-color: #6b7280; }
.nav-card:hover .nav-arrow { transform: translateY(4px); }
.arrow-icon { width: 0.75rem; height: 0.75rem; }
@media (min-width: 768px) { .arrow-icon { width: 1rem; height: 1rem; } }


/* =========================================
   Main Content General
   ========================================= */
.main-content {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section-block {
    margin-bottom: 5rem;
    scroll-margin-top: 8rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-wrapper {
    display: inline-block;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 1rem;
    font-weight: 900;
    color: white;
    padding: 1rem 3rem;
    border-radius: 9999px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 10;
}
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }
.mnp-theme .section-title { background: linear-gradient(to right, #0057D9, #3b82f6); }
.upgrade-theme .section-title { background: linear-gradient(to right, #374151, #6b7280); }

.title-icon { width: 2rem; height: 2rem; }
@media (min-width: 768px) { .title-icon { width: 2.5rem; height: 2.5rem; } }
.mnp-theme .title-icon { color: #fde047; }
.upgrade-theme .title-icon { color: #e5e7eb; }

.title-glow {
    position: absolute;
    inset: 0;
    filter: blur(24px);
    opacity: 0.5;
    border-radius: 9999px;
    z-index: 0;
}
.mnp-theme .title-glow { background-color: #60a5fa; }
.upgrade-theme .title-glow { background-color: #9ca3af; }

.section-desc {
    margin-top: 1rem;
    font-weight: 700;
    font-size: 1.3rem;
}
@media (min-width: 768px) { .section-desc {font-size: 1.2rem;} }


/* =========================================
   Product Cards
   ========================================= */
.product-grid {
    display: grid;
    gap: 2.5rem;
}
@media (min-width: 768px) { .product-grid { grid-template-columns: 1fr 1fr; } }

.product-grid-single {
    max-width: 28rem; /* max-w-md */
    margin: 0 auto;
}

.product-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.product-image-area {
    background-color: #f3f4f6;
    height: 18rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid #f3f4f6;
    border-radius: 1rem 1rem 0 0;
}

.product-img {
    height: 92%;
    width: 92%;
    object-fit: contain;
    padding: 1rem;
    position: relative;
    z-index: 1;
    transition: transform 0.5s;
}
.product-card:hover .product-img { transform: scale(1.05); }

.badge {
    position: absolute;
    top: 0;
    right: 0;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 1rem;
    border-radius: 0 0 0 0.75rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    z-index: 2;
}
.badge-red { background-color: #E60012; }
.badge-blue { background-color: #3b82f6; }
.badge-yellow { background-color: #facc15; color: black; }

.product-content {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 0 0 1rem 1rem;
    position: relative;
    z-index: 10;
}

.product-info { margin-bottom: 1rem; }

.product-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}
.product-card:hover .product-name { color: #0057D9; }

.product-desc {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

.product-action-area { margin-top: auto; }

/* Price Box */
.price-box {
    margin-bottom: 1.25rem;
    border-radius: 0.75rem;
    border-width: 2px;
    border-style: solid;
    background-color: white;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: border-color 0.3s;
}

.price-box-red { border-color: #fee2e2; }
.price-box-red:hover { border-color: #fecaca; }
.price-box-blue { border-color: #dbeafe; }
.price-box-blue:hover { border-color: #bfdbfe; }

.price-header {
    text-align: center;
    padding: 0.375rem 0;
    border-bottom-width: 1px;
    border-bottom-style: solid;
}
.price-box-red .price-header { background-color: #fef2f2; border-bottom-color: #fee2e2; }
.price-box-blue .price-header { background-color: #eff6ff; border-bottom-color: #dbeafe; }

.price-header-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.price-box-red .price-header-text { color: #E60012; }
.price-box-blue .price-header-text { color: #0057D9; }

.price-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.price-condition {
    margin-bottom: 0.5rem;
    text-align: center;
}

.condition-tag {
    display: inline-block;
    background-color: white;
    border: 1px solid #fecaca;
    color: #E60012;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.price-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 0.25rem;
}

.price-original {
    color: #9ca3af;
    font-size: 1rem;
    text-decoration: line-through;
    font-weight: 500;
}

.price-discount {
    font-size: 0.625rem;
    font-weight: 700;
    color: white;
    background-color: #E60012;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.price-discount.bg-blue { background-color: #0057D9; }

.price-final {
    display: flex;
    align-items: baseline;
    font-weight: 900;
    line-height: 1;
    margin-top: 0.25rem;
}

.price-final .currency {font-size: 1.5rem;margin-left: 0.125rem;}
.price-final .amount { font-size: 3rem; letter-spacing: -0.05em; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1)); }

/* Buttons */
.btn {
    display: block;
    width: 100%;
    text-align: center;
    font-weight: 700;
    padding: 1rem 0;
    border-radius: 9999px;
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(to right, #E60012, #dc2626);
    color: white;
    box-shadow: 0 4px 6px rgba(230, 0, 18, 0.2);
}
.btn-primary:hover {
    background: linear-gradient(to right, #E60012, #dc2626);
}

.btn-change {
    background: linear-gradient(to right, #0057D9, #0047b2);
    color: white;
    box-shadow: 0 4px 6px rgb(0 31 230 / 20%);
}
.btn-change:hover {
    background: linear-gradient(to right, #0057D9, #0047b2);
}

.btn-outline-blue-fill {
    background-color: white;
    border: 2px solid #0057D9;
    color: #0057D9;
}
.btn-outline-blue-fill:hover { background-color: #eff6ff; }

.btn-arrow {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}
.btn:hover .btn-arrow { transform: translate(4px, -50%); }

.link-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    transition: color 0.3s;
}
.link-detail:hover { color: #1e40af; }
.link-arrow { font-size: 0.75rem; }

.section-footer {
    margin-top: 2rem;
    text-align: center;
}

.btn-outline-blue {
    display: inline-block;
    width: auto;
    padding: 0.75rem 2.5rem;
    background-color: white;
    border: 2px solid rgba(0, 87, 217, 0.2);
    color: #0057D9;
    margin-bottom: 0;
}
.btn-outline-blue:hover {
    border-color: #0057D9;
    background-color: #eff6ff;
    transform: translateY(-2px);
}

.btn-outline-gray {
    display: inline-block;
    width: auto;
    padding: 0.75rem 2.5rem;
    background-color: white;
    border: 2px solid #d1d5db;
    color: #4b5563;
    margin-bottom: 0;
}
.btn-outline-gray:hover {
    border-color: #6b7280;
    color: #1f2937;
    background-color: #f9fafb;
    transform: translateY(-2px);
}

.btn-arrow-sm {
    display: inline-block;
    margin-left: 0.25rem;
    transition: transform 0.3s;
}
.btn:hover .btn-arrow-sm { transform: translateX(4px); }

.note-text {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
}


/* =========================================
   Terms Section
   ========================================= */
.terms-section {
    background-color: #f3f4f6;
    padding: 2rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.terms-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #374151;
    font-size: 0.875rem;
}

.terms-list {
    list-style: disc;
    padding-left: 1rem;
}
.terms-list li { margin-bottom: 0.5rem; }


/* =========================================
   Footer
   ========================================= */
.site-footer {
    background-color: white;
    border-top: 1px solid #e5e7eb;
    margin-top: 3rem;
    padding: 2.5rem 0;
}

.footer-inner {
    text-align: center;
}

.copyright {
    font-size: 0.75rem;
    color: #9ca3af;
    line-height: 2;
}


/* =========================================
   Animations
   ========================================= */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

@keyframes ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}

@keyframes snow {
    0% { transform: translateY(-10px) translateX(-10px) rotate(0deg); }
    100% { transform: translateY(20px) translateX(10px) rotate(360deg); }
}

@keyframes shimmer {
    100% { transform: translateX(100%) skewX(-15deg); }
}

/* Button Shimmer Effect */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}
.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    transform: translateX(-100%) skewX(-15deg);
}
.product-card:hover .btn-shimmer::after {
    animation: shimmer 1s infinite;
}

/* Reveal on Scroll */
.reveal-on-scroll {
    opacity: 1; /* Default visible for safety */
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

/* Only hide if JS is confirmed working */
html.js-on .reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

html.js-on .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
