:root {
  --ivory: #faf7f2;
  --white: #ffffff;
  --brown: #5a4632;
  --brown-dark: #3e3021;
  --text: #33302a;
  --green: #4a8f3c;
  --green-dark: #37702c;
  --lime: #cfe36a;
  --line: #e5ddd0;
  --serif: "Cormorant Garamond", "Shippori Mincho", serif;
  --serif-ja: "Shippori Mincho", serif;
  --sans: "Noto Sans JP", sans-serif;
  /* ガラス風UI用 */
  --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-shadow: 0 8px 32px rgba(90, 70, 50, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  /* アイボリーの上に淡い色の光を散らし、ガラス面が映える背景にする */
  background:
    radial-gradient(900px 620px at 88% -120px, rgba(207, 227, 106, 0.32), transparent 65%),
    radial-gradient(760px 560px at -120px 30%, rgba(74, 143, 60, 0.13), transparent 60%),
    radial-gradient(820px 620px at 112% 72%, rgba(240, 203, 145, 0.26), transparent 60%),
    var(--ivory);
  background-attachment: fixed;
  line-height: 1.9;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--glass-border);
}
.logo { display: flex; flex-direction: column; line-height: 1.3; }
.logo-en { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--brown); letter-spacing: 0.04em; }
.logo-ja { font-size: 11px; color: #8a7d6a; letter-spacing: 0.2em; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav > a { display: flex; flex-direction: column; align-items: center; line-height: 1.35; padding: 2px 0; border-bottom: 2px solid transparent; transition: border-color 0.2s; }
.site-nav > a:hover, .site-nav > a.active { border-bottom-color: var(--green); }
.nav-en { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--brown); letter-spacing: 0.1em; }
.nav-ja { font-size: 10px; color: #8a7d6a; letter-spacing: 0.1em; }
.nav-sns { display: flex; align-items: center; gap: 14px; margin-left: 6px; }
.nav-sns a { color: var(--brown); opacity: 0.75; transition: opacity 0.2s; display: flex; }
.nav-sns a:hover { opacity: 1; }
.nav-toggle { display: none; }

/* ---------- ヒーロー ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 28px 20px;
  gap: 30px;
}
.hero-photo img { width: 100%; max-height: 78vh; object-fit: cover; object-position: top; border-radius: 24px; box-shadow: var(--glass-shadow); }
.hero-text { text-align: center; }
.hero-official { font-family: var(--serif); font-size: 18px; color: #9c8b73; letter-spacing: 0.3em; margin-bottom: 10px; }
.hero-name { font-family: var(--serif); font-size: clamp(42px, 6vw, 72px); font-weight: 600; color: var(--brown); line-height: 1.1; }
.hero-tagline { font-family: var(--serif); font-size: clamp(20px, 2.6vw, 30px); color: var(--brown); margin-top: 12px; letter-spacing: 0.06em; }
.hero-name-ja { margin-top: 22px; font-family: var(--serif-ja); font-size: 15px; letter-spacing: 0.24em; color: var(--text); }

/* ---------- セクション共通 ---------- */
.section { padding: 70px 28px; }
.page-top { padding-top: 50px; }
.container { max-width: 1080px; margin: 0 auto; }
.container.narrow { max-width: 780px; }
.center { text-align: center; }
.alt-bg { background: rgba(255, 255, 255, 0.46); }
.section-title { text-align: center; margin-bottom: 42px; line-height: 1.4; }
.section-title .en { display: block; font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--brown); letter-spacing: 0.12em; }
.section-title .ja { display: inline-block; font-size: 13px; color: var(--green-dark); letter-spacing: 0.2em; margin-top: 10px; }

.message-section p { text-align: center; margin-bottom: 6px; }

