@font-face {
  font-family: "Hannari";
  src: url("fonts/Hannari.woff") format("woff");
  font-display: swap;
}

:root {
  --ink: #222;
  --paper: #f7f7f7;
  --accent: #dd3333;
  --header-h: 60px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

/* 元サイト（WordPress）の本文設定に合わせる: 17px / 行送り26px / 字間なし */
body {
  margin: 0;
  color: #000;
  background: var(--paper) url("images/bg.png") fixed;
  font-family: "Hannari", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 17px;
  line-height: 26px;
}
p { text-align: justify; }

/* 右側に落款（たて糸庵の印）を透かしで固定表示 */
main {
  background: url("images/bg3.png") no-repeat fixed right 50px;
}
@media (max-width: 767px) {
  main { background: none; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h2, h3 { color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}
.brand { text-decoration: none; font-size: 20px; }
.nav a { text-decoration: none; margin-left: 28px; }
.nav a:hover { color: var(--accent); }
.nav-toggle, .nav-button { display: none; }

@media (max-width: 800px) {
  .nav-button {
    display: block; width: 32px; height: 32px; cursor: pointer; position: relative;
  }
  .nav-button span, .nav-button span::before, .nav-button span::after {
    position: absolute; left: 4px; width: 24px; height: 2px; background: var(--ink); content: "";
  }
  .nav-button span { top: 15px; }
  .nav-button span::before { left: 0; top: -8px; }
  .nav-button span::after { left: 0; top: 8px; }
  .nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: rgba(255, 255, 255, .97);
    padding: 8px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
  }
  .nav a { display: block; margin: 0; padding: 10px 24px; }
  .nav-toggle:checked ~ .nav { display: block; }
}

/* ---------- hero slider ---------- */
.hero {
  position: relative;
  height: 100vh; min-height: 480px; max-height: 900px;
  overflow: hidden;
}
.slides div {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  animation: fade 18s infinite;
}
.slides div:nth-child(2) { animation-delay: 6s; }
.slides div:nth-child(3) { animation-delay: 12s; }
@keyframes fade {
  0%   { opacity: 0; }
  6%   { opacity: 1; }
  33%  { opacity: 1; }
  40%  { opacity: 0; }
  100% { opacity: 0; }
}
.hero-logo {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -45%);
  background: rgba(255, 255, 255, .85);
  padding: 24px 28px;
}
.hero-logo img { width: 160px; }

/* ---------- three circles ---------- */
.circles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 1000px; margin: 0 auto; padding: 40px 16px;
}

/* ---------- sections ---------- */
section { padding: 80px 0; }
.hero { padding: 0; }
.inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.title {
  text-align: center; font-size: 35px; line-height: 48px; font-weight: 800;
  margin: 0 0 40px; padding: 40px 0;
  background: url("images/bg3.png") no-repeat center / auto 70%;
}
.title small {
  display: block; margin-top: 8px;
  font-size: 12px; line-height: 14px; font-weight: 700; letter-spacing: 1px;
  color: var(--accent);
}
.dark .title { color: #fff; }
h2 { font-size: 24px; line-height: 32px; font-weight: 800; }
h3 {
  display: flex; align-items: center; gap: 16px;
  font-size: 20px; line-height: 32px; font-weight: 700;
  margin: 48px 0 30px;
}
h3::before, h3::after { content: ""; flex: 1; height: 1px; background: #aaa; }

.dark {
  background: #111 url("images/bg41.png");
  color: #fff;
}
.dark a, .dark h2 { color: #fff; }
.dark h2 { margin-top: 0; }

.cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.cols h3:first-child { margin-top: 0; }
@media (max-width: 800px) {
  .cols { grid-template-columns: 1fr; gap: 24px; }
}

.parallax {
  background-size: cover; background-position: center; background-attachment: fixed;
}
.parallax.tall { padding: 0; height: 500px; }
.veil {
  background: rgba(255, 255, 255, .88);
  padding: 32px 40px;
}
@media (max-width: 800px) {
  .parallax { background-attachment: scroll; }
  .parallax.tall { height: 300px; }
  .veil { padding: 24px; margin: 0 16px; }
}

/* ---------- room ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
}
.gallery img { aspect-ratio: 1; object-fit: cover; transition: opacity .2s; }
.gallery a:hover img { opacity: .8; }
@media (max-width: 800px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
.lead { margin: 40px 0; }

.amenities {
  list-style: none; padding: 0; margin: 0;
  columns: 2; column-gap: 24px;
}
.amenities li::before { content: "・"; color: var(--accent); }

.price { width: 100%; border-collapse: collapse; }
.price tr { border-bottom: 1px dotted #aaa; }
.price th, .price td {
  padding: 17px; vertical-align: middle; text-align: left; font-weight: normal; line-height: 1.4;
}
.price th { width: 30%; text-align: center; }
.price small { font-size: 12px; }

.shops {
  display: grid; grid-template-columns: 1fr 1fr; gap: 15px 48px; margin: 24px 0;
}
.shops > div { display: flex; align-items: center; gap: 15px; }
.shops img { width: 93px; flex: none; }
.shops p { margin: 0; text-align: left; }
@media (max-width: 800px) {
  .shops { grid-template-columns: 1fr; }
}

/* ---------- access ---------- */
#access { padding-bottom: 0; }
.map { display: block; width: 100%; height: 450px; border: 0; margin-top: 48px; }

/* ---------- contact ---------- */
.button {
  display: inline-block; min-width: 260px;
  padding: 12px 32px; margin: 8px 0;
  border: 1px solid var(--ink); text-decoration: none;
  transition: background .2s, color .2s;
}
.button:hover { background: var(--ink); color: #fff; }
.button.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.accent:hover { background: #000; border-color: #000; }

/* ---------- footer ---------- */
.site-footer {
  background: #111 url("images/bg41.png"); color: #ccc;
  text-align: center; padding: 40px 16px; font-size: 14px;
}
.site-footer nav a { text-decoration: none; margin: 0 12px; display: inline-block; }
.site-footer nav a:hover { color: #fff; }
.site-footer p { margin: 16px 0 0; }
