.only-sp { display: none; }
@media (max-width: 768px) { .only-sp { display: block; } }

.only-pc { display: block; }
@media (max-width: 768px) { .only-pc { display: none; } }


.newton-science_body {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    margin: 0;
    padding: 0;
    background-color: #ff0800;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: #333;
}

/* --- maincontents --- */
.page-wrapper {
    background-color: #ffffff;
    max-width: 900px;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.header-logo {
    text-align: center;
    padding: 40px 0;
}
.logo-small {
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
    text-align: center;
    width: 100%;
}
.logo-large {
    margin: 2% 10%;
    text-align: center;
}
.logo-large img {
    max-width: 100%;
    height: auto;
}

/* --- month --- */
.month-section {
    width: 100%;
    text-align: center;
    margin-top: 40px;
    position: relative;
}

.bg-math {
    position: absolute;
    top: 0;
    width: calc(50vw - 450px); 
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bg-math.left { left: calc(-50vw + 450px); }
.bg-math.right { right: calc(-50vw + 450px); }

.bg-math img {
    --max-opacity: 0.3; 
    width: 120%;
    max-width: 450px;
    mix-blend-mode: multiply;
    opacity: 0; 
    margin-top: 50px; 
    transform: rotate(-5deg);
    animation: fadePulse 10s ease-in-out infinite;
}

.bg-math.left img { margin-right: -100px; }
.bg-math.right img {
    margin-top: 200px; 
    transform: rotate(3deg);
    margin-left: -100px;
    animation-delay: -5s;
}

.bg-math.bg-star img {
    --max-opacity: 0.6; 
    mix-blend-mode: screen; 
    transform: none; 
    width: 150%; 
    aspect-ratio: 1 / 1;
    object-fit: cover;
    -webkit-mask-image: radial-gradient(circle, black 40%, transparent 70%);
    mask-image: radial-gradient(circle, black 40%, transparent 70%);
}

@keyframes fadePulse {
    0% { opacity: 0; }
    50% { opacity: var(--max-opacity); } 
    100% { opacity: 0; }
}

@media (max-width: 900px) {
    .bg-math { display: none; }
}

/* --- 月ヘッダー --- */
.month-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Times New Roman', Times, serif;
    margin-bottom: 20px;
}
.year { font-size: 1.2rem; color: #333; }
.month-num {
    font-size: 4rem;
    color: #ff0800;
    line-height: 1;
    margin: 5px 0;
}
.items-count {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #666;
}

.concept-text {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
    font-size: 1.1rem;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
}

/* --- profile --- */
.intro-section {
    width: 85%;
    max-width: 820px;
    margin: 0 auto 50px auto;
    display: flex;
    align-items: stretch; 
    gap: 30px;
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.intro-image {
    flex: 1; 
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.intro-image img {
    width: 100%;
    height: auto;
    display: block;
}

.intro-profile {
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.profile-img-wrap {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e0e0e0;
}
.profile-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name-area {
    display: flex;
    flex-direction: column;
}
.profile-title {
    font-size: 0.75rem;
    color: #666;
    margin: 0 0 5px 0;
}
.profile-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
    color: #333;
}

.profile-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

@media (max-width: 768px) {
    .intro-section {
        flex-direction: column;
        width: 90%;
        padding: 20px;
        gap: 20px;
    }
}

.release-badge {
    display: inline-block;
    border: 1px solid #ff0800;
    color: #ff0800;
    border-radius: 20px;
    padding: 4px 30px;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    margin-bottom: 50px;
    background-color: #fff;
}

/* --- item grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
    width: 80%;
    max-width: 700px;
    margin: 0 auto;
}

.product-item {
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #fff;
    margin-bottom: 15px;
}

.product-info {
    display: grid;
    grid-template-columns: 1fr auto; 
    grid-template-rows: 1fr auto;    
    gap: 10px 15px; 
    text-align: left;
    flex: 1; 
}

.product-text { 
    display: contents; 
}

.product-name {
    grid-column: 1 / -1; 
    grid-row: 1;         
    align-self: start;   
    font-size: 0.85rem;
    margin: 0;
    font-weight: normal;
}

.product-price {
    grid-column: 1;      
    grid-row: 2;        
    align-self: center;  
    font-size: 0.85rem;
    color: #333;
    margin: 0;
}

.detail-btn, .detail-btn-cs {
    grid-column: 2;      
    grid-row: 2;         
    align-self: center;
    text-decoration: none;
    padding: 6px 25px;
    border-radius: 20px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
    text-align: center;
    display: inline-block;
}

.detail-btn {
    background-color: #ff0800;
    color: #fff;
    border: solid 1px #ff0800; 
}
.detail-btn:hover { opacity: 0.8; }

.detail-btn-cs {
    background-color: #fff;
    color: #333;
    border: solid 1px #333;
    cursor: default; 
}

.section-divider { height: 100px; }

/* --- catalog section --- */
.catalog-cta-section {
    width: 80%;
    max-width: 700px;
    margin: 80px auto 20px auto;
    padding: 40px 30px;
    border: 2px solid #ff0800; 
    border-radius: 8px;
    text-align: center;
    background-color: #fff;
}

.catalog-title {
    font-size: 1.2rem;
    color: #ff0800;
    margin: 0 0 15px 0;
    letter-spacing: 0.1em;
    font-weight: bold;
}

.catalog-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    margin: 0 0 25px 0;
}

.catalog-btn {
    display: inline-block;
    background-color: #ff0800;
    color: #fff !important;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 10px rgba(255, 8, 0, 0.3);
}

.catalog-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px); 
    text-decoration: none;
}

@media (max-width: 768px) {
    .product-grid { grid-template-columns: 1fr; width: 90%; }
    .logo-large { font-size: 1.8rem; }
    .concept-text { font-size: 0.95rem; }
    .catalog-cta-section { width: 90%; padding: 30px 20px; }
    .catalog-btn { padding: 12px 30px; font-size: 0.9rem; }
}