/* =========================================================
   糸島写真館 — Itoshima Photo Studio
   Shared stylesheet. Simple & artistic.
   ========================================================= */

:root {
  --ink: #1c1c1e;          /* near-black text */
  --ink-soft: #595a5e;     /* muted body text */
  --sand: #fbfafa;         /* bright studio white background */
  --sand-deep: #f0efee;    /* soft grey section tint */
  --line: #e3e1df;         /* hairlines */
  --accent: #a78a6a;       /* warm bronze accent */
  --ocean: #8a8d90;        /* neutral grey */
  --white: #ffffff;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --serif: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.5; margin: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.muted { color: var(--ink-soft); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 239, 233, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { font-family: var(--serif); font-size: 1.18rem; letter-spacing: 0.18em; display: inline-flex; align-items: center; }
.brand small { display: block; font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.32em; color: var(--ink-soft); margin-top: 2px; }
.brand-mark { height: 36px; width: 36px; display: block; margin-right: 11px; }
.brand-logo { height: 26px; width: auto; display: block; }
@media (max-width: 760px){ .brand-mark { height: 30px; width: 30px; margin-right: 8px; } .brand-logo { height: 22px; } }
.nav-links { display: flex; gap: clamp(14px, 2.4vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 0.82rem; letter-spacing: 0.14em; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; }

/* Header reservation button — always visible for an easy path to booking */
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-cta {
  display: inline-block; padding: 10px 22px; font-size: 0.78rem; letter-spacing: 0.14em;
  color: var(--white); background: #06C755; border: 1px solid #06C755; border-radius: 2px;
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: #05a548; border-color: #05a548; color: var(--white); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--sand); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 16px var(--gutter); font-size: 0.95rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 86vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero .ph { position: absolute; inset: 0; }
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(48px, 9vw, 110px); color: var(--white); }
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.7rem); letter-spacing: 0.12em; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero .lead { max-width: 30em; margin-top: 22px; font-size: clamp(0.95rem, 1.6vw, 1.1rem); text-shadow: 0 1px 18px rgba(0,0,0,.4); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.22) 45%, rgba(0,0,0,.62) 100%); }

