/*
Theme Name: NEWS
Description: イタリアン居酒屋
Version: 1.0
Author: Ren
*/


@charset "UTF-8";

/*CSSライブラリのインポート*/
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@100;200;300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css?family=Noto+Sans+JP:100,300,400,500,700,900&display=swap&subset=japanese");
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic&display=swap');

html {
  font-family: 'Zen Maru Gothic';
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  font-family: "Zen Maru Gothic";
}

.main-visual {
  position: relative; /* 子要素を基準に配置できるようにする */
  width: 100%;
  height: 420px; /* ビューポート全体をカバーする例 */
  overflow: hidden; /* 必要に応じて */
}

.main-visual img{
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.main-visual-text1{
  display: inline-block;
  font-size:80px;
  color:#efe32d;
  text-shadow:
    8px 8px 0 #381d10,
    -2px 2px 0 #381d10,
    2px -2px 0 #381d10,
    -2px -2px 0 #381d10;
  -webkit-text-stroke: 0.1px #fbf5e7;
  font-weight: bold;
  position: absolute;
  z-index: 50;
  top: 50%; /* 親要素の高さの50% */
  left: 50%; /* 親要素の幅の50% */
  transform: translate(-50%, -50%); /* 要素の中心を基準に移動 */
}

.main-background{
  background-image: url('https://ren2022.main.jp/wp-content/themes/ren_php/img/background/MENU3.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* 背景を固定 */
  padding: 200px 140px 100px 140px;
  overflow: hidden;
  object-fit: cover;
}

@media screen and (max-width: 1376px) {
  .main-background{
    padding: 100px 25px 0 25px;
  }
}

.news-all{
  margin: 0 auto ;
  color: #381d10;
}

.news-title{
  font-size: 30px;
  font-weight: bold;
  padding-bottom: 30px;
}

.news-ul{
  display: flex;
  gap: 100px;
}

.news_1{
  width: 100%;
  margin-bottom: 100px;
}

.news-img{
  width: 100%;
  height: 300px;
  display: block;
}

.news-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 0 8px 4px rgba(0, 0, 0, 50%);
}

.news-text_1{
  list-style: none;
  height: 300px;
}

.news-text_1 h1{
  font-size: 24px;
  font-weight: bold;
  line-height: 1.3em;
  padding: 23px 0 15px 0;
}

.news-text_1 dt{
  font-size: 16px;
  color: #90302a;
}

.news-text_1 dd{
  font-size: 16px;
  line-height: 1.8em;
  padding: 15px 0;
}

.click{
  text-align: right;
  list-style: none;
}

@media screen and (max-width: 480px) {
  .news-ul{
    position: relative;
    height: 680px;
  }

  .news_1{
    flex: 0 0 auto; /* 横並びに対応 */
    position: absolute;
  }

  .news-img{
    animation: linear infinite;
  }

  .news-img img{
    animation: linear infinite;
  }

  .news-tex_1 h1{
    animation: linear infinite;
  }

  .news-text_1 dt{
    animation: linear infinite;
  }

  .news-text_1 dd{
    animation: linear infinite;
  }

  .click{
    text-align: right;
    margin-bottom: 70px;
    text-align: right;
    animation: linear infinite;
  }
}

@media (min-width: 481px) and (max-width: 1376px){
  .news-ul{
    gap: 4vw;
  }

  .news-text_1{
    height: 331px;
  }
}

#linked_detail_id{
  margin: 0 auto;
  text-align: center;
}

