/* ===============================
   木かげの宿 - Base Styles
   Fonts: Shippori Mincho
   Colors: Primary #FFFFFF, Accent #00576E, Text #121212
   Button height: 60px
   Mobile-first stylesheet
================================ */
:root {
  --c-bg: #FFFFFF;
  --c-text: #121212;
  --c-accent: #00576E;
  --font-heading: "Shippori Mincho", serif;
  --font-body: "Shippori Mincho", serif;
  --container: min(1100px, 92vw);
  --section-padding-pc: 100px;
  --section-padding-sp: 30px;
}

* {
  box-sizing: border-box
}

section {
  padding: var(--section-padding-pc) 0;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none
}

.hero-common {
  padding: 0;
}

.cta {
  padding: 100px 0;
}

.intro,
.meal,
.rooms,
.amenities,
.equipment {
  padding: var(--section-padding-pc) 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  border: none;
  z-index: 1000;
}

.header-inner {
  position: relative;
}

.header-actions {
  position: absolute;
  right: 40px;
  top: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: 0.08em;
}

.grid-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: nowrap;
}

.fadeup {
  opacity: 1;
  transform: translateY(60px);
  transition: opacity 1s ease, transform 1s ease;
}

.nav {
  display: none !important;
}

.hamburger {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1100;
}

.hamburger span {
  position: relative;
  display: block;
  height: 1.5px;
  width: 40px;
  background: #fff;
  transition: all 0.3s ease;
}

.hamburger span::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  height: 0.8px;
  width: 30px;
  background: #fff;
  transition: all 0.3s ease;
}

.hamburger span::after {
  background: #fff;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(6px);
}

.menu-overlay.active {
  display: flex;
}

.menu-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  width: 90%;
  max-width: 1100px;
  position: relative;
}

.menu-logo img {
  width: 300px;
}

.menu-logo a:hover img {
  opacity: 0.7;
  transition: opacity 0.3s;
}

.menu-links {
  display: flex;
  justify-content: center;
  gap: 100px;
}

.menu-links .column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-links a {
  text-decoration: none;
  font-size: 18px;
  color: #333;
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
}

.menu-links a:hover {
  opacity: 0.6;
}

.menu-close {
  position: absolute;
  top: -200px;
  right: 40px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-close::before,
.menu-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 0.5px;
  background-color: #00576E;
  transform-origin: center;
  transition: opacity 0.3s;
}

.menu-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.menu-close:hover::before,
.menu-close:hover::after {
  opacity: 0.6;
}

.reserve-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 6px 14px;
  font-size: 14px;
  line-height: 1.5;
}

.reserve-btn .en {
  font-size: 16px;
  font-weight: 500;
}

.reserve-btn .jp {
  font-size: 12px;
}

header.site-header.scrolled .reserve-btn {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

header.site-header.scrolled .hamburger span,
header.site-header.scrolled .hamburger span::before,
header.site-header.scrolled .hamburger span::after {
  background: var(--c-accent);
}

.nav a {
  font-size: 16px;
  position: relative;
  padding: 6px 2px;
}

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--c-accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 22px;
  border: 1.5px solid #ffffff;
  color: #ffffff;
  font-size: 16px;
  transition: all .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08)
}

.btn-primary {
  background: var(--c-accent);
  color: #fff;
}

header.site-header.scrolled .reserve-btn:hover {
  color: #ffffff;
  background-color: var(--c-accent);
  border-color: var(--c-accent);
  transition: all 0.3s ease;
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0 0 0 auto;
  width: min(78vw, 320px);
  background: #fff;
  box-shadow: -16px 0 24px rgba(0, 0, 0, .12);
  z-index: 9999;
  padding: 22px
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px
}

.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .28);
  z-index: 55
}

.cta-inner img {
  width: 60%;
  margin: 0 auto;
}

.hero-common {
  position: relative;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(1.05);
  animation: fadeZoomIn 2.5s ease-out forwards;
}

