/* Shigeru Photography — shared styles (JA / EN)
   色や余白は :root の変数を変えるだけで全ページに反映されます。 */

:root {
  --paper: #fafbfa;
  --mist: #eef1f1;
  --ink: #1e2b33;
  --slate: #56666e;
  --sea: #6e9ba1;
  --sea-deep: #3f6870;
  --blush: #c79a97;
  --line: #d3dbdc;

  --serif-ja: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --serif-en: "Cormorant Garamond", "Shippori Mincho", Georgia, serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  --display: var(--serif-ja);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1180px;
}
html[lang="en"] { --display: var(--serif-en); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
}
html[lang="en"] body { line-height: 1.7; letter-spacing: 0.005em; font-size: 1.0625rem; }

img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { color: var(--sea-deep); }
:focus-visible { outline: 2px solid var(--sea-deep); outline-offset: 3px; }
p { margin: 0 0 1.2em; max-width: 48em; text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; line-height: 1.5; }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); margin-bottom: 1.4rem; }
html[lang="en"] h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.2; }
h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
html[lang="en"] h3 { font-size: 1.6rem; line-height: 1.2; }

/* 下書き中の仮置き箇所 — 本番前に文言を直したら、このルールを削除すれば黄色の印が消えます */
.todo { background: #fff1b8; color: var(--ink); padding: 0 0.25em; border-radius: 2px; }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.25rem var(--gutter);
  position: relative; z-index: 5;
}
.brand {
  font-family: var(--serif-en); font-style: italic; font-size: 1.6rem; letter-spacing: 0.02em;
  text-decoration: none; line-height: 1;
}
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav a { text-decoration: none; font-size: 0.875rem; letter-spacing: 0.08em; padding: 0.3rem 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--sea); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.lang { display: inline-flex; gap: 0.5rem; font-size: 0.8125rem; letter-spacing: 0.1em; padding-left: 1.2rem; border-left: 1px solid var(--line); }
.lang a { border: 0; opacity: 0.55; }
.lang a[aria-current="true"] { opacity: 1; border-bottom: 1px solid var(--ink); }
.menu-btn { white-space: nowrap; display: none; background: none; border: 1px solid var(--line); padding: 0.5rem 0.9rem; font: inherit; font-size: 0.8125rem; letter-spacing: 0.1em; color: inherit; cursor: pointer; }

@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .nav a.ig-link { display: none; }
  .site-header { gap: 0.9rem; }
  .brand { font-size: 1.3rem; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0.4rem; background: var(--paper); padding: 1rem var(--gutter) 1.5rem; border-bottom: 1px solid var(--line); }
  .site-header.open .nav { display: flex; }
  .nav a { font-size: 1rem; padding: 0.5rem 0; }
  .lang { padding-left: 0; border-left: 0; margin-top: 0.6rem; }
}

/* ---------- Instagram links ---------- */
.nav a.ig-link { border: 1px solid var(--ink); padding: 0.3rem 0.85rem; }
.nav a.ig-link:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ig-top { display: none; margin-left: auto; font-size: 0.8125rem; letter-spacing: 0.06em; }
@media (max-width: 860px) { .ig-top { display: inline-block; } }
.hero-links { margin: 1.6rem 0 0; }
.hero-links a { font-size: 0.9375rem; }

