/* Guesthouse Kokekokko — site shell */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #3b3a3a;
  background: #fff8ed;
}
a { color: #40220f; }
a:hover { color: #8b5a2b; }
img { max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff8ed;
  border-bottom: 3px solid #edcd1f;
  box-shadow: 0 2px 8px rgba(64,34,15,.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  gap: 12px;
}
.site-logo img { display: block; height: 49px; width: auto; }

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 2px;
}
.site-nav__list > li { position: relative; }
.site-nav__list a {
  display: block;
  padding: 10px 12px;
  color: #40220f;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.site-nav__list a:hover { background: rgba(237,205,31,.25); }

.site-nav__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e8d9b8;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  z-index: 20;
}
.site-nav__has-sub:hover .site-nav__sub,
.site-nav__has-sub.is-open .site-nav__sub { display: block; }
.site-nav__sub a { font-size: 12px; font-weight: 500; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 32px;
  padding: 4px;
  border: 1px solid #c9b896;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #40220f; }
.nav-overlay { display: none; }

.page-main { min-height: 55vh; padding: 24px 0 48px; }
.page-main--home { padding-top: 0; padding-bottom: 0; max-width: none; }
.page-header {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 8px;
}
.page-header h1 {
  margin: 0;
  color: #40220f;
  font-size: 1.6rem;
  font-weight: 700;
}
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 24px;
}
.page-content--wide { max-width: 1100px; }

.home-hero {
  background: #fff8ed;
  padding: 0 0 28px;
  text-align: center;
}
.home-hero__slides {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}
.home-hero__slide {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}
.home-hero__lead {
  max-width: 720px;
  margin: 20px auto 0;
  padding: 0 20px;
  font-size: 1.05rem;
  color: #40220f;
}

.section-anchor { scroll-margin-top: 88px; }

.home-section {
  padding: 40px 20px;
  border-top: 3px solid #edcd1f;
}
.home-section:nth-child(even) { background: #fff; }
.home-section__inner { max-width: 980px; margin: 0 auto; }
.home-section__title {
  margin: 0 0 28px;
  color: #40220f;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: .04em;
}
.home-section__body { max-width: 900px; margin: 0 auto; }
.home-section__body.romlicontainer h2 { display: none; }

.home-figure {
  margin: 20px auto;
  text-align: center;
}
.home-figure img {
  max-width: 100%;
  height: auto;
}
.home-figure img[src*="w_600-h_85"],
.home-figure img[src*="w_269-h_59"],
.home-figure img[src*="w_217-h_64"],
.home-figure img[src*="w_181-h_53"],
.home-figure img[src*="w_164-h_62"],
.home-figure img[src*="w_305-h_246"] {
  width: auto;
  max-height: 80px;
  object-fit: contain;
}
.home-figure img[src*="w_412-h_257"],
.home-figure img[src*="w_386-h_257"] {
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(64,34,15,.1);
}

.page-main--home .romlicontainer p {
  text-align: center;
  margin: 0 0 12px;
  line-height: 1.8;
}
.page-main--home .romlicontainer a {
  color: #40220f;
  font-weight: 600;
}

.home-cta { text-align: center; margin: 28px 0 8px; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: #edcd1f;
  color: #40220f !important;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: .03em;
}
.btn:hover { background: #e0be10; color: #40220f !important; }

.home-section--blog { background: #f5ecd8; }
.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.home-blog-card {
  background: #fff;
  border: 1px solid #e8d9b8;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.home-blog-card:hover { box-shadow: 0 4px 14px rgba(64,34,15,.12); }
.home-blog-card a { text-decoration: none; color: inherit; display: block; }
.home-blog-card__img {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f0e6d0;
}
.home-blog-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-figure {
  margin: 20px 0;
  text-align: center;
}
.post-figure img {
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: 4px;
}
.post-figure figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
}

.home-blog-card h3 {
  margin: 0;
  padding: 12px 14px;
  font-size: .9rem;
  line-height: 1.5;
  color: #40220f;
}

#staff .home-figure img[src*="w_150-h_150"],
#staff .home-figure img[src*="w_150-h_100"] {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #edcd1f;
}

.section-block {
  padding: 32px 20px;
  border-top: 1px solid #e8d9b8;
}
.section-block:nth-child(even) { background: #fff; }
.section-block h2 {
  margin: 0 0 16px;
  color: #40220f;
  font-size: 1.35rem;
  text-align: center;
}
.section-block__inner { max-width: 900px; margin: 0 auto; }

.blog-page-title { margin: 0 0 20px; color: #40220f; }
.blog-container { width: 100%; }
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.blog-card {
  background: #fff;
  border: 1px solid #e8d9b8;
  border-radius: 6px;
  padding: 16px 18px;
}
.blog-title { margin: 0 0 8px; font-size: 1.1rem; }
.blog-title a { text-decoration: none; }
.blog-preview p { margin: 0; color: #555; font-size: .95rem; }

.site-footer {
  background: #40220f;
  color: #fff8ed;
  padding: 28px 20px;
  margin-top: 40px;
}
.site-footer__inner { max-width: 900px; margin: 0 auto; text-align: center; }
.site-footer a { color: #edcd1f; }
.site-footer__copy { margin: 12px 0 0; font-size: .85rem; opacity: .9; }
.romlifooter img { max-width: 140px; }

.romlidata {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px 0;
}
.romlidata img { max-width: 160px; }

figure { margin: 16px 0; }
iframe { max-width: 100%; border: 0; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 88vw);
    height: 100vh;
    background: #fff8ed;
    padding: 72px 16px 24px;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,.12);
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav__list { flex-direction: column; align-items: stretch; }
  .site-nav__sub {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 12px;
    background: transparent;
  }
  .nav-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 99; }
  .nav-overlay[hidden] { display: none; }
  body.nav-open { overflow: hidden; }
}
