html,
body {
    overflow-x: hidden;
    /* 横スク禁止 */
    position: relative;
    /* レイアウト基準を安定 */
    width: 100%;
    /* 強制的に100%幅 */
}

.main {
    margin: 0 auto;
    max-width: 900px;
    width: 100%;
    height: auto;
}

h1.nakasudenomunara {
    text-align: center;
    font-weight: bold;
    font-size: 1.3em;
    margin: 2em auto 10px auto;
    width: 95%;
}

.you {
    width: 100%;
    height: auto;
}

.you video {
    width: 100%;
    height: auto;
}

.you p {
    text-align: center;
}

.you p a {
    color: white;
}

.shops {
    display: flex;
    flex-wrap: wrap;
}

.shops div {
    width: 31%;
    margin: 1%;
    height: auto;
}

.shops img {
    width: 100%;
    height: auto;
}

.title h2 {
    font-weight: bold;
}

.title {
    margin: 2em auto 1em auto;
    font-size: 22px;
    font-weight: bold;
    color: #393329;
    margin-left: 5px;
    line-height: 23px;
}

.title p {
    font-size: 13px;
    color: #767168;
}

.bac_g {
    background-color: #ececec;
    width: 100%;
    height: auto;
    padding: 2em 0;
    margin-top: 1em auto;
}

.casts {
    display: flex;
    flex-wrap: wrap;
}

.casts div {
    width: 23%;
    height: auto;
    margin: 1%;
}

.casts div img {
    width: 260px;
    height: 294px;
    object-fit: cover;
}

.casts div a {
    color: black;
}

.casts div p {
    position: relative;
    bottom: 24px;
    left: 3px;
    color: white;
    font-weight: bold;
    font-size: 13px;
    text-shadow: rgb(48, 48, 48) 1px 0 10px;
}

.casts div p a {
    color: white;
}

.rogo_girl {
    display: flex;
    width: 80% !important;
    justify-content: center;
    align-items: center;
}

.rogo_girl div img {
    width: 100% !important;
    height: auto !important;
    margin: 0.5em auto;
}

.rogo_girl div {
    font-size: 8px;
    color: #353535;
}

.info {
    border-bottom: solid 1px #bebebe;
    padding: 1em 0;
    margin: 1em auto;
    line-height: 1.7em;
    width: 95%;
}

.info p span {
    background-color: #393329;
    color: white;
    margin-right: 1em;
    padding: 0.5em;
}

.kakko {
    font-family: "Vujahday Script", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 48px;
    transform: rotate(-2deg);
    margin-left: 11px;
    margin-bottom: 12px;
}

.shop_in {
    width: 95%;
    height: auto;
    margin: 2em auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.shop_in .shopp {
    width: 27%;
    height: auto;
    margin: 1%;
    background-color: white;
    border: solid 1px #cfcfcf;
    padding: 1em;
}

.shopp > h2 {
    font-size: 20px;
    font-family: serif;
    text-align: center;
    margin-top: 1em;
}

.shopp p {
    margin: 1em auto;
}

.fre_shop p {
    font-size: 13px;
}

.fre_shop p a {
    color: #353535;
}

.shopp h3 {
    background-color: #353535;
    width: 80%;
    margin: 2em auto;
    height: auto;
    padding: 1em 0.5em;
    border-radius: 50px;
    color: white;
    text-align: center;
}

.shopp h3 a {
    color: white;
}

.com {
    line-height: 2em;
    margin: 2em auto;
    width: 95%;
}

.map {
    width: 95%;
    height: auto;
    margin: 0 auto;
}

.map iframe {
    width: 100%;
    height: 300px;
}

.cart_moto {
    background-color: #fefefe;
    border: solid 1px #353535;
    margin: 2em auto;
    padding: 1em;
    width: 100%;
    max-width: 250px;
    border-radius: 50px;
    text-align: center;
}

.cart_moto p {
    text-align: center;
}

.cart_moto a {
    color: #353535;
}

.bff_in {
    color: white;
}

.bff_in img {
    width: 70px;
    height: auto;
}

.roo,
.roo p {
    text-align: center;
}

.roo p {
    margin: 5px auto;
}

@media screen and (max-width: 991px) {
    .shops div {
        width: 100%;
    }
    .kakko {
        font-size: 31px;
    }
    .shop_in .shopp {
        width: 98%;
        margin: 2em auto;
    }
    .rogo_girl div {
        margin: 0 !important;
    }
}

@media screen and (max-width: 700px) {
    .casts div {
        width: 31%;
        margin: 1em 1%;
    }
    .casts div img {
        width: 243px;
        height: 194px;
    }
}

.gra {
    width: 98%;
    height: auto;
    margin: 2em auto;
    position: relative;
}

.gra p {
    position: absolute;
    bottom: 16%;
    left: 2px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: rgb(48, 48, 48) 1px 0 10px;
}

.gra img {
    width: 100%;
    height: auto;
}

.rogo_girl_gra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #353535;
    margin-top: 6px;
    max-width: 500px;
}

.rogo_girl_gra img {
    width: 100%;
    height: auto;
}

.gra_title {
    margin: 1em auto;
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

.gra_title p,
.gra_title h2 {
    text-align: center;
}

.gra_photo {
    display: flex;
    margin: 2em auto;
    width: 98%;
    height: auto;
    max-width: 1200px;
    flex-wrap: wrap;
}

.gra_photo div {
    margin: 1%;
}

.gra_photo img {
    width: 100%;
    height: auto;
}

/* ====== Diaries Unique Style ====== */

/* ====== Diaries Unique Style ====== */

.diary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* PC時は4列 */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 98%;
}

.diary-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.diary-main-image {
    width: 100%;
    aspect-ratio: 16/9;
    /* 比率維持してリサイズ */
    object-fit: cover;
    display: block;
}

.diary-bottom {
    display: flex;
    align-items: center;
    padding: 12px;
}

.diary-girl-image {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
    border: 2px solid #ddd;
}

.diary-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.diary-title {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    line-height: 1.4em;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    /* 2行まで表示 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.diary-date {
    font-size: 12px;
    color: #555;
    margin-top: 6px;
    text-align: right;
}

/* --- レスポンシブ --- */

@media (max-width: 1024px) {
    .diary-grid {
        grid-template-columns: repeat(3, 1fr);
        /* タブレット：3列 */
    }
}

@media (max-width: 768px) {
    .diary-grid {
        grid-template-columns: repeat(2, 1fr);
        /* スマホ：2列 */
        gap: 12px;
    }
}
