@charset "utf-8";

/* 全体の体裁 */
.section_contents_1 {
  margin-top: 3em;
}
.section_contents_2, .section_contents_3, .section_contents_4, .section_contents_5, .section_contents_6 {
  margin-top: 5em;
}
.section_contents_2 a {
  color: black;
  text-decoration: none;
}
.column_2, .column_4, .column_5 {
  margin-top: 3em;
}

/* 吹き出し */
.speechBubble {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 10px;
  background-color: var(--accent-color);
  text-align: left;
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-white);
}
.speechBubble::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 17%;
  border-style: solid;
  border-width: 20px 10px 0 10px;
  border-color: #ea5532 transparent transparent;
  translate: -50% calc(100% - 1px);
}

/* 小見出し */
.large {
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: bold;
  margin: 0;
}
h6 .large {
  font-size: clamp(16px, 1.7vw, 22px);
}
/* 小さい注釈 */
.notes {
  line-height: 1.3;
}
.small {
  font-size: clamp(12px, 0.8vw, 14px);
  line-height: 1.3;
  margin: 0;
}

/* マーカー */
.marker {
  background:linear-gradient(transparent 50%, var(--line-color) 50%);
  display: inline;
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition:background-size 1.5s;
}
.marker.on {
  background-size: 100% 100%;
}
.fa-solid {
  font-size: clamp(14px, 1.5vw, 20px);
}

/* 関連記事 */
.article {
  padding: 1.5em 1.5em;
  margin: 2em 0;
  font-weight: bold;
  border: solid 3px var(--main-color);
}
.article_title {
  margin: 0 0 5px 0;
  font-size: clamp(14px, 1.3vw, 20px);
}
.article p {
  margin-left: 0;
}
.article:hover {
  background-color: var(--main-color);
  color: var(--color-white);
}
.space {
  font-weight: 400;
}
.article_link p {
  line-height: 2;
}
.article_link img {
  width: 40%;
}

.btn_box{
  width: 100%;
  margin: 0;
}
.animation{
  color: #000;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .1em;
  text-align: center;
  line-height: 50px;
  width: 220px;
  height: 50px;
  background: #FFF;
  margin: auto;
  position: relative;
  display: block;
  overflow: hidden;
  transition: 0.5s;
  border-radius: 100px;
  text-decoration: none;
}
.animation:after {
  font-family: "FontAwesome";
  content: "\f101";
  position: absolute;
  right: 20px;
}
.animation:hover:after {
  animation: fuwafuwa .5s linear infinite;
}
@keyframes fuwafuwa{
 0%{transform:translateX(0)}
 50%{transform:translateX(-5px)}
 100%{transform:translateX(0)}
}


/* topic3 */
.emphasis {
  font-weight: bold;
  margin: 0 0 5% 0;
}

/* 時差でフェードインする画像 */
.overlap_img {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.image_front,
.image_behind {
  width: 100%;
  display: block;
}

.image_front {
  text-align: center;
  width: 100%;
  height: auto;
  display: block;
}
/* 2枚目以降の重ねる画像 */
.image_behind {
  position: absolute;
  top: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: auto;
  object-fit: cover; /* 画像比率が微妙にずれても綺麗にフィットさせる */
  /* アニメーション用（初期状態で隠す場合） */
  opacity: 0;
  transform: scale(0.8); /* 0.8倍の大きさ */
  /* スムーズなアニメーション設定 */
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), /* 滑らかな動き */
              opacity 1.0s ease-out;
}
/* （例）画面内に入ったら上の画像を表示させる場合 */
.overlap_img.is-active .image_behind {
  opacity: 1;
  transform: scale(1);
}
.overlap_img.is-active .image_behind.oven { transition-delay: 0.5s; }
.overlap_img.is-active .image_behind.boil { transition-delay: 1s; }
.overlap_img.is-active .image_behind.residual { transition-delay: 1.5s; }
.overlap_img {
  position: relative;
}

.graph {
  text-align: center;
}
.graph img {
  max-width: 90%;
}
.pc {
  display: none;
}
.heat img {
  max-width: 100%;
}
.heat {
  text-align: center;
}
.seal img {
  max-width: 300px;
  margin-top: 2rem;
}
.seal {
  text-align: center;
}
.cooking  img {
  width: 80%;
  margin: 0 auto;
}
.cooking {
  align-items: center;
}

