body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* スマートフォン用のスタイル */
@media (max-width: 600px) {
    .container {
        width: 95%;
        max-width: 800px;
    }

    .logo {
        display: flex;
        align-items: center;        
    }
    
    .logo img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 50px;
        display: block;
    }

    h1 {
        font-size: 1.2em;
        margin: 5px 0;
        text-align: left;
    }

    .content {
        flex-direction: column;
        align-items: flex-start;
    }

    .text-content {
        width: 100%;
    }

    .text-image-pair {
        flex-direction: column;
        align-items: center; 
        width: 100%;
    }

    .text-image-pair .text-content {
        width: 100% !important; 
        text-align: left;
    }

    .text-image-pair .image-container {
        width: 100% !important; 
        text-align: center;
    }

    .text-image-pair .image-container img {
        width: 100% !important; 
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .text-image-pair .image-container.custom-width {
        width: 100%;
    }

    .nav-container {
        display: flex;
        flex-direction: column; 
        align-items: flex-end; 
        justify-content: center;
    }

    nav {
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    nav ul li {
        margin: 10px 0;
    }

    footer {
        text-align: center;
        padding-left: 10px;
        padding-right: 10px;
    }
}



header {
    background-color: rgba(255, 255, 255, 0.97); 
    color: black;
    padding: 0;
    position: sticky; 
    top: 0;
    box-shadow: 0px 0px 16px -6px rgba(0,0,0,0.6);
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    height: 80px;
}
.nav-container {
    display: flex;
    align-items: center;    
    height: 100%;
}
.logo{
    height: 100%;
    max-height: 80px;
    object-fit: contain;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}
nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;    
}
nav ul li {
    display: inline;    
    margin: 0 15px;
}
nav ul li a {
    color: black;
    text-decoration: none;
    font-weight: bold;    
}
section {
    margin-top: 10px;
    padding-top: 5px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    background-color: white;
    max-width: 1200px;    
    text-align: left;    
    box-sizing: border-box;
    overflow: hidden;
}
.text-image-pair {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.text-image-pair .text-content {
    flex: 1;
}
.text-image-pair .image-container {
    width: 40%;
    flex-shrink: 0;
}
.text-image-pair .image-container.custom-width {
    width: 60%; 
}
.image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    margin: 10px 0;
}
.image-container img {
    width: 100%;    
    max-width: 100%;
    height: auto;
    display: block;
}
.image-caption {
    font-size: 1.2em;
    color: #666;
    margin-top: 5px;
    text-align: center;
}
h2 {
    color: #2F5597;
}
p {
    font-size: 1.2em;
    line-height: 1.6;
}
ul li {
    font-size: 1.1em;
}
ul ul li {
    font-size: 1em;
}
footer {
    margin-top: 10px;
    padding: 10px;
    background-color: #2F5597;
    color: white;
    max-width: 1200px;    
    text-align: left;
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
    font-size: 0.9em;
}

.store-links {
    display: flex;
    gap: 10px; 
    justify-content: center;
    margin-top: 20px;
}


.store-link img {
    width: 150px;
    height: auto;
    transition: filter 0.3s ease, opacity 0.3s ease; 
}

.store-link.disabled {
    pointer-events: none; 
    cursor: not-allowed;
}

.store-link.disabled img {
    opacity: 0.5; 
    filter: grayscale(100%); /* グレー表示 */
}

/* 有効化されたとき（disabled を削除した場合） */
.store-link:not(.disabled) {
    pointer-events: auto; /* **クリック可能にする** */
}

.store-link:not(.disabled) img {
    opacity: 1; 
    filter: none; 
    cursor: pointer;
}