:root{
  /* --- Theme (edit freely) --- */
  --bg:#faf8f5;
  --paper:#ffffff;
  --ink:#1f2a24;
  --muted:#5b6b61;
  --accent:#7fb28d;
  --accent-2:#d4c1a6;
  --line:#e6e0d6;
  --shadow:0 8px 24px rgba(31,42,36,.08);
  --radius:18px;
  --radius-sm:12px;
  --max:1080px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Noto Sans JP",system-ui,-apple-system,Segoe UI,Roboto;line-height:1.5;background:var(--bg);color:var(--ink)}
img{max-width:100%;height:auto;display:block;border-radius:var(--radius-sm)}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

/* ===== Header / Nav ===== */
header{position:sticky;top:0;z-index:50;background:rgba(250,248,245,.75);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;max-width:var(--max);margin:0 auto;padding:14px 20px;flex-wrap:wrap}
.brand{display:flex;gap:10px;align-items:center}
.brand-mark{width:28px;height:28px;border-radius:8px;background:url('/images/icon.png') center/cover no-repeat;}
.brand-name{font-family:Montserrat,system-ui,sans-serif;font-weight:700;letter-spacing:.02em}

/* nav-links（PC：テキスト＋区切り線） */
.nav-links{display:flex;gap:0;align-items:center}
.nav-links a{color:var(--ink);padding:0 10px;border-left:1px solid var(--line);text-decoration:none;font-weight:500}
.nav-links a:first-child{border-left:none}
.nav-links a:hover{color:var(--accent)}

/* ===== Hero ===== */
.hero{max-width:var(--max);margin:28px auto 0;padding:24px 20px 8px;display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:center}
.hero h1{font-family:Montserrat,sans-serif;font-weight:700;line-height:1.2;margin:.2em 0}
.hero p{color:var(--muted)}
.hero-img{box-shadow:var(--shadow)}
.hero-cta{display:flex;gap:12px;margin-top:14px}
.btn{padding:10px 14px;border-radius:999px;border:1px solid var(--line);display:inline-block}
.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.btn.ghost{background:var(--paper)}

/* ===== Sections / Cards ===== */
section{max-width:var(--max);margin:36px auto;padding:0 20px}
.card{background:var(--paper);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:var(--radius);padding:24px}
h2{font-size:1.4rem;margin:0 0 12px}
.eyebrow{font-size:.82rem;color:var(--muted);letter-spacing:.08em;text-transform:uppercase;margin-bottom: 0.4em;
  display: block;}

/* ===== Grid ===== */
.grid{display:grid;gap:18px}
.grid.two{grid-template-columns:1fr 1fr}
.grid.three{grid-template-columns:repeat(3,1fr)}

/* 画像が1枚のみなら拡大（:has 対応ブラウザ） */
.grid.three:has(> img:only-child),
.grid.three:has(> a:only-child){ grid-template-columns:1fr; }
/* JSフォールバック用（script.js が .one を付与） */
.grid.three.one{ grid-template-columns:1fr; }

/* ===== Tables ===== */
.price-table{width:100%;border-collapse:collapse}
.price-table th,.price-table td{padding:8px;border-bottom:1px solid var(--line);text-align:left}

/* ===== Access (Map) ===== */
.map-wrap{position:relative;overflow:hidden;border-radius:var(--radius);border:1px solid var(--line)}
.map-wrap iframe{display:block;width:100%;height:200px;border:0}

/* ===== Footer ===== */
footer{margin-top:40px;border-top:1px solid var(--line);background:#fff}
.footer-inner{max-width:var(--max);margin:0 auto;padding:24px 20px;color:var(--muted);display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}

/* ===== Fade-in ===== */
.fade{opacity:0;transform:translateY(6px);transition:.6s ease}
.fade.in{opacity:1;transform:none}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  /* ブランド名の下に配置（縦積みではなく横並び） */
  .nav { 
    flex-direction: column; 
    align-items: flex-start; 
  }

  .nav-links {
    display: flex;
    flex-direction: row;     /* ← 横並び */
    align-items: center;
    margin-top: 8px;
    gap: 0;
    white-space: nowrap;
    padding-bottom: 2px;     /* スクロールバーが出る端末で余白を少し */
  }

  /* 「｜」で区切る（線ではなく文字で） */
  .nav-links a {
    padding: 3px 0px;
    border-left: 0;          /* PC用の区切り線は消す */
    display: inline-flex;
  }
  .nav-links a + a::before {
    content: "｜";
    color: var(--muted);
    margin: 0 6px 0 4px;
  }
}

/* お問い合わせボタン */
.contact-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: background 0.3s, transform 0.2s;
}
.contact-btn:hover {
  background: #5b6b61;
  color: #fff;
  transform: translateY(-2px);
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
  .contact-btn {
    width: 100%;
    text-align: center;
    padding: 10px;
  }
}