@keyframes fadeZoomIn {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-text {
  position: absolute;
  top: 40%;
  left: 10%;
  color: #fff;
  opacity: 0;
  animation: fadeUpText 1.8s ease-out 1s forwards;
}

@keyframes fadeUpText {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero-text .en,
.hero-text .jp {
  display: inline-block;
  vertical-align: middle;
}

.hero-text h1 {
  font-size: 2.2rem;
  letter-spacing: 2px;
  font-family: "Shippori Mincho", serif;
  color: #fff;
}

.hero {
  position: relative;
  height: 700px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./assets/images/main.jpg") center/cover no-repeat;
  filter: brightness(0.75);
  opacity: 1;
  transition: opacity 2s ease-in-out;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  filter: brightness(0.75);
}

.hero.loaded .hero-video {
  opacity: 1;
}

.hero.loaded::before {
  opacity: 0;
}

.hero-inner {
  position: relative;
  text-align: center;
  color: #fff;
  z-index: 2;
}

.hero .catch img {
  max-width: 450px;
  height: auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 2.5s ease-out forwards;
  animation-delay: 0.4s;
  /* ← ページ表示から少し遅れて出す */
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .catch {
  position: absolute;
  top: 50%;
  left: 53%;
  transform: translate(-50%, -50%);
}

@keyframes changeBg {

  0%,
  45% {
    background-image: url("./assets/images/main.jpg");
  }

  55%,
  100% {
    background-image: url("./assets/images/main②.jpg");
  }
}

.section:nth-of-type(odd) {
  background-color: #f6f9f5;
}

.section {
  padding: 150px 0;
}

.section h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.4em;
  margin: 0 0 18px;
  color: #0c2c35
}

.section p {
  font-size: 16px;
  line-height: 2;
  margin-top: 30px;
  letter-spacing: 0.05em;
}

.section .caption {
  font-size: 16px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.8em;
  margin-bottom: 1em;
}

#rooms .section-heading,
#onsen .section-heading {
  margin-left: 400px;
}

#dining .section-heading {
  margin-left: 0;
  margin-right: 20px;
}

.section-heading .jp {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 16px;
  margin-top: 110px;
  letter-spacing: 0.16em;
}

.section-heading .en-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-heading .line {
  width: 1px;
  height: 100px;
  background-color: #00576E;
  margin-bottom: 0.5em;
}

.section-heading .en {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0.1em;
}

.section-body {
  margin-left: 0;
}

#intro .card-img img {
  width: 550px;
  height: 350px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.fadeup {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.fadeup.show {
  opacity: 1;
  transform: translateY(0);
}

.fadeup.delay {
  transition-delay: 0.3s;
}

#rooms .card-img img {
  width: 550px;
  height: 350px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.grid-2 .section-heading {
  margin-left: 300px;
}

#dining .card-img img {
  width: 550px;
  height: 350px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

#onsen .card-img img {
  width: 550px;
  height: 350px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

#nearby .card-img img {
  width: 380px;
  height: 380px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

#nearby .section-heading p {
  width: fit-content;
  margin: 7rem auto 0;
  line-height: 1.8;
}

.grid-2 h3 {
  position: relative;
  padding-left: 30px;
  font-size: 20px;
  font-weight: 500;
}

.grid-2 h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: -60px;
  width: 1px;
  height: calc(100% + 60px);
  background-color: #00576E;
}

#nearby .card-img {
  width: 350px;
  height: 350px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#nearby .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.access-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
}

.access-wrapper .section-heading {
  flex-shrink: 0;
}

.map-wrapper {
  flex: 1;
  text-align: center;
}

.map-wrapper img {
  max-width: 100%;
  height: auto;
}

#info .section-heading {
  text-align: left;
}

.map-wrapper {
  text-align: center;
}

.map-wrapper img {
  max-width: 50%;
  height: auto;
}

.access-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.map-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.map-wrapper img {
  max-width: 60%;
  height: auto;
  display: inline-block;
}

.access-wrapper .section-heading {
  flex-shrink: 0;
  text-align: right;
}

.access-wrapper .section-heading {
  flex-shrink: 0;
  text-align: right;
  margin-top: -300px;
}