/* ---------- ニュース ---------- */
.news-list {
  max-width: 760px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 6px 22px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(10px);
}
.news-list li { border-bottom: 1px solid var(--line); }
.news-list li:last-child { border-bottom: none; }
.news-list a { display: flex; gap: 26px; align-items: baseline; padding: 18px 8px; transition: background 0.2s; }
.news-list a:hover { background: rgba(74, 143, 60, 0.06); }
.news-list time { font-family: var(--serif); font-size: 15px; color: var(--green-dark); white-space: nowrap; letter-spacing: 0.05em; }
.news-list .empty { padding: 18px 8px; color: #8a7d6a; }
.more-wrap { text-align: center; margin-top: 34px; }
.btn-more {
  display: inline-block;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--brown-dark);
  border: 1px solid rgba(90, 70, 50, 0.35);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 12px 46px;
  box-shadow: 0 4px 18px rgba(90, 70, 50, 0.1);
  transition: all 0.25s;
}
.btn-more:hover { background: var(--brown-dark); color: var(--ivory); }
.btn-more .arrow { display: inline-block; transition: transform 0.25s; }
.btn-more:hover .arrow { transform: translateX(4px); }

.news-article time { font-family: var(--serif); color: var(--green-dark); font-size: 16px; letter-spacing: 0.05em; }
.news-article h1 { font-family: var(--serif-ja); font-size: 26px; color: var(--brown-dark); margin: 8px 0 24px; line-height: 1.5; }
.news-article .news-image { margin-bottom: 24px; }
.news-article .news-image img { margin: 0 auto; max-height: 480px; object-fit: contain; }

/* ---------- ランキング ---------- */
.ranking-updated { text-align: center; color: #8a7d6a; font-size: 13px; margin: -26px 0 26px; }
.ranking-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; max-width: 880px; margin: 0 auto; }
.ranking-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; box-shadow: var(--glass-shadow); backdrop-filter: blur(12px); text-align: center; padding: 26px 16px; }
.ranking-label { font-size: 13px; letter-spacing: 0.1em; color: var(--green-dark); margin-bottom: 8px; }
.ranking-value { font-family: var(--serif); font-size: 40px; color: var(--brown-dark); line-height: 1.2; }
.ranking-value span, .ranking-best span { display: block; font-size: 11px; letter-spacing: 0.2em; color: #9c8b73; }
.ranking-best { font-family: var(--serif); font-size: 20px; color: var(--brown); margin-top: 8px; }

/* ---------- バナーカード ---------- */
.cards-section .container { display: flex; flex-direction: column; gap: 54px; }
.banner-card { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 36px; }
.banner-card.reverse .banner-photo { order: 2; }
.banner-card.reverse .banner-body { order: 1; }
.banner-photo { overflow: hidden; border-radius: 22px; box-shadow: var(--glass-shadow); }
.banner-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; transition: transform 0.5s; }
.banner-card:hover .banner-photo img { transform: scale(1.04); }
.banner-body { text-align: center; }
.banner-title { line-height: 1.4; margin-bottom: 24px; }
.banner-title .ja { display: inline-block; font-family: var(--serif-ja); font-size: 24px; font-weight: 600; color: var(--text); }
.banner-title .en { display: block; font-family: var(--serif); font-size: 22px; color: var(--brown); margin-top: 10px; letter-spacing: 0.08em; }

