/* ============================================
   SiteVibe クライアントテンプレート — メインスタイル
   Soft UI Evolution + Playful Motion
   ============================================ */

/* ═══ CSS変数（ディレクションシートから変更可能） ═══ */
:root {
  --brand: #0EA5E9;
  --brand-light: #38BDF8;
  --brand-dark: #0284C7;
  --brand-bg: #F0F9FF;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --text: #0F172A;
  --text-muted: #64748B;
  --text-dim: #94A3B8;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --font-heading: 'Noto Serif JP', serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --space-xs: 0.5rem; --space-sm: 0.75rem; --space-md: 1rem;
  --space-lg: 1.5rem; --space-xl: 2rem; --space-2xl: 3rem;
  --space-3xl: 4rem; --space-4xl: 6rem;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-soft: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.08), 0 16px 40px rgba(0,0,0,0.06);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.3s;
}

/* ═══ リセット ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ═══ ユーティリティ ═══ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-lg); }
.container--narrow { max-width: 800px; }
.text-brand { color: var(--brand); }
.hide-sp { display: none; }
@media (min-width: 768px) { .hide-sp { display: inline; } }
.skip-link { position: absolute; top: -40px; left: 0; background: var(--brand); color: var(--white); padding: 8px 16px; z-index: 200; font-size: 14px; }
.skip-link:focus { top: 0; }
.required { color: #EF4444; font-size: 12px; }

/* ═══ ボタン ═══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius); font-size: 15px; font-weight: 600;
  background: var(--brand); color: var(--white);
  transition: transform 150ms var(--ease), box-shadow 150ms var(--ease), background 150ms;
  min-height: 44px;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn:active { transform: scale(0.98) translateY(0); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn--sm { padding: 8px 18px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--hero { background: var(--white); color: var(--brand-dark); padding: 16px 32px; font-size: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.btn--hero:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn--ghost-hero { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); padding: 16px 32px; font-size: 16px; }
.btn--ghost-hero:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

/* ═══ ナビ ═══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0); backdrop-filter: blur(0px);
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
.nav--scrolled {
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-md) var(--space-lg); max-width: 1200px; margin: 0 auto;
}
.nav__logo {
  font-family: var(--font-heading); font-size: 20px; font-weight: 700;
  color: var(--white); transition: color 0.3s;
}
.nav--scrolled .nav__logo { color: var(--text); }
.nav__links { display: none; align-items: center; gap: var(--space-xl); }
.nav__links a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.8); transition: color 0.2s; }
.nav__links a:hover { color: var(--white); }
.nav--scrolled .nav__links a { color: var(--text-muted); }
.nav--scrolled .nav__links a:hover { color: var(--brand); }
@media (min-width: 768px) { .nav__links { display: flex; } }

/* ハンバーガー */
.nav__hamburger { display: flex; flex-direction: column; gap: 5px; padding: 8px; z-index: 101; }
.nav__hamburger span { display: block; width: 22px; height: 2px; background: var(--white); transition: all 0.3s; border-radius: 2px; }
.nav--scrolled .nav__hamburger span { background: var(--text); }
.nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
@media (min-width: 768px) { .nav__hamburger { display: none; } }

/* モバイルメニュー */
.nav__mobile {
  display: none; flex-direction: column; gap: var(--space-md);
  padding: var(--space-lg); background: var(--white);
  border-top: 1px solid var(--border);
}
.nav__mobile.active { display: flex; }
.nav__mobile a { font-size: 16px; font-weight: 500; color: var(--text); padding: var(--space-sm) 0; }

/* ═══ ヒーロー ═══ */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 50%, var(--brand-light) 100%);
  color: var(--white); overflow: hidden; text-align: center;
  padding: var(--space-4xl) var(--space-lg);
}
.hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__blob {
  position: absolute; border-radius: 50%; opacity: 0.12;
  background: var(--white);
}
.hero__blob--1 { width: 500px; height: 500px; top: -10%; right: -10%; }
.hero__blob--2 { width: 350px; height: 350px; bottom: -5%; left: -8%; }
.hero__content { position: relative; z-index: 1; max-width: 700px; }
.hero__badge {
  display: inline-block; padding: 6px 16px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2);
  font-size: 13px; font-weight: 500; margin-bottom: var(--space-xl);
}
.hero__title {
  font-family: var(--font-heading); font-size: clamp(32px, 6vw, 56px);
  font-weight: 700; line-height: 1.25; letter-spacing: -1px;
  margin-bottom: var(--space-lg);
}
.hero__accent {
  background: linear-gradient(90deg, #FDE68A, #FCD34D);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: clamp(15px, 2vw, 18px); opacity: 0.9;
  line-height: 1.7; margin-bottom: var(--space-2xl);
}
.hero__cta { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: var(--space-xl); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  opacity: 0.5;
}

/* ═══ セクション共通 ═══ */
.section { padding: var(--space-4xl) 0; }
.section--alt { background: var(--bg-alt); }
.section--cta {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: var(--white);
}
.section__header { text-align: center; margin-bottom: var(--space-3xl); }
.section__tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--brand); margin-bottom: var(--space-sm);
}
.section__title {
  font-family: var(--font-heading); font-size: clamp(24px, 4vw, 36px);
  font-weight: 700; line-height: 1.3; letter-spacing: -0.5px;
}
.section__title--white { color: var(--white); }
.section__desc--white { color: rgba(255,255,255,0.85); margin-top: var(--space-sm); font-size: 16px; }

/* ═══ Bento Grid ═══ */
.bento {
  display: grid; grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 768px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__main { grid-row: span 3; display: flex; flex-direction: column; justify-content: center; }
}

