@charset "UTF-8";

body {
    font-family: "Noto Sans JP", serifsans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 横スクロールを防止 */
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* キービジュアル 　style.cssで制御を、dashimaki.htmlで変更している個所*/
.fv-container {
    /* background-blend-mode: soft-light;
    background-color: rgba(255, 255, 255, 0.2);
    background-image: url(../img/keyvisual.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover; */
    min-height: 80vh;
    /* display: flex; */
    /* align-items: center; */
}

.font-style {
    color: #ef9504;
    font-weight: 700;
    font-size: 1.2rem;
}
.shop-info-data a:hover {
    color: var(--hover-color);
}

/*=======================================
  お勧め　Recommend   共通
  type　<section id="recommend" class="imgtext">
  type2 <section id="recommend2" class="imgtext"> 
=========================================*/
#recommend .width-container,
#recommend2 .width-container {
    width: min(92%, 1166px);
    margin: auto;
    position: relative;
    background-color: #f1d49e;
    border-radius: 30px;
    padding: 1%;
}
#recommend .release,
#recommend2 .release {
    color: red;
    margin-bottom: 2%;
}

.posts-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 55px 55px;
}

@media (min-width: 1024px) {
    .posts-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.posts-container h2 {
    margin-top: 0.8rem;
}
.posts-container h3 {
    margin-top: 0.8rem;
}
.posts-container ul {
    list-style: initial;
    list-style-position: inside;
}

.rec-top-img {
    max-width: 80%;
    justify-self: center;
    align-items: center;
}

.rec-mini-img {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    /* text-align: center; */
    align-items: center;
}
.rec-mini-img img {
    border-radius: 10px;
}

.mini-post {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}
@media (max-width: 768px) {
    .mini-post {
        grid-template-columns: repeat(1, 1fr);
    }
}

/*=======================================
  お勧め３　Recommend #3　ワンハンドだし巻き
  type2 <section id="recommend2" class="imgtext"> 
=========================================*/
#recommend2 .posts-text {
    margin-bottom: 1rem;
}
@media (min-width: 768px) {
    #recommend2 .posts-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    #recommend2 .posts-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/*=======================================
detailsアコーディオン表示
=========================================*/

/* summary要素の基本スタイル設定 */
summary {
    font-size: 1rem;
    font-weight: bold;
    color: #454545;
    cursor: pointer;
    margin: 5px 20px;
    padding: 5px;
    border: 2px solid #454545;
    border-radius: 10px;
    background-color: #fdfdeb;
    list-style: none;
}

summary:hover {
    cursor: pointer;
}

summary::marker,
summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: "[+] 詳しく見る";
    margin-right: 10px;
    font-size: 1em;
    color: #454545;
}

details[open] summary {
    color: gray;
}

details[open] > summary::before {
    content: "[-] 閉じる";
    color: gray;
}

details p {
    margin: 0;
}

details[open] .details-content {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

/*=======================================
  本文　dmt全アイテム
  <section id="dmt" class="wrapper>
=========================================*/

.filters {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap; /* スマホ画面での改行を許可 */
}

.filters label {
    margin-right: 10px;
    white-space: nowrap; /* ラベルのテキストが折り返されないように設定 */
}

.filters select {
    padding: 5px;
    margin-right: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    appearance: none; /* デフォルトのプルダウンスタイルを保持 */
    -moz-appearance: none;
    -webkit-appearance: none;
    background: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="none" stroke="%23333" stroke-width="2" d="M1 4l5 5 5-5"/></svg>')
        no-repeat right 10px center;
    background-size: 12px;
    background-color: white; /* 背景色を追加 */
    padding-right: 30px; /* テキストと背景画像の間のスペースを追加 */
}

/* #main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box; 

} */

#data-container {
    display: grid;
    gap: 20px; /* 必要に応じてアイテム間のギャップを調整 */
    justify-content: center; /* 中央に配置 */
    margin-right: calc(100vw - 100%); /* 縦スクロールバーを避ける */
}

@media (min-width: 1440px) {
    /* 大型ディスプレイ向け設定 */
    #data-container {
        grid-template-columns: repeat(5, 1fr); /* 5列 */
    }
}

@media (min-width: 1024px) and (max-width: 1439px) {
    /* PC向け設定 */
    #data-container {
        grid-template-columns: repeat(4, 1fr); /* 4列 */
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* タブレット向け設定 */
    #data-container {
        grid-template-columns: repeat(3, 1fr); /* 3列 */
    }
}

@media (max-width: 767px) {
    /* スマホ向け設定 */
    #data-container {
        grid-template-columns: repeat(2, 1fr); /* 2列 */
    }
}

