/* ==========================================================================
   川田農園 — スタイルシート
   ナチュラル／やわらかい紙とハーブの色でまとめています
   ========================================================================== */

:root {
  /* 紙・土のいろ */
  --paper:      #f8f4ea;   /* 生成り。ページの下地 */
  --paper-warm: #f1ead9;   /* すこし濃い生成り */
  --card:       #fffdf7;   /* カードの白 */
  --line:       #e3dac4;   /* 細い罫線 */
  --line-soft:  #ece5d5;

  /* 文字 */
  --ink:        #43402f;   /* 茶みのある黒 */
  --ink-soft:   #75705f;
  --ink-faint:  #a29b88;

  /* 草のいろ（くすんだセージ） */
  --sage-900:   #47583f;
  --sage-700:   #63784f;
  --sage-500:   #8ba173;
  --sage-300:   #b9c9a4;
  --sage-100:   #e6ecd9;

  /* 土と花のいろ */
  --soil:       #a5825c;
  --terracotta: #bc7c53;
  --sun:        #dbb361;

  /* 紙の質感（うっすらノイズ） */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");

  /* 字 */
  --serif: "Zen Old Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --sans:  "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --round: "Zen Maru Gothic", "Zen Kaku Gothic New", "Hiragino Maru Gothic ProN", sans-serif;

  /* 寸法 */
  --wrap: 1120px;
  --header-h: 78px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --shadow-soft: 0 10px 34px rgba(90, 78, 52, .08);
  --shadow-lift: 0 18px 46px rgba(90, 78, 52, .13);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   ベース
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 2.05;
  letter-spacing: .05em;
  font-feature-settings: "palt" 1;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .07em;
  margin: 0;
}

p { margin: 0 0 1.6em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }
button { font: inherit; color: inherit; }

.wrap {
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
}

.section {
  padding: clamp(76px, 11vw, 136px) 0;
  background-image: var(--noise);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 200;
  background: var(--sage-900); color: var(--paper);
  padding: 12px 22px; text-decoration: none; border-radius: 999px;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--sage-500);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   見出しまわりの共通パーツ
   -------------------------------------------------------------------------- */

/* 細い罫線だけの、静かなラベル */
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  font-family: var(--round);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--sage-700);
}
.section-label::before {
  content: "";
  width: 26px; height: 1px;
  flex: none;
  background: currentColor;
}

.label-center { justify-content: center; }

.section-title {
  font-size: clamp(26px, 3.5vw, 39px);
  margin-bottom: .9em;
}

.section-desc {
  color: var(--ink-soft);
  font-size: 15px;
}

.section-head { max-width: 700px; margin-bottom: clamp(44px, 6vw, 70px); }

/* --------------------------------------------------------------------------
   ボタン
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--round);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease),
              box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--sage-700);
  color: #fffdf7;
  border-color: var(--sage-700);
  box-shadow: 0 6px 18px rgba(71, 88, 63, .22);
}
.btn-primary:hover {
  background: var(--sage-900);
  border-color: var(--sage-900);
  box-shadow: 0 10px 26px rgba(71, 88, 63, .28);
}

.btn-ghost {
  background: rgba(255, 253, 247, .1);
  color: #fffdf7;
  border-color: rgba(255, 253, 247, .65);
  backdrop-filter: blur(2px);
}
.btn-ghost:hover { background: rgba(255, 253, 247, .2); border-color: #fffdf7; }

.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   ヘッダー
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-solid {
  background: rgba(248, 244, 234, .93);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-soft);
}

.header-inner {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: #fffdf7;
  transition: color .4s var(--ease);
}
.site-header.is-solid .brand { color: var(--sage-900); }

.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; }

.brand-text { display: flex; flex-direction: column; line-height: 1.4; }
.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .16em;
}
.brand-sub {
  font-family: var(--round);
  font-size: 10px;
  letter-spacing: .14em;
  opacity: .75;
}

.site-nav { display: flex; align-items: center; gap: 30px; }

.site-nav a {
  position: relative;
  font-family: var(--round);
  font-size: 14px;
  letter-spacing: .07em;
  text-decoration: none;
  color: #fffdf7;
  padding: 6px 0;
  transition: color .4s var(--ease), opacity .3s var(--ease);
}
.site-header.is-solid .site-nav a { color: var(--ink); }

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  opacity: .55;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .38s var(--ease);
}
.site-nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  border: 1px solid rgba(255, 253, 247, .6);
  border-radius: 999px;
  padding: 10px 24px !important;
}
.nav-cta:hover { background: rgba(255, 253, 247, .16); }
.site-header.is-solid .nav-cta {
  border-color: var(--sage-700);
  color: var(--sage-700) !important;
}
.site-header.is-solid .nav-cta:hover { background: var(--sage-700); color: #fffdf7 !important; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 22px; height: 1.8px;
  border-radius: 2px;
  background: #fffdf7;
  transition: transform .35s var(--ease), opacity .25s var(--ease), background-color .4s var(--ease);
}
.site-header.is-solid .nav-toggle span { background: var(--sage-900); }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   ヒーロー
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(100svh, 880px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 60px) 0 clamp(84px, 13vh, 132px);
  overflow: hidden;
  color: #fffdf7;
}

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
/* 黒ではなく、あたたかい土色のかすみをかける */
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top,
      rgba(48, 43, 30, .80) 0%,
      rgba(48, 43, 30, .42) 42%,
      rgba(48, 43, 30, .18) 72%,
      rgba(48, 43, 30, .26) 100%);
}

