/* 知也 tomoya 網頁風格樣式 - 精簡後版本 */

:root {
  --main-red: #7b4b3a;
  --deep-red: #5f3a2d;
  --light-red: #f1e6e3;
  --linen-white: #ede7dd;
  --cement-gray: #bdb8b1;
  --tatung-red: #943634;
  --persimmon: #e9546b;
  --wood-brown: #2d6d4b;
  --ink-black: #2c2c2c;
  --title-text: #333333;
  --sub-text: #666666;
  --info-gray: #999999;
  --quote-gray: #444444;
}

body {
  font-family: "Noto Serif TC", sans-serif;
  background-color: var(--linen-white);
  color: var(--title-text);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 1.5px;
  margin: 0;
  padding: 0;
}

header {
  background-color: var(--linen-white);
  text-align: center;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--linen-white);
}

header h1 {
  font-family: "Noto Serif TC", serif;
  font-size: 2.5em;
  color: var(--persimmon);
  margin-bottom: 0.3em;
}

header p {
  font-size: 1.2em;
  letter-spacing: 1px;
  color: var(--quote-gray);
}

.navbar-nav .nav-link {
  font-family: 'Noto Serif TC', serif;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  color: #4C3528 !important;
}

.navbar-nav .nav-link:hover {
  text-decoration: underline;
  color: var(--cement-gray) !important;
}

.navbar {
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  background-color: transparent !important;
}

.carousel-item {
  animation: fadeInSlide 1s ease-in-out forwards;
  max-height: 90vh;
  object-fit: cover;
}

@keyframes fadeInSlide {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.carousel-caption {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
  color: #fff;
  font-family: 'Noto serif TC', serif;
  letter-spacing: 2px;
}

.carousel-caption  p {
  font-family: 'Noto serif TC', serif;
  font-size: 20px;
  opacity: 0.8;
  letter-spacing: 2px;
}

/*手機版*/
@media (max-width: 768px) {
  .carousel-caption {
    width: 100%;
  }

  .carousel-caption p {
    font-size: 15px;
  }

  .position-relative > .position-absolute {
    pointer-events: none;
  }

  #Rooms .row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .room-card {
    cursor: pointer;
    overflow: hidden;
  }

  .room-card img {
    width: 100%;
    height: auto;
    display: block;
  }

  .overlay-text {
    position: absolute;
    bottom: 0;
    background: rgba(255, 255, 255, 0.75);
    width: 100%;
    font-family: 'Noto Serif TC', serif;
    color: #4C3528;
  }

  .overlay-text h5 {
    font-size: 1.2rem;
  }

  .overlay-text p {
    font-size: 0.95rem;
  }

  .offcanvas.offcanvas-start.offcanvas-fullscreen-mobile {
      width: 100% !important;
      max-width: 100% !important;
      height: 100vh !important;
      border-radius: 0 !important;
  }

  .faq-button-group {
    flex-direction: column;
  }
  .faq-button-group .btn {
    width: 100%;
  }

    .carousel-inner img {
    width: 50%;
    height: 20% !important;
    aspect-ratio: 4/ 3;
  }

  .ending img{
    min-height: 225px;
    object-fit: cover;
  }

  .scent img{
    min-height: 600px;
    object-fit: cover;
  }

  .poetry3 {
    font-size: 15px;
  }


}

/*桌機版*/
@media (min-width: 768px) {
  .offcanvas.offcanvas-start.offcanvas-wide-desktop {
    width: 85vw;
  }

  .offcanvas.offcanvas-end.offcanvas-wide-desktop {
    width: 85vw;
  }

  .faq-button-group {
    justify-content: space-between;
  }
  .faq-button-group .btn {
    flex: 1 1 calc(16.66% - 0.5rem);
  }

    .carousel-inner img {
    width: 100%;
    height: 30% !important;
    aspect-ratio: 4/ 3;
  }
}

.faq-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.faq-button-group .btn {
  flex: 1 1 auto;
  min-width: 150px;
}