.inn-name {
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 24px;
}

#info .inn-name {
  margin-bottom: 5rem;
  font-size: 1.5rem;
}

#info .kv-pair {
  display: grid;
  grid-template-columns: 2fr 10fr;
  column-gap: 60px;
  row-gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  letter-spacing: 0.15em;
}

#info .kv-pair .line {
  border-bottom: 1px solid #24565E;
  padding: 6px 0;
  text-align: left;
  font-size: 15px;
}

#info .kv-pair .line:nth-child(odd) {
  text-align: left;
}

#info .kv-pair .line:nth-child(even) {
  text-align: left;
}

#info .kv-pair .line:nth-child(even) {
  width: 100%;
}

#info .kv-pair .line:nth-child(odd) {
  width: 100%;
}

.info-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

#info .section-heading .jp {
  font-size: 16px;
  margin-top: 110px;
  letter-spacing: 0.1em;
}

#info .section-heading .en {
  font-size: 40px;
  letter-spacing: 0.1em;
}

#info .section-heading .en-block .line {
  width: 1px;
  height: 100px;
  background-color: #00576E;
  margin: 0 auto 8px;
}

.section-body h1 {
  font-size: 20px;
  font-weight: 400;
}

.section-body p {
  margin-bottom: 0.5em;
  line-height: 1.8;
}

.section-body .more-link {
  display: inline-block;
  font-size: 16px;
  color: #00576E;
  text-decoration: none;
  border-bottom: 1px solid #00576E;
  transition: 0.3s;
  margin-left: 350px;
}

.section-body .more-link:hover {
  color: #82aea1;
  border-color: #82aea1;
}

.card-img img {
  display: block;
  margin-top: 50px;
}

.section-body {
  margin-top: 150px;
  margin-left: 30px;
}

.card-img {
  overflow: hidden
}

