/* guesthouse TANDEM shared styles */
:root {
  --bg: #f1efe8;
  --surface: #f8f5ee;
  --surface-soft: #efece3;
  --ink: #242c27;
  --muted: rgba(36, 44, 39, 0.70);
  --line: rgba(36, 44, 39, 0.10);
  --accent: #5f7c60;
  --accent-deep: #4b6850;
  --accent-soft: #c9b89f;
  --sage: #6b8368;
  --shadow: 0 16px 36px rgba(36, 44, 39, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Noto Sans", sans-serif;
  line-height: 1.8;
}

body.tandem-site {
  background:
    radial-gradient(circle at 15% 0%, rgba(95, 124, 96, 0.08), transparent 35%),
    linear-gradient(180deg, #f5f2ea 0%, #f0eee6 100%);
}

body.tandem-site main,
body.tandem-site .site-footer {
  margin-left: 0;
}

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

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

a:hover {
  color: var(--accent-soft);
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(245, 242, 234, 0.88);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  object-fit: cover;
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__name {
  font-family: "Noto Sans JP", "Hiragino Sans", "Noto Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.brand__note {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav a {
  color: var(--ink);
}

.nav a.is-button {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #fdfbf7;
  box-shadow: 0 10px 22px rgba(75, 104, 80, 0.16);
}

.nav a.is-button:hover {
  color: #fdfbf7;
  transform: translateY(-1px);
}

.lang-switcher {
  position: relative;
  margin: 0;
}

.lang-switcher > summary {
  list-style: none;
}

.lang-switcher > summary::-webkit-details-marker {
  display: none;
}

.lang-switcher__summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 11px 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(248, 245, 238, 0.94);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(36, 44, 39, 0.06);
}

.lang-switcher__summary:hover {
  border-color: rgba(95, 124, 96, 0.30);
}

.lang-switcher__summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang-switcher__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.lang-switcher__code {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.lang-switcher__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  gap: 6px;
  min-width: 112px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(248, 245, 238, 0.98);
  box-shadow: 0 16px 30px rgba(36, 44, 39, 0.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 10;
}

.lang-switcher[open] .lang-switcher__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switcher__item {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(248, 245, 238, 0.8);
}

.lang-switcher__item.is-active {
  background: var(--accent-deep);
  color: #fdfbf7;
  border-color: var(--accent-deep);
}

.lang-switcher__item:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(0.95) brightness(0.88);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(36, 44, 39, 0.10), rgba(36, 44, 39, 0.06) 44%, rgba(36, 44, 39, 0.42)),
    linear-gradient(90deg, rgba(95, 124, 96, 0.12), transparent 26%, transparent 74%, rgba(75, 104, 80, 0.14));
}

.hero__content {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: min(760px, calc(100% - 40px));
  margin: 0;
  text-align: center;
  color: #fffaf2;
  padding: 0;
  transform: translate(-50%, -50%);
  display: grid;
  gap: 0;
  place-items: center;
  justify-items: center;
}

[data-hero-reveal] {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(8px);
  will-change: opacity, transform, filter;
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s ease;
  transition-delay: var(--hero-reveal-delay, 0s);
}

[data-hero-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #d9a05b;
}

.hero h1,
.section h2,
.page h1,
.page h2 {
  font-family: "Noto Sans JP", "Hiragino Sans", "Noto Sans", sans-serif;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.38;
  letter-spacing: 0.02em;
}

.hero p {
  width: min(520px, 100%);
  margin: 18px auto 0;
  font-size: 15px;
  line-height: 1.92;
  color: rgba(253, 251, 247, 0.92);
  text-align: center;
}

.hero .actions {
  margin-top: 22px;
}

.hero .actions[data-hero-reveal] .button {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.72s ease,
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--hero-reveal-delay, 0s) + 0.08s);
}

.hero .actions[data-hero-reveal].is-visible .button {
  opacity: 1;
  transform: translateY(0);
}

.hero .actions[data-hero-reveal].is-visible .button:nth-child(2) {
  transition-delay: calc(var(--hero-reveal-delay, 0s) + 0.18s);
}

