@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400&family=Noto+Sans+JP:wght@300;400&display=swap');

:root {
  --bg: #f7f3ea;            /* 生成り */
  --bg-deep: #efe8da;       /* 少し濃い生成り（フッター等） */
  --text: #6e3d22;          /* テラコッタ調の焦茶（赤み強め） */
  --text-soft: #a5714f;     /* 柔らかいテラコッタブラウン */
  --accent: #a98a5f;        /* 真鍮色 */
  --line: #ddd2bf;          /* 罫線 */
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

h1, h2, h3, .serif {
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  letter-spacing: 0.1em;
}

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

a { color: var(--text); text-decoration: none; transition: opacity 0.4s; }
a:hover { opacity: 0.6; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 80px; }

/* ===== ヘッダー ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.6s, box-shadow 0.6s;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header.scrolled {
  background: rgba(247, 243, 234, 0.95);
  box-shadow: 0 1px 0 var(--line);
}
.logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  letter-spacing: 0.15em;
}
.nav { display: flex; gap: 0; align-items: center; }
.nav a { font-size: 13px; color: var(--text-soft); letter-spacing: 0.08em; }
.nav > a, .nav > .nav-item { padding: 0 18px; }
.nav > * + * { border-left: 1px solid var(--line); }
.nav a.nav-contact { color: var(--text); border-bottom: 1px solid var(--accent); padding-bottom: 2px; margin-left: 18px; }
.nav > a.nav-contact { padding: 0 0 2px; }

.nav-item { position: relative; }
.nav-end { display: none; }
.nav-item > a::after { content: ' ⌄'; font-size: 10px; color: var(--accent); }
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 18px;
  z-index: 110;
}
.nav-item:hover .submenu { display: block; }
.submenu-inner {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 0;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(61, 47, 34, 0.08);
}
.submenu-inner a {
  display: block;
  padding: 10px 22px;
  font-size: 13px;
  white-space: nowrap;
}
.submenu-inner a:hover { background: var(--bg); opacity: 1; }

.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 1px; background: var(--text); margin: 6px 0; }

/* ===== Hero ===== */
.hero {
  position: relative;
  margin-top: 76px;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 60px 4vw 100px 8vw;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 22% 62%;
  filter: brightness(1.08);
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgba(250, 248, 243, 0.6) 0%, rgba(250, 248, 243, 0.25) 45%, rgba(250, 248, 243, 0.1) 70%),
    rgba(255, 255, 255, 0.22);
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 480px;
  text-align: left;
}
.hero-copy .eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-copy h1 {
  font-size: 44px;
  line-height: 1.8;
  margin-bottom: 32px;
  text-shadow: 0 0 24px rgba(247, 243, 234, 0.8);
}
.hero-copy p {
  font-size: 15px;
  line-height: 2.2;
  color: var(--text);
  margin-bottom: 56px;
  max-width: 26em;
  text-shadow: 0 0 16px rgba(247, 243, 234, 0.8);
}
.hero-copy .btn-group { justify-content: flex-start; }
.btn-pill {
  display: inline-block;
  padding: 16px 40px;
  background: rgba(255, 253, 249, 0.85);
  border: 1px solid var(--line);
  border-radius: 32px;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--text);
  transition: background 0.4s;
}
.btn-pill:hover { background: #fffdf9; opacity: 1; }

.btn {
  display: inline-block;
  padding: 16px 32px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--text);
  transition: background 0.4s, color 0.4s;
}
.btn:hover { background: var(--accent); color: var(--bg); opacity: 1; }
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-sign {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(247, 243, 234, 0.82);
  padding: 18px 10px 14px;
  border-radius: 22px;
}
.scroll-sign::after {
  content: '';
  width: 1px;
  height: 44px;
  background: var(--text-soft);
  animation: scroll-line 2.6s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  75% { transform: scaleY(1); opacity: 0; }
  100% { transform: scaleY(0); opacity: 0; }
}

/* ===== セクション共通 ===== */
.section { padding: 120px 0; }
.section[style*="bg-deep"], .site-footer {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.009 0.11' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.29 0 0 0 0 0.19 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E"),
    linear-gradient(var(--bg-deep), var(--bg-deep)) !important;
}
.section-head { text-align: center; margin-bottom: 64px; }
.section-head .eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-head h2 { font-size: 20px; letter-spacing: 0.18em; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 20px;
}
.section-head::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 24px auto 0;
}