/* モーダル */
/* カード全般の共通レイアウト設定 */
.card-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 2%;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

/* 個別の背景画像指定 */
.rice {
  background-image: url(../image/image_5.jpg);
  background-repeat: no-repeat;
  background-size: 110%;
}
.noodle {
  background-image: url(../image/image_6.jpg);
  background-repeat: no-repeat;
  background-size: 110%;
}
.waterless {
  background-image: url(../image/image_7.jpg);
  background-repeat: no-repeat;
  background-size: 110%;
}
.rice p,.noodle p,.waterless p {
  margin: 0;
}
/* ボタンとモーダルの設定（元CSSを継承） */
.modal-open-button {
  color: var(--color-black);
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.4); /* 背景画像の上で見やすくするための半透明黒 */
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 60%);
  opacity: 0;
  transition: opacity 0.5s, scale 0s 0.5s;
  scale: 0;
  visibility: hidden;
}
.modal:target {
  opacity: 1;
  transition: opacity 0.5s;
  scale: 1;
  visibility: visible;
}
.close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: black;
  text-decoration: none;
  cursor: pointer;
  transform: translate(50%, -50%);
}
#modal1 .modal-wrapper {
  background-color: var(--color-white);
}
#modal2 .modal-wrapper {
  background-color: var(--color-white);
}
#modal3 .modal-wrapper {
  background-color: var(--color-white);
}
.modal-wrapper {
  position: relative;
  width: 80%;
  max-width: 800px;
  max-height: 1100px;
  padding: 20px;
  margin: auto;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
  /* background-color: var(--color-white); */
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.5s, transform 0.5s;
  transform: rotateY(180deg);
  border-radius: 20px;
  z-index: 0;
  box-sizing: border-box;
}
.modal:target .modal-wrapper {
  opacity: 1;
  transform: rotateY(0);
}
.modal-content h1 {
  margin: 0;
  font-size: 4rem;
  line-height: 1.2em;
  letter-spacing: -0.02em;
}
.card-container span {
  padding: 2% 3%;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 5px;
}
.modal-content {
  height: calc(90vh - 40px);
  overflow-y: auto;
}
.modal h3 {
  line-height: 1.5;
}
.illust {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2%;
}
.illust img {
  width: 40px;
  height: 40px;
}
.illust h3 {
  margin: 0 1%;
}

/* 表 */
table,
th,
td {
  border: 2px solid var(--sub-color);
  border-collapse: collapse;
  text-align: center;
  line-height: 1.7;
}
table {
  width: 100%;
  table-layout: fixed;
  word-break: break-word;
}
td,
th {
  word-break: break-word;
}
.table_wrap {
  overflow-x: auto;
}
thead {
  background-color: var(--table-color);
}
.lane {
  font-weight: 600;
}
.no_1 {
  display: flex;
  align-items: center;
  margin: 1rem 0 0.5rem;
  justify-content: center;
}
.no_1 p {
  margin: 0 0 0 1%;
}
.no_1 img {
  width: 34px;
  height: 34px;
  margin-right: 0.5%;
  margin-left: 0.2%;
}
.rice_block,.noodle_block,.waterless_block {
  text-align: center;
}
.rice_block,.noodle_block:not(.first),.waterless_block:not(.first) {
  margin-top: 6%;
}
.first {
  margin-top: 5%;
}
.rice_block img,.noodle_block img,.waterless_block img {
  max-width: 200px;
  flex-shrink: 0;
}
.rice_block p,.noodle_block p,.waterless_block p {
  line-height: 1.5;
  margin-top: 0;
}
.rice_block div,.noodle_block div,.waterless_block div {
  text-align: left;
}
.no_1 {
  line-height: 1.5;
}
.modal_small {
  font-size: clamp(14px, 1.3vw, 16px);
  text-align: right;
  line-height: 1.5;
}
.noodle_block p,.waterless_block p {
  margin-top: 0;
}
.point_block {
  background-color: var(--bg-color);
  padding: 3%;
  margin-top: 7%;
  border-radius: 10px;
}
.point_block_text div {
  text-align: center;
}
.point_block img {
  max-width: 200px;
}
.point_block p {
  margin: 0;
}
.point_title {
  font-weight: 600;
  color: var(--accent-color);
}