/* Hero crossfade slideshow — 写真全体を表示（顔が切れない）＋背景はぼかしで埋める */
.hero-slide { position: absolute; inset: 0; opacity: 0; animation: hero3 21s ease-in-out infinite; }
.hero-slide:nth-child(1){ animation-delay: 0s; }
.hero-slide:nth-child(2){ animation-delay: 7s; }
.hero-slide:nth-child(3){ animation-delay: 14s; }
.hero-blur { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(30px) brightness(0.72); transform: scale(1.15); }
.hero-photo { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@keyframes hero3 { 0%{opacity:0} 3%{opacity:1} 30%{opacity:1} 36%{opacity:0} 100%{opacity:0} }
@media (prefers-reduced-motion: reduce){ .hero-slide{ animation: none; } .hero-slide:first-child{ opacity: 1; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; margin-top: 30px; padding: 14px 34px;
  font-size: 0.8rem; letter-spacing: 0.22em; font-family: var(--sans);
  border: 1px solid currentColor; border-radius: 2px; transition: all .25s;
}
.btn:hover { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.btn-light { color: var(--white); }
.btn-dark { color: var(--ink); }

/* ---------- Section scaffolding ---------- */
section { padding: clamp(64px, 11vw, 132px) 0; }
.eyebrow { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.42em; color: var(--accent); text-transform: uppercase; margin: 0 0 18px; }
.section-title { font-size: clamp(1.5rem, 3.4vw, 2.3rem); letter-spacing: 0.1em; }
.section-head { max-width: 40em; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head p { margin-top: 20px; color: var(--ink-soft); }
.tint { background: var(--sand-deep); }

/* ---------- Placeholder image blocks (swap with real photos) ---------- */
.ph {
  background: linear-gradient(160deg, #ffffff 0%, #f1f0ef 60%, #e4e3e2 100%);
  position: relative; color: rgba(70,70,72,.6);
}
.ph::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.28em; text-align: center; padding: 12px;
}
/* white-horizon studio tones: bright whites with soft neutral shadows */
.ph-1 { background: linear-gradient(160deg,#ffffff,#f2f1f0 60%,#e2e1e0); }
.ph-2 { background: linear-gradient(160deg,#ffffff,#f4f1ed 60%,#e6e0d8); }
.ph-3 { background: linear-gradient(160deg,#ffffff,#eef0f1 60%,#dfe2e3); }
.ph-4 { background: linear-gradient(160deg,#fffdfb,#f3efe9 55%,#e7e0d6); }
.ph-5 { background: linear-gradient(160deg,#ffffff,#f0efee 60%,#dededd); }
.ph-6 { background: linear-gradient(160deg,#fffefc,#f2eee8 60%,#e4ddd2); }

/* ---------- Fit media (写真全体を表示・顔が切れない／背景はぼかしで補完) ---------- */
.fitmedia { position: relative; overflow: hidden; background: var(--sand-deep); }
.fitmedia-blur { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(22px) brightness(0.92); transform: scale(1.14); }
.fitmedia-img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* ---------- Intro split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split .media { aspect-ratio: 4/5; }
@media (max-width: 820px){ .split { grid-template-columns: 1fr; } .split .media { aspect-ratio: 3/2; } }

/* ---------- Menu grid ---------- */
.grid { display: grid; gap: clamp(18px, 2.6vw, 30px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px){ .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(60,45,30,.12); }
.card .media { aspect-ratio: 4/3; }
.card .body { padding: 24px 26px 30px; }
.card h3 { font-size: 1.2rem; letter-spacing: 0.08em; }
.card p { margin: 12px 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.card .price { margin-top: 16px; font-family: var(--serif); font-size: 1.05rem; color: var(--accent); letter-spacing: 0.06em; }

/* ---------- Gallery ---------- */
.masonry { columns: 3 260px; column-gap: clamp(12px, 1.6vw, 20px); }
.masonry .item { break-inside: avoid; margin-bottom: clamp(12px, 1.6vw, 20px); }
.masonry .ph { width: 100%; }
.masonry img { width: 100%; height: auto; display: block; border-radius: 2px; background: var(--sand-deep); }
@media (max-width: 560px){ .masonry { columns: 1; } }

/* Category filter tabs */
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: clamp(28px, 5vw, 44px); }
.filterbar button {
  font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--ink-soft);
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 20px; cursor: pointer;
  transition: all .2s;
}
.filterbar button:hover { border-color: var(--accent); color: var(--ink); }
.filterbar button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--sand); }
.masonry .item.hide { display: none; }

/* Simple, even photo grid — clean rows of photos.
   Desktop: 3 across. Tablet: 2. Mobile: 1 large, near full-width. */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(6px, 1.1vw, 16px); }
.photo-grid img, .photo-grid .ph { width: 100%; height: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 22%; display: block; }
.photo-grid .cell { overflow: hidden; background: var(--sand-deep); }
@media (max-width: 820px){ .photo-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){
  /* one big photo per row on phones */
  .photo-grid { grid-template-columns: 1fr; gap: 6px; }
  .photo-grid img, .photo-grid .ph { aspect-ratio: 3/4; }
}

/* Let a gallery section run edge-to-edge on phones so photos feel large */
@media (max-width: 560px){
  .bleed-mobile { padding-left: 0; padding-right: 0; }
}

/* ---------- Quote band ---------- */
.band { background: var(--ink); color: var(--sand); text-align: center; }
.band blockquote { font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 2rem); line-height: 1.8; margin: 0 auto; max-width: 22em; letter-spacing: 0.08em; }
.band cite { display: block; margin-top: 26px; font-family: var(--sans); font-style: normal; font-size: 0.72rem; letter-spacing: 0.3em; color: var(--accent); }

/* ---------- Definition rows (pricing / about) ---------- */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; padding: 26px 4px; border-bottom: 1px solid var(--line); align-items: baseline; }
.row h3 { font-size: 1.05rem; letter-spacing: 0.06em; }
.row p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.row .price { font-family: var(--serif); color: var(--accent); white-space: nowrap; }
@media (max-width: 680px){ .row { grid-template-columns: 1fr; gap: 8px; } .row .price { margin-top: 6px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 70px); }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.74rem; letter-spacing: 0.18em; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; font-family: var(--sans); font-size: 0.95rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 2px; color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.info-line { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-line span:first-child { width: 92px; flex: none; color: var(--accent); font-size: 0.78rem; letter-spacing: 0.16em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sand-deep); border-top: 1px solid var(--line); padding: 60px 0 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-top .brand { font-size: 1.3rem; }
.footer-links { display: flex; gap: 26px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.footer-links a { font-size: 0.82rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.copyright { margin-top: 40px; font-size: 0.72rem; letter-spacing: 0.16em; color: var(--ink-soft); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { padding: clamp(70px, 12vw, 150px) 0 clamp(40px, 7vw, 80px); text-align: center; }
.page-hero h1 { font-size: clamp(1.8rem, 4.6vw, 3rem); letter-spacing: 0.14em; }
.page-hero p { margin-top: 18px; color: var(--ink-soft); }

/* ---------- Accordion (details) ---------- */
.accordion { border-top: 1px solid var(--line); margin-top: 8px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 20px 4px;
  font-family: var(--serif); font-size: 1.02rem; letter-spacing: 0.04em;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "＋"; color: var(--accent); font-family: var(--sans); }
.accordion details[open] summary::after { content: "－"; }
.accordion .acc-body { padding: 2px 4px 24px; }
.opt-row { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-top: 1px dotted var(--line); }
.opt-row:first-child { border-top: 0; }
.opt-row span:last-child { color: var(--accent); font-family: var(--serif); white-space: nowrap; }
.acc-note { font-size: 0.8rem; color: var(--ink-soft); margin: 14px 0 0; }

/* ---------- Mobile sticky booking bar ---------- */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px rgba(40,30,20,.08);
  }
  .mobile-cta a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 11px 4px 13px; font-size: 0.62rem; letter-spacing: 0.08em; color: var(--ink-soft);
    border-left: 1px solid var(--line);
  }
  .mobile-cta a:first-child { border-left: 0; }
  .mobile-cta a .ic { font-size: 1.1rem; line-height: 1; }
  .mobile-cta .primary { background: #06C755; color: var(--white); font-weight: 500; letter-spacing: 0.12em; }
  .mobile-cta .primary .ic { font-size: 1rem; }
  /* keep page content clear of the fixed bar */
  body { padding-bottom: 64px; }
  .site-footer { margin-bottom: 64px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } html{ scroll-behavior: auto; } }