/* ===== プロフィール調整 ===== */
#profile .grid.two {
  align-items: center; /* 左右カラムを縦中央揃え */
}

#profile .grid.three img {
  max-width: 200px; /* 画像幅（お好みで調整） */
  height: auto;
  margin: 0 auto; /* 横方向も中央寄せ */
  display: block;
}

#profile p,
#profile ul {
  font-size: 0.9rem; /* テキスト少し小さく */
}

#profile li {
  margin-bottom: 0.4em; /* リストの余白を詰める */
}

/* プロフィール画像 スマホ表示時で小さく */
@media (max-width: 180px) {
  #profile .grid.three img {
    max-width: 20%;
  }
}

/* お知らせ */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.news-date {
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
}

.news-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.news-detail {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .news-item {
    grid-template-columns: 1fr;
  }
  .news-date {
    margin-bottom: 4px;
  }
}

/* 開いた時、下のグリッドをふわっと表示 */
.gallery-more[open] .gallery figure{
  animation: galleryFade .35s ease-out both;
}
@keyframes galleryFade{
  from{ opacity:0; transform: translateY(6px); }
  to{ opacity:1; transform: none; }
}

/* 画像の見た目（既存に合わせて） */
.gallery figure{
  margin:0;
}
.gallery img{
  width:100%;
  height:auto;
  display:block;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.gallery figcaption{
  font-size:.9rem;
  color: var(--muted);
  margin-top: 6px;
  text-align: center;
}

/* ナビの各リンクを “アイコン＋テキスト” の横並び中央揃えに */
.nav-links a{
  display: inline-flex;
  align-items: center;
  gap: 6px;            /* アイコンと文字の間隔 */
  line-height: 1.6;    /* 行の高さはお好みで */
}

.nav-links i{
  font-size: 0.8em;      /* 文字サイズに追随 */
  line-height: 1;      /* 余白を消す */
}

/* H2 も “アイコン＋テキスト” を中央揃え */
h2{
  display: flex;
  align-items: center;
  gap: 8px;            /* アイコンとタイトルの間隔 */
}

h2 i{
  font-size: 0.8em;      /* タイトルと高さを合わせる（少し大きくしたければ 1.1〜1.2em） */
  line-height: 1;
}


/* ファーストビューデザイン変更 */
/* ===== Full-bleed Hero（背景画像＋中央寄せ＋ふわっと表示） ===== */
.hero-cover{
  /* section の共通スタイルを無効化してフル幅に */
  max-width:none; margin:0; padding:0; width:100%;
  position:relative; isolation:isolate; overflow:hidden;
  min-height:45vh; display:grid; place-items:center;
}

/* 背景画像 */
.hero-cover::before{
  content:""; position:absolute; inset:0;
  background: center/cover no-repeat var(--hero-img, url('/images/room1.jpg'));
  transform: scale(1.02); /* わずかに拡大して端欠け防止 */
  z-index:-2;
}
/* 読みやすさ用の薄いグラデ */
.hero-cover::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.16));
  z-index:-1;
}

/* 中央コンテンツ */
.hero-cover__inner{
  text-align:center; color:#fff;
  padding:56px 20px;
  max-width:min(92vw, 880px);
  animation: heroFadeUp .9s ease-out both;  /* ふわっと */
}
@keyframes heroFadeUp{
  from{ opacity:0; transform:translateY(10px); }
  to  { opacity:1; transform:none; }
}

