:root {
  --ink: #20242a;
  --sub: #647084;
  --line: #d9dee8;
  --soft: #f5f7fa;
  --paper: #ffffff;
  --navy: #243447;
  --teal: #007c89;
  --teal-dark: #005f69;
  --red: #c2413b;
  --red-soft: #fff1f0;
  --green: #2f855a;
  --green-soft: #eefbf3;
  --gold: #9f7a2f;
  --shadow: 0 18px 46px rgba(31, 41, 55, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-left: 176px;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--ink);
  background: #eef1f5;
  line-height: 1.6;
}

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

a {
  color: var(--teal-dark);
  font-weight: 700;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topline {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px clamp(16px, 4vw, 28px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: var(--sub);
  font-size: 13px;
}

.brand-row {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 28px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  display: grid;
  gap: 2px;
  text-decoration: none;
  color: var(--ink);
}

.brand strong {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
  letter-spacing: 0;
}

.brand span {
  color: var(--sub);
  font-size: 13px;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}

.outline-button,
.primary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.primary-button:hover {
  background: var(--teal-dark);
}

.ghost-button {
  background: transparent;
}

.danger-button {
  border-color: #efb4af;
  color: #a7342e;
  background: #fff8f7;
}

.tabs {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 40;
  width: 176px;
  border-right: 1px solid var(--line);
  background: #fff;
  overflow-y: auto;
}

.tabs-inner {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
}

.tabs a {
  flex: 0 0 auto;
  padding: 13px 20px;
  border-left: 4px solid transparent;
  color: #394150;
  text-decoration: none;
  font-weight: 800;
}

.tabs a:hover,
.tabs a.active {
  color: var(--teal-dark);
  border-left-color: var(--teal);
  background: var(--soft);
}

.hero {
  max-width: 1180px;
  margin: 22px auto;
  padding: 0 clamp(16px, 4vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.hero-left {
  display: grid;
  gap: 14px;
  grid-template-rows: auto auto;
}

.photo-grid {
  display: grid;
  min-height: 460px;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}

.compact-photo-grid {
  min-height: 420px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  height: clamp(300px, 31vw, 350px);
  min-height: 0;
  border-radius: 8px;
  background: #dfe5ec;
}

.carousel-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.carousel-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(32, 36, 42, 0.58);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

.carousel-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(32, 36, 42, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.photo,
.map,
.room-plan {
  overflow: hidden;
  border-radius: 8px;
  background: #dfe5ec;
}

.photo-main {
  grid-row: span 2;
}

.summary-panel,
.card,
.booking-card,
.notice,
.confirm-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.summary-panel {
  align-self: start;
  min-width: 0;
  overflow: hidden;
  padding: 22px;
}

.hero-info-card {
  position: relative;
  display: block;
  min-height: 292px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.hero-info-body {
  min-width: 0;
}

.hero-info-plan {
  position: absolute;
  right: clamp(26px, 9%, 74px);
  top: 128px;
  width: min(250px, 34%);
  aspect-ratio: 250 / 162;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.hero-info-plan img {
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.hero-info-card h3 {
  margin: 0 0 6px;
  font-size: 21px;
  line-height: 1.25;
}

.hero-info-list {
  margin-top: 6px;
  gap: 0;
}

.hero-info-list .info-row {
  padding: 9px 0;
}

.summary-panel h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

.address {
  color: var(--sub);
  font-size: 14px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef7f8;
  color: #075b63;
  font-size: 13px;
  font-weight: 800;
}

.badge.warning {
  background: #fff5e8;
  color: #7c4d09;
}

.price-box {
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid #f0c9c6;
  border-radius: 8px;
  background: var(--red-soft);
}

.price-box span {
  display: block;
  color: var(--sub);
  font-size: 13px;
}

.price-box strong {
  display: block;
  color: var(--red);
  font-size: 38px;
  line-height: 1.05;
}

.booking-form {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: grid;
  gap: 5px;
}

.form-field label,
.check-list span {
  color: #384252;
  font-size: 13px;
  font-weight: 800;
}

.form-field input,
.form-field textarea {
  min-width: 0;
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid #cfd7e2;
  border-radius: 6px;
  background: #fff;
}

.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.check-list label,
.agreement label {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-weight: 700;
}

.help-text {
  margin: 0;
  color: var(--sub);
  font-size: 13px;
}

.message {
  display: none;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 800;
}

.message.is-visible {
  display: block;
}

.message.error {
  border: 1px solid #efb4af;
  background: #fff8f7;
  color: #a7342e;
}

.message.success {
  border: 1px solid #9bd6b1;
  background: #f1fff6;
  color: #216f43;
}

.section {
  max-width: 1180px;
  margin: 0 auto 22px;
  padding: 0 clamp(16px, 4vw, 28px);
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 0 0 12px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: 0;
}

.section-title p {
  margin: 0;
  color: var(--sub);
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 22px;
}

.grid-even {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card,
.booking-card,
.notice,
.confirm-box {
  padding: 20px;
}

.card h3,
.booking-card h3,
.notice h3,
.confirm-box h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.room-card {
  position: relative;
  display: block;
  min-height: 292px;
}

.room-body {
  min-width: 0;
}

.room-plan {
  position: absolute;
  right: clamp(26px, 9%, 74px);
  top: 128px;
  width: min(250px, 34%);
  aspect-ratio: 250 / 162;
  background: #fff;
}

.room-plan img {
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.info-list,
.confirm-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.info-row,
.confirm-row {
  position: relative;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f5;
}

.info-row.short-rule {
  border-bottom: 0;
}

.info-row.short-rule::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  height: 1px;
  background: #edf0f5;
}

.info-row dt,
.confirm-row dt {
  color: var(--sub);
  font-weight: 800;
}

.info-row dd,
.confirm-row dd {
  margin: 0;
  font-weight: 700;
}

.calendar-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.calendar-title {
  margin: 0;
  font-size: 21px;
}

.calendar-nav {
  display: flex;
  gap: 8px;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.calendar-day {
  min-height: 92px;
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-head {
  min-height: auto;
  padding: 8px;
  background: #f0f3f7;
  text-align: center;
  font-weight: 800;
}

.calendar-day.is-muted {
  background: #f7f8fa;
  color: #a1a8b3;
}

.calendar-day.is-reserved {
  background: #fff5f4;
  cursor: pointer;
}

.date-number {
  display: block;
  margin-bottom: 5px;
  font-weight: 800;
}

.reservation-chip {
  display: block;
  overflow: hidden;
  max-width: 100%;
  margin-top: 4px;
  padding: 3px 6px;
  border: 0;
  border-radius: 5px;
  background: #c2413b;
  color: #fff;
  font: inherit;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
  cursor: pointer;
}

.reservation-segment {
  max-width: none;
  min-height: 22px;
  margin-left: -8px;
  margin-right: -8px;
  border-radius: 0;
}

.reservation-segment.segment-start {
  margin-left: 0;
  border-radius: 5px 0 0 5px;
}

.reservation-segment.segment-end {
  margin-right: 0;
  border-radius: 0 5px 5px 0;
}

.reservation-segment.segment-checkin {
  margin-left: 10%;
}

.reservation-segment.segment-checkout {
  margin-right: 10%;
}

.reservation-segment.segment-single {
  margin-left: 0;
  margin-right: 0;
  border-radius: 5px;
}

.reservation-track {
  display: flex;
  flex-direction: column;
}

.reservation-slot {
  visibility: hidden;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  color: var(--sub);
  font-size: 13px;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 5px;
  border-radius: 3px;
  vertical-align: -1px;
  background: #c2413b;
}

.reservation-list {
  display: grid;
  align-content: start;
  gap: 10px;
  margin-top: 14px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 4px;
}

.reservation-panel {
  display: flex;
  flex-direction: column;
}

.reservation-panel .reservation-list {
  flex: 1 1 auto;
  min-height: 0;
}

.reservation-actions {
  display: flex;
  gap: 8px;
}

.reservation-actions button {
  flex: 1 1 0;
  min-width: 0;
}

.reservation-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.reservation-item strong {
  font-size: 17px;
}

.reservation-date {
  font-size: 13px;
  font-weight: 800;
}

.reservation-meta {
  color: inherit;
  font-size: 13px;
  font-weight: 800;
}

.reservation-note {
  padding: 8px 10px;
  border-radius: 6px;
  background: #f7f8fa;
  color: #374151;
  font-size: 14px;
}

.reviews {
  display: grid;
  gap: 12px;
}

.review {
  padding: 16px;
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
  background: #f8fbfd;
}

.review strong {
  display: block;
  margin-bottom: 4px;
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.45fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.board-form {
  display: grid;
  gap: 12px;
}

.board-list {
  display: grid;
  gap: 12px;
}

.board-list-frame {
  min-width: 0;
  padding: 14px 4px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.board-compact .board-list {
  align-content: start;
  max-height: 100%;
  padding-right: 4px;
  overflow-y: auto;
}

.board-post {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.board-post-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.board-post-head strong {
  font-size: 16px;
}

.board-post-head time {
  color: var(--sub);
  font-size: 12px;
  white-space: nowrap;
}

.board-post p {
  margin: 0;
  white-space: normal;
}

.board-post-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.board-post-delete {
  padding: 4px 12px;
  border: 1px solid #efb4af;
  border-radius: 6px;
  background: #fff8f7;
  color: #a7342e;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.board-post-delete:hover {
  background: #fdeceb;
}

.reservation-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(17, 24, 39, 0.42);
}

.reservation-dialog.is-visible {
  display: flex;
}

.reservation-dialog-card {
  width: min(520px, 100%);
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.28);
}

.reservation-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 12px;
}

.reservation-dialog-head h3 {
  margin: 0;
  font-size: 22px;
}

.reservation-chooser-lead {
  margin: 0 0 12px;
  color: var(--sub);
  font-size: 14px;
}

.reservation-chooser-list {
  display: grid;
  gap: 10px;
}

.reservation-chooser-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: auto;
  padding: 12px 14px;
  text-align: left;
}

.reservation-chooser-item strong {
  font-size: 16px;
}

.reservation-chooser-item span {
  color: var(--sub);
  font-size: 13px;
  font-weight: 700;
}

.reservation-detail-block + .reservation-detail-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.reservation-detail-block .reservation-actions {
  margin-top: 16px;
}

.dialog-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dialog-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.dialog-back {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.reservation-dialog-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.reservation-dialog-foot .primary-button {
  width: 100%;
}

.map {
  min-height: 330px;
  border: 1px solid var(--line);
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 330px;
  border: 0;
}

.map-compact,
.map-compact iframe {
  min-height: 240px;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.photo-strip .photo {
  aspect-ratio: 4 / 3;
}

.room-photo-card {
  margin-top: 18px;
}

.room-photo-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.footer {
  margin-top: 34px;
  padding: 26px clamp(16px, 4vw, 28px);
  background: var(--navy);
  color: #dbe4ee;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.footer strong {
  color: #fff;
}

.subpage-main {
  max-width: 860px;
  margin: 26px auto;
  padding: 0 clamp(16px, 4vw, 28px);
}

.subpage-main.wide {
  max-width: 1080px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.step {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--sub);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.step.active {
  border-color: var(--teal);
  background: #effafb;
  color: var(--teal-dark);
}

.agreement {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

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

.terms-box {
  display: grid;
  gap: 18px;
}

.terms-box section {
  padding-bottom: 16px;
  border-bottom: 1px solid #edf0f5;
}

.terms-box h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.empty-state {
  padding: 16px;
  border: 1px dashed #c7d0dd;
  border-radius: 8px;
  color: var(--sub);
  background: #fafbfc;
}

@media (max-width: 760px) {
  body {
    padding-left: 0;
  }

  .reservation-panel .reservation-list {
    flex: 0 1 auto;
    max-height: 70vh;
  }

  .tabs {
    position: sticky;
    top: 0;
    left: auto;
    bottom: auto;
    width: auto;
    border-right: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
  }

  .tabs-inner {
    flex-direction: row;
    overflow-x: auto;
    padding: 0 clamp(16px, 4vw, 28px);
  }

  .tabs a {
    min-width: 112px;
    padding: 14px 16px 12px;
    border-left: 0;
    border-bottom: 3px solid transparent;
    text-align: center;
    background: transparent;
  }

  .tabs a:hover,
  .tabs a.active {
    border-left-color: transparent;
    border-bottom-color: var(--teal);
    background: transparent;
  }

  .hero,
  .hero-left,
  .grid-2,
  .grid-even,
  .room-card,
  .board-layout {
    grid-template-columns: 1fr;
  }

  .hero-left {
    grid-template-rows: auto;
  }

  .hero-info-card,
  .room-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-info-plan,
  .room-plan {
    position: static;
    width: min(280px, 100%);
    margin: 12px 0 0 auto;
  }

  .summary-panel {
    order: -1;
  }

  .photo-grid {
    min-height: 320px;
  }

  .compact-photo-grid,
  .hero-carousel,
  .carousel-frame {
    height: 260px;
    min-height: 260px;
  }

  .footer-inner,
  .brand-row,
  .topline,
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .header-actions,
  .form-grid,
  .photo-strip {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 180px);
  }

  .photo-main {
    grid-row: auto;
  }

  .calendar-day {
    min-height: 68px;
    padding: 5px;
  }

  .reservation-chip {
    padding: 2px 4px;
    font-size: 10px;
  }

  .info-row,
  .confirm-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
