/* ===== Base ===== */
:root {
  --black: #000;
  --white: #fff;
  --accent: #c8a47e;        /* ベージュ（Contact Usボタン・フッター） */
  --rule: #808080;
  --muted: #666;
  --line: #e5e5e5;
  --font-sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --gutter: clamp(16px, 3vw, 40px);
  --header-h: 96px;
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

figure { margin: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 15.7px;
  line-height: 1.2;
  text-decoration: none;
  padding: 22px 37px;
  border: 0;
  cursor: pointer;
  transition: opacity .25s ease;
}
.btn:hover { opacity: .8; }
.btn-sm { font-size: 13px; padding: 14px 24px; }
.btn-accent { background: var(--accent); color: var(--black); }
.btn-dark   { background: var(--black);  color: var(--white); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  color: var(--black);
  background: var(--white);
  transition: background-color .3s ease, color .3s ease;
}
/* トップページ：映像の上は透明、スクロールで黒 */
.page-home .site-header { color: var(--white); background: transparent; }
.page-home .site-header.is-scrolled { background: var(--black); }

.page-inner main { padding-top: var(--header-h); }

.logo {
  font-family: var(--font-sans);
  font-size: 28px;
  text-decoration: none;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a:not(.btn) {
  font-size: 17px;
  text-decoration: none;
  padding: 4px 6px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 6px 100%;
  transition: background-size .25s ease;
}
.nav a:not(.btn):hover,
.nav a.is-active { background-size: calc(100% - 12px) 1px; }
.nav-cta { margin-left: 16px; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s ease, top .3s ease;
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #222;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-fade {
  position: absolute;
  inset: 0;
  background: var(--white);
  opacity: 0;
  pointer-events: none;
}
.hero-title {
  position: relative;
  margin: 0;
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(44px, 7.4vw, 110px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-align: center;
  padding: 0 var(--gutter);
}

/* ===== Common ===== */
.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0 var(--gutter);
}
.heading {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.2;
  text-align: center;
  margin: 0;
}
.heading-sm { font-size: clamp(26px, 3.2vw, 40px); }

.section { padding: 0 0 100px; }
.section-narrow { max-width: 960px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section-heading { margin: 80px 0 48px; }
.sub-heading {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 22px;
  text-align: center;
  margin: 64px 0 28px;
}
.text-left { text-align: left; }

.page-head { padding: 88px var(--gutter) 64px; text-align: center; }
.page-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.2;
  margin: 0;
}
.page-sub {
  font-family: var(--font-sans);
  letter-spacing: .08em;
  margin: 12px 0 0;
  color: var(--muted);
}
.page-head .page-sub:first-child { margin: 0 0 8px; }
.page-top { padding-top: 64px; }

/* 画像＋テキストの2カラム */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: var(--gutter);
  padding: 72px var(--gutter) 0;
  max-width: var(--max);
  margin: 0 auto;
}
.section > .split:first-child { padding-top: 0; }
.split-photo {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  max-width: 400px;
}
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
.is-mono img { filter: grayscale(1); }
.split-text { text-align: center; }
.split-text .heading { margin-bottom: 8px; }
.split-text .lead { font-size: 22px; margin: 20px 0 16px; }
.split-text p { margin: 0 0 1.4em; line-height: 2.4; }
.split-text .btn { margin-top: 12px; }

/* 左右交互の行 */
.zigzag {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.zigzag-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding: 72px 0 0;
}
.zigzag-row:nth-child(even) .zigzag-photo { order: 2; }
.zigzag-photo { aspect-ratio: 3 / 2; overflow: hidden; }
.zigzag-photo.is-portrait { aspect-ratio: 4 / 5; max-width: 440px; justify-self: center; }
.zigzag-photo img { width: 100%; height: 100%; object-fit: cover; }
.zigzag-text .heading { text-align: left; margin-bottom: 20px; }
.zigzag-text p { margin: 0 0 1em; }

/* ===== Home ===== */
.news { padding: calc(var(--header-h) + 8px) 0 120px; }
.news .heading { margin: 96px 0 56px; }
.news-list {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.news-list li + li { margin-top: 28px; }
.news-list a {
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.news-list a:hover { opacity: .6; }
.concept { padding: 0 0 100px; }

/* ===== Services ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  padding: 0 var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.service-card { text-align: center; }
.service-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.service-photo:hover img { transform: scale(1.04); }
.service-title { font-family: var(--font-serif); font-weight: 400; font-size: 18px; margin: 20px 0 16px; }

/* ===== Wedding plans ===== */
.wide-photo {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wide-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 0 var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.plan {
  border: 1px solid var(--line);
  padding: 36px 28px;
  text-align: center;
}
.plan-name { font-family: var(--font-sans); font-weight: 500; font-size: 17px; letter-spacing: .04em; margin: 0; }
.plan-price { font-family: var(--font-sans); font-size: 34px; margin: 10px 0 14px; }
.plan-desc { margin: 0; font-size: 15px; }
.plan-notes { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.plan-footnote { text-align: center; font-size: 14px; color: var(--muted); margin: 20px 0 0; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px clamp(24px, 5vw, 72px);
  padding: 0 var(--gutter);
  max-width: 1080px;
  margin: 0 auto;
  font-size: 15px;
}
.info-title { font-family: var(--font-serif); font-weight: 400; font-size: 18px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.info-item p { margin: 0 0 .8em; }
.info-item ul { margin: 0; padding-left: 1.2em; }

/* ===== Movie cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px var(--gutter);
  padding: 0 var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1000px; }
.movie-card { text-decoration: none; display: block; }
.movie-card figure { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.movie-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, opacity .3s; }
.movie-card:hover img { transform: scale(1.04); opacity: .85; }
.play {
  position: absolute;
  left: 50%; top: 50%;
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .8);
}
.play::after {
  content: "";
  position: absolute;
  left: 22px; top: 18px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}
.movie-caption { margin: 14px 0 2px; }
.movie-link { font-family: var(--font-sans); font-size: 14px; color: var(--muted); }

/* ===== Gallery ===== */
.gallery {
  columns: 3;
  column-gap: 12px;
  padding: 0 var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.gallery-item { display: block; margin: 0 0 12px; break-inside: avoid; overflow: hidden; cursor: zoom-in; }
.gallery-item img { width: 100%; height: auto; transition: transform .8s ease; }
.gallery-item:hover img { transform: scale(1.03); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, .94);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font-size: 32px;
  font-family: var(--font-sans);
  cursor: pointer;
  padding: 16px;
  line-height: 1;
}
.lightbox .lb-close { top: 8px; right: 12px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ===== Portfolio ===== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px var(--gutter);
  padding: 0 var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.work-card { display: block; text-decoration: none; }
.work-card figure { aspect-ratio: 1; overflow: hidden; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.work-card:hover img { transform: scale(1.04); }
.work-title { font-family: var(--font-sans); font-weight: 400; font-size: 22px; line-height: 1.35; margin: 16px 0 0; }

.work-text { max-width: 760px; margin: -24px auto 64px; padding: 0 var(--gutter); text-align: center; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--gutter) 96px;
  border-top: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 15px;
}
.pager a { text-decoration: none; }
.pager a:hover { opacity: .6; }
.pager-prev, .pager-next { flex: 1; }
.pager-next { text-align: right; }
.post .pager { justify-content: center; border: 0; }

/* ===== Blog ===== */
.post-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  text-decoration: none;
  padding: 0 0 48px;
}
.post-card figure { aspect-ratio: 4 / 3; overflow: hidden; }
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.post-card:hover img { transform: scale(1.04); }
.post-card time, .post-head time { font-family: var(--font-sans); font-size: 14px; color: var(--muted); }
.post-card-title { font-weight: 400; font-size: 26px; line-height: 1.4; margin: 6px 0 8px; }
.post-card p { margin: 0 0 12px; }

.post { max-width: 760px; margin: 0 auto; padding: 72px var(--gutter) 0; }
.post-head { text-align: center; margin-bottom: 40px; }
.post-title { font-weight: 400; font-size: clamp(28px, 4vw, 40px); line-height: 1.4; margin: 8px 0; }
.post-meta { color: var(--muted); font-size: 15px; margin: 0; }
.post-cover { margin: 0 0 48px; }
.post-cover img { width: 100%; }
.prose { line-height: 2.1; }
.prose p { margin: 0 0 1.4em; }
.prose figure { margin: 40px 0; }
.prose img { width: 100%; height: auto; }
.prose h2 { font-weight: 400; font-size: 24px; margin: 56px 0 20px; }
.prose a { text-underline-offset: 4px; }

/* ===== CTA ===== */
.cta {
  text-align: center;
  padding: 80px var(--gutter) 120px;
  border-top: 1px solid var(--line);
  max-width: var(--max);
  margin: 0 auto;
}
.cta-text { margin: 24px 0 32px; line-height: 2.2; }
.cta-text p { margin: 0; }

/* ===== Contact ===== */
.contact { display: grid; gap: 64px; max-width: 720px; }
.contact-intro { text-align: center; }
.contact-intro p { margin: 0 0 28px; line-height: 2.2; }
.contact-mail { margin-top: 32px !important; font-family: var(--font-sans); }
.contact-mail a { font-size: 20px; }

.form { display: grid; gap: 24px; }
.form label { display: grid; gap: 8px; font-size: 15px; }
.form .req { color: #b4532a; }
.form input, .form textarea {
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid #ccc;
  border-radius: 0;
  background: #fff;
  color: var(--black);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--black); outline-offset: -1px; border-color: var(--black); }
.form button { justify-self: start; min-width: 180px; }
.form-status { margin: 0; min-height: 1.8em; font-size: 15px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--accent);
  padding: 72px calc(var(--gutter) + 4vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(34px, 4.5vw, 54px);
  text-decoration: none;
}
.social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}
.social a {
  display: block;
  width: 24px;
  height: 24px;
  background: var(--black);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  transition: opacity .25s ease;
}
.social a:hover { opacity: .6; }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Tablet / Mobile ===== */
@media (max-width: 1000px) {
  :root { --header-h: 72px; }
  .logo { font-size: 24px; position: relative; z-index: 2; }
  .menu-toggle { display: block; z-index: 2; }
  .menu-open .site-header { color: var(--white); }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    background: var(--black);
    color: var(--white);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
  }
  .nav a:not(.btn) { font-size: 24px; }
  .nav-cta { margin: 16px 0 0; }
  .page-inner .nav-cta { background: var(--accent); color: var(--black); }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }

  .plan-grid, .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .news .heading { margin: 64px 0 40px; }
  .page-head { padding: 56px var(--gutter) 40px; }
  .section { padding-bottom: 72px; }
  .section-heading { margin: 56px 0 32px; }

  .split, .zigzag-row { grid-template-columns: 1fr; }
  .split { padding-top: 48px; }
  .split-photo { max-width: 320px; margin: 0 auto; }
  .split-text p { line-height: 2.2; }
  .zigzag-row { padding-top: 48px; gap: 20px; }
  .zigzag-row:nth-child(even) .zigzag-photo { order: 0; }
  .zigzag-text .heading { text-align: center; }
  .zigzag-text { text-align: center; }

  .service-grid, .plan-grid, .card-grid, .info-grid { grid-template-columns: 1fr; }
  .service-grid { gap: 48px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .work-title { font-size: 16px; margin-top: 10px; }
  .gallery { columns: 2; column-gap: 8px; }
  .gallery-item { margin-bottom: 8px; }

  .post-card { grid-template-columns: 1fr; }
  .pager { font-size: 13px; }

  .site-footer { flex-direction: column; align-items: flex-start; }
}