/* 下辺を紙の色でやわらかく受ける（ごく浅いカーブ） */
.hero::after {
  content: "";
  position: absolute;
  left: -45%; right: -45%; bottom: -42px;
  height: 84px;
  z-index: 1;
  background: var(--paper);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero-body {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
  max-width: min(100% - 48px, 700px);
  animation: heroIn 1.15s var(--ease) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 20px;
  border: 1px solid rgba(255, 253, 247, .38);
  border-radius: 999px;
  background: rgba(45, 40, 26, .42);
  backdrop-filter: blur(4px);
  font-family: var(--round);
  font-size: 12px;
  letter-spacing: .14em;
}

.hero-title {
  font-size: clamp(33px, 6.2vw, 63px);
  line-height: 1.48;
  letter-spacing: .08em;
  margin-bottom: .6em;
  text-shadow: 0 2px 26px rgba(38, 32, 20, .38);
}

.hero-lead {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 2.15;
  max-width: 33em;
  margin-bottom: 2.5em;
  color: rgba(255, 253, 247, .93);
  text-shadow: 0 1px 14px rgba(38, 32, 20, .3);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-scroll {
  position: absolute;
  left: 50%; bottom: 46px;
  z-index: 2;
  width: 1.5px; height: 52px;
  border-radius: 2px;
  background: rgba(255, 253, 247, .28);
  overflow: hidden;
}
.hero-scroll span {
  position: absolute;
  inset: 0;
  background: #fffdf7;
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: translateY(-100%); }
  50%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* --------------------------------------------------------------------------
   ごあいさつ
   -------------------------------------------------------------------------- */

.intro {
  background-color: var(--paper);
  background-image: var(--noise);
  padding: clamp(76px, 11vw, 132px) 0;
  text-align: center;
}

.intro-text {
  font-family: var(--serif);
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 2.55;
  letter-spacing: .1em;
  max-width: 33em;
  margin-inline: auto;
  margin-bottom: 1.8em;
  color: var(--sage-900);
}

/* 署名は、小さな顔写真とならべて */
.intro-sign {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 3.2em;
}
.intro-face {
  width: 96px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-md);
}
.intro-sign span {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .26em;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   農園について
   -------------------------------------------------------------------------- */

.about { background-color: var(--paper-warm); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(44px, 6vw, 86px);
  align-items: start;
}

.about-media { position: relative; }
.about-media > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-md);
}
.about-body > p { color: var(--ink-soft); }

.pillars {
  list-style: none;
  margin: 46px 0 0;
  padding: 0;
  display: grid;
  gap: 26px;
}
.pillars li {
  position: relative;
  padding: 22px 24px 22px 66px;
  background: rgba(255, 253, 247, .66);
  border-radius: var(--r-md);
}
.pillar-num {
  position: absolute;
  left: 24px; top: 24px;
  font-family: var(--round);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--sage-500);
}
.pillars h3 {
  font-size: 18px;
  margin-bottom: .5em;
  color: var(--sage-900);
}
.pillars p {
  margin: 0;
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   畑の時間（動画の帯）
   -------------------------------------------------------------------------- */

.filmstrip {
  position: relative;
  overflow: hidden;
  background: var(--sage-900);
}

.filmstrip-video {
  display: block;
  width: 100%;
  height: clamp(340px, 58vh, 620px);
  object-fit: cover;
}

.filmstrip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top,
    rgba(30, 34, 24, .74) 0%,
    rgba(30, 34, 24, .32) 46%,
    rgba(30, 34, 24, .10) 100%);
}

