/* ==========================================================================
   ありかフォトブック - デザイントークン
   色・フォント・余白はすべてここで管理する。調整はこのブロックだけで完結させる。
   ========================================================================== */
:root {
  --color-bg: #FAF7F2;
  --color-bg-alt: #FFFFFF;
  --color-accent: #C9A88C;
  --color-accent-dark: #B08D6C;
  --color-text: #3A332E;
  --color-text-sub: #8A8078;
  --color-heading: #3A332E;
  --color-border: #E8E0D6;

  --font-body: 'Zen Kaku Gothic New', 'Noto Sans JP', -apple-system, sans-serif;
  --font-heading: var(--font-body);

  --container: 1120px;
  --section-py: clamp(64px, 9vw, 128px);
  --radius-sm: 4px;
  --radius-md: 8px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--color-heading);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 768px) {
  .container { padding-inline: 40px; }
}

section { padding-block: var(--section-py); }

/* ---------- 共通パーツ ---------- */
.section-label {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--color-accent-dark);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 16px;
}

.section-lead {
  text-align: center;
  color: var(--color-text-sub);
  font-size: 0.95rem;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 56px;
}

.section-head { margin-bottom: 48px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 40px;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  min-height: 48px;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 24px -12px rgba(201, 168, 140, 0.7);
}
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-2px); }

.btn-outline {
  border: 1px solid var(--color-accent);
  color: var(--color-text);
}
.btn-outline:hover { background: var(--color-accent); color: #fff; }

.btn-block { width: 100%; }

.btn-wrap { text-align: center; }

.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 20px;
}
.icon-circle svg { width: 26px; height: 26px; stroke: var(--color-accent-dark); }

.bg-alt { background: var(--color-bg-alt); }

/* placeholder画像: images/ 配下に実写真を配置すると自動で反映される */
.ph-img {
  background-color: #EFE7DC;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.ph-img::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-text-sub);
  opacity: 0.7;
}

/* scroll fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}

.nav-menu {
  display: none;
}

@media (min-width: 900px) {
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
  }
  .nav-menu a:not(.btn) {
    font-size: 0.9rem;
    position: relative;
  }
  .nav-menu a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 1px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
  }
  .nav-menu a:not(.btn):hover::after { transform: scaleX(1); }
  .nav-menu .btn { padding: 12px 28px; }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

.nav-mobile {
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--color-bg);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  z-index: 99;
}
.nav-mobile.is-open { transform: translateX(0); }
.nav-mobile a { font-size: 1.05rem; }

@media (min-width: 900px) {
  .nav-mobile { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-block-start: calc(72px + 48px);
  padding-block-end: 64px;
}

.hero .container {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding-block: 40px;
  }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; }
}

.hero-copy .section-label { text-align: left; }

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 24px;
}

.hero-desc {
  color: var(--color-text-sub);
  margin-bottom: 36px;
}

.hero-visual .ph-img {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   お悩み / サービス内容 / 流れ 共通グリッド
   ========================================================================== */
.worry-grid,
.service-grid {
  display: grid;
  gap: 32px;
  text-align: center;
}

@media (min-width: 700px) {
  .worry-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(5, 1fr); }
}

.worry-item h3, .service-item h3 { font-size: 1rem; margin-bottom: 8px; }
.worry-item p, .service-item p { color: var(--color-text-sub); font-size: 0.85rem; }

.worry-note {
  text-align: center;
  margin-top: 48px;
  color: var(--color-text-sub);
}

/* ==========================================================================
   作例カード
   ========================================================================== */
.works-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .works-grid { grid-template-columns: repeat(4, 1fr); }
}

.work-card { display: block; }
.work-card .ph-img {
  aspect-ratio: 4 / 2.8;
  background-size: contain;
  background-repeat: no-repeat;
  margin-bottom: 16px;
  transition: transform 0.4s var(--ease);
}
.work-card:hover .ph-img { transform: translateY(-4px); }
.work-card h3 { font-size: 1rem; margin-bottom: 6px; }
.work-card .more {
  font-size: 0.8rem;
  color: var(--color-accent-dark);
}

/* ==========================================================================
   料金
   ========================================================================== */
.price-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 800px) {
  .price-grid { grid-template-columns: repeat(3, 1fr); }
}

.price-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px 32px;
}

.price-card h3 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.price-card .price-main {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--color-accent-dark);
  margin-bottom: 4px;
}

.price-card .price-sub { color: var(--color-text-sub); font-size: 0.85rem; margin-bottom: 24px; }

