harset "UTF-8";
/* CSS Document */

*,*::before,*::after{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body{
font-family: serif;
line-height: 1.8;
min-width: 767px;
}
.a{
  max-width: 767px;
  margin: 0 auto;
  background-color: #F4EFEA;
  min-width: 767px;
}
@media(min-width:768px){
  .a{
    border-left:5px solid #d0b786;
    border-right: 5px solid #d0b786;
  }
}
main {
  padding-top: 180px; /* ヘッダー高さ + 余白分 */
}
.container{
  width: 95%;
  margin: 0 auto;
}
body {
      font-family: "M PLUS Rounded 1c", sans-serif;
      margin: 0;
      background-color: #FFFDFA;
  background-image:url("../2x/minatoya_1@2x.png");
  background-position: bottom;
  background-size: 300px;
  background-repeat: repeat-x;
  background-attachment: fixed;
}


/*固定ヘッダー*/
header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%); /* 中央寄せ */
  width: 767px;                /* ← .a と同じ幅に合わせる */
  background-color: #8f1d22;
  z-index: 999;
  height: 170px;
  display: flex;
  justify-content: center;
  align-items: center;
}
header{
  height: 170px;
  background-color: #8f1d22;
  display: block;
  z-index: 999;
  position: fixed;
  top: 0px;
}

header .logo {
  font-size: 40px;
  margin: 0;
}

/* メニューボタンを右に配置 */
.menu-btn {
  position: absolute;
  right: 20px; /* 右端からの距離 */
  font-size: 100px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.5s ease;
  margin-top: -180px;
  color: beige;
}

    /* メニューエリア */
    nav {
      display: grid;
      gap: 10px;
      background-color: #EAE3D8;
      padding: 20px;
      transform: scaleY(0);
      transform-origin: top;
      transition: transform 0.4s ease;
      
    }

    nav.active {
      transform: scaleY(1);
    }

    nav a {
  position: relative;
  background-color: #fff;
  color: #000; 
  text-decoration: none;
  text-align: center;
  padding: 40px;
  border-radius: 8px;
  overflow: hidden;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 26px;
  font-weight: 600;
  display: inline-block;
}

/* 下線アニメーション */
nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px; 
  transform: translateX(-50%);
  width: 0;
  height: 4px; 
  background-color: #8f1d22; 
  transition: width 0.4s ease;
}

/* hoverで赤線が左から右へ伸びる */
nav a:hover::after {
  width: 60%; 
}

/* hover時に背景色と軽い拡大 */
nav a:hover {
  background-color: #f7f3ee;
  transform: scale(1.05);
}


h1{
  width: 130px;
  margin:  0 auto;
  margin-top: 20px;
}

nav ul{
  display: flex;
  list-style-type: none;
  justify-content: center;
  background-color: #fff;
}

nav a{
  color: #000;
  text-decoration: none;
  padding: 20px;
  display: block;
}
/*固定ヘッダーここまで*/

/*①ファーストビュー*/
.main {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #000;
  margin-top: 250px;
}

.main .container {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  overflow: hidden;
}
.slideshow {
  position: relative;
  width: 100%;
aspect-ratio: 3 / 2;
  overflow: hidden;
}
.slideshow img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 2s ease, transform 10s ease;
}
.slideshow img.active {
  opacity: 1;
  transform: scale(1.2); 
}
.slideshow,
.slideshow .container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  overflow: hidden;
}
.main-text {
  left: 30px;
  transform: translate(40px, -500px);
  z-index: 10;
  opacity: 0;
  transition: opacity 3s ease;
}
.main-text img {
  width: 165px;
  height: auto;
  margin: 0;           
  position: relative;
  margin-bottom: -500px;
}
main {
  padding-top: 230px; 
}
.main-text.show {
  opacity: 1;
}
/*①ここまで*/

/*②はじまり*/
.minatoya3{
  width: 500px;
  padding: 100px 0 0 0;
}
.marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.marquee p {
  display: inline-block;
  padding-left: 100%;
  animation: marquee-animation 8s linear infinite;
}
@keyframes marquee-animation {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-100%);
  }
}

h2{
  width: 250px;
  margin: 0 auto;
  padding: 100px 0;
  margin-bottom: -150px;
}
p{
padding: 20px 0;
}
.mokuji{
  width: 300px;
  display: block;
  margin: 0 auto;
  padding: 160px 0 40px 0;
}
.minatoya{
  width: 500px;
  display: block;
  margin: 0 auto;
}

.anim-box.poyopoyo {
  animation: poyopoyo 2s ease-out infinite;
  opacity: 1;
}
@keyframes poyopoyo {
  0%, 40%, 60%, 80% {
    transform: scale(1.0);
  }
  50%, 70% {
    transform: scale(0.95);
  }
}
.minatoya {
  transition: opacity 0.3s ease;
  width: 600px;
}

.minatoya:hover {
  content: url("../2x/minatoya1a@2x.png");
}



/*③こだわり*/
.kodawari {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
}

.kodawari img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 50px;
}

.kodawari .slick-dots {
  bottom: -30px; 
}

.kodawari .slick-dots li button:before {
  color: #8f1d22; 
  font-size: 12px;
}
/*③ここまで*/


/*④献立*/
.kondate img{
  width: 100%;
  height: auto; 
}

.weekday-flip {
  width: 705px;
  height: 935px;
  margin: 50px auto;
  perspective: 1200px;
  position: relative;
  cursor: pointer;
}

.weekday-flip .front,
.weekday-flip .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transition: transform 0.6s;
  border-radius: 10px;
  overflow: hidden;
}

.weekday-flip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.weekday-flip .back {
  transform: rotateY(180deg);
}

