/* =====================================================================
   見た目の設定（色・文字の大きさ・レイアウト・スマホ対応）
   ふだんの更新ではさわりません。色や文字を変えたいときだけ調整します。
   ===================================================================== */

/* ---- 全体で使う色と文字サイズ（ここを変えると全体が変わります） ---- */
:root {
  --bg:        #F5F1E8;  /* 背景（あたたかい紙のような生成り色） */
  --surface:   #FFFFFF;  /* カードなどの面の色 */
  --ink:       #26303F;  /* 文字（紺みがかった濃い色・読みやすい） */
  --ink-soft:  #5E6B7A;  /* うすい文字（補足） */
  --accent:    #2E4160;  /* アクセント（ロゴの紺／ネイビー） */
  --accent-dk: #1E2E48;  /* アクセント濃いめ（ボタンの押し込み等） */
  --pop:       #C0472A;  /* 目立たせる色（朱色系／「本日開催中」など） */
  --line:      #E2DDCE;  /* 区切り線 */
  --radius:    14px;     /* 角の丸み */
  --maxw:      1120px;   /* 中身の最大幅（PCで横に広く使う） */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans",
               "Yu Gothic Medium", "游ゴシック Medium", "Meiryo", sans-serif;
  font-size: 18px;          /* 本文は大きめ（50代以上でも読みやすく） */
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

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

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* セクション共通 */
section { padding: 52px 0; scroll-margin-top: 90px; }  /* メニュー押下時、見出しが固定ヘッダーに隠れないように */
.section-title {
  font-size: 1.5rem;
  margin: 0 0 20px;
  padding-left: 12px;
  border-left: 6px solid var(--accent);
  line-height: 1.4;
}

/* =========================== ヘッダー（横並び） =========================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.1) blur(4px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding-top: 12px; padding-bottom: 12px;
}
.nameplate { text-align: left; }
.nameplate .logo {
  display: block;
  width: auto; max-width: 200px;   /* ロゴ画像の大きさ（横並びヘッダー用に控えめ） */
  height: auto;
}
.nameplate h1 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.nameplate .kana {
  display: block;
  margin-top: 2px;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
}
/* メニュー（資料のような、余白をとったテキストリンク） */
.main-nav {
  display: flex; flex-wrap: wrap;
  justify-content: flex-end; align-items: center; gap: 8px 30px;
}
.main-nav a {
  display: inline-block;
  padding: 6px 2px;
  font-size: 1.08rem; font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus { color: var(--accent); border-bottom-color: var(--accent); }

/* =========================== ヒーロー（大きな写真＋文字） =========================== */
.hero {
  position: relative;
  overflow: hidden;
  background: #1E2E48;         /* 写真の読み込み前の下地 */
  color: #fff;
}
/* 背景の写真スライドショー（JSで中身を作ります） */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }
/* 写真の上にうっすら暗い覆い（白い文字を読みやすくする） */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg,
      rgba(16,24,40,0.82) 0%, rgba(16,24,40,0.58) 42%, rgba(16,24,40,0.28) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  min-height: 76vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 72px; padding-bottom: 72px;
}
.hero-eyebrow {
  margin: 0 0 16px;
  font-size: 1.02rem; letter-spacing: 0.16em;
  color: #EFE7D4;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
.hero-title {
  margin: 0 0 22px;
  font-size: 3.3rem; line-height: 1.26; font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
}
.hero-lead {
  margin: 0 0 32px; max-width: 640px;
  font-size: 1.22rem; line-height: 1.9;
  color: #F3EEE3;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* 共通ボタン（ヒーロー・額装で使い回し） */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 34px;
  font-size: 1.14rem; font-weight: 700;
  text-decoration: none; border-radius: 999px;
  min-height: 56px;
}
.btn-primary { background: var(--pop); color: #fff; box-shadow: 0 6px 18px rgba(192,71,42,0.32); }
.btn-primary:hover { background: #a63c22; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.7); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.12); }
/* ヒーローのメインボタンは資料のような金色（写真の上で映える） */
.hero .btn-primary { background: #E5A93C; color: #3A2A10; box-shadow: 0 10px 26px rgba(0,0,0,0.32); }
.hero .btn-primary:hover { background: #D69A2C; }
.hero .btn-ghost { background: rgba(255,255,255,0.10); }
/* 白背景のセクション内で使うときは、文字色を紺に戻す */
.framing .btn-ghost { color: var(--accent); border-color: var(--accent); background: transparent; }
.framing .btn-ghost:hover { background: rgba(46,65,96,0.08); }

/* =========================== 本日開催中 =========================== */
.current { padding-top: 34px; }
.current .eyebrow {
  display: inline-block;
  background: var(--pop);          /* 紺ではなく朱色系で目立たせる */
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 7px 20px;
  border-radius: 999px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(192, 71, 42, 0.28);
}
.current-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(70, 50, 30, 0.06);
}
.current-card .photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #eee; }
.current-card .body { padding: 22px 22px 26px; }
.current-card h2 {
  font-size: 1.7rem; margin: 6px 0 8px; line-height: 1.35;
}
.current-card .artist { font-size: 1.15rem; color: var(--ink); margin: 0 0 4px; }
.current-card .dates  { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 12px; }
.current-card .desc   { margin: 12px 0 0; }

/* 展示が無い期間（谷間）のお知らせ */
.current-empty {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

/* 絵/立体などのバッジ */
.badge {
  display: inline-block;
  font-size: 0.9rem; font-weight: 700;
  padding: 3px 12px; border-radius: 999px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  vertical-align: middle;
}

/* =========================== 次の展示 =========================== */
.next-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.next-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.next-card .photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eee; }
.next-card .body { padding: 14px 16px 18px; }
.next-card h3 { font-size: 1.2rem; margin: 6px 0 4px; line-height: 1.4; }
.next-card .artist { color: var(--ink); margin: 0 0 2px; }
.next-card .dates  { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

/* =========================== 色帯カレンダー =========================== */
.schedule-list { display: flex; flex-direction: column; gap: 12px; }
.sched-row {
  display: flex; align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.sched-bar { width: 12px; flex: 0 0 12px; }         /* 展示ごとの色帯 */
.sched-body { padding: 14px 16px; flex: 1; }
.sched-body .top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sched-body h3 { font-size: 1.15rem; margin: 0; line-height: 1.4; }
.sched-body .artist { color: var(--ink-soft); margin: 2px 0 6px; }
.sched-body .dates { font-size: 1.05rem; }
.sched-row.is-current { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(168,70,42,0.12); }
.sched-row.is-past { opacity: 0.6; }
.tag-now {
  font-size: 0.85rem; font-weight: 700; color: #fff;
  background: var(--accent); padding: 2px 10px; border-radius: 999px;
}
.tag-end {
  font-size: 0.85rem; color: var(--ink-soft);
  border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px;
}

/* =========================== 月カレンダー =========================== */
.calendar {
  margin-top: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
}
/* 見出し（◀ 2026年7月 ▶） */
.cal-head {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-bottom: 14px;
}
.cal-title { font-size: 1.35rem; font-weight: 700; min-width: 8.5em; text-align: center; }
.cal-nav {
  background: none; border: none; cursor: pointer;
  color: var(--accent); font-size: 1.2rem; line-height: 1;
  padding: 10px 16px; border-radius: 10px; min-height: 44px;
}
.cal-nav:hover, .cal-nav:focus { background: rgba(46,65,96,0.10); }

/* 曜日の行 */
.cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center; font-size: 0.95rem; font-weight: 700;
  color: var(--ink-soft); padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.cal-wd.is-sun { color: #C0472A; }
.cal-wd.is-sat { color: #3A6EA5; }

/* 1週ぶん */
.cal-week { border-bottom: 1px solid var(--line); padding: 7px 0 9px; }
/* 最後の週（凡例のひとつ前）は区切り線を消す */
.cal-week:nth-last-child(2) { border-bottom: none; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-day { text-align: center; }
.cal-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1em; height: 2.1em; font-size: 1rem; border-radius: 9px;
}
.cal-day.is-sun .cal-num { color: #C0472A; }
.cal-day.is-sat .cal-num { color: #3A6EA5; }
.cal-day.is-out .cal-num { visibility: hidden; }
/* 休業日 */
.cal-day.is-off .cal-num {
  background: #E8E1D2; color: #9A8E7A; text-decoration: line-through;
}
/* 今日 */
.cal-day.is-today .cal-num {
  border: 2px solid var(--accent); font-weight: 700;
  box-shadow: 0 0 0 3px rgba(46,65,96,0.10);
}

/* 会期の色帯 */
.cal-bars { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; margin-top: 4px; }
.cal-bar {
  min-width: 0; height: 26px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 8px;
  color: #fff; font-size: 0.86rem; font-weight: 700;
  overflow: hidden;
}
.cal-bar span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-bar.is-start { border-top-left-radius: 999px; border-bottom-left-radius: 999px; margin-left: 4px; }
.cal-bar.is-end   { border-top-right-radius: 999px; border-bottom-right-radius: 999px; margin-right: 4px; }

/* 凡例 */
.cal-legend {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 14px; font-size: 0.92rem; color: var(--ink-soft);
}
.cal-legend .sw {
  display: inline-block; width: 15px; height: 15px;
  border-radius: 4px; margin-right: 7px; vertical-align: -2px;
}
.cal-legend .sw-off { background: #E8E1D2; }
.cal-legend .sw-ex  { background: var(--accent); }

/* =========================== 額装のご相談（額縁屋） =========================== */
.framing-lead {
  font-size: 1.25rem; line-height: 1.9;
  margin: 0 0 26px;
  max-width: 760px;
}
/* 対応できるもの（PCで横並びのカード） */
.framing-items {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; margin-bottom: 30px;
}
.fitem {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px;
}
.fitem-icon { font-size: 1.7rem; line-height: 1; flex: 0 0 auto; }
.fitem-body h3 { margin: 2px 0 4px; font-size: 1.12rem; }
.fitem-body p { margin: 0; font-size: 0.98rem; color: var(--ink-soft); line-height: 1.7; }

.framing-block { margin-bottom: 30px; }
.framing-subtitle {
  font-size: 1.2rem; margin: 0 0 14px;
  padding-left: 10px; border-left: 4px solid var(--pop);
}

/* 料金の目安 */
.price-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 22px;
  max-width: 620px;
}
.price-row {
  display: flex; align-items: baseline; gap: 14px;
  padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.price-row:last-child { border-bottom: none; }
.price-name { flex: 1; }
.price-value { font-weight: 700; font-size: 1.15rem; color: var(--accent); white-space: nowrap; }
.price-note { margin: 10px 2px 0; font-size: 0.95rem; color: var(--ink-soft); }

/* ご依頼の流れ（PCで横並びのステップ） */
.flow-list {
  list-style: none; counter-reset: flow; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px;
}
.flow-step {
  counter-increment: flow;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px 16px;
  position: relative;
}
.flow-step::before {
  content: counter(flow);
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-bottom: 8px;
  background: var(--accent); color: #fff;
  border-radius: 999px; font-weight: 700; font-size: 0.95rem;
}
.flow-head { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.flow-note { margin: 0; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.65; }

.framing-note {
  font-size: 1.1rem; margin: 0 0 22px;
}
.framing-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* =========================== アクセス・営業案内 =========================== */
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 22px;
}
.info-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: none; }
.info-row .label { flex: 0 0 96px; font-weight: 700; color: var(--ink-soft); }
.info-row .value { flex: 1; }
.info-row .value a { word-break: break-all; }

/* 電話番号と「電話する」ボタン：余裕があれば横並び、狭ければ折り返す */
.tel-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.tel-num { white-space: nowrap; }

.tel-button, .map-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  font-size: 1.15rem; font-weight: 700;
  text-decoration: none; border-radius: 999px;
  min-height: 52px;
}
.map-button { margin-top: 6px; }
.tel-button { background: var(--accent); color: #fff; }
.tel-button:hover { background: var(--accent-dk); }
.map-button { background: var(--surface); color: var(--accent); border: 1.5px solid var(--accent); }

/* Googleマップ（動かせる埋め込み地図） */
.map-embed {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(70, 50, 30, 0.06);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}
#map-slot .map-button { margin-top: 12px; }

/* =========================== フッター =========================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  text-align: center; color: var(--ink-soft);
}
.site-footer a.sns {
  display: inline-block; margin: 6px 0 14px;
  font-size: 1.05rem; font-weight: 700;
}
.site-footer .copy { font-size: 0.85rem; }

/* =========================== スマホ表示（760px以下） =========================== */
@media (max-width: 760px) {
  body { font-size: 17px; }

  /* ヘッダーは縦積み（ロゴ中央 → メニュー中央） */
  .header-inner { flex-direction: column; gap: 8px; }
  .nameplate { text-align: center; }
  .nameplate .logo { margin: 0 auto; max-width: 220px; }
  .main-nav { justify-content: center; gap: 6px 20px; }
  .main-nav a { font-size: 1rem; padding: 6px 4px; }

  /* ヒーローはスマホ用に控えめに（写真が縦画面でも見えるように） */
  .hero-inner { min-height: 60vh; padding-top: 48px; padding-bottom: 52px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(16,24,40,0.55), rgba(16,24,40,0.68)); }
  .hero-title { font-size: 2.15rem; }
  .hero-lead { font-size: 1.08rem; }
  .hero-lead br, .hero-title br { display: none; }   /* 折り返しはスマホ幅に任せる */
  .btn-primary, .btn-ghost { width: 100%; }

  .nameplate h1 { font-size: 1.45rem; }
  .current-card h2 { font-size: 1.4rem; }
  .section-title { font-size: 1.3rem; }
  .next-grid { grid-template-columns: 1fr; }   /* 次の展示は縦一列に */
  .framing-items { grid-template-columns: 1fr; }
  .flow-list { grid-template-columns: 1fr; }

  /* カレンダーはスマホでは詰めて表示 */
  .calendar { padding: 14px 10px 16px; }
  .cal-title { font-size: 1.15rem; min-width: 7.5em; }
  .cal-weekdays { font-size: 0.85rem; }
  .cal-num { width: 1.9em; height: 1.9em; font-size: 0.92rem; border-radius: 8px; }
  .cal-bar { height: 22px; font-size: 0.72rem; padding: 0 4px; }
  .cal-legend { font-size: 0.85rem; gap: 6px 16px; }
  .info-row { flex-direction: column; gap: 4px; }
  .info-row .label { flex: none; }
  .map-embed iframe { height: 280px; }          /* スマホでは地図を少し低めに */
  section { scroll-margin-top: 150px; }         /* スマホはヘッダーが縦積みで高いため多めに */
}