.lead {
  max-width: 34em;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
  color: var(--text-soft);
}

/* ===== 下層ページ 写真ヒーロー ===== */
.page-hero-photo {
  position: relative;
  margin-top: 76px;
  min-height: 68vh;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.009 0.11' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.29 0 0 0 0 0.19 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E"),
    linear-gradient(var(--bg-deep), var(--bg-deep));
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 60px 8vw;
  overflow: hidden;
}
.page-hero-photo .hp-img { position: absolute; inset: 0; z-index: 0; }
.page-hero-photo .hp-img img {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: auto;
  max-width: none;
  filter: brightness(1.06);
  -webkit-mask-image: linear-gradient(to left, black 40%, transparent 96%);
  mask-image: linear-gradient(to left, black 40%, transparent 96%);
}
.page-hero-photo .hp-copy { position: relative; z-index: 1; max-width: 440px; text-align: center; }
.page-hero-photo .hp-copy h1 {
  font-size: 42px;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(250, 248, 243, 0.8);
}
.page-hero-photo .hp-copy .hp-deco {
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 0.2em;
}
.page-hero-photo .hp-copy p.hp-lead {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  line-height: 2.4;
  color: var(--text);
  text-shadow: 0 0 16px rgba(250, 248, 243, 0.8);
}
@media (max-width: 820px) {
  .page-hero-photo { min-height: 60vh; align-items: flex-end; padding: 40px 24px 48px; }
  .page-hero-photo .hp-img img { position: static; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
  .page-hero-photo .hp-img::after {
    background: linear-gradient(to top, rgba(250, 248, 243, 0.9) 0%, rgba(250, 248, 243, 0.3) 45%, transparent 70%);
  }
  .page-hero-photo .hp-copy h1 { font-size: 30px; }
}

.page-hero-photo.short { min-height: 46vh; }
.page-hero-photo.blend .hp-img img {
  height: 68%;
  top: auto;
  bottom: 8%;
  right: 0;
  filter: contrast(1.08) saturate(1.05);
  -webkit-mask-image: linear-gradient(to left, black 30%, rgba(0,0,0,0.7) 55%, rgba(0,0,0,0.35) 75%, transparent 98%), linear-gradient(to top, black 45%, transparent 97%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, black 30%, rgba(0,0,0,0.7) 55%, rgba(0,0,0,0.35) 75%, transparent 98%), linear-gradient(to top, black 45%, transparent 97%);
  mask-composite: intersect;
}
@media (max-width: 820px) {
  .page-hero-photo.blend .hp-img img { position: absolute; width: auto; }
}

/* ===== 下層ページヘッダー ===== */
.page-hero {
  margin-top: 76px;
  padding: 96px 24px 60px;
  text-align: center;
  margin-bottom: 60px;
}
.page-hero h1 {
  display: block;
  margin: 0 -24px;
  padding: 22px 24px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.009 0.11' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.45 0 0 0 0 0.35 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E"),
    linear-gradient(var(--bg-deep), var(--bg-deep));
  border-top: 4px double var(--accent);
  border-bottom: 4px double var(--accent);
}
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero h1 + * { margin-top: 32px; }
.page-hero .eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 20px;
}
.page-hero h1 { font-size: 38px; }

.photo-break {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.photo-break img {
  border-radius: var(--radius);
  width: 100%;
}
.photo-break.soft img {
  border-radius: 0;
  -webkit-mask-image: radial-gradient(ellipse 68% 62% at center, black 30%, transparent 88%);
  mask-image: radial-gradient(ellipse 68% 62% at center, black 30%, transparent 88%);
}
.photo-break figcaption {
  text-align: center;
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 12px;
  letter-spacing: 0.1em;
}

/* ===== 物語本文 ===== */
.story {
  max-width: 36em;
  margin: 0 auto;
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  line-height: 2.4;
}
.story p { margin-bottom: 2.2em; }
.story p:last-child { margin-bottom: 0; }

/* ===== カード ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.card { text-align: center; }
.card img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; margin-bottom: 20px; }
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { font-size: 14px; color: var(--text-soft); text-align: left; }
.card .more { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--accent); letter-spacing: 0.1em; }

/* ===== 作品 ===== */
.works-label {
  max-width: 1000px;
  margin: 0 auto 40px;
  padding: 0 24px;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.work-large {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 0 24px;
}
.work-large img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-deep);
}
.work-large.photo-placeholder .ph,
.works-grid .ph {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-soft);
}
.work-large h3 { font-size: 24px; margin-bottom: 4px; }
.work-en { font-size: 11px; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 20px; }
.work-copy {
  border-left: 2px solid var(--line);
  padding-left: 20px;
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  line-height: 2.2;
  color: var(--text);
  margin-bottom: 24px;
}
.work-price { display: flex; gap: 40px; }
.work-price .plabel { font-size: 11px; letter-spacing: 0.15em; color: var(--accent); margin-bottom: 6px; }
.work-price .pvalue { font-size: 18px; font-family: 'Noto Serif JP', serif; }
.work-price .pnote { font-size: 12px; color: var(--text-soft); }

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}
.works-grid .wcard {
  background: rgba(255, 253, 249, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.works-grid .wcard img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-deep);
}
.works-grid .wbody { padding: 20px 22px 24px; }
.works-grid h3 { font-size: 18px; margin-bottom: 12px; }
.works-grid .work-copy { font-size: 13px; line-height: 2; margin-bottom: 16px; }
.works-grid .work-price { gap: 24px; border-top: 1px solid var(--line); padding-top: 14px; }
.works-grid .pvalue { font-size: 15px; }

