@charset "UTF-8";

/* =========================================================
   長崎八王子写真館 LP - style.css
   Design motif: 落ち着いた大人っぽさ / シンプル / 薄い緑 / 明るい
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --green-deep:   #3f5d3a;   /* 見出し・差し色 */
  --green:        #5f8559;   /* メインの緑 */
  --green-soft:   #88a981;   /* 補助の緑 */
  --green-pale:   #d7e3d0;   /* 薄い緑（面） */
  --green-mist:   #eef3ea;   /* ごく薄い緑 */
  --bg:           #f5f7f1;   /* 背景（明るいオフホワイト×薄緑） */
  --surface:      #fcfdfb;   /* カード面 */
  --ink:          #3a4036;   /* 本文（黒すぎない） */
  --ink-soft:     #6c7468;   /* 補助テキスト */
  --line:         #dfe6d8;   /* 罫線 */
  --shadow:       0 18px 40px -24px rgba(63, 93, 58, .35);

  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --brush: "Yuji Syuku", "Shippori Mincho", serif;

  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--gothic);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }
em { font-style: normal; }

body.is-locked { overflow: hidden; }

/* ---------- Photo placeholder frame ---------- */
.photo-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(136,169,129,.10) 0 14px, rgba(136,169,129,.04) 14px 28px),
    var(--green-mist);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--green-soft);
  overflow: hidden;
}
.photo-frame__label {
  font-size: .72rem;
  letter-spacing: .35em;
  font-weight: 700;
  padding-left: .35em;
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(136,169,129,.4);
  border-radius: 8px;
  pointer-events: none;
}
.photo-frame__note {
  position: absolute;
  bottom: 16px;
  font-size: .66rem;
  letter-spacing: .12em;
  color: var(--ink-soft);
}

/* ---------- 実写真ホルダー ---------- */
.ph {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--green-mist);
  margin: 0;
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease);
}
.ph--hero {
  width: min(440px, 100%);
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.ph--card {
  aspect-ratio: 4 / 3;
  width: 100%;
  box-shadow: var(--shadow);
}
.ph--card:hover img,
.gallery__item:hover img { transform: scale(1.05); }

/* =========================================================
   Loader
   ========================================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; }
.loader__name {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  letter-spacing: .3em;
  color: var(--green-deep);
  animation: floatUp .8s var(--ease) both;
}
.loader__bar {
  width: 180px;
  height: 2px;
  margin: 26px auto 0;
  background: var(--green-pale);
  border-radius: 2px;
  overflow: hidden;
}
.loader__bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--green);
  transform: translateX(-100%);
  animation: load 1.6s var(--ease) forwards;
}
@keyframes load { to { transform: translateX(0); } }
@keyframes floatUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 900;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: 14px 0;
}
.header.is-scrolled {
  background: rgba(245, 247, 241, .9);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(63,93,58,.08);
  padding: 8px 0;
}
.header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 18px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.header__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .14em;
  color: var(--green-deep);
  white-space: nowrap;
}
.gnav__list { display: flex; gap: 20px; }
.gnav__list a {
  font-size: .84rem;
  letter-spacing: .04em;
  white-space: nowrap;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
  transition: color .25s var(--ease);
}
.gnav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.gnav__list a:hover { color: var(--green-deep); }
.gnav__list a:hover::after { transform: scaleX(1); transform-origin: left; }

.header__cta {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: .84rem;
  letter-spacing: .08em;
  white-space: nowrap;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.header__cta:hover { background: var(--green-deep); transform: translateY(-2px); }

.hamburger {
  display: none;
  width: 42px; height: 42px;
  border: 0; background: transparent;
  position: relative;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  position: absolute;
  left: 9px; right: 9px;
  height: 1.6px;
  background: var(--green-deep);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 20px; }
.hamburger span:nth-child(3) { top: 26px; }
.hamburger.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 140px var(--gutter) 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--green-mist) 0%, transparent 70%),
    var(--bg);
}
.hero__eyebrow {
  font-family: var(--serif);
  color: var(--green);
  letter-spacing: .35em;
  font-size: .9rem;
  margin-bottom: 22px;
}
.hero__title { line-height: 1.3; }
.hero__title-sub {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--ink-soft);
  letter-spacing: .2em;
  margin-bottom: 14px;
}
.hero__title-main {
  display: block;
  font-family: var(--brush);
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  color: var(--green-deep);
  letter-spacing: .12em;
  font-weight: 400;
}
.hero__lead {
  margin-top: 26px;
  font-size: clamp(.9rem, 2.4vw, 1rem);
  color: var(--ink-soft);
  line-height: 2.1;
}
.hero__visual {
  margin-top: 46px;
  width: min(540px, 100%);
}
.photo-frame--hero { aspect-ratio: 16 / 10; width: 100%; }
.hero__visual-cap {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: .82rem;
  color: var(--ink-soft);
  letter-spacing: .14em;
}
.hero__price {
  margin-top: 38px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.hero__price-tag {
  font-size: .82rem;
  letter-spacing: .12em;
  color: var(--ink-soft);
}
.hero__price-value {
  font-family: var(--serif);
  color: var(--green-deep);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.hero__price-value em { font-size: 1.9rem; font-weight: 700; letter-spacing: .04em; }
.hero__price-value small { font-size: .9rem; }

.scroll-cue {
  margin-top: auto;
  padding-top: 40px;
  font-size: .68rem;
  letter-spacing: .25em;
  color: var(--green-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-cue span {
  width: 1px; height: 46px;
  background: linear-gradient(var(--green-soft), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue span::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 50%;
  background: var(--green);
  animation: scrollLine 1.8s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* 装飾の葉 */
.deco-leaf {
  position: absolute;
  width: 26px; height: 26px;
  background:
    radial-gradient(circle at 30% 30%, var(--green-soft), var(--green) 70%);
  clip-path: path("M13 0 C18 8, 26 8, 26 13 C26 18, 18 18, 13 26 C8 18, 0 18, 0 13 C0 8, 8 8, 13 0 Z");
  opacity: .5;
  pointer-events: none;
}
.deco-leaf--1 { top: 18%; left: 8%;  animation: sway 6s ease-in-out infinite; }
.deco-leaf--2 { top: 30%; right: 10%; width: 18px; height: 18px; animation: sway 7s ease-in-out infinite reverse; }
.deco-leaf--3 { bottom: 22%; left: 14%; width: 14px; height: 14px; opacity: .4; animation: sway 8s ease-in-out infinite; }
@keyframes sway {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-12px) rotate(12deg); }
}