.footer {
  background-color: #F6F9F5;
  padding: 60px 5% 40px;
  position: relative;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo a:hover img {
  opacity: 0.7;
  transition: opacity 0.3s;
}

.footer-logo img {
  width: 300px;
  height: auto;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 60px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.footer-nav a {
  text-decoration: none;
  color: #37383C;
  font-size: 0.95rem;
  transition: 0.3s;
}

.footer-nav a:hover {
  opacity: 0.7;
}

.footer-info {
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.8;
  margin-top: -20px;
  letter-spacing: 0.1em;
}

.footer-copy {
  position: absolute;
  bottom: 16px;
  left: 10%;
  font-size: 0.8rem;
  color: #37383C;
}

.form {
  display: grid;
  gap: 16px
}

.input,
.textarea {
  width: 100%;
  padding: 14px 14px;
  border-radius: 8px;
  font: inherit;
  color: inherit;
  background: #fff;
}

.textarea {
  min-height: 140px;
  resize: vertical
}

.form .hint {
  font-size: 11px;
  opacity: .7
}

.more-link {
  display: inline-block;
  margin-top: 10px;
  text-decoration: underline;
}

.header {
  position: relative;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  width: 100%;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 10px 40px;
}

.logo {
  margin-left: -30px;
}

.logo img {
  width: 220px;
  height: auto;
  margin-top: 1.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: -50px;
}

.reservation-btn:hover {
  background: #0B566E;
  color: #fff;
}

.subpage-header {
  background: #f7f8f3;
  border-bottom: 1px solid #ddd;
  color: #00576E;
}

.subpage-header .hamburger span,
.subpage-header .hamburger span::before,
.subpage-header .hamburger span::after {
  background: #00576E;
}

.subpage-header .reserve-btn {
  border-color: #00576E;
  color: #00576E;
}

.subpage-header .reserve-btn:hover {
  background-color: #00576E;
  color: #fff;
}

.hero-common {
  position: relative;
  height: 550px;
  overflow: hidden;
  margin-top: 100px;
}

.hero-common img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.hero-text {
  position: absolute;
  top: 87%;
  left: 30%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
  color: #fff;
}

.hero-text h1 {
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.hero-text .en {
  font-size: 2.2rem;
  letter-spacing: 0.05em;
}

.hero-text .jp {
  margin-left: 0.4em;
  font-size: 2.2rem;
}

.hero-rooms .hero-img {
  object-position: 50% 60%;
}

.hero-dining .hero-img {
  object-position: 50% 50%;
}

.intro {
  position: relative;
  background-color: #fff;
  padding: 160px 0;
}

.intro-inner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 100px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  direction: rtl;
  gap: 100px;
}

.intro-text,
.intro-sub,
.intro-side {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: "Noto Serif JP", serif;
  color: #333;
  line-height: 2;
  direction: ltr;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.intro-text {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 3;
}

.intro-sub {
  font-size: 1rem;
  line-height: 5rem;
  letter-spacing: 0.15rem;
}

.cross {
  position: absolute;
  width: 60px;
  height: 60px;
  z-index: 10;
  pointer-events: none;
}

.cross::before,
.cross::after {
  content: "";
  position: absolute;
  background-color: #8fb3a6;
}

.cross.top-left::before {
  width: 1px;
  height: 60px;
  left: -50%;
  top: 15px;
  transform: translateX(-50%);
}

.cross.top-left::after {
  width: 60px;
  height: 1px;
  left: -70%;
  top: 50%;
  transform: translateY(-50%);
}

.cross.bottom-right::before {
  width: 1px;
  height: 60px;
  left: 90%;
  top: -15px;
  transform: translateX(-50%);
}

.cross.bottom-right::after {
  width: 60px;
  height: 1px;
  left: 20%;
  top: 50%;
  transform: translateY(-50%);
}

.cross.top-left {
  top: -70px;
  left: 5%;
}

.cross.bottom-right {
  bottom: -50px;
  right: 5%;
}

.rooms {
  background-color: #f7f8f3;
  padding: 80px 0;
}

.room {
  margin-bottom: 100px;
}

.container {
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.room .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.header .container,
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.room-img {
  width: 500px;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.room-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.swiper .mySwiper .room-img {
  display: block;
}

.room-text {
  direction: ltr;
  text-align: left;
}

.room-text h2 {
  font-weight: 500;
  margin-top: -40px;
}

.room-text p {
  letter-spacing: 0.15rem;
  margin-bottom: 50px;
}

.underline {
  height: 1px;
  background-color: #8fb3a6;
  margin: 20px 0;
}

.room-text,
.room-img {
  flex: 1;
  max-width: 50%;
}

.amenities {
  text-align: left;
  padding: 100px 0;
}

.amenities h2 {
  text-align: center;
  font-weight: 500;
  margin-bottom: 70px;
}

.amenities h3 {
  font-weight: 500;
  text-align: left;
  margin-top: 40px;
}

.amenities p {
  text-align: left;
  letter-spacing: 0.15rem;
  margin-top: 40px;
}

.amenity-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
}

.amenity-grid .item {
  flex: 0 0 auto;
  width: 300px;
  text-align: center;
}

.amenity-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  margin: 0 auto 12px;
}

.equipment {
  padding: 80px 0;
  border-top: 1px solid #a9b7b3;
  border-bottom: 1px solid #a9b7b3;
  width: 80%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.equipment h2 {
  flex-shrink: 0;
  font-weight: 500;
  font-size: 22px;
}

.equipment p {
  margin: 0;
  line-height: 1.9;
}

.cta {
  background: url("./assets/images/blur-bg.jpg") center/cover no-repeat;
  padding: 100px 0;
  text-align: center;
}

.cta-btn {
  font-size: 1.5rem;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #333;
}

.meal .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 20px;
}

.meal.reverse .container {
  flex-direction: row-reverse;
}

#dinner {
  background-color: #F6F9F5;
}

.meal-time {
  margin-top: 20px;
  border-top: 1px solid #8fb3a6;
  border-bottom: 1px solid #8fb3a6;
  display: inline-block;
  padding-bottom: 20px;
  padding-top: 20px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.meal .section-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.8em;
}

.meal.reverse .section-heading {
  margin-left: auto;
  padding-right: 40px;
}

.meal .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 20px;
}

.meal.reverse .container {
  display: flex;
  flex-direction: row-reverse;
}

.meal-text {
  flex: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  font-size: 1rem;
  line-height: 2;
}

.meal-text p {
  margin-bottom: 1.5em;
}

.meal-img {
  width: 700px;
  height: 500px;
  margin: 60px auto 0;
  overflow: hidden;
}

.contact {
  background-color: #F6F9F5;
  padding: 200px 20px 300px;
  text-align: center;
}

.contact-title-en {
  font-size: 32px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.contact-title-jp {
  font-size: 16px;
  margin-bottom: 40px;
}

.contact-intro {
  font-size: 14px;
  line-height: 2;
  margin-bottom: 60px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 40px;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}

.required {
  color: #a94442;
  margin-left: 4px;
}

input,
textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #5e8b7e;
  background: transparent;
  padding: 10px 0;
  font-size: 14px;
  outline: none;
}

.button {
  display: flex;
  justify-content: center;
  position: relative;
  width: 100px;
  margin: 0 auto;
  padding: .9em 2em;
  border: none;
  border-bottom: 1px solid #8fb3a6;
  background-color: transparent;
  font-size: 1em;
  font-family: "Shippori Mincho", serif;
}

.button::after {
  position: absolute;
  bottom: -2px;
  left: 0;
  transform: scaleX(0);
  transform-origin: center left;
  width: 100%;
  height: 2px;
  background-color: #00576E;
  content: '';
  transition: transform .3s ease;
}

.button:hover::after {
  transform: scaleX(1);
}

#nearby .section-desc p {
  text-align: center;
  width: 100%;
  max-width: 800px;
  margin: 3rem auto 0;
  line-height: 1.9;
  margin-bottom: 3rem;
}

