/* ============ 色・文字の基本設定 ============ */
:root {
  --bg: #F3F1EC;
  --paper: #FFFFFF;
  --ink: #22211F;
  --ink-2: #3D3A35;
  --muted: #5E5A52;
  --line: #DDD8CE;
  --accent: #55613F;   /* ボタンなどのアクセント色 */
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--muted); }
button { font: inherit; color: inherit; }
body.is-locked { overflow: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 140px; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
.section-head--split { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-head--center { align-items: center; text-align: center; }
.eyebrow { font-size: 12px; letter-spacing: .3em; color: var(--muted); }
.section-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 34px; letter-spacing: .08em; line-height: 1.4; }
.muted { margin: 0; font-size: 14px; color: var(--muted); }
.text-link { background: none; border: 0; padding: 8px 0; cursor: pointer; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--muted); }

/* ============ ボタン ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 12px 26px; border-radius: 999px;
  font-size: 15px; text-decoration: none; letter-spacing: .04em;
  transition: opacity .2s ease, background .2s ease;
  border: 1px solid transparent; cursor: pointer;
}
.btn:hover { opacity: .88; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { color: #fff; }
.btn--light { background: #F3F1EC; color: var(--ink); }
.btn--light:hover { color: var(--ink); }
.btn--outline-light { border-color: #F3F1EC; color: #F3F1EC; }
.btn--outline-light:hover { color: #F3F1EC; background: rgba(255,255,255,.08); }
.btn--block { width: 100%; margin-top: 6px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

/* ============ ヘッダー ============ */
.header { position: sticky; top: 0; z-index: 50; background: rgba(243,241,236,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1.3; }
.logo__name { font-family: var(--serif); font-size: 22px; letter-spacing: .08em; }
.logo__sub { font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; letter-spacing: .06em; }
.nav a:not(.btn) { text-decoration: none; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .25s ease, top .25s ease; }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 26px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ============ ヒーロー ============ */
.hero-wrap { padding-top: 40px; }
.hero { position: relative; height: 620px; border-radius: 4px; overflow: hidden; background: #B9AE9C; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero__body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 48px;
  background: linear-gradient(to top, rgba(20,18,15,.62), rgba(20,18,15,0));
  color: #fff; display: flex; flex-direction: column; gap: 18px;
}
.hero__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 52px; letter-spacing: .12em; line-height: 1.3; }
.hero__lead { margin: 0; font-size: 16px; line-height: 1.9; letter-spacing: .05em; max-width: 560px; }

/* ============ 作品タイル ============ */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.tile { display: block; text-decoration: none; color: var(--ink); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; width: 100%; }
.tile__frame { display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; background: #D2C8B8; }
.tile__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover .tile__frame img, .tile:focus-visible .tile__frame img { transform: scale(1.04); }
.tile__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-top: 14px; }
.tile__name { font-family: var(--serif); font-size: 20px; letter-spacing: .06em; }
.tile__more { font-size: 13px; color: var(--muted); opacity: 0; transform: translateY(6px); transition: all .3s ease; white-space: nowrap; }
.tile:hover .tile__more, .tile:focus-visible .tile__more { opacity: 1; transform: none; }
.tile__caption { display: block; margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.8; }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 4px; }