/* ═══ カード ═══ */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-2xl);
  box-shadow: var(--shadow-soft);
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), border-color 250ms;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-light);
}
.card__icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--brand-bg); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-lg);
}
.card__icon--lg { width: 56px; height: 56px; }
.card__title {
  font-family: var(--font-heading); font-size: 18px; font-weight: 700;
  margin-bottom: var(--space-sm);
}
.card__text { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.card__link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 600; color: var(--brand);
  margin-top: var(--space-lg);
  transition: gap 200ms var(--ease);
}
.card__link:hover { gap: 8px; }

/* ═══ サービスカード ═══ */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
}
.service-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.service-card__img { overflow: hidden; }
.service-card__img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 400ms var(--ease); }
.service-card:hover .service-card__img img { transform: scale(1.05); }
.service-card__placeholder {
  aspect-ratio: 4/3; background: var(--bg-alt); display: flex;
  align-items: center; justify-content: center; color: var(--text-dim);
  transition: background 300ms;
}
.service-card:hover .service-card__placeholder { background: var(--brand-bg); color: var(--brand); }
.service-card__body { padding: var(--space-xl); }
.service-card__body h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; margin-bottom: var(--space-xs); }
.service-card__body p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: var(--space-md); }
.service-card__price { font-size: 18px; font-weight: 700; color: var(--brand); }

/* ═══ ギャラリー ═══ */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md); grid-auto-rows: 200px;
}
@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; } }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  cursor: pointer;
}
.gallery-item--tall { grid-row: span 2; }
.gallery-item__placeholder {
  width: 100%; height: 100%; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-dim);
}
.gallery-item__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5); opacity: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 14px; font-weight: 600;
  transition: opacity 300ms var(--ease);
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

/* ═══ テスティモニアル ═══ */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
}
.testimonial {
  background: var(--white); border-radius: var(--radius-lg);
  padding: var(--space-2xl); border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.testimonial__stars { display: flex; gap: 2px; color: #FBBF24; margin-bottom: var(--space-lg); }
.testimonial__text {
  font-size: 15px; line-height: 1.8; color: var(--text);
  margin-bottom: var(--space-xl); font-style: italic;
}
.testimonial__author { display: flex; align-items: center; gap: var(--space-md); }
.testimonial__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-bg); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.testimonial__author strong { font-size: 14px; }
.testimonial__author small { font-size: 12px; color: var(--text-muted); }

/* ═══ アクセス ═══ */
.access-grid {
  display: grid; grid-template-columns: 1fr;
  gap: var(--space-2xl); align-items: start;
}
@media (min-width: 768px) { .access-grid { grid-template-columns: 1.2fr 1fr; } }
.access-map__placeholder {
  aspect-ratio: 16/10; background: var(--bg-alt); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-md); color: var(--text-dim); border: 1px solid var(--border);
}
.access-list { display: flex; flex-direction: column; gap: 0; }
.access-list__item {
  display: flex; gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}
.access-list__item:last-child { border-bottom: none; }
.access-list__item dt { font-size: 13px; font-weight: 600; color: var(--text-muted); min-width: 80px; }
.access-list__item dd { font-size: 15px; color: var(--text); }
.access-list__item a { color: var(--brand); font-weight: 500; }

/* ═══ FAQ ═══ */
.faq { display: flex; flex-direction: column; gap: 0; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-xl) 0; font-size: 16px; font-weight: 600;
  color: var(--text); text-align: left; gap: var(--space-md);
  transition: color 200ms;
}
.faq__q:hover { color: var(--brand); }
.faq__q svg { flex-shrink: 0; transition: transform 0.3s var(--ease); color: var(--text-muted); }
.faq__item.active .faq__q svg { transform: rotate(180deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq__a p { padding: 0 0 var(--space-xl); font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* ═══ お問い合わせ ═══ */
.contact-grid {
  display: grid; grid-template-columns: 1fr;
  gap: var(--space-2xl);
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1.3fr 1fr; } }
.contact-form {
  background: var(--white); border-radius: var(--radius-lg);
  padding: var(--space-2xl); display: flex; flex-direction: column; gap: var(--space-lg);
}
.contact-form__row { display: flex; gap: var(--space-lg); }
@media (max-width: 480px) { .contact-form__row { flex-direction: column; } }
.contact-form__field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.contact-form__field label { font-size: 13px; font-weight: 600; color: var(--text); }
.contact-form__field input,
.contact-form__field textarea {
  padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 16px; font-family: var(--font-body); color: var(--text);
  background: var(--bg); transition: border-color 200ms, box-shadow 200ms;
}
.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}
.contact-form .btn { margin-top: var(--space-sm); }
.contact-direct { display: flex; flex-direction: column; gap: var(--space-xl); justify-content: center; }
.contact-direct__item {
  display: flex; align-items: flex-start; gap: var(--space-lg);
  color: rgba(255,255,255,0.9);
}
.contact-direct__item svg { flex-shrink: 0; margin-top: 2px; }
.contact-direct__item strong { display: block; font-size: 13px; margin-bottom: 4px; }
.contact-direct__item a { color: var(--white); font-weight: 500; }
.contact-direct__item span { font-size: 15px; }

/* ═══ フッター ═══ */
.footer {
  background: var(--text); color: rgba(255,255,255,0.6);
  padding: var(--space-2xl) 0;
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-lg);
}
.footer__logo { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--white); }
.footer__copy { font-size: 12px; margin-top: var(--space-xs); }
.footer__links { display: flex; gap: var(--space-xl); flex-wrap: wrap; }
.footer__links a { font-size: 13px; transition: color 200ms; }
.footer__links a:hover { color: var(--white); }

/* ═══ レスポンシブ補足 ═══ */
@media (max-width: 768px) {
  .section { padding: var(--space-3xl) 0; }
  .hero { padding: var(--space-3xl) var(--space-lg); }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
}