@media(min-width:900px) {
  .reserve-btn {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
  }

  .reserve-btn:hover {
    background: var(--c-accent);
    color: #fff;
  }
}

/* =====================================
   📱 スマホ対応（〜768px）
   木かげの宿 - 統一レスポンシブ対応版
===================================== */
@media (max-width: 768px) {

  body {
    font-size: 15px;
    line-height: 1.8;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 80px 0;
  }

  .section-body h1 {
    font-size: 18px;
    margin-top: 4rem;
  }

  /* ===== Hero ===== */
  .hero-common {
    height: 300px;
    margin-top: 60px;
  }

  .hero-text {
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .intro {
    padding: 80px 20px;
    text-align: center;
  }

  .intro-inner {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .intro-text,
  .intro-sub {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    text-align: center;
    line-height: 2;
  }

  .intro-text {
    font-size: 1.2rem;
    font-weight: 500;
  }

  .intro-sub {
    font-size: 0.95rem;
    margin-top: 1em;
  }

  .cross.top-left,
  .cross.bottom-right {
    display: none;
  }

  /* ===== セクション共通レイアウト ===== */
  .more-link {
    display: block !important;
    text-align: center !important;
    margin: 24px auto 0 !important;
    width: fit-content !important;
  }

  .grid-2,
  .room .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  .section-body,
  .room-text {
    margin: 0;
    padding: 0 10px;
    text-align: center;
  }

  .section-heading {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1em;
    margin: 0 auto 2em;
  }

  .section-heading .jp,
  .section-heading .en {
    writing-mode: vertical-rl;
  }

  #dining .section-heading {
    text-align: left;
  }

  #dining .section-heading,
  #nearby .section-heading,
  #info .section-heading {
    justify-content: flex-start;
    margin-left: 20px;
    margin-right: 0;
  }

  #rooms .section-heading,
  #onsen .section-heading,
  #access .section-heading {
    justify-content: flex-end;
    margin-right: 80px;
    margin-left: 0;
  }

  img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .card-img img,
  .room-img img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
  }

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

  .room-text h2 {
    font-size: 1.3rem;
    font-weight: 500;
  }

  .room-text p,
  .section-body p {
    font-size: 15px;
    line-height: 1.8;
  }

  .cta-inner {
    overflow: hidden;
  }

  .cta-inner img {
    width: 100%;
    height: auto;
    transform: scale(1.2);
    transform-origin: center;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  .footer-logo img {
    width: 180px;
    margin-left: 30px;
  }

  .footer-nav ul {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-info {
    font-size: 0.85rem;
    margin-top: 0;
    text-align: center;
  }

  .footer-copy {
    position: static;
    margin-top: 20px;
  }

  .room {
    margin-bottom: 80px;
  }

  .room-text {
    margin-top: 20px;
  }

  .contact {
    padding: 80px 20px;
  }

  .contact .container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }

  .contact-title-en {
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    text-align: center;
  }

  .contact-title-jp {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
  }

  .contact-intro {
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.9;
    margin-bottom: 40px;
  }

  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .contact-form label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: left;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    background-color: #fff;
  }

  .contact-form textarea {
    min-height: 140px;
    resize: vertical;
  }

  .contact-form .button {
    width: 90%;
    max-width: 400px;
    height: 50px;
    background-color: #00576E;
    color: #fff;
    font-size: 1rem;
    border: none;
    border-radius: 30px;
    margin: 20px auto 0;
    cursor: pointer;
    transition: 0.3s ease;
    display: block;
    text-align: center;
  }

  .contact-form .button:hover {
    background-color: #00455a;
    transform: translateY(-2px);
  }

  .required {
    color: #b65a3a;
    margin-left: 4px;
    font-size: 0.9rem;
  }

  #dining .section-heading {
    justify-content: flex-start;
    text-align: left;
    margin-left: 20px;
  }

  #dining .section-heading .line {
    margin: 0;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .site-header .header-inner {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .site-header .logo {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
  }

  .site-header .logo img {
    width: 180px;
    height: auto;
  }

  .header-actions {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .reserve-btn {
    font-size: 0.9rem;
    padding: 6px 12px;
    border: 1px solid #ffffff;
    color: #ffffff;
    background-color: transparent;
    transition: all 0.3s ease;
  }

  .reserve-btn:hover {
    background-color: #00576E;
    color: #fff;
  }

  .hamburger {
    width: 28px;
    height: 22px;
    transform: scale(1);
  }

  header.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
  }

  .grid-2 h3 {
    position: relative;
    display: inline-block;
    padding-left: 20px;
    font-weight: 500;
  }

  .grid-2 h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 30%;
    height: calc(100%);
    background-color: #00576E;
    transform: translateY(-50%);
  }

  #nearby .section-heading {
    display: flex;
    justify-content: flex-start;
    margin-left: 100px;
  }

  #nearby .section-desc {
    text-align: center;
    margin: 16px auto 32px;
    font-size: 0.95rem;
    line-height: 1.9;
    max-width: 90%;
  }

  #nearby .section-desc p {
    text-align: left;
  }

  .caption {
    text-align: left;
  }

  #access {
    text-align: center;
  }

  #access .section-heading {
    justify-content: center;
    margin-top: 12px;
  }

  #access .access-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #access .section-heading {
    order: -1;
    justify-content: flex-end;
    align-items: flex-end;
    margin-left: -100px;
    width: 100%;
  }

  #info .kv-pair {
    letter-spacing: 0;
  }

  #dining .container {
    display: flex;
    flex-direction: column-reverse;
  }

  #nearby .section-desc {
    text-align: center;
    margin: 16px auto 32px;
    font-size: 0.95rem;
    line-height: 1.9;
    max-width: 90%;
  }

  #access .section-heading {
    margin-right: 80px;
  }

  .section-heading .jp,
  .section-heading .en {
    writing-mode: vertical-rl;
  }

  .section-heading .jp {
    font-size: 14px;
    letter-spacing: 0.1em;
  }

  .section-heading .en {
    font-size: 28px;
    letter-spacing: 0.05em;
  }

  .section-heading .line {
    width: 1px;
    height: 60px;
    background-color: #00576E;
  }

  #rooms .section-heading,
  #onsen .section-heading,
  #access .section-heading,
  #dining .section-heading,
  #nearby .section-heading,
  #info .section-heading {
    width: calc(100% - 32px);
    max-width: none;
  }

  #dining .section-heading,
  #nearby .section-heading,
  #info .section-heading {
    justify-content: flex-start;
    margin-left: 0;
    margin-right: 0;
    padding-left: 16px;
  }

  #rooms .section-heading,
  #onsen .section-heading,
  #access .section-heading {
    justify-content: flex-end;
    margin-left: 0;
    margin-right: 0;
    padding-right: 16px;
  }

  .section-heading {
    margin: 0;
  }

  #info .section-heading {
    position: relative;
    left: 10px;
  }

  #info .section-heading .jp {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 14px;
    margin-top: 40px;
    letter-spacing: 0.16em;
  }

  #info .section-heading .en-block {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #info .section-heading .line {
    width: 1px;
    height: 50px !important;
    background-color: #00576E;
    margin-bottom: 0.5em;
  }

  #info .section-heading .en {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 28px;
    line-height: 50px;
    letter-spacing: 0.1em;
  }

  #info .kv-pair {
    display: grid !important;
    grid-template-columns: 140px 1fr !important;
    justify-content: start !important;
    align-items: center !important;
    column-gap: 24px !important;
    row-gap: 18px !important;
    width: 90% !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  #info .kv-pair .line:nth-child(odd) {
    text-align: left !important;
    padding-right: 12px !important;
  }

  #info .kv-pair .line:nth-child(even) {
    text-align: left !important;
    padding-left: 12px !important;
  }

  #info .kv-pair .line {
    border-bottom: 1px solid #24565E !important;
    padding: 6px 0 !important;
    font-size: 15px !important;
    white-space: nowrap !important;
  }

  #info .inn-name {
    text-align: center !important;
    font-size: 1.2rem !important;
    margin-bottom: 2rem !important;
  }

  #info .kv-pair {
    display: grid !important;
    grid-template-columns: 140px 1fr !important;
    align-items: center !important;
    column-gap: 20px !important;
    row-gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
  }

  #info .kv-pair .line:nth-child(odd) {
    text-align: right !important;
    padding-right: 10px !important;
  }

  #info .kv-pair .line:nth-child(even) {
    text-align: left !important;
    padding-left: 10px !important;
  }

  #info .kv-pair .line {
    border-bottom: 1px solid #24565E !important;
    padding: 6px 0 !important;
    font-size: 15px !important;
    white-space: nowrap !important;
  }

  #info .inn-name {
    text-align: center !important;
    font-size: 1.2rem !important;
    margin-bottom: 2rem !important;
  }

  .map-wrapper iframe {
    max-width: 100%;
    height: 300px !important;
    display: inline-block;
  }

  #top .catch img {
    width: 80vw !important;
    transform: translateX(5%) !important;
    transform-origin: center;
  }

  .menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 40px;
  }

  .menu-links {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    align-items: center;
    gap: 24px 60px;
  }

  .menu-links a {
    font-size: 18px;
    letter-spacing: 0.05em;
  }

  .menu-logo {
    order: 2;
  }

  .menu-logo img {
    width: 220px;
    height: auto;
    transform: translateX(20px);
  }

  .menu-close {
    position: absolute;
    top: -100px;
    right: 20px;
  }

  .hero-common {
    height: 320px;
    margin-top: 70px;
  }

  .hero-text {
    top: 85%;
    left: 47%;
    transform: translate(-50%, -50%);
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero-text .en,
  .hero-text .jp {
    font-size: 1.3rem;
  }

  .intro-inner {
    flex-direction: column;
    text-align: left;
    align-items: center;
    gap: 40px;
  }

  .intro-text,
  .intro-sub {
    writing-mode: horizontal-tb;
    text-align: left;
    font-size: 1rem;
    line-height: 1.8;
  }

  .room-text {
    max-width: 90%;
    text-align: left;
    margin: 0 auto;
  }

  .room-text h2 {
    font-size: 1.3rem;
    margin-top: 10px;
  }

  .room-text p {
    font-size: 0.95rem;
    line-height: 1.9;
  }

  .equipment {
    flex-direction: column;
    width: 90%;
    text-align: left;
    gap: 20px;
  }

  .equipment h2 {
    font-size: 1.2rem;
  }

  .equipment p {
    font-size: 0.9rem;
    line-height: 1.8;
  }

  .amenities h2 {
    font-size: 1.2rem;
  }

  .amenity-grid {
    flex-direction: column;
    gap: 48px;
    align-items: center;
  }

  .amenity-grid .item {
    width: 90%;
    margin: 0 auto;
  }

  .amenity-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center bottom;
  }

  .amenity-grid .item:nth-child(3) img {
    object-position: center center;
  }

  .room.reverse .container {
    flex-direction: column !important;
  }

  .room.reverse .room-img {
    order: -1;
  }

  .intro-inner {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
  }

  .intro-text {
    writing-mode: horizontal-tb;
    text-align: left;
    font-size: 18px;
    line-height: 1.8;
    margin-top: 40px;
  }

  .intro-sub {
    writing-mode: horizontal-tb;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: -5px;
    margin-bottom: 40px;
  }

  .meal .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 24px;
    padding: 40px 20px;
  }

  .meal.reverse .container {
    flex-direction: column !important;
  }

  .meal .section-heading {
    margin-right: auto;
    padding-left: 40px;
  }

  .meal.reverse .section-heading {
    margin-left: auto;
    padding-left: 180px;
  }

  .meal-img {
    order: 2 !important;
    width: 100%;
    max-width: 500px;
  }

  .meal-text {
    order: 3 !important;
    width: 90%;
    max-width: 500px;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.9;
  }

  .meal-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
  }

  .meal-text {
    display: flex;
    flex-direction: column;
  }

  .meal-text .meal-img {
    order: -1;
    margin-bottom: 16px;
  }

  .meal-text .meal-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
  }

  .footer-nav ul {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 10px 24px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
  }

  .footer-nav li {
    text-align: center;
  }

  .footer-nav a {
    display: inline-block;
    font-size: 0.95rem;
    text-decoration: none;
  }

  .footer-nav li:last-child {
    grid-column: span 2;
    justify-self: center;
  }

  .footer-copy {
    text-align: center;
  }

  section {
    padding: var(--section-padding-sp) 0;
  }

  .intro,
  .meal,
  .rooms,
  .amenities,
  .equipment {
    padding: var(--section-padding-sp) 0;
  }

  .hero-text {
    animation: fadeUpText 1.5s ease-out 0.6s forwards;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-text .en {
    margin-right: 4px;
  }

  .room .container {
    padding: 0;
    max-width: 100%;
  }

  .room-img {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
  }

  .room-img img {
    width: 100vw;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .room .container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }

  .room .swiper,
  .room .mySwiper,
  .room .swiper-wrapper {
    width: 90vw !important;
    max-width: 95vw !important;
    margin-left: calc(50% - 45vw) !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
  }

  .room .swiper-slide img,
  .room .room-img img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
  }

  .meal {
    margin-bottom: 40px !important;
    padding-bottom: 0 !important;
  }

  .meal .container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    gap: 12px !important;
  }

  .meal-text {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .meal-img {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: -100px !important;

  }

  .meal.reverse {
    margin-bottom: -100px !important;
    padding-bottom: 0 !important;
  }

  .hero-common::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0));
    z-index: 1;
  }

  .hero-text {
    position: absolute;
    z-index: 2;
  }

  .hero-text h1 {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  .hero-common {
    position: relative;
  }

  .hero-common::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0));
    z-index: 1;
  }

  .hero-text {
    position: absolute;
    z-index: 2;
  }

  .hero-text h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, .3);
  }

  .fadeup.show h2 {
    text-align: left;
  }

  #intro h2 {
    text-align: left;
    width: 90%;
    margin: 0 auto 1.5em;
    line-height: 1.8;
    word-break: keep-all;
  }

  #intro p {
    text-align: left;
    width: 90%;
    margin: 0 auto;
    line-height: 1.8;
  }
}
