@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes bounce-custom {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes moveShape {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(20px, -20px) rotate(120deg) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg) scale(0.9);
    }

    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

.animated-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff 0%, #e1f5fe 100%);
}

.shape {
    position: absolute;
    width: 180px;
    height: 180px;
    backdrop-filter: blur(8px);
    animation: moveShape 25s infinite;
}

.shape:nth-child(1) {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
    background: linear-gradient(45deg, rgba(100, 181, 246, 0.1) 0%, rgba(30, 136, 229, 0.1) 100%);
    clip-path: path('M90,0 L180,50 L180,130 L90,180 L0,130 L0,50 Z');
}

.shape:nth-child(2) {
    top: 40%;
    left: 60%;
    width: 120px;
    height: 120px;
    animation: float 8s infinite;
    background: linear-gradient(45deg, rgba(129, 212, 250, 0.1) 0%, rgba(3, 169, 244, 0.1) 100%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.shape:nth-child(3) {
    top: 10%;
    right: 10%;
    animation-delay: -5s;
    background: linear-gradient(45deg, rgba(178, 235, 242, 0.1) 0%, rgba(0, 188, 212, 0.1) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.shape:nth-child(4) {
    bottom: 10%;
    left: 25%;
    animation-delay: -12s;
    background: linear-gradient(45deg, rgba(165, 214, 243, 0.1) 0%, rgba(0, 145, 234, 0.1) 100%);
    clip-path: circle(40% at 50% 50%);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.shape:nth-child(5) {
    bottom: 20%;
    right: 15%;
    width: 150px;
    height: 150px;
    animation: float 12s infinite;
    animation-delay: -6s;
    background: linear-gradient(45deg, rgba(179, 229, 252, 0.1) 0%, rgba(3, 169, 244, 0.1) 100%);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.hero-mask {
    animation: float 6s ease-in-out infinite;
}

.hero-text {
    animation: fadeInUp 1s ease-out forwards;
}

.hero-gradient {
    background: linear-gradient(-45deg, #2c5282, #2b6cb0, #3182ce, #63b3ed);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

.btn-animate {
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.btn-animate:hover {
    transform: translateY(-3px);
}

.btn-primary-custom {
    background: #e63946;
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(230, 57, 70, 0.3);
}

.btn-primary-custom:hover {
    background: #dc2f3d;
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.5);
}

.btn-secondary-custom {
    background: #3b82f6;
    color: #fff;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-secondary-custom:hover {
    background: #2563eb;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.5);
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    color: #333;
    line-height: 1.7;
    background-color: #f8f8f8;
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    width: 100%;
    min-height: 600px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 50%, rgba(0, 0, 0, 0.4) 100%), url('https://source.unsplash.com/1200x600/?mask') right/cover no-repeat;
    color: #333;
    display: flex;
    align-items: center;
    padding: 50px 0;
}

.hero-content {
    width: 50%;
    padding-left: 10%;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #555;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    color: #fff !important;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.product-grid {
    display: block;
    padding: 0;
}

.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    flex-basis: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-content {
    padding: 20px;
}

.product-features {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: #3498db;
}

.material-icons {
    font-size: 24px;
    color: #3498db;
}

#mask-details {
    padding: 40px 20px;
}

#mask-details h2 {
    font-size: 2.2em;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

#mask-details .mask-info {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
}

#mask-details h3 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

#mask-details h4 {
    font-size: 1.2em;
    color: #3498db;
    margin-top: 15px;
    margin-bottom: 5px;
}

#mask-details p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}

#mask-details ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 10px;
}

#mask-details li {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}

.hero-mask img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* Product Details */
#product-details {
    padding: 60px 0;
    background-color: #fff;
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.product-content h3 {
    font-size: 1.5em;
    font-weight: 800;
    color: #2c3e50;
}

.product-gallery {
    position: sticky;
    top: 20px;
}

.product-gallery img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 20px;
}

.product-info h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #2c3e50;
}

.product-price {
    font-size: 1.8em;
    color: #e63946;
    margin-bottom: 30px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.feature-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-box .material-icons {
    font-size: 32px;
    color: #3498db;
    background: #e3f2fd;
    padding: 10px;
    border-radius: 50%;
}

.feature-text h4 {
    font-size: 1.1em;
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.feature-text p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.product-specs {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #dee2e6;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: #666;
}

.spec-value {
    color: #2c3e50;
    font-weight: 500;
}

.chat-bounce {
    animation: bounce-custom 3s infinite;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.product-table th,
.product-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.product-table th {
    background-color: #0078D4;
    color: #fff;
    font-weight: bold;
}

.product-table tr:hover {
    background-color: #f1f1f1;
}


.table-responsive {
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
}

h2 {
    padding-bottom: 10px;
}

#products h2 {
    text-align: center;
}

.product-card.light-blue {
    background-color: rgba(222, 245, 255, 0.5);
}

.badge-custom {
    font-size: 1.25rem;
    padding: 0.5rem 1rem;
}

.ds2-container {
    width: 100%;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.ds2-block {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100% !important;
}

.ds2-symbol {
    font-size: 10rem;
    font-weight: 800;
    background: linear-gradient(to right, #1e90ff, #0078d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.ds2-desc {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    width: 100%;
    max-width: 300px;
}

.ds2-label {
    font-size: 1.2rem;
    color: #0078D4;
    margin: 1rem 0 0.3rem;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.2rem;
}

.ds2-line {
    margin: 0.3rem 0;
    font-weight: 500;
}

.ds2-rank-box {
    background: linear-gradient(to right, #b3e5fc, #0078D4);
    color: white;
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    margin: 0.4rem 0;
    font-weight: bold;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero-mask {
        display: block;
        margin: 0 auto;
        max-width: 100%;
        padding: 0;
    }

    .product-details,
    .product-grid {
        padding: 20px 15px;
    }

    .product-grid {
        display: block;
    }

    .product-card {
        margin-bottom: 20px;
    }

    .product-showcase {
        display: block;
    }

    .feature-grid {
        display: contents;
        width: 100%;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .feature-box {
        margin-bottom: 1rem;
    }

    .feature-item {
        width: 100%;
    }

    .product-gallery {
        position: relative;
    }

    .btn {
        padding: 12px 24px;
        font-size: 1em;
    }

    .ds2-container {
        flex-direction: column;
        gap: 2rem;
    }

    .ds2-block {
        flex-direction: column;
        align-items: center; 
    }

    .product-table {
        display: block;
        overflow-x: auto;
    }
}