/* ---------- Placeholder photo (画像が無い/読み込めない時に表示) ---------- */
.ph {
  position: relative; width: 100%; height: 100%; min-height: 8rem; overflow: hidden;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    var(--tone, linear-gradient(160deg, #cfdcdd, #9fbcc0));
}
.ph::after { content: attr(data-label); position: absolute; left: 1rem; bottom: 0.8rem; font-size: 0.75rem; letter-spacing: 0.1em; color: rgba(30, 43, 51, 0.5); }
.tone-1 { --tone: linear-gradient(160deg, #d8e3e4 0%, #9cbabf 100%); }
.tone-2 { --tone: linear-gradient(200deg, #efdcda 0%, #c79a97 100%); }
.tone-3 { --tone: linear-gradient(150deg, #e4e9e4 0%, #a9b9a8 100%); }
.tone-4 { --tone: linear-gradient(190deg, #dde3ea 0%, #8d9fb2 100%); }

/* ---------- Layout ---------- */
.section { padding: clamp(4rem, 9vw, 8rem) var(--gutter); }
.section.tint { background: var(--mist); }
.wrap { max-width: var(--max); margin: 0 auto; }
.btn {
  display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none;
  padding: 0.95rem 2rem; font-size: 0.9375rem; letter-spacing: 0.1em; border: 1px solid var(--ink);
}
.btn:hover { background: var(--sea-deep); border-color: var(--sea-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }
.text-link { display: inline-block; margin-top: 1rem; }

/* ---------- Home hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: stretch;
  padding: 0 var(--gutter) clamp(3rem, 6vw, 5rem);
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto;
}
.hero-photo { min-height: min(78vh, 46rem); }
.hero-photo { position: relative; overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 18% 50%; display: block; }
.hero-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; padding: 1rem 0; }
.hero-lead {
  font-family: var(--serif-ja); font-weight: 500; font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  line-height: 1.75; letter-spacing: 0.06em; margin: 0 0 1.6rem;
  animation: lead-in 1.4s ease-out both;
}
html[lang="en"] .hero-lead {
  font-family: var(--serif-en); font-style: italic; font-weight: 400;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1.12; letter-spacing: -0.005em;
}
@keyframes lead-in { from { opacity: 0; } to { opacity: 1; } }
.hero-body { font-size: 0.9375rem; color: var(--slate); max-width: 27em; margin: 0; }
html[lang="en"] .hero-body { font-size: 1rem; }
.hero-body + .hero-body { margin-top: 1.3em; }
.hero-tags {
  display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 1.4rem;
  margin: 0; max-width: none; border-top: 1px solid var(--line); padding-top: 1.4rem;
  font-family: var(--serif-ja); font-size: 1.15rem; letter-spacing: 0.2em; line-height: 1.9;
}
.hero-tags span { writing-mode: vertical-rl; white-space: nowrap; }
html[lang="en"] .hero-tags {
  flex-direction: column; justify-content: flex-start; gap: 0.2rem;
  font-family: var(--serif-en); font-style: italic; font-size: 1.4rem; letter-spacing: 0; line-height: 1.3;
}
html[lang="en"] .hero-tags span { writing-mode: horizontal-tb; white-space: normal; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { min-height: 56vh; }
  .hero-photo img { object-position: 20% 50%; }
}

/* ---------- Intro / service panels ---------- */
.intro p { font-size: 1.0625rem; }
.intro .note { color: var(--slate); font-size: 0.9375rem; }
.notice { margin: 2rem 0 0; padding: 1.4rem 1.6rem; border: 1px solid var(--line); border-left: 3px solid var(--sea); background: var(--mist); max-width: 46rem; }
.notice h2 { font-size: 1.05rem; margin: 0 0 0.6rem; letter-spacing: 0.06em; }
html[lang="en"] .notice h2 { font-size: 1.35rem; letter-spacing: 0; }
.notice p { margin: 0 0 0.8rem; font-size: 0.9375rem; color: var(--slate); }
.notice p:last-child { margin-bottom: 0; }
.notice .text-link { font-size: 0.9375rem; }
.feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.feature article { display: flex; flex-direction: column; }
.feature .ph, .feature img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.feature h3 { margin-top: 1.2rem; }
.feature figure.photo { position: relative; margin: 0; overflow: hidden; }
.feature figure.photo img { display: block; width: 100%; }
.photo-tag { position: absolute; left: 0.8rem; bottom: 0.7rem; font-family: var(--serif-en); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.06em; line-height: 1.2; color: #fff; text-shadow: 0 1px 5px rgba(0,0,0,0.7); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

.others { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; border-top: 1px solid var(--line); }
.others li { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: 1rem 2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.others strong { font-family: var(--display); font-weight: 500; font-size: 1.15rem; }
html[lang="en"] .others strong { font-size: 1.4rem; }
.others span { color: var(--slate); }
@media (max-width: 640px) { .others li { grid-template-columns: 1fr; gap: 0.2rem; } }

/* ---------- Works ---------- */
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.75rem); align-items: start; }
.work { display: block; text-decoration: none; }
.work .thumb { aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist); }
.work:nth-child(3n + 2) .thumb { aspect-ratio: 1 / 1; }
.work .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.work:hover .thumb img { transform: scale(1.03); }
.work .cap { padding-top: 0.9rem; }
.work .cat { font-size: 0.8125rem; color: var(--sea-deep); letter-spacing: 0.08em; }
.work h3 { font-size: 1.15rem; margin: 0.15rem 0 0; }
html[lang="en"] .work h3 { font-size: 1.45rem; }
.work .date { font-size: 0.8125rem; color: var(--slate); }
@media (max-width: 860px) { .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .work:nth-child(3n + 2) .thumb { aspect-ratio: 4 / 5; } }
@media (max-width: 520px) { .works-grid { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.filters button { background: none; border: 0; border-bottom: 1px solid transparent; padding: 0.25rem 0; font: inherit; font-size: 0.9375rem; color: var(--slate); cursor: pointer; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.empty { color: var(--slate); }

/* ---------- Report (detail) ---------- */
.report-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.report-head .meta { font-size: 0.875rem; color: var(--sea-deep); letter-spacing: 0.08em; margin-bottom: 0.6rem; }
.report-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
html[lang="en"] .report-head h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1.1; }
.report-body { max-width: 60em; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 1.5rem); }
.gallery figure { margin: 0; }
.gallery figure:first-child:has(.ph) { grid-column: 1 / -1; }
.gallery { align-items: start; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery figure.solo { grid-column: 1 / -1; width: calc(50% - clamp(0.375rem, 1vw, 0.75rem)); justify-self: center; }
.gallery img { display: block; width: 100%; height: auto; }
.gallery .ph { width: 100%; aspect-ratio: 4 / 5; }
.gallery figure:first-child .ph { aspect-ratio: 3 / 2; }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } .gallery figure.solo { width: 100%; } }
.back { margin-top: 3rem; }

/* ---------- Services page ---------- */
.menu-list { border-top: 1px solid var(--line); }
.menu-item { display: grid; grid-template-columns: clamp(7rem, 14vw, 10rem) minmax(10rem, 16rem) 1fr; gap: 1rem clamp(1.5rem, 3vw, 3rem); padding: 2rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.menu-item h3 { margin: 0; word-break: keep-all; }
.menu-item p { margin: 0; }
.menu-item.main h3 { font-size: 1.6rem; }
html[lang="en"] .menu-item.main h3 { font-size: 2rem; }
.menu-photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; position: relative; }
.menu-tag { position: absolute; right: 0.6rem; bottom: 0.5rem; text-align: right; font-family: var(--serif-en); font-weight: 500; font-size: 0.9rem; letter-spacing: 0.06em; line-height: 1.2; color: #fff; text-shadow: 0 1px 5px rgba(0,0,0,0.7); }
.menu-photo img, .menu-photo .ph { display: block; width: 100%; height: 100%; object-fit: cover; min-height: 0; }
@media (max-width: 760px) { .menu-item { grid-template-columns: 1fr; } .menu-photo { width: min(60%, 14rem); } }

.flow { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.flow li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 1rem; }
.flow li::before { content: counter(step); font-family: var(--serif-en); font-size: 1.6rem; display: block; line-height: 1; margin-bottom: 0.6rem; color: var(--sea-deep); }
.flow strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.1rem; margin-bottom: 0.3rem; }
html[lang="en"] .flow strong { font-size: 1.35rem; }
.flow span { font-size: 0.9375rem; color: var(--slate); }
@media (max-width: 860px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .flow { grid-template-columns: 1fr; } }

.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; max-width: 46rem; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--display); font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
html[lang="en"] .faq summary { font-size: 1.35rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif-en); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0.9rem 0 0; color: var(--slate); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about .portrait { aspect-ratio: 4 / 5; max-width: 26rem; width: 100%; }
.about .portrait img { width: 100%; height: 100%; object-fit: cover; }
.facts { margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--slate); font-size: 0.9375rem; }
.facts dd { margin: 0; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about .portrait { max-width: 22rem; } }

/* 名前の読み */
.reading { margin: -0.8rem 0 1.4rem; color: var(--slate); font-size: 0.9375rem; letter-spacing: 0.14em; }
html[lang="en"] .reading { font-family: var(--serif-ja); letter-spacing: 0.2em; }

/* ---------- Contact ---------- */
.contact-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); margin-top: 2.5rem; }
.contact-methods section { border-top: 1px solid var(--ink); padding-top: 1.2rem; }
.contact-methods p { font-size: 0.9375rem; color: var(--slate); overflow-wrap: anywhere; }
@media (max-width: 640px) { .contact-methods { grid-template-columns: 1fr; row-gap: 2rem; } }

.cta { background: var(--ink); color: var(--paper); text-align: left; }
.cta h2 { max-width: 20em; }
.cta p { color: #c7d2d6; }
.cta .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta .btn:hover { background: var(--sea); border-color: var(--sea); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--mist); padding: 2.5rem var(--gutter); font-size: 0.875rem; color: var(--slate); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.site-footer a { text-decoration: none; }

.page-title { padding: clamp(2rem, 5vw, 4rem) var(--gutter) 0; }
.page-title h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 18em; }
html[lang="en"] .page-title h1 { font-size: clamp(3rem, 6.5vw, 5.4rem); line-height: 1; font-style: italic; font-weight: 400; }

@media (prefers-reduced-motion: reduce) {
  .hero-lead { animation: none; }
  .work .thumb img { transition: none; }
}

/* 文ごとの改行（JSで入れた改行を表示する） */
.report-body p { white-space: pre-line; max-width: 60em; }

.hero-story { margin: 1.6rem 0 0.4rem; width: min(100%, 17rem); aspect-ratio: 4/5; overflow: hidden; }
.hero-story img { display:block; width:100%; height:100%; object-fit:cover; object-position:50% 100%; }
.hero-story + .hero-body { margin-top: 1.6em; }
.hero-copy > * { flex-shrink: 0; }
.hero-tags span { flex-shrink: 0; }

/* ---------- Home story (staggered text + photos) ---------- */
.story { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--gutter) clamp(3rem, 7vw, 6rem); display: grid; gap: clamp(4rem, 9vw, 8rem); }
.story-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(0.75rem, 1.6vw, 1.5rem); align-items: center; }
.story figure { margin: 0; overflow: hidden; }
.story img { display: block; width: 100%; height: auto; }
.s-text p { max-width: none; margin: 0 0 1.9em; font-family: var(--serif-ja); font-size: 1rem; line-height: 2.15; letter-spacing: 0.08em; color: var(--ink); }
.s-text p:last-child { margin-bottom: 0; }
html[lang="en"] .s-text p { font-family: var(--serif-en); font-size: 1.2rem; line-height: 1.75; letter-spacing: 0.01em; }
.r1 .s-photo { grid-column: 1 / 7; }
.r1 .s-text { grid-column: 8 / 13; }
.r2 .s-text { grid-column: 2 / 7; }
.r2 .s-photos { grid-column: 8 / 13; display: grid; }
.r2 .a { width: 80%; }
.r2 .b { width: 62%; margin: -14% 0 0 auto; box-shadow: 0 0 0 0.45rem var(--paper); }
.r3 .s-photo { grid-column: 2 / 7; }
.r3 .s-text { grid-column: 8 / 13; }
@media (max-width: 860px) {
  .story-row { display: block; }
  .story-row > * + * { margin-top: 2rem; }
  .r1 .s-photo, .r3 .s-photo { width: 92%; }
  .r3 .s-photo { margin-left: auto; }
  .r2 .s-photos { width: 100%; }
  .r2 .a { width: 78%; }
  .r2 .b { width: 58%; }
}