.fade-in-delay {
  opacity: 0;
  animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-char {
  opacity: 0;
  animation: fadeInChar 1.2s ease-out forwards;
}

@keyframes fadeInChar {
  from { opacity: 0; transform: translateY(0.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-text {
  opacity: 0;
  animation: fadeIn ease 0.8s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.quote-overlay {
  position: absolute;
  bottom: 0%;
  left: 50%;
  transform: translate(-50% -50%);
  padding: 0.2rem 0.8rem;
  animation: fadeIn 1s ease-in-out forwards;
}

.quote-overlay2 {
  position: relative;
  bottom: 20%;
  left: 50%;
  transform: translate(-50% -50%);
  animation: fadeIn 1s ease-in-out forwards;
}

.quote-overlay3 {
  position: relative;
  bottom: 5%;
  left: 50%;
  transform: translate(-50% -50%);
  animation: fadeIn 1s ease-in-out forwards;
}


button, .btn {
  background-color: var(--cement-gray);
  color: #ffffff;
  border: none;
  padding: 0.6em 1.2em;
  font-size: 1em;
  cursor: pointer;
  border-radius: 0.3em;
}

.btn:hover {
  background-color: var(--deep-red) !important;
}

.btn-close
  color:var(--tatung-red) !important;
}

footer {
  background-color: var(--linen-white);
  color: var(--sub-text);
  font-family: 'Noto Serif TC', serif;
  text-align: center;
  padding: 1em;
  font-size: 0.9em;
}

a.tomoyaName{
  color: #000000;
}

a.tomoyaName:hover {
  color: #000000;
}

a {
  color: var(--main-red)!important;
  font-family: 'Noto Serif TC', serif;
  text-decoration: none;
}

a:hover {
  text-decoration: underline !important;
  font-family: 'Noto Serif TC', serif;
  color: var(--cement-gray)!important;
}

footer a {
  color:var(--main-red);
  text-decoration:none;
}

footer a:hover {
  text-decoration: underline !important;
  color: var(--cement-gray);
}

.logo {
  font-family: "Georgia", "Noto Serif TC", serif;
  font-size: 30px;
  font-weight: normal;
}

h1 {
  font-family: "Georgia", "Noto Serif TC", serif;
  font-size: 26px;
  font-weight: normal;
  line-height: 1.4;
  letter-spacing: 2px;
}

h2 {
  font-family: "Noto Serif TC","Segoe UI",serif;
  font-size: 21px;
  font-weight: normal;
  line-height: 1.4;
  letter-spacing: 2px;
}

h4, .mb-4 {
  font-family: "Noto Serif TC", serif ;
  color: var(--deep-red);
  font-weight: normal;
  letter-spacing: 1px;
}

p, li {
  font-family: "Noto Serif TC","Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 2px;
}

.note {
  font-size: 14px;
  color: var(--sub-text);
  line-height: 1.6;
}

.quote {
  font-family: "Times New Roman", "Noto Serif TC", serif;
  font-size: 16px;
  color: var(--quote-gray);
  line-height: 1.5;
  font-style: italic;
}

.poetry {
  font-family: "Times New Roman", "Noto Serif TC", serif;
  color: #FFFFFF;
  text-align: left;
}

.poetry2, .poetry3 {
  font-family: "Times New Roman", "Noto Serif TC", serif;
  color: #FFFFFF;
  text-align: center;
}

/* 精選語錄 + 背景圖進場動畫 */
.quote-overlay {
  animation: fadeIn 1s ease-in-out forwards;
  transform: translateY(10px);
  opacity: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subtext {
  font-size: 0.95rem;
  color: #666666;
  font-family: 'Noto Serif TC', serif;
  line-height: 1.5;
}

.accordion-button {
  font-family: 'Noto Sans TC', serif;
  background-color: #f8f6f4;
  color: var(--title-text);
  font-size: 1rem;
}

.accordion-body {
  font-family: 'Noto Sans TC', sans-serif;
  background-color: #fff;
  color: var(--sub-text);
  line-height: 1.5;
}

.offcanvas {
  font-family: 'Noto Serif TC', serif;
  background-color: #F9F8F6;
  padding: 2rem;
}

/*.offcanvas-header .btn-close {
  filter: brightness(0) invert(1);
}*/

/*.position-relative:hover img {
  transform: scale(1.02);
  transition: transform 0.4s ease;
}*/

ul {
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.5em;
}

.table-price {
  background-color: var(--linen-white);
}

.table-price th {
  background-color: var(--linen-white);
}

.table-price td {
  background-color: var(--linen-white);
}

.table-price th:first-child {
  border-top-left-radius: 50px;
  padding-left: 20px;
}

.table-price th:last-child {
  border-top-right-radius: 50px;
}

.table-price td:first-child {
  border-top-left-radius: 50px;
  border-bottom-left-radius: 50px;
  padding-left: 20px;
  width: 45%;
}

.table-price td:last-child {
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
}

.fade-in1 {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}
.fade-in1.show {
  opacity: 1;
  transform: translateY(0);
}

.card{
  background-color: var(--linen-white);
}