@media (prefers-reduced-motion: reduce) {
  [data-hero-reveal],
  .hero .actions[data-hero-reveal] .button {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

.section {
  padding: 120px 0 0;
}

.section--forest {
  background: linear-gradient(180deg, #5f7c60 0%, #577257 100%);
  color: #f7f4ed;
  padding: 108px 0;
}

.section--forest .section__label,
.section--forest .lead,
.section--forest .card__meta,
.section--forest .card__text,
.section--forest .note,
.section--forest li {
  color: rgba(247, 244, 237, 0.82);
}

.section--forest .section h2,
.section--forest .card__title {
  color: #f7f4ed;
}

.section--forest .card {
  background: rgba(42, 54, 43, 0.10);
  border-color: rgba(247, 244, 237, 0.12);
  box-shadow: none;
}

.section--forest .pill {
  background: rgba(247, 244, 237, 0.12);
  color: #f7f4ed;
}

.section--forest .card__text,
.section--forest ul {
  color: rgba(247, 244, 237, 0.82);
}

.section--forest#concept {
  background: linear-gradient(180deg, #f4efe5 0%, #eee7db 100%);
  color: var(--ink);
}

.section--forest#concept .section__label,
.section--forest#concept .lead,
.section--forest#concept .card__meta,
.section--forest#concept .card__text,
.section--forest#concept .note,
.section--forest#concept li {
  color: var(--muted);
}

.section--forest#concept .section h2,
.section--forest#concept .card__title {
  color: var(--ink);
}

.section--forest#concept .card {
  background: rgba(255, 251, 244, 0.92);
  border-color: rgba(36, 44, 39, 0.08);
  box-shadow: 0 14px 30px rgba(36, 44, 39, 0.06);
}

.section--forest#concept .card__text,
.section--forest#concept ul {
  color: var(--muted);
}

.section--sand {
  background: linear-gradient(180deg, #f3efe6 0%, #f0ece2 100%);
  color: var(--ink);
  padding: 108px 0;
}

.section--sand#access .grid {
  align-items: start;
}

.section--sand#access .grid > .card {
  height: auto;
}

.section__heading {
  display: grid;
  gap: 14px;
  margin-bottom: 34px;
  max-width: 720px;
}

.section__label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage);
}

.section h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.55;
}

.lead {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
  font-size: 15px;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(36, 44, 39, 0.07);
}

.card__body {
  padding: 22px 22px 24px;
}

.card__title {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Noto Sans", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
}

.card__meta {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}

.card__text {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(95, 124, 96, 0.12);
  color: var(--sage);
  font-size: 12px;
  font-weight: 700;
}

.section--booking {
  padding-bottom: 100px;
}

.ride-strip {
  padding: 24px 0 0;
  background: #f6f1e8;
}

.ride-strip__track {
  position: relative;
  height: 122px;
  overflow: hidden;
  background: #f6f1e8;
  border-bottom: 0;
  box-shadow: none;
}

.ride-strip__track::before {
  content: none;
}

.ride-strip__track::after {
  content: none;
}

.ride-strip__bike {
  position: absolute;
  bottom: 18px;
  left: 0;
  width: 176px;
  transform: translateX(-220px);
  will-change: transform;
}

.ride-strip__bike.is-riding {
  animation: tandemBikeRide 7.5s ease-in-out forwards;
}

.ride-strip__wheel {
  transform-origin: center center;
}

.ride-strip__bike.is-riding .ride-strip__wheel {
  animation: tandemWheelSpin 7.5s linear forwards;
}

.ride-strip__label {
  position: absolute;
  right: 0;
  bottom: 34px;
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(176, 150, 118, 0.92);
}

@keyframes tandemBikeRide {
  0% { transform: translateX(-220px); }
  18% { transform: translateX(32px); }
  78% { transform: translateX(calc(100vw - 232px)); }
  100% { transform: translateX(calc(100vw - 120px)); }
}

@keyframes tandemWheelSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(1080deg); }
}

.booking-frame {
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(36, 44, 39, 0.08);
  background: rgba(248, 245, 238, 0.96);
}

.site-footer {
  margin-top: 100px;
  background: linear-gradient(180deg, #2f3b31 0%, #253027 100%);
  color: rgba(253, 251, 247, 0.84);
}

.site-footer a {
  color: rgba(253, 251, 247, 0.92);
}

.site-footer__inner {
  padding: 44px 0 22px;
  display: flex;
  justify-content: center;
  gap: 42px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 280px;
  text-align: center;
  margin-right: 28px;
}

.footer-brand strong {
  display: inline-block;
  font-family: "Noto Sans JP", "Hiragino Sans", "Noto Sans", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fdfbf7;
  margin-bottom: 8px;
}

.footer-nav {
  display: grid;
  gap: 10px;
  min-width: 160px;
}

.footer-nav__label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #d9a05b;
}

.footer-bottom {
  padding: 18px 0 40px;
  border-top: 1px solid rgba(253, 251, 247, 0.10);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(253, 251, 247, 0.56);
}

