* {
    box-sizing: border-box;
}

h1{font-size: 18px;line-height:1.3em;font-family: 'NosutaruDotMPlusH';}
h2{font-size: 16px;font-family: 'NosutaruDotMPlusH';}
img{width:100%;}

@font-face {
    font-family: 'NosutaruDotMPlusH';
    src: url('fonts/Nosutaru-dotMPlusH-10-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: Arial, Roboto, "Droid Sans", "游ゴシック", YuGothic, "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
    background-color:#f7f7f7;
    width:97%;
    max-width: 772px;
    margin:0px auto;
    color: #262626;
}

a:link, a:visited {
    color: inherit; /* テキストの色を親要素から継承 */
    text-decoration: none; /* 必要に応じて下線を消す */
}

header{
    font-family: 'NosutaruDotMPlusH', sans-serif;
	height: 60px;
	background:#ffffff;
	width:100%;
	top:0px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size:20px;
    line-height: 60px; /* 行の高さをheaderの高さに揃える */
    letter-spacing: 1px;
}

.gem{
    letter-spacing: 4px;
}

header img{
    width: 30px;
    margin-right: 15px;
    vertical-align: middle; /* 画像をテキストの中央に揃える */
}


.main {
    background: #ffffff;
    margin: 5px auto 20px auto;
    padding: 5px 111px 20px 111px;
    font-size: 13px;
    line-height: 23px;
}

footer{
    font-family: 'NosutaruDotMPlusH';
	height:100px;
	width:100%;
	top:0px;
    display: flex;
    font-size:15px;
    vertical-align: baseline;
}

.recommend-title{
    margin: 5px auto 5px 0px;
    color: #717071;
}

.recommend{
    margin: 5px auto 20px auto;
    display: flex;
    flex-wrap: wrap;
    font-size:13px;
}

.recommend-item{
    background:#ffffff;
    margin-bottom: 5px;
    margin-right:0.4%;
    padding:10px;
    width:24.6%;
}

.recommend-item p{
    font-size: 11px;
    margin:5px 0 0 0;
    line-height: 1.4em;
}
.price{
    text-align: right;
    font-weight: bold;
}

.list{
    background:#f7f7f7;
    display: flex;
    flex-wrap: wrap;
}

.item{
    position: relative;
    margin-bottom:10px;
    margin-right:1%;
    width:24%;
}

.item img{
    filter:brightness(80%);
}

.item p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
    z-index: 1;
}

@media(max-width:850px){

    body {
        width:100%;
    }
    .main {
        background: #ffffff;
        margin: 5px auto 20px auto; /* 左右のマージンを自動で中央揃え */
        padding: 5px 20px 20px 20px;
        font-size: 13px;
        line-height: 23px;
    }

    .recommend-title{
        margin: 5px auto 5px 10px;
        color: #717071;
    }

    .recommend-item{
        width:49.6%;
    }

    .list{
        padding:0 10px 10px 10px;
    }
    .item{
        margin-right:2%;
        width:48%;
    }
}

.button {
    display: inline-block; /* インラインブロック要素にして幅に合わせる */
    width: 100%;
    padding: 12px 24px; /* 上下に12px、左右に24pxの内側余白 */
    background-color: #ffffff; /* 背景色を白に設定 */
    color: #000000; /* テキストの色を黒に設定 */
    text-align: center;  /* テキストを中央揃え */
    font-size: 16px;     /* フォントサイズを16pxに設定 */
    text-decoration: none; /* テキストの下線をなしに設定 */
    cursor: pointer;     /* カーソルをポインターに設定 */
    border-radius: 8px;  /* 角を少し丸める */
    position: relative;  /* 擬似要素のために相対位置に設定 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 陰影を追加 */
    overflow: hidden;    /* 内側の枠線をボタン内に収める */
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s; /* トランジションを追加 */
}

/* ボタンの内側の枠線 */
.button::before {
    content: ''; /* 擬似要素の内容は空 */
    position: absolute; /* 絶対位置に設定 */
    top: 2px; left: 2px; /* 内側の枠線の位置を設定 */
    right: 2px; bottom: 2px; /* 内側の枠線の位置を設定 */
    border: 2px solid #ffd700; /* 内側の枠線の色を黄色に設定 */
    border-radius: 8px; /* 角を少し丸める */
    z-index: 1; /* 擬似要素をボタンの下に表示 */
}

/* ボタンの外側の枠線 */
.button::after {
    content: ''; /* 擬似要素の内容は空 */
    position: absolute; /* 絶対位置に設定 */
    top: 0; left: 0; /* 外側の枠線の位置を設定 */
    right: 0; bottom: 0; /* 外側の枠線の位置を設定 */
    border: 2px solid #000000; /* 外側の枠線の色を黒に設定 */
    border-radius: 8px; /* 角を少し丸める */
    z-index: 0; /* 擬似要素をボタンの下に表示 */
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2); /* 外側の枠線の影を追加 */
}

.button:hover {
    background-color: #f0f0f0; /* ホバー時の背景色を少し明るく設定 */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* 陰影を強くして立体感を演出 */
    transform: translateY(-2px); /* ボタンを少し浮かせる */
}

.button:active {
    background-color: #e0e0e0; /* クリック時の背景色をさらに暗く設定 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* 陰影を強くして押された感じを演出 */
    transform: translateY(2px); /* ボタンを少し押し込む */
}


