/* SmilePhotoPlus 建築・不動産撮影 */
:root {
  --base: #F5F4F1;
  --surface: #FFFFFF;
  --sub: #E9E7E2;
  --line: #DEDBD5;
  --line-strong: #C9C5BD;
  --text: #1F2326;
  --text-sub: #4A5156;
  --text-mute: #5C6266;
  --dark: #1F2326;
  --accent: #2F4A3E;
  --serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', YuMincho, serif;
  --sans: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', YuGothic, Meiryo, 'Noto Sans JP', sans-serif;
  --container: 1240px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--base); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--text-sub); }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--dark); color: #fff; padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 880px; }
.section { padding: 112px 0; }
.bg-white { background: var(--surface); }
.bg-sub { background: var(--sub); }
.center { text-align: center; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-24 { margin-bottom: 24px !important; }

.label { font-size: 12px; letter-spacing: 0.24em; color: var(--accent); font-weight: 500; }
.label-light { color: #C9CDCF; }
.h2 { margin: 8px 0 48px; font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.5; letter-spacing: 0.04em; }
.h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; line-height: 1.6; }
.num { font-family: var(--serif); font-size: 36px; color: var(--accent); line-height: 1.4; margin-bottom: 8px; }
.grid p, .card p, .flow p { font-size: 15px; color: var(--text-sub); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px; text-decoration: none; font-size: 15px; font-weight: 500; border: 1px solid transparent; transition: background .2s, color .2s; }
.btn-white { background: #fff; color: var(--text); }
.btn-white:hover { background: var(--sub); color: var(--text); }
.btn-outline-white { border-color: #fff; color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { border-color: var(--text); color: var(--text); padding: 12px 32px; }
.btn-outline:hover { background: var(--text); color: #fff; }
.btn-block { display: flex; width: 100%; min-height: 56px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245,244,241,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 88px; height: auto; }
.brand-sub { display: flex; flex-direction: column; font-size: 13px; font-weight: 700; letter-spacing: .08em; line-height: 1.4; color: var(--text); border-left: 1px solid var(--line-strong); padding-left: 14px; }
.brand-sub span { font-size: 10px; font-weight: 400; letter-spacing: .2em; color: var(--text-mute); }
.global-nav { display: flex; align-items: center; gap: 4px 28px; font-size: 14px; }
.global-nav a { text-decoration: none; padding: 10px 0; }
.global-nav a:hover { text-decoration: underline; }
.global-nav .nav-cta { background: var(--accent); color: #fff; padding: 10px 20px; min-height: 44px; display: inline-flex; align-items: center; }
.global-nav .nav-cta:hover { color: #fff; opacity: .9; text-decoration: none; }
.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 8px 4px; background: none; border: 0; font: inherit; font-size: 12px; color: var(--text); cursor: pointer; }
.menu-icon { display: inline-flex; flex-direction: column; gap: 5px; width: 22px; }
.menu-icon span { display: block; height: 1.5px; background: currentColor; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .global-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--base); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; font-size: 16px; }
  .global-nav.is-open { display: flex; }
  .global-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .global-nav .nav-cta { margin-top: 16px; justify-content: center; border-bottom: 0; }
}

/* hero */
.hero { position: relative; background: #2B2F31; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,22,24,.62), rgba(20,22,24,.38) 70%); }
.hero-inner { position: relative; min-height: min(78vh, 720px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; padding-bottom: 88px; }
.hero-title { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5.2vw, 56px); line-height: 1.45; letter-spacing: .04em; }
.hero-lead { margin-top: 24px; font-size: clamp(15px, 1.6vw, 17px); line-height: 2; color: #E4E6E7; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* grids */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.grid-lines { gap: 40px 32px; }
.grid-lines > div { border-top: 1px solid var(--text); padding-top: 20px; }
.card { background: var(--surface); padding: 32px 28px; }

/* works */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 40px 24px; }
.work-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.work-card .thumb { aspect-ratio: 3 / 2; overflow: hidden; background: #D9D6D0; }
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-card:hover .thumb img { transform: scale(1.03); }
.work-meta { font-size: 12px; letter-spacing: .08em; color: var(--text-mute); }
.work-title { font-size: 16px; font-weight: 500; color: var(--text); line-height: 1.6; }
.work-card[hidden] { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { font: inherit; font-size: 14px; background: transparent; color: var(--text); border: 1px solid var(--line-strong); padding: 8px 18px; min-height: 44px; cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.empty { color: var(--text-mute); }

/* page head (subpages) */
.page-head { padding-top: 72px; padding-bottom: 48px; }
.page-head .h2 { margin-bottom: 0; }
.breadcrumb { font-size: 12px; color: var(--text-mute); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-mute); }

/* work detail */
.work-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; cursor: zoom-in; }
.work-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 48px; padding: 56px 0 24px; }
.work-text p + p { margin-top: 1em; }
.work-spec { background: var(--surface); padding: 28px; font-size: 14px; align-self: start; }
.work-spec dl { margin: 0; display: grid; gap: 14px; }
.work-spec dt { font-size: 12px; color: var(--text-mute); letter-spacing: .08em; }
.work-spec dd { margin: 2px 0 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.tags li { border: 1px solid var(--line-strong); padding: 2px 10px; font-size: 13px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; padding: 32px 0 0; }
.gallery button { display: block; padding: 0; border: 0; background: #D9D6D0; cursor: zoom-in; aspect-ratio: 3 / 2; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 56px 0 0; font-size: 14px; }
@media (max-width: 800px) { .work-body { grid-template-columns: 1fr; gap: 32px; } }

/* price */
.price-wrap { display: flex; flex-wrap: wrap; gap: 24px; }
.price-box { flex: 1 1 360px; background: var(--surface); padding: 40px 36px; }
.price-list { margin: 0; }
.price-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid #E4E1DB; }
.price-list > div:last-child { border-bottom: 0; }
.price-list dt small { display: block; font-size: 13px; color: var(--text-mute); }
.price-list dd { margin: 0; font-weight: 700; white-space: nowrap; }
.check-list { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; font-size: 15px; color: var(--text-sub); }
.note { margin-top: 28px; font-size: 13px; color: var(--text-mute); line-height: 1.9; }

/* flow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.step { font-size: 13px; letter-spacing: .16em; color: var(--accent); font-weight: 700; margin-bottom: 8px; }

/* faq */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 4px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: 'Q.'; margin-right: .5em; font-family: var(--serif); color: var(--accent); }
.faq summary::after { content: ''; position: absolute; right: 12px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--text); border-bottom: 1.5px solid var(--text); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 4px 22px; font-size: 15px; color: var(--text-sub); }

/* contact */
.contact { background: var(--dark); color: #fff; }
.contact-inner { padding-top: 104px; padding-bottom: 104px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: space-between; }
.contact-text { flex: 1 1 420px; }
.contact-logo { width: 120px; margin-bottom: 32px; }
.contact-text .h2 { margin: 8px 0 16px; }
.contact-text p:last-child { font-size: 15px; color: #D5D8DA; }
.contact-actions { flex: 1 1 360px; display: flex; flex-direction: column; gap: 12px; }
.contact-tel { color: #fff; text-align: center; text-decoration: none; padding-top: 8px; font-size: 17px; letter-spacing: .06em; }
.contact-tel:hover { color: #fff; text-decoration: underline; }
.contact-hours { text-align: center; font-size: 13px; color: #C9CDCF; }

/* footer */
.site-footer { background: var(--base); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 32px; font-size: 13px; color: var(--text-sub); }
.footer-company { display: flex; gap: 20px; align-items: flex-start; }
.footer-company img { width: 80px; flex: none; }
.footer-company strong { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 24px; align-content: flex-start; max-width: 520px; }
.footer-links a { text-decoration: none; padding: 4px 0; }
.footer-links a:hover { text-decoration: underline; }
.copyright { text-align: center; font-size: 12px; color: var(--text-mute); padding: 0 var(--gutter) 32px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(15,16,17,.94); }
.lightbox-figure { position: relative; margin: 0; max-width: min(92vw, 1600px); max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox-figure img { max-width: 100%; max-height: 80vh; width: auto; object-fit: contain; }
.lightbox-figure figcaption { color: #C9CDCF; font-size: 13px; }
.lightbox-btn { position: absolute; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); border: 0; color: #fff; cursor: pointer; }
.lightbox-btn:hover { background: rgba(255,255,255,.18); }
.lightbox-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lightbox-prev, .lightbox.single .lightbox-next { display: none; }

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding: 80px 0; }
  .h2 { font-size: 26px; margin-bottom: 36px; }
  .brand img { width: 72px; }
  .brand-sub { font-size: 12px; padding-left: 10px; }
  .brand-sub span { display: none; }
  .price-box { padding: 32px 22px; }
  .contact-inner { padding-top: 80px; padding-bottom: 80px; }
  .footer-company { flex-direction: column; gap: 12px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