/* =========================================================
   Section common
   ========================================================= */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(70px, 11vw, 130px) var(--gutter);
}
.section__head { text-align: center; margin-bottom: clamp(40px, 6vw, 70px); }
.section__en {
  font-size: .78rem;
  letter-spacing: .4em;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 14px;
}
.section__title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4.5vw, 2.5rem);
  color: var(--green-deep);
  letter-spacing: .1em;
  font-weight: 600;
}
.section__desc {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: .94rem;
}

/* ---------- About / Strength ---------- */
.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 30px);
}
.strength {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 44px) clamp(22px, 3vw, 32px);
  position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.strength:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.strength__num {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--green-pale);
  font-weight: 700;
  line-height: 1;
}
.strength__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: .08em;
  margin: 16px 0 16px;
  line-height: 1.6;
}
.strength__title em { color: var(--green-deep); font-size: 1.5rem; }
.strength__text { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Service ---------- */
.service { background: linear-gradient(180deg, transparent, var(--green-mist) 50%, transparent); }
.service__list { display: flex; flex-direction: column; gap: clamp(28px, 5vw, 56px); }
.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.service-card--reverse .photo-frame { order: 2; }
.photo-frame--card { aspect-ratio: 4 / 3; width: 100%; box-shadow: var(--shadow); }
.service-card__en {
  font-family: var(--serif);
  color: var(--green);
  letter-spacing: .2em;
  font-size: .9rem;
  margin-bottom: 8px;
}
.service-card__title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  color: var(--green-deep);
  letter-spacing: .08em;
  margin-bottom: 18px;
}
.service-card__text { font-size: .94rem; color: var(--ink-soft); margin-bottom: 20px; }
.service-card__price {
  display: inline-block;
  font-family: var(--serif);
  color: var(--green-deep);
  border-bottom: 2px solid var(--green-pale);
  padding-bottom: 3px;
  letter-spacing: .06em;
}

/* ---------- Gallery ---------- */
.gallery__grid {
  column-count: 3;
  column-gap: clamp(10px, 1.6vw, 18px);
}
.gallery__item {
  margin: 0 0 clamp(10px, 1.6vw, 18px);
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--green-mist);
}
.gallery__item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease);
}

/* ---------- Feature ---------- */
.feature__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.5vw, 26px);
}
.feature-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(26px, 3.5vw, 38px);
  position: relative;
  padding-left: clamp(34px, 4vw, 50px);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.feature-item::before {
  content: "";
  position: absolute;
  left: clamp(20px, 2.5vw, 28px);
  top: clamp(30px, 3.8vw, 42px);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-pale);
}
.feature-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-item__title {
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--ink);
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.feature-item__text { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Flow ---------- */
.flow__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 22px);
  counter-reset: flow;
}
.flow-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(26px, 3vw, 34px) clamp(18px, 2.4vw, 26px);
  text-align: center;
}
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%; right: calc(-1 * clamp(14px, 2vw, 22px) / 2 - 5px);
  width: 10px; height: 10px;
  border-top: 1.5px solid var(--green-soft);
  border-right: 1.5px solid var(--green-soft);
  transform: translateY(-50%) rotate(45deg);
}
.flow-step__num {
  font-family: var(--serif);
  font-size: .82rem;
  letter-spacing: .2em;
  color: var(--green);
  display: block;
  margin-bottom: 14px;
}
.flow-step__title {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--green-deep);
  margin-bottom: 12px;
  letter-spacing: .06em;
}
.flow-step__text { font-size: .84rem; color: var(--ink-soft); }

