/* --- 共通スタイル --- */
body {
  margin: 0;
  font-family: "M PLUS Rounded 1c", sans-serif;
  background: #fff;
  color: #68382f;
}

header {
  display: flex;
  height: 50px;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #ffb86b;
  color: #fff;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

footer {
    background-color: #FFF8F0;
    text-align: center;
    padding: 0.5rem 0;
    font-size: 15px;
  color: #68382F;
    width: 100%;
    margin-top: 20px; /* 上に余白を追加 */
  }

/* --- ローディング画面 --- */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 1.5s ease,
    transform 1.5s ease;
}

/* --- ロゴ画像サイズ（PC） --- */
#loading img {
  width: 800px;
  height: auto;
}

/* --- SPサイズ変更（画面幅767px以下） --- */
@media screen and (max-width: 767px) {
  #loading img {
    width: 500px;
  }
}

/* --- フェードアウト時に追加されるクラス --- */
#loading.fadeOut {
  opacity: 0;
  transform: translateY(-70px);
}


/* --- ハンバーガーメニュー -------------------------------- */
.menu {
  display: flex;
  align-items: center;
  cursor: pointer;
  z-index: 1001;
}
.menu p {
  margin-left: 0.5rem;
  font-weight: bold;
  letter-spacing: 1px;
}
.menu-icon {
  width: 25px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.menu-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- 開閉アニメーション --- */
.menu.active .menu-icon span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.menu.active .menu-icon span:nth-child(2) {
  opacity: 0;
}
.menu.active .menu-icon span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* --- モバイルメニュー --- */
.nav-menu {
  display: none;
  transition: all 0.3s ease;
}
.nav-menu.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff8f0;
  border: 2px solid #e6b800;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 10px;
  width: 80%;
  max-width: 350px;
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
}
.nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
.nav-menu li {
  width: 100%;
  text-align: center;
  padding: 12px 0;
  border-bottom: 1px dashed #e6b800;
}
.nav-menu li:last-child {
  border-bottom: none;
}
.nav-menu a {
  color: #8b4513;
  text-decoration: none;
  font-weight: bold;
  display: block;
  width: 100%;
}
.nav-menu a:hover {
  color: #d2691e;
  background-color: #fff3c4;
  border-radius: 8px;
}

/* --- PCナビ（中央寄せ）--- */
@media screen and (min-width: 769px) {
  .menu { display: none; }

  .nav-menu {
    display: block !important;
    position: static;
    background: none;
    width: 100%;
    text-align: center;
  }

  .nav-menu ul {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    
    padding: 0;
    margin: 0 auto;
  }

  .nav-menu ul li a {
    color: #fff;
    font-weight: bold;
    transition: color 0.3s;
    letter-spacing: -1px; /* ← 文字自体の間隔を少し詰める */
    font-size: 20px;
  }

  .nav-menu ul li a:hover {
    color: #68382f;
  }
}

@media screen and (min-width: 769px) {
  .nav-menu ul li {
    border-bottom: none; /* 横並びでは消す */
  }
}


/* --- モバイル位置調整 --- */
@media screen and (max-width: 768px) {
  .menu {
    position: absolute;
    right: 20px;
    top: 15px;
  }
}

/* --- タイトルセクション --- */
.title-section {
  text-align: center;
  padding: 2rem 1rem;
}

/* --- ロゴの基本設定（モバイル基準） --- */
.title-section .deco {
  width: 100%;
  max-width: 450px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* --- PC用サイズ調整 --- */
@media screen and (min-width: 769px) {
  .title-section .deco {
    width: 100%;
    max-width: 1000px;
  }
}

/* --- 飾り画像（共通） --- */
.deco {
  width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* --- メッセージブロック --- */
.message {
  margin: 2rem auto;
  max-width: 900px;
}

/* --- デフォルト（スマホ・縦並び） --- */
.message-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: left;
}

/* --- PC時（横並び） --- */
@media screen and (min-width: 769px) {
  .message-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 3rem;
  }
  .message-inner.reverse {
    flex-direction: row-reverse;
  }
}

/* --- 画像部分 --- */
.message-image img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

/* 2つ目の message-inner 内の画像だけ上余白 */
.message-inner.reverse .message-image {
  margin-top: 2rem; /* ← 必要な分だけ調整 */
}


/* --- スマホ時の画像サイズ調整 --- */
@media screen and (max-width: 768px) {
  .message-image img {
    max-width: 350px;
  }
}

