.noto-sans-jp {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
}

.zen-old-mincho-regular {
  font-family: "Zen Old Mincho", serif;
  font-weight: weight;
  font-style: normal;
}

.montserrat {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
}

.oswald {
  font-family: "Oswald", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
}

p {
    font-family: Noto Sans JP;
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
}

a {
  text-decoration: none;
}

body {
    background-color: #ffffff;
    overflow-x: hidden;
    left: auto;
    margin: 0px 0px;
    padding: 0;
    text-align:center;
    width: 100%;
}

.header {
    width: 100%;
    height: 30px;
    margin-top: -10px;
    background-color: #4c4948;
}

.header-inner {
    width: 370px;
    height: 30px;
    margin: auto;
}

.header-inner p {
    width: 100%;
    padding-top: 10px;
    font-family: Montserrat;
    font-weight: 400;
    font-size: 7px;
    letter-spacing: 7px;
    color: white;
    text-align: center;
}

/* タイトル */
.title-obi {
    width: 100%;
    height: 80px;
    background-color: #f3a694;
    margin-top: -30px;
}

.title-obi p {
    font-family: Montserrat;
    font-size: 20px;
    font-weight: 400;
    text-align: center;
    letter-spacing: 5px;
    color: white;
    padding-top: 30px;
}

.menu {
    width: 100%;
    margin: auto;
    margin-top: 60px;
    margin-bottom: 60px;
}

.menu p {
    font-family: Montserrat;
    font-weight: 300;
    font-size: 15px;
    letter-spacing: 2px;
    text-align: center;
    text-decoration: none;
    color: #4c4948;
}

/* --- ここから修正部分 --- */

/* メインエリア（PC表示：幅800px・2列） */
.main-area {
    width: 100%;
    max-width: 800px;
    height: auto;
    background-color: white;
    margin: 50px auto 0;
    padding: 0 15px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2列レイアウト */
    gap: 20px; /* 画像と画像の間の余白 */
}

/* 見出しの画像（aタグごと）は2列分を突き抜けて表示 */
.main-area > a {
    grid-column: 1 / -1;
    display: block;
    margin-bottom: 30px;
}

/* コスメ見出し画像 */
.cosme {
    width: 70%;
    height: auto;
}

/* コスメ詳細画像 */
.cosme-detail {
    width: 100%;
    height: auto;
}

.cosme-line {
    width: 100%;
    margin: auto;
    margin-top: 60px;
    margin-bottom: 60px;
}

/* モバイル表示用の設定（画面幅768px以下の場合：縦1列） */
@media screen and (max-width: 768px) {
    .main-area {
        grid-template-columns: 1fr; /* 1列レイアウト */
        max-width: 370px; /* 元のデザインのモバイルサイズ幅に合わせる */
    }

    /* コスメ見出し画像 */
    .cosme {
        width: 95%;
        height: auto;
    }
}

/* --- ここまで修正部分 --- */

.footer {
    width: 100%;
    height: 60px;
    background-color: #f3a694;
    margin-top: 60px;
}

.footer p {
    font-family: Montserrat;
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 7px;
    padding-top: 25px;
    color: white;
}