/* ---------- 下層ページヒーロー ---------- */
.page-hero { position: relative; max-height: 66vh; overflow: hidden; }
.page-hero img { width: 100%; max-height: 66vh; object-fit: cover; object-position: center top; }
.page-hero-title {
  position: absolute;
  left: 6%;
  top: 42%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

/* ---------- プロフィール ---------- */
.def-list {
  max-width: 620px;
  margin: 0 auto 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 20px 28px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(10px);
}
.def-list.contracts { margin-bottom: 0; }
.def-list > div { display: grid; grid-template-columns: 180px 1fr; padding: 9px 4px; }
.def-list dt { color: var(--green-dark); font-weight: 500; letter-spacing: 0.08em; }
.results-list {
  max-width: 720px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 8px 26px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(10px);
}
.results-list li { display: flex; gap: 24px; align-items: baseline; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.results-list li:last-child { border-bottom: none; }
.results-list .year { font-family: var(--serif); font-size: 19px; color: var(--brown); white-space: nowrap; letter-spacing: 0.05em; }
/* 横スライド式フォトギャラリー */
.photo-slider { position: relative; }
.photo-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px;
}
.photo-grid::-webkit-scrollbar { display: none; }
.photo-item { flex: 0 0 auto; width: min(300px, 72vw); scroll-snap-align: center; }
.photo-item img { width: 100%; aspect-ratio: 3 / 3.6; object-fit: cover; border-radius: 18px; box-shadow: var(--glass-shadow); }
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  box-shadow: var(--glass-shadow);
  color: var(--brown-dark);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px;
  transition: background 0.2s;
}
.slider-btn:hover { background: #fff; }
.slider-btn.prev { left: -10px; }
.slider-btn.next { right: -10px; }

/* ---------- プロセス・想い ---------- */
.lead-text { text-align: center; margin-bottom: 40px; }
.lead-text p { font-family: var(--serif-ja); font-size: clamp(17px, 2.2vw, 21px); font-weight: 600; color: var(--brown-dark); line-height: 2.1; }
.body-text p { margin-bottom: 18px; }
.body-text.center p { text-align: center; }
.motto-block { margin-bottom: 56px; text-align: center; }
.motto-block:last-child { margin-bottom: 0; }
.motto-title {
  display: inline-block;
  font-family: var(--serif-ja);
  font-size: clamp(21px, 2.8vw, 27px);
  color: var(--brown-dark);
  border-bottom: 2px solid var(--green);
  padding: 0 10px 8px;
  margin-bottom: 22px;
}
.motto-quote { font-family: var(--serif-ja); font-size: 17px; color: var(--green-dark); margin-bottom: 18px; line-height: 2.1; }
.motto-body { text-align: left; margin-bottom: 14px; }

/* ---------- サポーター ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 320px)); gap: 24px; justify-content: center; }
.plan-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-top: 3px solid rgba(74, 143, 60, 0.7);
  border-radius: 20px;
  padding: 30px 26px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
}
.alt-bg .plan-card { background: var(--glass-bg); }
.plan-name { font-family: var(--serif-ja); font-size: 21px; color: var(--brown-dark); text-align: center; }
.plan-price { text-align: center; font-size: 17px; font-weight: 700; color: var(--green-dark); margin: 8px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.plan-benefits li { position: relative; padding: 5px 0 5px 22px; font-size: 15px; }
.plan-benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
/* プラン比較表(ガラス風) */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
}
.plan-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.plan-table th, .plan-table td {
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  padding: 14px 10px;
  text-align: center;
  vertical-align: middle;
  font-size: 14px;
}
.plan-table tr > :first-child { border-left: none; }
.plan-table tbody tr:last-child > * { border-bottom: none; }
.plan-table thead th { background: rgba(255, 255, 255, 0.55); padding: 18px 10px; }
.plan-table .feature-col, .plan-table .feature {
  font-weight: 500;
  color: var(--brown-dark);
  min-width: 120px;
  line-height: 1.6;
}
.plan-table .plan-name { display: block; font-family: var(--serif-ja); font-size: 17px; font-weight: 700; color: var(--brown-dark); text-align: center; }
.plan-table .plan-price { display: block; font-size: 13px; font-weight: 700; color: var(--green-dark); margin: 4px 0 0; padding: 0; border: none; }
.plan-table .ok { color: var(--green); font-size: 20px; font-weight: 700; }
.plan-table .no { color: #b8ad9c; }
.plan-link {
  display: inline-block;
  background: rgba(55, 112, 44, 0.88);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(55, 112, 44, 0.25);
  transition: background 0.2s;
}
.plan-link:hover { background: var(--green); }
.apply-wrap { text-align: center; margin-top: 44px; }
.btn-apply {
  display: inline-block;
  background: rgba(55, 112, 44, 0.88);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 15px 52px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(55, 112, 44, 0.3);
  backdrop-filter: blur(6px);
  transition: background 0.25s;
}
.btn-apply:hover { background: var(--green); }
.apply-note { margin-top: 16px; font-size: 14px; color: #6f6452; }
.apply-note a { color: var(--green-dark); text-decoration: underline; }

/* ---------- ギャラリー ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.gallery-item {
  display: block;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-empty { text-align: center; color: #8a7d6a; }

body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 24, 18, 0.82);
  backdrop-filter: blur(10px);
  padding: 56px 64px;
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; text-align: center; max-width: 100%; }
.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.lightbox-figure figcaption { color: #f2ead9; font-size: 14px; margin-top: 12px; min-height: 1.5em; }
.lightbox-count { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, 0.75); font-size: 13px; letter-spacing: 0.1em; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-close { top: 10px; right: 12px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 10px; }
.lightbox-nav.next { right: 10px; }

@media (max-width: 880px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .gallery-item { border-radius: 10px; }
  .lightbox { padding: 56px 10px 70px; }
  .lightbox-nav { top: auto; bottom: 14px; transform: none; }
  .lightbox-nav.prev { left: calc(50% - 60px); }
  .lightbox-nav.next { right: calc(50% - 60px); }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- フッター ---------- */
.site-footer { background: var(--brown-dark); color: #d9cfc0; padding: 44px 28px 30px; margin-top: 40px; }
.footer-inner { max-width: 1080px; margin: 0 auto; text-align: center; }
.footer-name { font-family: var(--serif); font-size: 24px; color: #f2ead9; letter-spacing: 0.06em; }
.footer-name span { font-size: 15px; opacity: 0.8; margin-left: 8px; }
.footer-sns { display: flex; justify-content: center; gap: 26px; margin: 18px 0; }
.footer-sns a { font-family: var(--serif); font-size: 14px; letter-spacing: 0.1em; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.footer-sns a:hover { border-bottom-color: #d9cfc0; }
.copyright { font-size: 12px; opacity: 0.65; letter-spacing: 0.08em; margin-top: 8px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 880px) {
  /* backdrop-filterがあると子のposition:fixedがヘッダー基準になり全画面メニューが崩れるため、スマホでは不透明背景にする */
  .site-header { backdrop-filter: none; background: var(--ivory); }
  body.nav-open { overflow: hidden; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    width: 40px;
    height: 34px;
    position: relative;
    cursor: pointer;
    z-index: 210;
  }
  .nav-toggle span {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--brown);
    transition: all 0.3s;
  }
  .nav-toggle span:nth-child(1) { top: 9px; }
  .nav-toggle span:nth-child(2) { top: 16px; }
  .nav-toggle span:nth-child(3) { top: 23px; }
  body.nav-open .nav-toggle span:nth-child(1) { top: 16px; transform: rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { top: 16px; transform: rotate(-45deg); }
  /* 上から降りてくる白い角丸カード型メニュー */
  .site-nav {
    position: fixed;
    top: 8px;
    left: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 12px 18px;
    transform: translateY(calc(-100% - 30px));
    transition: transform 0.35s;
    z-index: 200;
  }
  body.nav-open .site-nav { transform: translateY(0); }
  /* 暗幕はヘッダー(z-index:100)より下に置く。上に置くとメニューのタップを吸ってしまう */
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(40, 32, 22, 0.32);
    z-index: 90;
  }
  .site-nav > a {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    padding: 15px 10px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav > a:hover, .site-nav > a.active { border-bottom-color: var(--line); }
  .site-nav > a.active .nav-en { color: var(--green-dark); }
  .nav-en { font-size: 17px; }
  .nav-ja { font-size: 12px; }
  .nav-sns { margin: 18px 0 0; gap: 26px; justify-content: flex-start; padding: 0 10px; }
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-text { order: 2; }
  .section { padding: 52px 20px; }
  /* スマホでも写真の横に見出し・ボタンを並べる(左右交互の配置も維持) */
  .banner-card { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cards-section .container { gap: 40px; }
  .banner-title { margin-bottom: 16px; }
  .banner-title .ja { font-size: 17px; }
  .banner-title .en { font-size: 14px; margin-top: 6px; }
  .banner-body .btn-more { padding: 9px 16px; font-size: 12px; letter-spacing: 0.12em; }
  .def-list > div { grid-template-columns: 120px 1fr; font-size: 15px; }
  .news-list a { gap: 14px; flex-direction: column; padding: 14px 4px; }
  .news-list a { gap: 4px; }
  .results-list li { flex-direction: column; gap: 0; }
  .page-hero img { min-height: 240px; }
}
