/* General Styles */
body {
    margin: 0px;
    font-family: Arial, sans-serif;
}

a {
    text-decoration: none;
    color: #333;
}

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

button {
    padding: 5px 10px;
}

/* Language Switcher */
.language-switch {
    text-align: right;
    margin: 10px;
}

.language-switch button {
    padding: 5px 10px;
    margin-left: 5px;
    cursor: pointer;
}

.language-switch select {
    padding: 5px;
    font-size: 16px;
}

/* Header */
header {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* shop-info */
.text a {
    text-decoration-line: underline;
    color: #00aaff;
}
.shop-info {
    margin-top: -10px;
}

/* Menu */
.button {
    padding: 0 0 30px 5%;
}

.button_type {
    font-family:sans-serif;
    font-size: 30px;
    font-weight: bold;
    padding: 10px;
    color: #000000;
    border-radius: 4px;
    background: #ffe556;
    box-shadow:  7px 7px 9px #665c22,
             -6px -6px 9px #ffff8a;
}

/* Menu gallery */
.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3列表示 */
    gap: 10px;
}

.gallery-image{
    padding: 15px 10px;
    width: 350px;
    height: 350px;
    object-fit: contain;
    margin: 10px;
}

.image{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 1s;
}

/* popup */
.popup{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 80%;
    max-width: 1600px;
    height: 90vh;
    max-height: 800px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    overflow: hidden;
    transition: 1s;
    opacity: 0;
}

.popup.active{
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.popup.active .close-btn,
.popup.active .image-name,
.popup.active .index,
.popup.active .large-image,
.popup.active .arrow-btn{
    opacity: 1;
    transition: opacity .5s;
    transition-delay: 1s;
}

.top-bar{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #000;
    color: #fff;
    text-align: center;
    line-height: 50px;
    font-weight: 300;
}

.image-name{
    opacity: 0;
}

.close-btn{
    opacity: 0;
    position: absolute;
    top: 10px;
    right: 25px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
}

.arrow-btn{
    opacity: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
    border-radius: 50%;
    border: none;
    background: none;
    cursor: pointer;
}

.left-arrow{
    left: 10px;
}

.right-arrow{
    right: 10px;
    transform: translateY(-50%) rotate(180deg);
}

.arrow-btn:hover{
    background: rgba(0, 0, 0, 0.5);
}

.index{
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 80px;
    font-weight: 100;
    color: rgba(255, 255, 255, 0.4);
    opacity: 0;
}

.large-image{
    margin-top: 5%;
    width: 80%;
    height: 80%;
    object-fit: contain;
    opacity: 0;
}
.list {
    list-style: disc;
    font-family: sans-serif;
    font-weight: bold;
    margin-left: 100px;
}
.list2 {
    list-style: disc;
    font-family: sans-serif;
    font-weight: bold;
    margin-left: 30px;
}
.wrapping {
    display: none;
}

@media screen and (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr; /* 1列表示 */
    }

    .gallery-image {
        width: 100%; /* 幅を100%に */
        height: auto; /* アスペクト比を保つ */
    }
}
@media screen and (max-width: 600px) {
    .button {
        transform: translateX(-10px);
        margin-top: 10px;
    }
    .button_type {
        font-size: 11px;
    }
    .gallery-image{
        padding: 5px;
        width: 100%; /* 1列に並べるために幅を100%に設定 */
        height: auto; /* 画像の縦横比を保つために自動調整 */
        transform: translateX(0); /* 水平方向の位置調整を解除 */
        margin: 3px 0; /* 上下の余白を設定して見た目を調整 */
    }

    
    .content {
        font-size: 12px;
    }
    #content {
        font-size: 12px;
    }
    #content iframe {
        width: 350px;
        height: 200px;
    }
    .list {
        margin-left: 40px;
    }
    .wrapping {
        display: inline;
    }
    .sub-title{
        width: 350px;
    }
    .address p {
        width: 350px;
    }
    .location-info {
        flex-direction: column;
    }
    .location-map iframe {
        height: 200px;
        transform: translateX(30px);
    }
    .popup{
        height: 400px;
    }
    .left-arrow{
        left: -8px;
    }
    .right-arrow{
        right: -8px;
    }
    .large-image{
        width: 70%;
        height: 70%;
    }
    .index{
        font-size: 30px;
        margin: 1px;
    }
    .arrow-btn:hover{
        background: rgba(0, 0, 0, 0.5);
    }
    .header-content img {
        width: 250px;
    }
}
@media screen and (max-width: 1024px) {
    .button {
        padding: 0 0 30px 40%;
    }
    .left-arrow img {
        width: 50px;
    }
    .right-arrow img {
        width: 50px;
    }
    .index{
        font-size: 50px;
    }
    .gallery-image {
        padding: 5px;
        width: 100%; /* 1列に並べるために幅を100%に設定 */
        height: auto; /* 画像の縦横比を保つために自動調整 */
        transform: translateX(0); /* 水平方向の位置調整を解除 */
        margin: 3px 0; /* 上下の余白を設定して見た目を調整 */
    }
}

/* Navigation */
nav {
    background-color: #333;
    overflow: hidden;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    justify-content: space-around;
}