.filmstrip-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
  padding-bottom: clamp(34px, 5vw, 64px);
  color: #fffdf7;
}

.filmstrip-eyebrow {
  margin: 0 0 14px;
  font-family: var(--round);
  font-size: 11.5px;
  letter-spacing: .34em;
  opacity: .82;
}

.filmstrip-text {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(21px, 2.9vw, 33px);
  line-height: 1.62;
  letter-spacing: .08em;
  text-shadow: 0 2px 22px rgba(24, 20, 12, .4);
}

/* --------------------------------------------------------------------------
   育てているもの
   -------------------------------------------------------------------------- */

.crops { background-color: var(--paper); }

.crop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(296px, 1fr));
  gap: clamp(26px, 3.2vw, 42px);
}

.crop-card {
  background: var(--card);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.crop-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lift); }

.crop-photo { overflow: hidden; background: var(--paper-warm); }
.crop-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.crop-card:hover .crop-photo img { transform: scale(1.05); }

.crop-text { padding: 28px 30px 34px; flex: 1; }

.crop-season {
  display: inline-block;
  margin: 0 0 13px;
  padding: 5px 15px;
  background: var(--sage-100);
  color: var(--sage-700);
  border-radius: 999px;
  font-family: var(--round);
  font-size: 12px;
  letter-spacing: .08em;
}

.crop-text h3 {
  font-size: 21px;
  margin-bottom: .6em;
  color: var(--sage-900);
}
.crop-text p {
  margin: 0;
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   畑の一年
   -------------------------------------------------------------------------- */

.calendar { background-color: var(--paper-warm); }

.cal-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}

.cal-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 3px;
  font-size: 13px;
}

.cal-table th,
.cal-table td {
  padding: 0;
  text-align: center;
  font-weight: 400;
}

.cal-table thead th {
  padding: 6px 4px 12px;
  font-family: var(--round);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink-faint);
}

.cal-crop {
  text-align: left !important;
  padding: 12px 22px 12px 4px !important;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--ink) !important;
}

.cal-table tbody td {
  height: 44px;
  background: rgba(255, 253, 247, .6);
  border-radius: var(--r-sm);
}

.cal-table td.on {
  background: var(--sage-500);
  color: #fffdf7;
  font-family: var(--round);
  font-size: 12px;
  letter-spacing: .06em;
}
.cal-table td.on.alt { background: var(--sun); color: #524320; }

/* --------------------------------------------------------------------------
   畑の風景
   -------------------------------------------------------------------------- */

.gallery { background-color: var(--paper); }
.gallery .wrap { margin-bottom: 0; }

.gallery-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery-item {
  border: 0;
  padding: 0;
  margin: 0;
  background: var(--paper-warm);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }



/* --------------------------------------------------------------------------
   お問い合わせ
   -------------------------------------------------------------------------- */

.contact { background-color: var(--paper-warm); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(44px, 6vw, 82px);
  align-items: start;
}

.contact-body > p { color: var(--ink-soft); }

.contact-info {
  margin: 38px 0 0;
  border-top: 1px solid var(--line);
}
.contact-info > div {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info dt {
  font-family: var(--round);
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--sage-700);
  line-height: 2.2;
}
.contact-info dd { margin: 0; font-size: 15px; }

.contact-form {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 46px);
  box-shadow: var(--shadow-soft);
}

.form-note {
  margin: 0 0 28px;
  padding: 13px 18px;
  background: var(--paper-warm);
  border-radius: var(--r-sm);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.field { margin-bottom: 22px; }

.field label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  font-family: var(--round);
  font-size: 13.5px;
  letter-spacing: .07em;
}