/* ---------- Voice ---------- */
.voice { background: linear-gradient(180deg, transparent, var(--green-mist) 50%, transparent); }
.voice__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 28px);
}
.voice-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(30px, 4vw, 42px) clamp(24px, 3vw, 34px);
  position: relative;
}
.voice-card::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 3.4rem;
  color: var(--green-pale);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.voice-card__text {
  font-size: .92rem;
  color: var(--ink);
  line-height: 2;
}
.voice-card__name {
  margin-top: 22px;
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--green);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* ---------- Contact ---------- */
.contact { max-width: 100%; padding-left: 0; padding-right: 0; }
.contact__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(50px, 7vw, 80px) var(--gutter);
  background:
    radial-gradient(70% 80% at 50% 0%, var(--green-mist) 0%, transparent 75%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.contact__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--green-deep);
  letter-spacing: .08em;
  margin: 14px 0 18px;
}
.contact__lead { color: var(--ink-soft); font-size: .94rem; margin-bottom: 36px; }
.contact__methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 620px;
  margin: 0 auto;
}
.contact-btn {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 20px;
  border-radius: 16px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.contact-btn--mail { background: var(--green); color: #fff; }
.contact-btn--mail:hover { background: var(--green-deep); transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-btn--tel { background: var(--green-mist); border: 1px solid var(--line); color: var(--green-deep); }
.contact-btn--tel:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-btn__label {
  font-size: .8rem;
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.contact-btn__label em {
  font-size: .66rem;
  background: rgba(255,255,255,.25);
  padding: 2px 8px;
  border-radius: 999px;
}
.contact-btn--tel .contact-btn__label em { background: var(--green-pale); }
.contact-btn__value {
  font-family: var(--serif);
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  letter-spacing: .04em;
  font-weight: 600;
  word-break: break-all;
}
.contact__note { margin-top: 26px; font-size: .78rem; color: var(--ink-soft); }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--green-deep);
  color: #e8efe3;
  padding: clamp(50px, 7vw, 76px) var(--gutter) 28px;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
}
.footer__name {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: .12em;
}
.footer__catch { font-size: .82rem; color: rgba(232,239,227,.7); margin-top: 8px; }
.footer__info { display: flex; flex-direction: column; gap: 12px; font-size: .86rem; }
.footer__info > div { display: flex; gap: 14px; }
.footer__info dt {
  flex: 0 0 64px;
  color: rgba(232,239,227,.6);
  letter-spacing: .1em;
}
.footer__info dd { margin: 0; }
.footer__info a { border-bottom: 1px solid rgba(255,255,255,.3); }
.footer__nav ul { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a {
  font-size: .86rem;
  color: rgba(232,239,227,.85);
  transition: color .25s var(--ease);
}
.footer__nav a:hover { color: #fff; }
.footer__copy {
  max-width: var(--maxw);
  margin: clamp(40px, 5vw, 56px) auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
  text-align: center;
  font-size: .72rem;
  letter-spacing: .12em;
  color: rgba(232,239,227,.6);
}

/* =========================================================
   Scroll reveal
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 920px) {
  .gnav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    background: var(--surface);
    box-shadow: -10px 0 40px -20px rgba(63,93,58,.4);
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    display: flex;
    align-items: center;
    padding: 80px 40px;
    z-index: 880;
  }
  .gnav.is-open { transform: translateX(0); }
  .gnav__list { flex-direction: column; gap: 26px; width: 100%; }
  .gnav__list a { font-size: 1rem; }
  .header__cta { display: none; }
  .hamburger { display: block; z-index: 920; }

  .about__grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .flow__list { grid-template-columns: repeat(2, 1fr); }
  .flow-step:nth-child(2)::after { display: none; }
  .voice__grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .gallery__grid { column-count: 2; }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .header__name { display: none; }
  .service-card { grid-template-columns: 1fr; }
  .service-card--reverse .photo-frame { order: 0; }
  .feature__grid { grid-template-columns: 1fr; }
  .flow__list { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .flow-step::after { display: none !important; }
  .contact__methods { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { text-align: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