/* --- アコーディオン部分 --- */
.message-text {
  flex: 1;
  background-color: #fff8f0;
  padding: 1rem;
  border-radius: 10px;
  box-sizing: border-box;
  margin: 0 1rem; /* 左右に余白を追加 */
}

@media screen and (min-width: 769px) {
  /* 2段目（reverse）のアコーディオン部分に上余白を追加 */
  .message-inner.reverse .message-text {
    margin-top: 2rem; /* ←ここで余白の大きさを調整。例：1rem〜3remくらい */
  }
}


/* --- アコーディオン --- */
.accordion {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #fff8f0;
  margin-bottom: 1rem;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.accordion-title {
  display: block;
  background-color: #ffb86b;
  color: #fff;
  font-weight: bold;
  padding: 1rem 1.5rem;
  cursor: pointer;
  position: relative;
}
.accordion-title:hover {
  background-color: #ff9a3c;
}
.accordion-title::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  font-size: 1.2rem;
}
.accordion input[type="checkbox"] {
  display: none;
}
.accordion input[type="checkbox"]:checked + .accordion-title::after {
  content: '−';
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  background: #fff;
  transition: max-height 0.5s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}
.accordion input[type="checkbox"]:checked + .accordion-title + .accordion-content {
  max-height: 1000px;
  padding: 1.2rem 1.5rem;
}
.sign {
  text-align: right;
}


/* --- 団体一覧テーブル --- */
.table-wrap {
  max-width: 100%;
  overflow-x: auto; /* スクロール可能にして安全策もキープ */
  padding: 0 2rem;
  box-sizing: border-box;
}

/* --- テーブル共通 --- */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #ffb86b;
  border-radius: 8px;
  margin: 20px auto;
  background-color: #fff;
}

th, td {
  border: 1px solid #ffb86b;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

/* --- モバイルも PC と同じデザインに統一 --- */
/* （モバイル崩し用のレイアウトを完全に削除） */
@media screen and (max-width: 768px) {
  table {
    width: calc(100% - 4rem);
    margin: 20px auto;
  }
}

/* --- PC版左右余白確保 --- */
@media screen and (min-width: 769px) {
  table {
    width: calc(100% - 4rem);
    margin: 20px 2rem;
  }
}

/* --- TOPボタン --- */
#topBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100px;  /* ← ボタンサイズ */
  height: 100px; /* ← ボタンサイズ */
  transition: transform 0.3s ease;
}

#topBtn img {
  width: 100%;
  height: 100%;
}

#topBtn:hover {
  transform: scale(1.1);
}


/* =========================================================
   🍀 審査結果ページ（result.html）
========================================================= */
body {
  background: url("img/yayai2.png") no-repeat center top / cover;
  background-attachment: fixed;
}

/* 基本レイアウト（審査の様子） */
.award, #review {
  width: 100%;
  clear: both;
  margin: 0 auto 50px;
  text-align: center;
  color: #68382f;
}

#review {
  padding: 35px 10px;
  border: 3px dashed #f4a261;
  border-radius: 18px;
  background-attachment: fixed;
}

/* スマホ*/
@media screen and (max-width: 600px) {

  #review {
    width: auto;
    margin: 0 15px;
    padding: 30px 15px;
    background-attachment: scroll; 
  }

  .screening-img,
  .award-img {
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
  }

  .screening-img img,
  .award-img img {
    max-width: 100%;
    height: auto;
  }
}

.award-title, .review-title {
  width: 100%;
  position: relative;
  margin-bottom: 3vw;
}

.award-title img, .review-title img {
  width: 99%;
}

.award-title h2 {
  position: static;
  font-size: 23px;
  margin: 1vw 0;
  border-bottom: 1px solid #68382f;
  display: inline-block;
  margin-top: 30px;
}

/* タイトルなど */
.award h3, .screening h3 {
  font-size: 20px;
  margin: 0 0 3%;
  text-align: center;
  float: none;
}

.award h3 { 
  color: #f4a261; 
}

.award p {
  font-size: 15px;
  float: right;
  margin-right: 3%;
  text-align: right;
}

.award p span { 
  font-size: 15px; 
}