article {
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    margin: 10px;
    padding: 5px;
    width: 100%; /* 幅を100%に設定 */
    max-width: 300px; /* 最大幅を300pxに設定 */
    border-radius: 10px;
    transition: opacity 0.5s ease-in-out; /* フェードイン・アウトのためのトランジション */
    box-sizing: border-box; /* ボックスサイズをパディングを含むものに設定 */
    word-wrap: break-word; /* 長い単語を折り返す */
    flex-grow: 1; /* コンテンツが多い場合に高さを伸ばす */
}

article.fade-out {
    opacity: 0; /* フェードアウト */
}

article.fade-in {
    opacity: 1; /* フェードイン */
}

article img {
    width: 100%; /* 画像の幅を100%に設定して画面幅に収まるようにする */
    height: auto; /* 高さを自動調整 */
    border-radius: 10px;
    cursor: pointer; /* ポップアップのために追加 */
    transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out; /* トランジションを追加 */
}

/* 振動・拡大アニメーションを適用しない */
a.shake[href] img {
    animation: none !important;
    transform: none !important;
}

/* article .shake img:hover {
    transform: scale(1.05);
    animation: shake 0.15s;
} */

/* 震える効果のアニメーション */
/* @keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }
    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }
    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }
    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }
    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }
    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }
    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }
    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }
    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }
    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }
    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
} */

.product-info {
    display: flex;
    justify-content: space-between; /* 左右に配置 */
    align-items: center; /* 中央揃え */
}

.product-info h3 {
    margin: 0;
    flex: 1;
}

.product-info .small-img {
    width: 60px; /* 小さな画像の幅を指定 */
    height: auto;
    border-radius: 5px;
}

.popup-img p {
    text-decoration: underline;
}

article p {
    margin: 5px 0; /* マージンを設定してスペースを確保 */
    line-height: 110%;
}

article p a {
    display: inline-block;
    margin-bottom: 5px;
}

article .categories {
    color: #007bff;
}

.link-buttons {
    display: flex;
    justify-content: space-around; /* ボタンを均等に配置 */
    flex-wrap: no-wrap;
    margin-top: auto;
}

.link-buttons a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px 2px;
    margin: 2px;
    border: 1px solid #000;
    background-color: #d6f108;
    border-radius: 5px;
    max-width: 45px; /* ボタンの最大幅を設定 */
    height: 45px; /* ボタンの高さを固定 */
}

.link-buttons a.shop:hover {
    background-color: var(--hover-color);
}

.link-buttons a.link-icon-blank {
    border: 1px solid transparent; /* 空のリンクボタンの枠線を透明にする */
    background-color: transparent; /* 背景色を透明に設定 */
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center; /* 中央揃えのために追加 */
    margin: 20px 0;
    flex-wrap: wrap; /* 2行表示のために追加 */
}

.pagination button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 65px;
    line-height: 60px;
    border-radius: 80% 80% 80% 80% / 100% 100% 65% 65%;
    border: 1px solid #252424;
    box-shadow: 0 5px 8px -2px rgba(0, 0, 0, 0.1),
        0 3px 6px -4px rgba(0, 0, 0, 0.5);
    margin: 5px 10px; /* 上下のスペースを追加 */
    aspect-ratio: 1 / 1;
    transition: transform 0.3s ease-in-out; /* ホバー時の回転効果 */
}

.pagination span {
    margin: 0 10px; /* スペースのために追加 */
    font-size: 24px; /* 同じ高さに表示 */
}

.pagination button:hover {
    background-color: #c2bfbf;
    transform: rotate(35deg);
}

.pagination button.active {
    background-color: #eb4700c1;
    color: #ffffff;
    border-color: #007bff;
}

.pagination button:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.popup-img:hover,
.product-link a:hover {
    color: var(--hover-color);
    cursor: pointer; /* ポインタを指示手に変更 */
}

.popup {
    display: none; /* 初期状態では非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999; /* 最前面に表示 */
    overflow: hidden; /* スクロールを非表示 */
}

.popup-content {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    width: 80%; /* 幅を80%に設定 */
    height: 80%; /* 高さを80%に設定 */
    max-width: 80%;
    max-height: 80%;
    overflow: auto; /* スクロールを許可 */
    position: relative;
}

.popup img {
    max-width: 100%; /* 画像の幅を親要素の幅に合わせて縮小 */
    max-height: 100%; /* 画像の幅を親要素の幅に合わせて縮小 */
    width: auto;
    height: auto;
    border-radius: 10px;
}

.popup:target {
    display: flex; /* ターゲットされたときに表示 */
}
.popup .close {
    position: absolute;
    top: 70px;
    right: 20px;
    background: white;
    border: 2px solid #ccc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10001; /* 最前面に表示 */
}