/* レスポンシブ */
/* PC用　画面幅が600px以上の場合に適用 */
@media (min-width: 600px) {
  .article_link {
    display: flex;
  }
  .article_link p {
    line-height: 2.5;
    margin: 0 0 1em 10px;
  }
  .article_link a {
    margin-left: 1em;
  }
  .article_link img {
    width: 30%;
    height: 30%;
  }

  .graph img {
    max-width: 100%;
  }
  .phone {
    display: none;
  }
  .pc {
    display: block;
    margin: 0 auto;
  }
  #modal1 .modal-wrapper {
    background-image: url(../image/image_5_w.jpg);
  }
  #modal2 .modal-wrapper {
    background-image: url(../image/image_6_w.jpg);
  }
  #modal3 .modal-wrapper {
    background-image: url(../image/image_7_w.jpg);
  }
  .illust br {
    display: none;
  }
  .rice_block,.noodle_block,.waterless_block {
    text-align: left;
  }
  .no_1 {
    justify-content: start;
  }
  .point_block {
    text-align: left;
  }
  .illust {
    justify-content: start;
  }
}

/* PC用　画面幅が960px以上の場合に適用 */
@media (min-width: 960px) {
  .section_contents {
    width: 80%;
    padding-top: 2%;
  }
  .contents_box img{
    width: 70%;
  }
  .article {
    margin: 3em 5em;
  }
  .column_1 {
    display: flex;
    gap: 2%;
  }
  .column_1 p {
    flex: 1;
  }
  .cooking {
    flex: 0 0 40%;
  }
  .rice_block {
    display: flex;
    align-items: center;
    gap: 2%;
  }
  .cooking  img {
    width: 100%;
  }
  .point_block_text {
    display: flex;
    gap: 2%;
  }
}

/* PC用　画面幅が1200px以上の場合に適用 */
@media (min-width: 1200px) {
  .article_link p {
    margin: 0 0 10px 1em;
  }
  .article_link a {
    margin-left: 1em;
  }
}

/* PC用　画面幅が1700px以上の場合に適用 */
@media (min-width: 1700px) {
  .section_contents {
    width: 65%;
  }
}

/* スマホ・タブレット用　画面幅が660px以下の場合に適用 */
@media (max-width: 660px) {
  .card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0; /* stickyでの重なり制御のためgapをリセット */
  }
  /* カード要素をラップしている親divのSticky化 */
  #rice_modal,
  #noodle_modal,
  #waterless_modal {
    position: sticky;
    top: 20px; /* 画面上部から固定される位置 */
    width: 100%;
    max-width: 340px;
    margin-bottom: 40px; /* スクロール時のカード間の間隔 */
  }
  /* カード自体のスタイルとシャドウ調整 */
  .card-container .card {
    width: 100%;
    height: 360px;
    /* 重なった時に下のカードと区別しやすくするための影 */
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15), 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  /* 上に重なるにつれて重なり順を正しく制御 */
  #rice_modal {
    z-index: 1;
  }
  #noodle_modal {
    z-index: 2;
  }
  #waterless_modal {
    z-index: 3;
  }
}

/* スマホ・タブレット用　画面幅が520px以下の場合に適用 */
@media (max-width: 520px) {
  .heat img {
    max-width: 100%;
  }
  .cooking img {
    max-width: 100%;
  }

  /* 表レスポンシブ対応 */
  .table_wrap {
    overflow-x: auto;
  }
  .table_wrap table {
    min-width: 700px;
  }
  .cooking img {
    width: 100%;
  }

  .modal h3 {
    padding-left: 5px;
  }
  .modal_small {
    text-align: left;
  }
}

/* スマホ・タブレット用　画面幅が450px以下の場合に適用 */
@media (max-width: 450px) {
  .box1::before {
    border: 1.5px solid var(--color-gray);
  }
  .article_link img {
    width: 100%;
  }
  .contents_box {
    padding: 0;
  }
  .modal_small {
    font-size: clamp(12px, 1.3vw, 16px);
  }
}

/* section4 レスポンシブ対策 */
@media (max-width: 959px) {
  .column_1 {
    min-width: 0;
  }
  .section_contents_4 .column_1 {
    display: block;
    width: 100%;
  }
  .section_contents_4 .seal {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .section_contents_4 .seal img {
    width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto 0;
  }
}