.req {
  font-family: var(--round);
  font-size: 10px;
  letter-spacing: .08em;
  background: var(--terracotta);
  color: #fffdf7;
  padding: 3px 9px;
  border-radius: 999px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  transition: border-color .3s var(--ease), background-color .3s var(--ease),
              box-shadow .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sage-500);
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(139, 161, 115, .18);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--terracotta); }

.form-status {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--terracotta);
  min-height: 1.9em;
}

/* --------------------------------------------------------------------------
   フッター
   -------------------------------------------------------------------------- */

.site-footer {
  background-color: var(--sage-900);
  background-image: var(--noise);
  color: rgba(255, 253, 247, .8);
  padding: 68px 0 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.footer-name {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: .18em;
  color: #fffdf7;
  margin: 0 0 6px;
}
.footer-en {
  margin: 0 0 8px;
  font-family: var(--round);
  font-size: 11.5px;
  letter-spacing: .38em;
  color: #fffdf7;
  opacity: .62;
}
.footer-place {
  margin: 0;
  font-family: var(--round);
  font-size: 12px;
  letter-spacing: .1em;
  opacity: .72;
}

.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-nav a {
  font-family: var(--round);
  font-size: 13.5px;
  text-decoration: none;
  opacity: .85;
  transition: opacity .3s var(--ease);
}
.footer-nav a:hover { opacity: 1; }

.copyright {
  width: 100%;
  margin: 26px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 253, 247, .16);
  font-family: var(--round);
  font-size: 11.5px;
  letter-spacing: .1em;
  opacity: .58;
}

/* --------------------------------------------------------------------------
   ライトボックス
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(38, 34, 24, .93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 68px 20px 82px;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lb-image {
  max-width: min(100%, 1080px);
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--r-md);
}

.lb-close,
.lb-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 253, 247, .12);
  color: #fffdf7;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color .3s var(--ease);
  line-height: 1;
}
.lb-close:hover,
.lb-nav:hover { background: rgba(255, 253, 247, .26); }

.lb-close {
  top: 18px; right: 18px;
  width: 46px; height: 46px;
  font-size: 26px;
}

.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 32px;
  padding-bottom: 4px;
}
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

.lb-caption {
  position: absolute;
  left: 0; right: 0; bottom: 30px;
  margin: 0;
  text-align: center;
  color: rgba(255, 253, 247, .82);
  font-family: var(--round);
  font-size: 13px;
  letter-spacing: .09em;
}

/* --------------------------------------------------------------------------
   スクロール表示アニメーション
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .95s var(--ease), transform .95s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   レスポンシブ
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }


  .about-media { max-width: 560px; }
}

@media (max-width: 820px) {
  :root { --header-h: 66px; }

  .wrap { width: calc(100% - 40px); }
  .header-inner { width: calc(100% - 32px); }

  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    background-image: var(--noise);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    padding: 10px 26px 30px;
    box-shadow: var(--shadow-lift);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .site-nav a,
  .site-header.is-solid .site-nav a {
    color: var(--ink);
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15px;
  }
  .site-nav a:last-child { border-bottom: 0; }

  .nav-cta,
  .site-header.is-solid .nav-cta {
    margin-top: 20px;
    border: 1px solid var(--sage-700);
    color: var(--sage-700) !important;
    text-align: center;
    padding: 15px 22px !important;
  }

  .hero { min-height: 88svh; align-items: center; }
  .hero-title { line-height: 1.55; }

  /* 幅がせまいと文字が写真に重なるので、かすみを少し濃くする */
  .hero-media::after {
    background: linear-gradient(to top,
      rgba(48, 43, 30, .86) 0%,
      rgba(48, 43, 30, .58) 55%,
      rgba(48, 43, 30, .34) 100%);
  }

  .hero-scroll { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }


  .gallery-grid {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .lb-nav { width: 42px; height: 42px; font-size: 26px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .brand-sub { display: none; }
  .pillars li { padding: 20px 20px 20px 20px; }
  .pillar-num { position: static; display: block; margin-bottom: 6px; }
  .contact-info > div { grid-template-columns: 1fr; gap: 2px; }
  .contact-info dt { line-height: 1.7; }
}

/* --------------------------------------------------------------------------
   アニメーションを控えたい設定
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   印刷
   -------------------------------------------------------------------------- */

@media print {
  .site-header, .hero-scroll, .lightbox, .contact-form, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
