*{
   caret-color: transparent;
}

/* ヘッダー全体設定 */
.header-title {
  display: flex;
  justify-content: space-between; /* 左右に配置 */
  align-items: center;
  padding: 10px 40px;
  background-color: #fffaf5;
  border-bottom: 2px solid #e0d2b6;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
}

/* 左側の店名 */
.text-block p {
  font-size: 1.4rem;
  font-weight: bold;
  color: #5c4033;
  margin: 0;
}

/* 右上のボタン群 */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 右側：ホームボタンとメニューリンクの横並び */
.home {
  width: 40px;
  height: auto;
  transition: transform 0.3s;
  margin-left: -205%;
}
.home:hover {
  transform: scale(1.1);
}

.menu-links a {
  text-decoration: none;
  color: #5c4033;
  font-weight: bold;
  margin-left: 15px;
  transition: color 0.3s;
}
.menu-links a:hover {
  color: #a88763;
}

/* main部分：固定ヘッダーに隠れないよう余白を確保 */
main {
  padding-top: 100px;
  text-align: center;
}

/* 内装画像のスタイル */
.interior_img {
  width: 440px;              /* 幅を固定 */
  height: 330px;             /* 高さを固定 */
  object-fit: cover;         /* はみ出した部分をトリミングして中央表示 */
  margin: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  vertical-align: middle;
}


/*------------------------------ モーダル背景-------------------------------------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
}

/* モーダル枠 */
.modal-content {
  background: #fff;
  width: 700px;
  margin: 5% auto;
  border-radius: 10px;
  padding: 20px;
  position: relative;
}

/* 閉じるボタン */
.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 25px;
  cursor: pointer;
  caret-color: transparent;
}

/* ボックス（画像サイズに左右されない） */
.image-box {
  width: 600px;      /* ← 固定幅 */
  height: 550px;     /* ← 固定高さ */
  background: #f4f4f4;
  padding: 15px;
  border-radius: 10px;
  margin: 0 auto;
  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* 画像がボックスに収まる */
.modal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

/* 矢印 */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  cursor: pointer;
}

/* 左矢印（←） */
.arrow.left {
  left: -25px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-right: 20px solid #333;
}

/* 右矢印（→） */
.arrow.right {
  right: -25px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 20px solid #333;
}

.arrow:hover { opacity: 0.7; }



/* フッター */
footer {
  text-align: center;
  padding: 20px;
  background-color: #f4ede5;
  color: #333;
  margin-top: 50px;
}

/*「トップに戻る」ボタン*/
.back-to-top {
  text-align:right;
  margin: 20px 0;
}

.back-to-top a {
  display: inline-block;
  background-color: #8b6f47; /* カフェ風のブラウン */
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
}

.back-to-top a:hover {
  background-color: #a88763;
  transform: translateY(-3px);
}


/* ==============================
   スマホ画面（768px以下）
============================== */
@media screen and (max-width: 600px) {
  /* 写真を1列 or 2列に調整 */
  .interior_img {
    width: 44%;       /* スマホでは画面幅に合わせる */
    height: 50%;     /* 高さは自動調整 */
  }
  .header-title {
    flex-direction: column; /* 縦に配置 */
    align-items: flex-start;
    padding: 10px;
  }

  .modal-content{
    width: 300px;       
    height: 50%; 
    margin-top: 20%;    
  }

  .image-box{
    width: 250px;
    height: 50%;
    margin-top: 20%;
  }
}
