/* ===================================
   秋田web制作所サカワラ - 共通スタイル
   方向性：baigieライク縮小版・写真主体・モダンミニマル
=================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
  /* 配色 */
  --color-bg: #FFFFFF;
  --color-bg-soft: #FAFAFA;
  --color-text: #1A1A1A;
  --color-text-sub: #6B7280;
  --color-border: #E5E7EB;
  --color-accent: #1E3A5F;
  --color-accent-hover: #15293F;
  --color-line: #06C755;
  --color-line-hover: #05a847;
  --color-overlay: rgba(15, 23, 42, 0.55);

  /* フォント */
  --font-main: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Yu Gothic', sans-serif;
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* レイアウト */
  --max-width-content: 1200px;
  --max-width-text: 720px;
  --header-height: 72px;

  /* 動き */
  --transition: 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.7;
}

ul {
  list-style: none;
}

/* ===================================
   レイアウトユーティリティ
=================================== */

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

.container--text {
  max-width: var(--max-width-text);
}

.section {
  padding: 96px 0;
}

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

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }
}

.section-label {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.section-lead {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--color-text-sub);
  margin-bottom: 48px;
  line-height: 1.9;
}

/* ===================================
   ヘッダー
=================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 24px;
}

.header__logo {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.header__logo small {
  display: block;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-text-sub);
  margin-top: 2px;
}

.header__logo-img {
  display: block;
  height: 56px;
  width: auto;
}

@media (max-width: 768px) {
  .header__logo-img {
    height: 40px;
  }
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.nav__cta {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  transition: background var(--transition);
}

.nav__cta:hover {
  background: var(--color-accent);
  opacity: 1;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-bg);
    padding: 32px 24px;
    gap: 20px;
    transform: translateY(-120%);
    transition: transform var(--transition);
    border-bottom: 1px solid var(--color-border);
  }

  .nav.is-open {
    transform: translateY(0);
  }

  .nav__toggle {
    display: flex;
  }

  .nav.is-open ~ .nav__toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav.is-open ~ .nav__toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav.is-open ~ .nav__toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ===================================
   ヒーロー
=================================== */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  margin-top: var(--header-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.45) 55%, rgba(15, 23, 42, 0.3) 100%),
    url('images/hero.jpg') center / cover no-repeat;
  color: #fff;
}

.hero--small {
  min-height: 50vh;
  padding: 120px 0 80px;
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 80px 24px;
  z-index: 2;
}

.hero__label {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  display: block;
}

.hero__title {
  font-size: clamp(28px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  max-width: 900px;
}

.hero__subtitle {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 48px;
  max-width: 600px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===================================
   ボタン
=================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn--primary:hover {
  background: var(--color-accent);
  opacity: 1;
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.btn--outline:hover {
  background: #fff;
  color: var(--color-text);
  opacity: 1;
}

.btn--outline-dark {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-text);
}

.btn--outline-dark:hover {
  background: var(--color-text);
  color: var(--color-bg);
  opacity: 1;
}

.btn--large {
  padding: 18px 40px;
  font-size: 15px;
}

/* ===================================
   3つの不安カード（バリュープロップ）
=================================== */

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card {
  padding: 40px 32px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.value-card__num {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
}

.value-card__concern {
  font-size: 14px;
  color: var(--color-text-sub);
  margin-bottom: 12px;
  line-height: 1.7;
}

.value-card__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
}

.value-card__body {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-sub);
}

@media (max-width: 768px) {
  .values {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .value-card {
    padding: 32px 24px;
  }
}

/* ===================================
   想い・哲学プレビュー（トップページ用）
=================================== */

.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-preview__text p {
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 2;
}

.about-preview__text p:last-of-type {
  margin-bottom: 32px;
}

.about-preview__visual {
  aspect-ratio: 4 / 5;
  background: url('images/about.jpg') center / cover no-repeat;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .about-preview {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-preview__visual {
    aspect-ratio: 16 / 10;
  }
}

/* ===================================
   サービスプレビュー
=================================== */

.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.service-card__label {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
  display: block;
}

.service-card__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.service-card__price {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.service-card__price-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-sub);
  margin-left: 4px;
}

.service-card__body {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-sub);
  margin-bottom: 24px;
}

.service-card__features {
  margin-bottom: 24px;
}

.service-card__features li {
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  padding-left: 24px;
}

.service-card__features li:last-child {
  border-bottom: none;
}

.service-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: var(--color-accent);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M3 8L7 12L13 4' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: 14px;
}

@media (max-width: 768px) {
  .service-cards {
    grid-template-columns: 1fr;
  }
  .service-card {
    padding: 32px 24px;
  }
}

/* ===================================
   実例カード
=================================== */

.example-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.example-card__visual {
  /* TODO: 整体院HPのスクショに差し替え */
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #2C5F5F 0%, #1A3F3F 100%);
  position: relative;
}

.example-card__body {
  padding: 48px 48px 48px 0;
}

.example-card__label {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
  display: block;
}

.example-card__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
}

.example-card__body p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-sub);
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .example-card {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .example-card__body {
    padding: 32px 24px;
  }
}

/* ===================================
   CTA バンド
=================================== */

.cta-band {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 80px 0;
  text-align: center;
}

.cta-band__title {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.5;
}

.cta-band__lead {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  line-height: 1.9;
}

.cta-band .btn--primary {
  background: var(--color-bg);
  color: var(--color-text);
}

.cta-band .btn--primary:hover {
  background: var(--color-bg-soft);
}

.cta-band__line {
  background: var(--color-line);
  color: #fff;
}

.cta-band__line:hover {
  background: var(--color-line-hover);
  opacity: 1;
}

.cta-band__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===================================
   フッター
=================================== */

.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
  font-size: 14px;
}

.footer__inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 24px;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer__brand small {
  display: block;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
  letter-spacing: 0.1em;
}

.footer__tagline {
  font-size: 13px;
  line-height: 1.8;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.6);
}

.footer__menu-title {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.footer__menu-list li {
  margin-bottom: 12px;
}

.footer__menu-list a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copyright {
  font-family: var(--font-en);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ===================================
   想い・哲学ページ専用
=================================== */

.philosophy {
  max-width: var(--max-width-text);
  margin: 0 auto;
}

.philosophy h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  margin: 64px 0 24px;
  line-height: 1.6;
}

.philosophy h2:first-child {
  margin-top: 0;
}

.philosophy p {
  font-size: 16px;
  line-height: 2.1;
  margin-bottom: 24px;
}

.philosophy blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
  color: var(--color-text-sub);
  font-size: 15px;
  line-height: 2;
  font-style: normal;
}

/* ===================================
   サービスページ専用
=================================== */

.faq {
  max-width: var(--max-width-text);
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
}

.faq__item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq__q {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  padding-left: 32px;
  line-height: 1.7;
}

.faq__q::before {
  content: 'Q';
  font-family: var(--font-en);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 18px;
}

.faq__a {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-sub);
  padding-left: 32px;
  position: relative;
}

.faq__a::before {
  content: 'A';
  font-family: var(--font-en);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-text-sub);
  font-weight: 700;
  font-size: 18px;
}

/* ===================================
   フェードイン（控えめなスクロールアニメ）
=================================== */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