@media (min-width: 1081px) {
  body.tandem-site main,
  body.tandem-site .site-footer {
    margin-left: 0;
  }

  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    width: auto;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(245, 242, 234, 0.88);
  }

  .site-header__inner {
    min-height: 72px;
    padding: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .brand__logo {
    width: 42px;
    height: 42px;
  }

  .brand__name {
    font-size: 16px;
    line-height: 1.2;
  }

  .brand__note {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .nav {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    font-size: 11px;
    width: auto;
    padding: 0;
  }

  .nav a {
    width: auto;
    padding: 0;
  }

  .nav a.is-button {
    width: auto;
    margin-top: 0;
    justify-content: center;
    padding: 9px 14px;
  }

  .lang-switcher {
    justify-self: auto;
  }

  .lang-switcher__summary {
    width: auto;
    justify-content: center;
  }

  .lang-switcher__menu {
    right: 0;
    left: auto;
    min-width: 112px;
  }

  .hero {
    min-height: 100vh;
    padding: 0;
    border-bottom: 1px solid var(--line);
    margin: 0;
  }

  .hero__media {
    inset: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
  }

  .hero__content {
    width: min(760px, calc(100% - 64px));
    text-align: center;
    padding: 0;
    margin-left: 0;
    display: grid;
    justify-items: center;
    align-content: center;
  }

  .hero p {
    width: min(560px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .hero .actions {
    justify-content: center !important;
  }

  .section {
    padding: 128px 0 0;
  }

  .section--forest,
  .section--sand {
    padding: 116px 0;
  }

  .section--forest .grid.cols-2 {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }

  .section--forest#concept .grid.cols-2 > .card:first-child {
    border-radius: 34px;
    overflow: hidden;
    transform: translateY(8px);
  }

  .section--forest#concept .grid.cols-2 > .card:last-child {
    transform: translateY(58px);
  }

  .section--forest#concept .grid.cols-2 > .card:first-child .card__body {
    padding: 18px 22px 24px;
  }

  .section--forest#concept .grid.cols-2 > .card:first-child img {
    aspect-ratio: 1.18 / 1;
    object-fit: cover;
  }

  .section--forest#concept .grid.cols-2 > .card:last-child img {
    aspect-ratio: 1 / 0.95;
    object-fit: cover;
  }

  .section--forest#concept .grid.cols-2 > .card:last-child .card__body {
    padding-top: 30px;
  }

  .section--forest.section--rooms .grid.cols-3 > .card {
    min-height: 100%;
    transform: none;
    margin-top: 0;
  }

  .section--forest.section--rooms .grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .section--forest.section--rooms .grid.cols-3 .card img {
    aspect-ratio: 1 / 0.82;
    object-fit: cover;
  }

  .section--forest.section--rooms .grid.cols-3 .card__body {
    min-height: 250px;
  }

  .section__heading,
  .page__header,
  .prose,
  .booking-frame,
  .section .container {
    width: min(1180px, calc(100% - 64px));
  }
}

.page {
  padding: 48px 0 0;
}

.section--forest .actions .button {
  background: rgba(247, 244, 237, 0.92);
  color: var(--accent-deep);
  box-shadow: none;
}

.section--forest .actions .button--soft {
  background: rgba(247, 244, 237, 0.16);
  color: #f7f4ed;
  border: 1px solid rgba(247, 244, 237, 0.18);
}

.section--sand .actions .button {
  background: var(--accent-deep);
  color: #fdfbf7;
}

.section--sand .actions .button--soft {
  background: rgba(95, 124, 96, 0.12);
  color: var(--ink);
}

.hero .actions .button {
  background: rgba(247, 244, 237, 0.94);
  color: var(--accent-deep);
  box-shadow: none;
}

.hero .actions .button--soft {
  background: rgba(36, 44, 39, 0.14);
  color: #fdfbf7;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.section--forest .lead,
.section--sand .lead {
  max-width: 640px;
}

.page__header {
  max-width: 720px;
  margin-bottom: 32px;
}

.page__intro {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 680px;
}

.prose {
  max-width: 840px;
}

.prose h2 {
  margin-top: 38px;
  font-family: "Noto Sans JP", "Hiragino Sans", "Noto Sans", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.55;
}

.prose p,
.prose li {
  color: var(--muted);
  line-height: 1.95;
}

.prose ul {
  padding-left: 20px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  table-layout: fixed;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  text-align: left;
  vertical-align: middle;
  font-size: 15px;
  line-height: 1.6;
}

.table th {
  width: 34%;
  background: rgba(110, 126, 101, 0.08);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.table td {
  font-weight: 500;
}

.note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fdfbf7;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(92, 64, 51, 0.16);
}

.button--soft {
  background: rgba(110, 126, 101, 0.12);
  color: var(--ink);
  box-shadow: none;
}

@media (max-width: 760px) {
  .container {
    width: min(1120px, calc(100% - 28px));
  }

  .site-header__inner {
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  body.tandem-site main,
  body.tandem-site .site-footer {
    margin-left: 0;
  }

  .site-header {
    position: sticky;
    width: auto;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav {
    justify-content: flex-start;
    gap: 12px;
    flex-direction: row;
  }

  .hero {
    min-height: 66vh;
  }

  .hero__content {
    padding: 84px 0 68px;
  }

  .section {
    padding-top: 80px;
  }

  .section--forest,
  .section--sand {
    padding: 80px 0;
  }

  .ride-strip__track {
    height: 92px;
  }

  .site-footer__inner,
  .footer-bottom {
    align-items: flex-start;
  }
}