@media (max-width: 820px) {
  .work-large { grid-template-columns: 1fr; gap: 24px; }
  .works-grid { grid-template-columns: 1fr; }
}

/* ===== 工程写真 ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}
.process-grid figure { margin: 0; }
.process-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}
.process-grid figcaption {
  text-align: center;
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 10px;
  letter-spacing: 0.1em;
}
@media (max-width: 820px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== ご依頼の流れ ===== */
.flow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.flow-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding-bottom: 48px;
  position: relative;
}
.flow-step::before {
  content: '';
  position: absolute;
  left: 27px; top: 56px; bottom: 0;
  width: 1px;
  background: var(--line);
}
.flow-step:last-child::before { display: none; }
.flow-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
}
.flow-body h3 { font-size: 19px; margin: 12px 0 12px; }
.flow-body p { font-size: 14px; color: var(--text-soft); }
.flow-note {
  background: rgba(196, 149, 106, 0.08);
  border-left: 2px solid var(--accent);
  padding: 12px 16px;
  font-size: 13px;
  color: #9a6a4a;
  margin-top: 14px;
}

/* ===== 料金表 ===== */
.price-table { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.price-group-label {
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin: 48px 0 8px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.price-row .pname { font-size: 16px; }
.price-row .pright { text-align: right; white-space: nowrap; }
.price-row .pcond { font-size: 12px; color: var(--text-soft); margin-right: 12px; }
.price-row .pyen { font-size: 17px; font-family: 'Noto Serif JP', serif; }
.price-notes {
  max-width: 720px;
  margin: 40px auto 0;
  padding: 20px 24px;
  background: rgba(196, 149, 106, 0.08);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-soft);
  line-height: 2.2;
}

/* ===== お願いカード ===== */
.notice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 24px;
}
.notice-card {
  background: rgba(255, 253, 249, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.notice-card h3 {
  font-size: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.notice-card p { font-size: 13px; color: var(--text-soft); }
.notice-important {
  max-width: 840px;
  margin: 24px auto 0;
  padding: 28px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}
.notice-important h3 { font-size: 16px; color: var(--accent); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.notice-important p { font-size: 13px; color: var(--text-soft); }
@media (max-width: 820px) {
  .notice-grid { grid-template-columns: 1fr; }
  .notice-important { margin-left: 24px; margin-right: 24px; }
}

/* ===== みんなのいぬけいと ===== */
.minna-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.minna-item { text-align: center; cursor: pointer; }
.minna-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-deep);
  transition: opacity 0.4s;
}
.minna-item:hover img { opacity: 0.85; }
.minna-item .mname {
  margin-top: 12px;
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--text);
}
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(61, 47, 34, 0.85);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  cursor: pointer;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius);
}
.lightbox .lbname {
  color: var(--bg);
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  letter-spacing: 0.15em;
}