/* クリックで回転 */
.weekday-flip.is-flipped .front {
  transform: rotateY(180deg);
}
.weekday-flip.is-flipped .back {
  transform: rotateY(360deg);
}

.today-label{
  font-size: 32px;
  font-weight: bold;
  color: #d0b786;
  text-align: center;
  margin: 0 auto 25px;
  background: #fff;
  padding: 12px 24px;
  border-radius: 15px;
  display: inline-block;
  box-shadow: 3px 3px 0 #d0b786;
}

/* 曜日部分だけ黄金色にする */
.today-label span {
  color: #8f1d22;
}
.kondate {
  text-align: center;
}
/*④ここまで*/


/*⑤ごあいさつ*/
.goaisatu img{
  width: 90%;
  height:  auto;
  display: block;
  margin: 20px auto;
}
/*⑤ここまで*/

/*⑥営業日*/
    h4 {
      text-align: center;
      margin-bottom: 20px;
    }

    table {
      width: 100%;
      max-width: 600px;
      margin: 0 auto;
      border-collapse: collapse;
      background-color: #fff;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    th, td {
      border: 1px solid #ddd;
      text-align: center;
      padding: 10px;
    }

    th {
      background-color: #8f1d22;
      color: white;
    }

    td {
      height: 60px;
      font-size: 16px;
    }

    /* 日曜だけ背景グレー */
    .sunday {
      background-color: #eee;
      color: #999;
    }

    /* 今日の日付を強調 */
    .today {
      background-color: #EEE6D2;
      font-weight: bold;
      border: 2px solid #8f1d22;
    }

    caption {
      font-weight: bold;
      margin-bottom: 10px;
    }

span{
  color: #8f1d22;
}
h4,p{
  text-align: center;
  padding: 30px 0;
  font-size: 30px;
}
.border{
  text-decoration:underline;
  text-decoration-color: #8f1d22;
  text-decoration-thickness:2px;
}

/*⑥ここまで*/

/*⑦アクセス*/
#akusesu{
  text-align: center;
}
address{
  font-size: 30px;
}
/*⑦ここまで*/


/*⑧トップへ戻る*/
.top_modoru{
  display: block;
  width: 550px;
  height: 100%;
  margin: 0 auto;
  padding: 50px 0;
}
.fluffy {

  /* アニメーション名 アニメーションにかかる時間 アニメーションの繰り返し回数 */
  /* fluffy 3秒 無限ループ */
  animation: fluffy 3s infinite;
}

@keyframes fluffy {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
/*⑧ここまで*/

/*⑨フッター*/
footer{
  background-color: #8f1d22;
  color: #fff;
  text-align: center;
  font-size: 40px;
  width: 100%;
  height: auto;        /* ← 高さを自動にする（これが重要） */
  overflow: hidden;
}

/*⑨ここまで*/


/*以下、調整用*/
.flip-container {
  perspective: 1000px; /* 立体感を出す */
  width: 705px;        /* 画像サイズに合わせて変更OK */
  height: 935px;
  margin: 50px auto;
  cursor: pointer;
}

.flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d; 
  transition: transform 0.8s ease; /* 回転アニメーション */
}

.flip-container.flipped .flip-card {
  transform: rotateY(180deg); /* 半回転 */
}

.flip-card img {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; 
  border-radius: 10px;
  object-fit: cover;
}

/* 裏面画像は反転して配置 */
.flip-card .back {
  transform: rotateY(180deg);
}

/* ページ内リンクのずれ防止 */
:target {
  scroll-margin-top: 150px; 
}

a img {
  cursor: pointer;
  transition: 0.2s;
}

a img:hover {
  opacity: 0.7;
  transform: scale(1.03);
}

/* ======================= */
/*   COUPON PAGE          */
/* ======================= */

.coupon-body {
  background: #F8F5F1;
  font-family: "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  color: #8C1F1F;
  padding: 20px;
  background-image: url("../2x/minatoya3@2x.png");
  background-size: 400px;
  background-attachment: fixed;
  background-repeat: repeat-x;
  background-position: bottom;
  max-width: 767px;
  display: block;
  margin: 0 auto;
}

.coupon-body main {
  padding-top: 0 !important;
}

.coupon-container {
  margin: 0 auto;
  text-align: center;
  background-color: #EEE6D2;
  padding: 40px 0;
  border-radius: 50px;
}

.coupon-title {
  font-size: 32px;
  color: #C79D3F;
  margin-bottom: 24px;
}
@media(max-width: 767px){
  .coupon-title {
    font-size: 28px;   /* 少し小さくして収める */
    width: 90%;        /* 画面幅に合わせる */
    max-width: 400px;  /* 文字幅の上限 */
    margin: 0 auto 24px;
    line-height: 1.2;  /* 行間調整 */
  }
}
.coupon-card img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.coupon-info {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-top: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.coupon-text {
  font-size: 28px;
  margin-bottom: 12px;
  font-weight: bold;
}

.coupon-detail {
  text-align: left;
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-top: 8px;
}

.coupon-detail span {
  color: #C79D3F;
  font-weight: bold;
}

.back-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 20px 26px;
  background: #8C1F1F;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: 0.2s;
  font-size: 30px;
}
body.coupon-body {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  background-color: #F4EFEA;
}
.back-btn:hover {
  background: #A72A2A;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0,0,0,0.15);
}

.coupon-container {
  width: 90%;         /* 親幅に合わせる */
  max-width: 500px;   /* 元の幅の上限 */
  margin: 0 auto;
}

.coupon-card img {
  width: 100%;       
  max-width: 500px;
  height: auto;
  background-color: #fff;
}