.price-card ul li {
  font-size: 0.9rem;
  padding-block: 8px;
  border-top: 1px solid var(--color-border);
}
.price-card ul li:first-child { border-top: none; }

.price-cta { text-align: center; margin-top: 48px; }

/* ==========================================================================
   ご利用の流れ
   ========================================================================== */
.flow-list {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .flow-list { grid-template-columns: repeat(6, 1fr); position: relative; }
  .flow-list::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: var(--color-border);
    z-index: 0;
  }
}

.flow-item { text-align: center; position: relative; z-index: 1; }
.flow-item .flow-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-accent-dark);
}
.flow-item h3 { font-size: 0.9rem; margin-bottom: 6px; }
.flow-item p { font-size: 0.8rem; color: var(--color-text-sub); }

/* ==========================================================================
   ギャラリー共通パーツ（作例詳細ページ works/index.html で使用）
   ========================================================================== */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.gallery-tab {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid var(--color-border);
  color: var(--color-text-sub);
  transition: all 0.25s var(--ease);
}
.gallery-tab.is-active,
.gallery-tab:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.gallery-main .ph-img {
  aspect-ratio: 16 / 10;
  background-size: contain;
  background-repeat: no-repeat;
  margin-bottom: 40px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 560px;
  margin-inline: auto;
}
.gallery-thumbs .ph-img {
  aspect-ratio: 4 / 3;
  background-size: contain;
  background-repeat: no-repeat;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.25s var(--ease);
}
.gallery-thumbs .ph-img.is-active { opacity: 1; outline: 2px solid var(--color-accent); outline-offset: 2px; }

.gallery-more { text-align: center; margin-top: 40px; }

/* ==========================================================================
   About
   ========================================================================== */
.about .container {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .about .container { grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
  .about-visual { order: 2; }
}

.about-body .section-label { text-align: left; }
.about-body h2 { text-align: left; margin-bottom: 24px; }
.about-body p { color: var(--color-text-sub); margin-bottom: 16px; }
.about-visual .ph-img { aspect-ratio: 4 / 3; border-radius: var(--radius-md); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 760px; margin-inline: auto; }

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item[hidden] { display: none; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
  text-align: left;
  font-size: 0.95rem;
}

.faq-question .q-mark {
  color: var(--color-accent-dark);
  font-family: var(--font-heading);
  margin-right: 12px;
}

.faq-icon {
  flex: none;
  width: 20px;
  height: 20px;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--color-accent-dark);
  transition: transform 0.3s var(--ease);
}
.faq-icon::before { width: 100%; height: 1px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-icon::after { width: 1px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: translateX(-50%) scaleY(0); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--ease);
}
.faq-answer p {
  padding-bottom: 24px;
  color: var(--color-text-sub);
  font-size: 0.9rem;
}

.faq-more { text-align: center; margin-top: 40px; }

/* ==========================================================================
   CTA / Contact
   ========================================================================== */
.contact {
  text-align: center;
}
.contact-desc { color: var(--color-text-sub); margin-bottom: 40px; }
.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 360px;
  margin-inline: auto;
}
@media (min-width: 560px) {
  .contact-buttons { flex-direction: row; max-width: none; justify-content: center; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding-block: 56px 32px;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}
@media (min-width: 700px) {
  .footer-top { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.footer-nav a { font-size: 0.85rem; color: var(--color-text-sub); }
.footer-bottom {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-sub);
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}

/* ==========================================================================
   作例一覧・詳細ページ (works/index.html)
   ========================================================================== */
.page-hero {
  padding-block-start: calc(72px + 56px);
  padding-block-end: 48px;
  text-align: center;
}
.page-hero .section-label { margin-bottom: 8px; }
.page-hero h1 { font-size: clamp(1.5rem, 3vw, 2.25rem); }

/* 見出し「作例」からこの行までの余白: section共通ルールの上部余白を打ち消して詰める */
#works-list-view,
#works-detail-view { padding-block-start: 0; }

.work-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.work-detail-head .category-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--color-accent-dark);
}

.gallery-main .ph-img { cursor: zoom-in; }

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease);
  z-index: 1000;
}
.lightbox-overlay.is-open { opacity: 1; visibility: visible; }

.lightbox-stage {
  width: min(80vw, 900px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background-color: #EFE7DC;
}

.lightbox-caption {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: #fff;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.25s var(--ease);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.15); }

.lightbox-close { top: 24px; right: 24px; font-size: 2rem; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-stage { width: 90vw; }
}
