body {
    font-family: 'Arial', sans-serif;
    text-align: center;
    background-color: #fdf0ff;
    color: #333;
    margin: 0;
    padding: 0;
}

/* PC向け（デフォルトのスタイル） */
.service-list {
    display: flex;
    justify-content: center;
    gap: 15px;
}
@media (min-width: 769px) {
    nav {
        flex-direction: row;
        justify-content: flex-end;
    }

    nav a {
        margin-left: 20px;
    }
}


/* タブレット用（768px以下） */
@media (max-width: 768px) {
    .service-list {
        flex-direction: column;
        align-items: center;
    }

    .product-detail {
        flex-direction: column;
        text-align: center;
    }

    .product-detail img {
        width: 80%;
        max-width: 250px;
    }

    .detail-info {
        max-width: 100%;
    }
}

/* スマホ用（480px以下） */
@media (max-width: 480px) {
    .service {
        width: 90%;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .products {
        flex-direction: column;
        align-items: center;
    }

    .product {
        width: 90%;
    }

    .product img {
        max-width: 100%;
    }
}

/* ヘッダー */
header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 20px;
    background-color: #f8f8f8;
}

.logo {
    margin-right: auto; /* ロゴを左寄せ */
}

.logo img {
    height: 100px;
}
.main-visual img {
    width: 100%;
    height: auto;
    object-fit: cover; /* 画像を自然に表示 */
    max-height: 400px; /* 必要なら最大高さを指定 */
}

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
}

nav a {
    display: block;
    margin: 10px 0;
    font-size: 18px;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 20px;
    font-weight: bold;
}

nav ul li a:hover {
    color: #ff6699;
    transition: color 0.3s ease;
}

/* メインビジュアル */
.main-visual img {
    width: 100%;
    max-width: 1500px;
    height: auto;
    margin: 20px 0;
}

/* 商品リスト */
.product-list {
    display: flex;
    flex-wrap: wrap; /* 横幅が足りなかったら折り返す */
    justify-content: center;
    gap: 20px;
}

.product-list h2 {
    font-size: 30px;
    color: #ff69b4;
}

/* 商品一覧のレイアウト調整 */
.products {
    display: flex;
    flex-wrap: wrap;  /* 画面サイズが小さいと折り返す */
    justify-content: center;  /* 中央揃え */
    gap: 20px;  /* 商品の間隔 */
    padding: 20px;
}

.product {
    width: 45%; /* PCでは2列で表示 */
    max-width: 300px;
    text-align: center;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.products img {
    width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: inline-block;
}
.product img:hover {
    transform: scale(1.1);
}

.product h3 {
    font-size: 18px;
    margin: 10px 0;
}

.product p {
    color: #ff6699;
    font-size: 16px;
    font-weight: bold;
}

.mypage {
    text-align: center;
    padding: 20px;
}

.mypage-section {
    background: #fff;
    padding: 15px;
    margin: 10px auto;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 90%;
}

/* ボタン */
.btn, .buy-btn {
    display: inline-block;
    padding: 8px 12px;
    background-color: #ff6699;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover, .buy-btn:hover {
    background-color: #ff1493;
}

/* 商品詳細ページ */
.product-detail {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.product-detail img {
    width: 300px;
    border-radius: 10px;
}

.detail-info {
    max-width: 400px;
}

.product img {
    width: 100%;  /* コンテナの幅に合わせる */
    max-width: 300px;  /* 最大幅を300pxに */
    height: auto;
    border-radius: 10px;
}

.page-title {
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-links {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 10px;
}

.page-links h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.page-links ul {
    list-style: none;
    padding: 0;
}

.page-links li {
    display: inline-block;
    margin: 10px;
}

.page-links a {
    text-decoration: none;
    background: #3498db;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    transition: 0.3s;
}

.page-links a:hover {
    background: #2980b9;
}