/* ===== お手紙フレーム ===== */
.letter-frame {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  padding: 72px 48px;
  border: 1px solid var(--accent);
  outline: 1px solid var(--accent);
  outline-offset: 6px;
  background: rgba(255, 253, 249, 0.5);
}
.letter-frame .corner {
  position: absolute;
  width: 96px;
  height: 96px;
  color: var(--accent);
}
.letter-frame .side {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 90px;
  color: var(--accent);
}
.letter-frame .side svg { width: 100%; height: 100%; }
.letter-frame .side.left { left: 8px; transform: translateY(-50%); }
.letter-frame .side.right { right: 8px; transform: translateY(-50%) scaleX(-1); }
.letter-frame .corner svg { width: 100%; height: 100%; }
.letter-frame .corner.tl { top: 8px; left: 8px; }
.letter-frame .corner.tr { top: 8px; right: 8px; transform: scaleX(-1); }
.letter-frame .corner.bl { bottom: 8px; left: 8px; transform: scaleY(-1); }
.letter-frame .corner.br { bottom: 8px; right: 8px; transform: scale(-1); }
.letter-frame .edge {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 26px;
  color: var(--accent);
}
.letter-frame .edge svg { width: 100%; height: 100%; }
.letter-frame .edge.top { top: -14px; background: var(--bg-deep); padding: 0 12px; }
.letter-frame .edge.bottom { bottom: -14px; background: var(--bg-deep); padding: 0 12px; transform: translateX(-50%) scaleY(-1); }
@media (max-width: 820px) {
  .letter-frame { padding: 56px 24px; }
}

/* ===== 大きな作品のソフトフレーム ===== */
.work-large .pframe {
  aspect-ratio: 3/4;
  border-radius: 0;
  background: transparent;
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at center, black 38%, transparent 90%);
  mask-image: radial-gradient(ellipse 72% 68% at center, black 38%, transparent 90%);
}
.work-large .pframe img { object-fit: contain; }

/* ===== ぼかし背景フレーム ===== */
.pframe {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-deep);
}
.pframe .pbg {
  position: absolute;
  inset: -12%;
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(1.02);
}
.minna-grid .pframe img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: auto;
  border-radius: 0;
  background: transparent;
}

/* ===== フッター ===== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
  padding: 64px 40px 32px;
  text-align: center;
}
.footer-photo {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 38%;
  z-index: 0;
}
.footer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(to left, black 40%, transparent 96%);
  mask-image: linear-gradient(to left, black 40%, transparent 96%);
}
.site-footer > .logo, .site-footer > .footer-links, .site-footer > .copyright {
  position: relative;
  z-index: 1;
}
@media (max-width: 820px) {
  .footer-photo { width: 70%; opacity: 0.5; }
}
.site-footer .logo { margin-bottom: 24px; }
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.footer-links a { font-size: 13px; color: var(--text-soft); }
.copyright { font-size: 11px; color: var(--text-soft); letter-spacing: 0.1em; }

/* ===== フェードイン ===== */
.fade { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade.visible { opacity: 1; transform: none; }

/* ===== スマホ ===== */
@media (max-width: 820px) {
  .container { padding: 0 24px; }
  .hero { justify-content: flex-end; align-items: center; padding: 100px 3vw 80px 24px; min-height: 92vh; }
  .hero-photo::after {
    background: linear-gradient(to top, rgba(247, 243, 234, 0.85) 0%, rgba(247, 243, 234, 0.55) 35%, rgba(247, 243, 234, 0.3) 60%, rgba(247, 243, 234, 0.1) 80%, transparent 95%);
  }
  .hero-copy .eyebrow { color: #8a6a45; }
  .hero-copy { text-align: right; max-width: 15em; margin-top: 16vh; }
  .hero-copy .btn-group { justify-content: flex-end; }
  .scroll-sign { display: none; }
  .hero-copy h1 { font-size: 28px; }
  .cards { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    padding: 24px;
    box-shadow: 0 8px 16px rgba(61, 47, 34, 0.08);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 48px;
  }
  .nav.open > * + * { border-left: none; }
  .nav.open .nav-end {
    display: block;
    border-top: 3px double var(--accent);
    margin-top: 28px;
    padding-top: 28px;
    text-align: center;
  }
  .nav.open > a, .nav.open > .nav-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav.open .nav-item > a::after { content: ''; }
  .nav.open .submenu { display: block; position: static; transform: none; padding-top: 8px; }
  .nav.open .submenu-inner { border: none; box-shadow: none; background: transparent; padding: 0; }
  .nav.open .submenu-inner a { padding: 8px 0 8px 1.5em; color: var(--text-soft); }
  .nav.open a.nav-contact { margin-left: 0; border-bottom: 1px solid var(--accent); }
  .hamburger { display: block; }
  .btn { width: 100%; text-align: center; margin-left: 0 !important; }
  .btn + .btn { margin-top: 12px; }
}