nav ul li {
    flex: 1;
    text-align: center;
}

nav ul li a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    display: inline-block;
}

nav ul li a:hover {
    background-color: #111;
    transition: .3s;
}

/* Content */
.content {
    padding: 0px 30px;
}

#content {
    margin: 10px;
    padding: 20px;
}

/* Chatbox */
#chatbox {
    border: 1px solid #ccc;
    padding: 10px;
    width: 300px;
}

#messages {
    height: 200px;
    overflow-y: scroll;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

#user-input {
    width: calc(100% - 60px);
    padding: 5px;
}

/* Full Width Image */
.full-width-image {
    width: 100%;
    height: auto;
}

/* News Section */
.news {
    padding: 50px 0;
    background: #FFF7EA;
}

.inner {
    width: 80%;
    background-color: #fff;
    margin: 0 auto;
    padding: 65px 0 100px;
}

.sub_ttl {
    font-size: 30px;
    text-align: center;
    margin-bottom: 40px;
}

/* News List */
.news_list {
    margin: 0 5%;
}

.news_list_item {
    padding: 25px 0;
    border-bottom: 1px solid #E6E6E6;
}

.news_list_item:first-child {
    border-top: 1px solid #E6E6E6;
}

.news_list_item a {
    position: relative;
    display: flex;
    padding-right: 30px;
}

.news_list_date {
    font-size: 15px;
    display: flex;
    margin-right: 15px;
    align-items: center;
}

.news_item {
    background: #F6C6A2;
    border-radius: 14px;
    width: 6em;
    text-align: center;
    margin-left: 20px;
}

.arrow {
    width: 25px;
    height: 1px;
    background: #707070;
    position: absolute;
    top: 50%;
    right: 0;
}

.arrow::after {
    content: "";
    display: block;
    width: 6px;
    height: 1px;
    background: #707070;
    transform: rotate(45deg);
    position: absolute;
    right: 0px;
    bottom: 2px;
}

/* Responsive News List */
@media screen and (max-width: 1024px) {
    .news_list_item a {
        display: block;
    }
}

@media screen and (max-width: 769px) {
    .news_list_item a {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .arrow {
        display: none;
}
    .news_list_item a {
        padding-right: 0;
    }
}

/* Social Media */
.social-media {
    display: flex;
    gap: 10px;
}

.social-icon {
    text-decoration: none;
    color: #000;
    font-size: 48px;
}

.social-icon:hover {
    color: #007BFF; /* Optional: Change this color to your preferred hover color */
}

/* Custom list style for content lists */
.custom-list {
    list-style-type: disc; /* Default list style */
    padding-left: 40px; /* Adjust padding to accommodate default bullets */
}

.custom-list li {
    position: relative;
    margin-bottom: 10px; /* Space between items */
}

.location-info {
    display: flex;
    justify-content: space-between;
}
.address {
    width: 22%;
}
.location-info p {
    padding: 0 20px;
}
.sub-title {
    padding: 10px;
    margin-left: 10px;
    border-bottom: 2px #0bd solid;
}
.location-map {
    padding: 10px;
    width: 76%;
}
.location-map iframe {
    width: 100%;
}

footer {
    background: #220000;
    text-align: center;
    padding: 5px 0;
}
footer p {
    color: #fff;
    font-size: 0.875rem;
}

/* Responsive Navigation */
@media screen and (max-width: 600px) {
    nav ul {
        flex-direction: column; /* Change to column layout */
        align-items: flex-start; /* Align items to the start */
    }

    nav ul li {
        text-align: left;
        padding-left: 20px; /* Optional: Add padding to align text */
    }

    nav ul li a {
        padding: 10px 0; /* Adjust padding for smaller screens */
    }
}

/* 小さい画面向けのスタイル調整 */
@media screen and (max-width: 768px) {
    header .header-content {
        flex-direction: column;
        align-items: center;
    }
    header .language-switch {
        margin-top: 10px;
    }
    
    /* 見出しと段落 */
    h1 {
        font-size: 24px;
    }
    h2 {
        font-size: 20px;
    }
    h3 {
        font-size: 18px;
    }
    p {
        font-size: 14px;
    }

    /* ナビゲーション */
    nav ul {
        flex-direction: column;
        padding: 10px;
    }
    nav ul li {
        margin: 5px 0;
    }

    /* 動画リスト */
    .video-list {
        padding: 0;
    }
    .video-list h3 {
        font-size: 16px;
    }
    .video-container iframe {
        width: 100%;
        height: auto; /* 高さを自動調整してアスペクト比を維持 */
    }
}

/* より小さい画面向け（スマートフォン） */
@media screen and (max-width: 480px) {
    h1 {
        font-size: 20px;
    }
    h2 {
        font-size: 18px;
    }
    h3 {
        font-size: 16px;
    }
    p {
        font-size: 12px;
    }

    /* 動画コンテナとiframeの調整 */
    .video-container {
        padding: 10px 0;
    }
    .video-container iframe {
        width: 100%; /* 全幅を使って調整 */
        height: 200px; /* スマートフォン向けに高さを小さめに設定 */
    }
}