@keyframes swing {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(3deg);
  }
  50% {
    transform: rotate(0deg);
  }
  75% {
    transform: rotate(-3deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* アニメーションを停止している状態 */
.signboard{
  margin-bottom: 70px;
  max-width: 380px;
  height: 202px;
  transform-origin: center top; /* 回転の基準を上部中央に */
  text-align: center;
}

/* アニメーションを動かすためのクラス */
.smooth-swing {
  animation: swing 3s linear infinite; /* アニメーションを適用 */
}

.img-1{
  display: flex;
  margin-bottom: 100px;
}

.zoom{
  max-width: 580px;
  width: 400px;
  height: 300px;
  margin-right: 70px;
  box-shadow: 0 0 8px 4px rgba(0, 0, 0, 50%);
  object-fit: cover;
}

.text-1{
  width: 762px;
}

.text-1 h2{
  color: #381d10;
  font-size: 3.1vw;
  font-weight: bold;
  line-height: 120%;
  margin-bottom: 45px;
  text-align: left;
}

h3{
  color: #381d10;
  font-size: 47px;
  font-weight: bold;
  line-height: 120%;
  margin-bottom: 45px;
  text-align: left;
  display: inline-block;
}

.img-2 img{
  width: 100%;
  height: auto;
}

.news_text_1{
  color: #381d10;
  font-size: 24px;
  text-align: left;
}

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

@media screen and (max-width: 480px) {
  h3{
    font-size: 24px;
    line-height: 1.3em;
  }

  .signboard{
    margin: 0 auto 70px auto;
    display: block;
  }

  .img-1{
    display: block;
    margin: 0 auto 100px auto;
  }

  .zoom{
    width: 100%;
    margin: 0 auto 45px auto;
  }

  .text-1{
    width: 100%;
  }

  .text-1 h2{
    font-size: 24px;
    line-height: 1.3em;
  }

  .news_text_1{
    line-height: 1.8em;
    font-size: 16px;
  }

  .news-text_1{
    height: auto;
  }
}

footer{
  background-image: url(img/background/footer.png);
  background-size: cover;
  background-position: center;
  width: 100%;
  padding: 100px 0;
}

.footer-2{
  display: flex;
  margin: 0 auto;
  justify-content: space-between; /* 子要素の間隔を自動調整 */
  width: 100%; /* 必要に応じて幅を設定 */
}

.left-1{
  margin-left: 140px;
}

.footer-img img{
  width: 509px;
  height: auto;
  position: relative;     /* 要素の重なり防止 */
  object-fit: cover;
  padding: 0 50px 100px 50px;
}

.footer-tel{
  width: 100%;
  height: auto;
  display: inline-block;   /* テキストの幅に合わせた枠を作る */
  padding: 25px 0;       /* 枠と文字の間に余白を作る */
  border: 2px solid #fcf6e8;  /* 枠線のスタイル */
  border-radius: 0;        /* 角を丸めない（四角のまま） */
  background-color: transparent; /* 背景色を透明にする */
}

.tel-1{
  font-size: 35px;
  font-weight: bold;
  line-height: 115%;
  color: #fcf6e8;
  text-align: center;
  margin-bottom: 20px;
}

.footer-tel dd{
  display: flex;
  align-items: center;    /* 縦方向に中央揃え */
  justify-content: center; /* 横方向も中央揃え */
  gap: 15px;              /* imgとspanの間に余白を追加 */
  position: relative;     /* 要素の重なり防止 */
}

.footer-tel img{
  width: 76px;
  height: 76px;
  position: relative;     /* 要素の重なり防止 */
  object-fit: cover;
}

.footer-tel span a{
  font-size: 64px;
  font-weight: bold;
  line-height: 115%;
  color: #fcf6e8;
  position: relative;     /* 要素の重なり防止 */
  text-decoration: none;
}

.sns{
  display: flex; /* 子要素を横並びに */
  gap: 100px; /* アイコン間のスペース */
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 100px 0 20px 0;
  width: 505px;
}

.footer-sns{
  list-style: none;
}

.footer-sns a{
  display: flex;
  width: 76px;
  height: 76px;
}

.footer-sns img{
  width: 76px;
  height: 76px;
  object-fit: cover;
}

.sns-text{
  color: #fcf6e8;
  font-size: 20px;
  text-align: center;
  width: 505px;
}

.right-1{
  margin-right: 140px;
  color: #fcf6e8;
  font-size: 24px;
  font-weight: bold;
  line-height: 135%;
}

.right-1 dl{
  display: flex;
  padding-bottom: 30px;
}

.right-1 dt{
  width: 215px;
}

.right-1 dd{
  flex: 1;
  text-align: left; /* 左揃え */
  margin: 0; /* デフォルトの余白をリセット */
}

.small-text{
  font-size: 14px;
}

@media screen and (max-width: 480px) {
  footer{
    width: 100%;
    padding: 100px 25px ;
  }

  .footer-2{
    display:block;
  }

  .left-1{
    margin: 0;
  }

  .footer-img img{
    width: 100%;
    padding: 0 0 40px 0;
  }

  .footer-tel{
    align-items: center;
    display: grid;
  }

  .tel-1{
    font-size: 28px;
  }

  .footer-tel img{
    width: 44px;
    height: 44px;
  }

  .footer-tel span a{
    font-size: 42px;
  }

  .sns{
    margin: 40px 0 20px 0;
    width: 100%;
  }

  .footer-sns{
    list-style: none;
  }

  .footer-sns a{
    display: flex;
    width: 76px;
    height: 76px;
  }

  .footer-sns img{
    width: 76px;
    height: 76px;
    object-fit: cover;
  }

  .sns-text{
    width: 100%;
    font-size: 15px;
  }

  .right-1{
    margin-right: 0;
    font-size: 16px;
    margin-top: 70px;
  }

  .right-1 dt{
    width: 38%;
  }
}

@media (min-width: 481px) and (max-width: 1376px) {
  footer{
    width: 100%;
    padding: 100px 25px ;
  }

  .left-1 {
    margin: 0 25px 0 0;
  }

  .footer-img img{
    width: 100%;
    padding: 0 0 100px 0;
  }

  .footer-tel{
    align-items: center;
    display: grid;
  }

  .tel-1{
    font-size: 28px;
  }

  .footer-tel img{
    width: 44px;
    height: 44px;
  }

  .footer-tel span a{
    font-size: 45px;
  }

  .sns{
    margin: 100px 0 20px 0;
    width: 100%;
  }

  .footer-sns{
    list-style: none;
  }

  .footer-sns a{
    display: flex;
    width: 76px;
    height: 76px;
  }

  .footer-sns img{
    width: 76px;
    height: 76px;
    object-fit: cover;
  }

  .sns-text{
    width: 100%;
  }

  .right-1{
    margin-right: 0;
    font-size: 24px;
  }

  .right-1 dt{
    width: 33%;
  }
}

.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 70px;
  height: 70px;
  background: #fcf6e8;
  color: #2F2E2C;
  font-size: 52px;
  text-align: center;
  line-height: 50px;
  cursor: pointer;
  display: none; /* 最初は非表示 */
  transition: opacity 0.3s ease-in-out;
  padding-top: 7px;
  text-decoration: none;
}

.scroll-top:hover {
  background: #2F2E2C;
  color: #fcf6e8;
}

.scroll-top.show {
  display: block;
  opacity: 1;
}