/* タイポ */
.hero-cover__title{
  font-family: Montserrat, "Noto Sans JP", system-ui, sans-serif;
  font-weight:700; line-height:1.12; letter-spacing:.01em;
  font-size: clamp(28px, 5vw, 46px);
  margin:.1em 0 .4em;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0,0,0,.45); 
}
.hero-cover__lead{
  color:rgba(255,255,255,.92);
  margin:0 0 16px; line-height:1.8;
  max-width: 60ch; margin-inline:auto;
  text-shadow: 0 1px 6px  rgba(0,0,0,.35);
}
.eyebrow--light{ 
  color: rgba(255,255,255,.85);
  font-size: clamp(13px, 1.4vw, 16px); /* ほんのり拡大 */
  font-weight: 600;
  letter-spacing: .08em;
}

/* CTAを少し目立たせる（任意） */
.hero-cover__cta .contact-btn{
  box-shadow: 0 10px 28px rgba(0,0,0,.15);
}

/* SP最適化 */
@media (max-width:600px){
  .hero-cover{ min-height:54vh; }
  .hero-cover__inner{ padding:40px 18px; }
}

/* 動きを好まない設定の人にはアニメ無効 */
@media (prefers-reduced-motion: reduce){
  .hero-cover__inner{ animation:none; }
}


/* ===== Responsive（クリーンアップ版） ===== */
@media (max-width: 900px) {
  /* 共通：2/3カラムのレイアウトはSPで1カラムに */
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .grid.two > *, .grid.three > * { width: 100%; }
  .grid.two img, .grid.three img { width:100%; height:auto; display:block; }

  /* ---- GALLERYだけはSPで「画像のみ3列」＆キャプション非表示 ---- */
  #gallery .gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* ← 3列 */
    gap: 8px;
  }
  #gallery .gallery figure{
    margin: 0;
    cursor: zoom-in;          /* タップできる雰囲気に */
  }
  #gallery .gallery img{
    width: 100%;
    aspect-ratio: 1 / 1;      /* 正方形サムネ */
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    display: block;
  }
  #gallery .gallery figcaption{
    display: none;            /* キャプションはポップアップ内で表示 */
  }
}

/* === Lightbox（共通） === */
.lightbox{
  position: fixed; inset: 0; z-index: 999;
  display: none;
}
.lightbox.is-open{ display: block; }
.lightbox__backdrop{
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(2px);
}
.lightbox__content{
  position: relative; z-index: 1;
  max-width: min(92vw, 980px);
  margin: min(10vh, 80px) auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.lightbox__img{
  width: 100%; height: auto; display: block;
}
.lightbox__cap{
  padding: 12px 14px;
  font-size: .95rem;
  color: var(--ink);
  text-align: center;
}
/* 閉じるボタン */
.lightbox__close{
  position: absolute; top: 8px; right: 8px;
  width: 36px; height: 36px; border: 0; border-radius: 999px;
  background: rgba(0,0,0,.6); color:#fff; font-size: 22px;
  cursor: pointer;
}
.lightbox__close:hover{ background: rgba(0,0,0,.75); }

/* SPで余白少なめ */
@media (max-width:600px){
  .lightbox__content{ margin: 8vh auto; }
}

/* === GALLERY: もっと見る（<details>） === */
.gallery-more{
  display: flex;
  justify-content: center;      /* 中央寄せ */
  align-items: center;
  width: 100%;                  /* 親幅いっぱいを基準に中央 */
  margin: 10px 0 6px;
  grid-column: 1 / -1;          /* もし誤ってグリッド内に置いても全列を横断 */
}

/* summary は押せるテキスト＋アイコンに */
.gallery-more > summary{
  display: inline-flex;
  align-items: center;
  gap: 4px;                      /* 矢印との間隔 */
  white-space: nowrap;       /* ← 縦に割れないように */
  font-size: .9rem;              /* 少し小さく */
  padding: 4px 10px;             /* クリック領域は確保しつつ控えめに */
  border-radius: 999px;
  color: var(--accent);
  cursor: pointer;
}

.gallery-more > summary:hover{
  background: rgba(0,0,0,.04);
}


/* デフォルトマーカーを隠す（各ブラウザ） */
.gallery-more > summary::-webkit-details-marker{ display:none; }
.gallery-more > summary::marker{ content:""; }

/* 下矢印の回転 */
.gallery-more .chevron{
  width: 1em;
  height: 1em;
}

.gallery-more[open] .chevron{
  transform: rotate(180deg);
  
}

/* 開いたら <summary> を消す */
#gallery .gallery-more[open] > summary {
  display: none;
}