/* ============ モザイク（高さが揃わない並び） ============ */
.mosaic { columns: 3 280px; column-gap: 16px; }
.mosaic__item { display: block; width: 100%; break-inside: avoid; margin: 0 0 16px; padding: 0; border: 0; overflow: hidden; border-radius: 4px; background: #D2C8B8; cursor: zoom-in; }
.mosaic__item img { width: 100%; height: auto; transition: transform .6s ease, filter .6s ease; }
.mosaic__item:hover img, .mosaic__item:focus-visible img { transform: scale(1.04); filter: brightness(1.05); }
.mosaic__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ============ About ============ */
.about { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.about__img { flex: 1 1 380px; max-width: 460px; min-width: 0; aspect-ratio: 3 / 4; object-fit: cover; object-position: 52% center; border-radius: 4px; }
.about__body { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.about__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 38px; letter-spacing: .1em; line-height: 1.5; }
.about__text { margin: 0; font-size: 16px; line-height: 2.1; letter-spacing: .04em; }
.about__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 28px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.about__meta dt { font-size: 12px; color: var(--muted); }
.about__meta dd { margin: 0; }

/* ============ 料金 ============ */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: center; }
.plan { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.plan__name { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 20px; }
.plan__price { margin: 0; font-size: 32px; font-weight: 500; letter-spacing: .02em; line-height: 1.3; }
.plan__list { margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.plan__note { margin: 0; font-size: 13px; color: var(--muted); }
.plan--featured { background: var(--ink); color: #F3F1EC; border-color: var(--ink); padding: 52px 36px 44px; gap: 16px; box-shadow: 0 18px 40px rgba(34,33,31,.18); }
.plan--featured .plan__name { font-size: 22px; }
.plan--featured .plan__price { font-size: 40px; }
.plan--featured .plan__list { border-top-color: #4A4843; color: #E4DFD4; }
.plan--featured .plan__note { color: #C9C3B7; }
.plan__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 12px; padding: 5px 16px; border-radius: 999px; letter-spacing: .1em; white-space: nowrap; }
.plans__extra { margin: 24px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.plans__terms { margin: 20px auto 0; padding: 0; list-style: none; max-width: 760px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; font-size: 13px; color: var(--muted); }

/* ============ 撮影の流れ ============ */
.flow { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.flow li { border-top: 1px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.flow__num { font-family: var(--serif); font-size: 28px; color: var(--accent); line-height: 1.2; }
.flow__title { font-size: 17px; font-weight: 500; }
.flow__text { font-size: 14px; color: var(--muted); }

/* ============ お客様の声 ============ */
.voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.voice { margin: 0; background: #EAE6DE; border-radius: 6px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.voice blockquote { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 2; }
.voice figcaption { font-size: 13px; color: var(--muted); }

/* ============ お問い合わせ ============ */
.cta { position: relative; overflow: hidden; border-radius: 6px; background: var(--ink); color: #F3F1EC; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; background: rgba(18,22,22,.58); }
.cta__body { position: relative; z-index: 1; padding: 88px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.cta__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 32px; letter-spacing: .1em; line-height: 1.6; }
.cta__text { margin: 0; font-size: 15px; line-height: 1.9; color: #D6D1C6; max-width: 520px; }

/* ============ フッター ============ */
.footer { padding-top: 64px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }
.footer__name { font-family: var(--serif); letter-spacing: .08em; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: var(--muted); }

/* ============ ギャラリー画面 ============ */
.gallery { position: fixed; inset: 0; z-index: 80; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
.gallery__bar { position: sticky; top: 0; z-index: 2; background: rgba(243,241,236,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.gallery__bar-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 6px; }
.gallery__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: .08em; }
.gallery__tabs { display: flex; gap: 8px; overflow-x: auto; padding-top: 6px; padding-bottom: 12px; scrollbar-width: none; }
.gallery__tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 38px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; cursor: pointer; white-space: nowrap; }
.tab[aria-selected="true"] { background: var(--ink); color: #F3F1EC; border-color: var(--ink); }
.gallery__body { padding-top: 28px; padding-bottom: 64px; }
.gallery__cta { margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.gallery__cta p { margin: 0; font-family: var(--serif); font-size: 18px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; border-radius: 999px; cursor: pointer; }
.icon-btn:hover { background: rgba(0,0,0,.06); }

/* ============ 拡大表示 ============ */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(16,15,14,.94); display: flex; align-items: center; justify-content: center; color: #F3F1EC; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: calc(100vw - 160px); max-height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 0 24px; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; border-radius: 2px; }
.lightbox__figure figcaption { font-size: 13px; color: #BDB7AB; text-align: center; }
.lightbox .icon-btn:hover { background: rgba(255,255,255,.1); }
.lightbox__close { position: absolute; top: 12px; right: 12px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

/* ============ スマホ ============ */
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav .btn { margin-top: 16px; }
  .header__inner { position: relative; }
}
@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 96px; }
  .hero-wrap { padding-top: 16px; }
  .hero { height: 78vh; min-height: 480px; }
  .hero__body { padding: 40px 24px; }
  .hero__title { font-size: 38px; }
  .hero__lead { font-size: 14px; }
  .section-title { font-size: 28px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .tile__name { font-size: 14px; letter-spacing: .02em; }
  .tile__more { display: none; }
  .tile__caption { display: none; }
  .mosaic { columns: 2; column-gap: 10px; }
  .mosaic__item { margin-bottom: 10px; }
  .about { gap: 32px; }
  .about__img { max-width: none; flex-basis: 100%; aspect-ratio: 4 / 3; object-position: 52% 40%; }
  .about__title { font-size: 30px; }
  .about__text { font-size: 15px; }
  .plans { gap: 32px; }
  .cta__body { padding: 64px 24px; }
  .cta__title { font-size: 24px; }
  .lightbox__figure { max-width: 100vw; padding: 56px 0 72px; }
  .lightbox__figure img { max-height: calc(100vh - 170px); }
  .lightbox__nav { top: auto; bottom: 12px; transform: none; }
  .lightbox__prev { left: calc(50% - 72px); }
  .lightbox__next { right: calc(50% - 72px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