.popup .close:hover {
    background: var(--hover-color);
    color: #000;
}

@media (max-width: 1024px) {
    .pagination {
        flex-wrap: wrap;
    }
    .pagination button {
        width: 40px; /* ボタンのサイズを縮小 */
        height: 50px;
        line-height: 50px;
    }
}

@media (max-width: 768px) {
    article {
        width: 100%;
        cursor: pointer;
    }
    .filters {
        flex-direction: column; /* フィルタリングセクションを縦に並べる */
        align-items: center; /* 中央に揃える */
    }
    .link-buttons {
        display: flex; /* スマホではリンクボタンを表示 */
    }
    .pagination {
        flex-wrap: wrap;
    }
    .pagination button {
        width: 40px; /* ボタンのサイズを縮小 */
        height: 50px;
        line-height: 50px;
    }
    .popup-content {
        width: 80%; /* 幅を80%に設定 */
        height: 80%; /* 高さを80%に設定 */
        max-width: 80%;
        max-height: 80%;
    }
}

/*=======================================
  本文　dmtアレンジ dmt-arrange
  <section id="meals" class="posts">
=========================================*/

 /* 長いURLを折り返す */
/* .meals-text a {
    word-wrap: break-word;
    overflow-wrap: break-word; 
} */
.arrange-pic-grid {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(2, 1fr); 
    margin-top: 1%;
    margin-bottom: 50px;
}
.arrange-pic-grid img {
    width: 100%; 
    height: auto; /* 画像の高さを自動で調整して、比率を維持 */
    aspect-ratio: 1/1; /* 正方形に揃える場合に便利 */
}

@media (min-width: 768px) {
    .arrange-pic-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px 20px;
    }
}

@media (min-width: 1024px) {
    .arrange-pic-grid {
        grid-template-columns: repeat(5, 1fr); 
        gap: 40px 30px;
    }
}

/* Additional styles for the meals section */
#meals .width-container {
    width: min(95%, 1900px);
    margin: auto;
    position: relative;
    background-color: #f1d49e;
    border-radius: 30px;
    padding: 1%;
}

#meals .name p {
    max-width: 80em;
}

#meals .name a {
    font-weight: bold;
    text-decoration: underline;
    color: #000;
}

#meals .name a:hover {
    color: #000;
}

.dmt-overlay {
    position: relative;
}

.dmt-overlay p {
    position: absolute;
    color: rgb(239 149 4);
    font-size: .7em;
    background-color: antiquewhite;
    border-radius: 30px;
    margin: 0;
    padding: 5px 10px;
    top: 90%;
}

.dmt-overlay img {
    width: 100%;
}

@media (min-width: 768px) {
    #meals .arrange-pic-grid {
        gap: 30px 20px;
    }
}

@media (min-width: 1024px) {
    #meals .arrange-pic-grid {
        gap: 40px 30px;
    }
}

/*=======================================
  美味しさの秘訣　reason
=========================================*/
#reason .width-container {
    width: min(95%, 1166px);
    margin: auto;
    position: relative;
    background-color: #f1d49e;
    border-radius: 30px;
    padding: 1%;
}
.imgtxt-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(30px, 6vw, 50px)
}
@media (min-width: 768px) {
    .imgtext img {
        display: block;
        max-width: 100%;
        height: auto;
    }
    .imgtxt-container {
        flex-direction: row;
        align-items: center;
    }
    .imgtxt-container.reverse {
        flex-direction: row-reverse;
    }
    .imgtxt-container > .text {
        flex: 1.5;
        min-width: 17em;
    }
    .imgtxt-container > .img {
        flex: 1;

    }
}




figure.img {
    text-align: center; /* 中央揃えに設定 */
}

figure.img img {
    display: inline-block; /* インラインブロック要素として設定 */
        height: auto; /* 自動調整設定 */
    width: auto;

    max-width: 100%; /* 親にフィットするように設定 */
}




.timeline {
    list-style: decimal inside;
    margin-top: 1rem;
}
.timeline-item {
    margin-bottom: 2rem;
}

.timeline-title {
    font-size: 1.375rem;
    display: inline-block;
    margin-bottom: 0.2rem;
}
#reason p {
    margin: 0;
}

@media (min-width: 600px) {
    .timeline-item {
        display: flex;
        margin-bottom: 0;
    }
    .timeline-title {
        width: 20%;
        padding: 1rem 1rem 1rem 0;
        text-align: right;
    }
    .timeline-content {
        border-left: 3px solid #f8f6f2;
        width: 80%;
        padding: 1rem 0 1.5rem .5rem;
    }
}

/*=======================================
  footer
=========================================*/

.footer {
    z-index: 999;
}