.award-img, .screening-img {
  clear: both;
  width: 80%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* 画像 */
.award-img img{
  height: 82px;
  margin: 15px 2%;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: 8px solid #fff8f0;
  transform: rotate(-1.5deg);
  transition: transform 0.3s ease;
}

.award-img img:hover,
.screening-img img:hover {
  transform: rotate(0deg) scale(1.05);
}

/* ---------- ✨ レシピカード風デザイン ---------- */ 
.screening { 
  margin: 50px auto; 
  position: relative; 
  width: 90%; 
  max-width: 500px; 
}

/* タイトル（紙カードの上に手書き風） */ 
 .screening p { 
  background: #fffdf7; 
  display: inline-block; 
  padding: 6px 15px; 
  font-size: 20px; 
  border-radius: 6px; 
  margin-bottom: -10px; 
  position: relative; 
  z-index: 5; 
  border: 2px solid #e2b48c; 
  transform: rotate(-1.2deg); 
  box-shadow: 2px 3px 0 rgba(0,0,0,0.12); 
} 

/* レシピカードの枠 */ 
.screening-img { 
  background: #fffefa; 
  border: 4px solid #f0d7b8; 
  padding: 20px; 
  margin: 20px auto 0; 
  border-radius: 10px; 
  width: 85%; 
  position: relative; 
  transform: rotate(-1.5deg); 
  box-shadow: 0 8px 15px rgba(0,0,0,0.18), 0 0 0 4px #fff inset; 
}

/* 上の穴っぽい装飾 */ 
 .screening-img::before { 
  content: ""; 
  position: absolute; 
  top: -14px; 
  left: 50%; 
  transform: translateX(-50%); 
  width: 70px; height: 18px; 
  background: #fffefa; 
  border: 3px solid #e2b48c; 
  border-radius: 10px; } 
  
/* 写真そのもの（デフォルト） */ 
  .screening-img img { 
    width: 100%; 
    border-radius: 6px; 
    background: #fffdfa; 
    padding: 6px; 
    border: 2px dashed #e8c9a4; 
    transform: rotate(-2deg); 
    transition: transform 0.3s ease; 
  } 
  
/* ✨ホバー */ 
  .screening-img img:hover {
     transform: rotate(0deg) scale(1.05); 
   } 
    
/* タイトル */ 
    .screening h3 { 
      color: #cd5c5c; 
      font-size: 25px; 
      margin-bottom: 5px; 
      transform: rotate(0.8deg); 
    }

.screening p {
  font-size: 18px;
  float: left;
  margin: 1% 10% 0 2%;
}

/* PCレイアウト調整 */
@media screen and (min-width: 768px) {

  .award-title h2,
  .review-title h2 {
    font-size: 40px;
  }
  
  .award h3,
  .screening h3 {
    font-size: 38px;
  }
  
  .award p,
  .screening p,
  .award p span {
    font-size: 30px;
  }
  
  .award-img img {
    height: 180px;
    margin: 20px 2%;
  }
  
  .screening-img img {
    height: 200px;
    margin: 20px 2%;
  }
  
  .award,
  #review {
    max-width: 900px;
    margin: 0 auto 80px;
  }
  
  .award-img,
  .screening-img {
    width: 90%;
    gap: 30px;
  }
}

/* =========================================================
   🍳 レシピページ（recipe.html）
========================================================= */
.recipe-title {
  width: 100%;
  position: relative;
}

.recipe-menu {
  clear: both;
  padding: 3%;
}
.recipe-menu h3 {
  font-size: 25px;
  color: #68382f;
  border-bottom: 0.3vw solid #e26600;
  margin-bottom: 3%;
  text-align: center;
}
.recipe-menu ul {
  width: 60%;
  text-align: left;
  list-style: none;
  float: right;
}
.recipe-menu li {
  background-color: #f4a261;
  color: #fff;
  border-left: 1vw solid #e26600;
  padding: 0.5%;
  font-size: 15px;
   
}
.recipe-menu li:hover { opacity: 0.7; }
.recipe-menu img {
  width: 30%;
  float: left;
  transition: 0.5s;
  border-radius: 10px;
  margin-top: 16px;
}




/* アコーディオンで開く部分（PC・モバイル共通デザイン） */
.open-recipe {
  font-size: 16px;         
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.open-recipe table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #68382f; 
  color: #68382f;
  margin: 0 auto;
  box-sizing: border-box;
}

.open-recipe th,
.open-recipe td {
  border: 1px dashed #68382f;  
  padding: 8px;              
  font-size: 16px;           
}

.material {
  width: 20%;
  text-align: center;
}

/* PC　*/
@media screen and (min-width: 1024px) {
  .recipe-menu h3 {
    font-size: 32px; 
  }
  .recipe-menu li {
    font-size: 20px;
  }
}