@charset "UTF-8";

/* ==========================================================================
   home.css
   トップページ（index.html）専用のセクションレイアウト。
   共通パーツ（ヘッダー・フッター・フォーム部品等）は base.css を参照。
   base.css の読み込みが前提。
   ========================================================================== */

/* ==========================================================================
   Hero Section
   ========================================================================== */
/* 背景は全ページ共通の「空」（.sky / base.css）が担当する。
   ヒーローは夜空の上に乗るため、文字を白に切り替える。 */
.hero {
  min-height: 100vh;
  /* iOS Safariはツールバーの表示状態で100vhの解決結果がずれるため、
     対応ブラウザでは動的ビューポート単位で上書きする */
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 150px 0 110px;
}
/* 本文とマスコットを左右に振り分ける非対称レイアウト */
.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  width: 100%;
}
.hero-copy {
  min-width: 0;
}
.hero-sub {
  font-family: "Montserrat", sans-serif;
  color: var(--accent-light);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  margin-bottom: 26px;
}
.hero-content h1 {
  font-size: clamp(1.55rem, 3.5vw, 3rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 30px;
  font-weight: 700;
  text-shadow: 0 2px 24px rgba(8, 20, 44, 0.45);
}
.hero-lead {
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  line-height: 2;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 32px;
  text-shadow: 0 1px 14px rgba(8, 20, 44, 0.4);
}
.hero-lead strong {
  color: #ffffff;
}

/* ヒーロー：料金・条件面での強みを一目で伝えるバッジ帯。
   nirnor風に、面ではなく細い罫線だけで区切る。 */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  max-width: 640px;
  margin-bottom: 38px;
}
.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease,
    background 0.4s ease;
}
.hero-badges li:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.24);
}
.badge-icon {
  font-size: 0.95rem;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   ヒーローのイメージキャラクター
   -------------------------------------------------------------------------- */
/* キャッチコピーの入力演出（約6秒）を待たせると主役が長く不在になるため、
   マスコットだけはイントロが引いた直後に自分のタイミングで現れる。 */
.hero-mascot {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
  opacity: 0;
  animation: heroMascotIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards;
}
@keyframes heroMascotIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.hero-mascot img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 40px rgba(var(--shadow-rgb), 0.18));
  animation: mascotFloat 6s ease-in-out infinite;
}
/* 背後で静かに回り続けるコンパス（ロゴマーク）のリング */
.hero-mascot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 128%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  animation: heroRing 26s linear infinite;
}
.hero-mascot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 92%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  animation: heroRing 38s linear infinite reverse;
}
/* 夜空の上ではボタンの枠線・文字を白に寄せる */
.hero .btn.ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}
.hero .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}
@keyframes mascotFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-0.6deg);
  }
  50% {
    transform: translateY(-14px) rotate(0.6deg);
  }
}
@keyframes heroRing {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-mascot {
    order: -1;
    width: min(58vw, 240px);
    justify-self: flex-start;
  }
  .hero-mascot img {
    animation-duration: 7s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mascot,
  .hero-mascot img,
  .hero-mascot::before,
  .hero-mascot::after {
    animation: none !important;
  }
  .hero-mascot {
    opacity: 1;
  }
}

/* キャッチコピー（h1）のタイプライター後、じんわりフェードインする範囲 */
.hero-fade-in {
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-fade-in.is-visible {
  opacity: 1;
}

/* ==========================================================================
   News Section（お知らせ：トップページの一覧表示）
   詳細本文は表示せず、日付・タイトルのみのリンク一覧＋直近3件のみ表示。
   4件目以降は下部のプルダウン（select）に格納する。
   ========================================================================== */
.news {
  padding: 120px 0;
}
.news-list {
  max-width: 850px;
  margin: 50px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.news-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--accent);
  border-radius: 16px;
  padding: 18px 24px;
  box-shadow: 0 10px 30px rgba(var(--ink-rgb), 0.05);
  text-decoration: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.news-item:hover {
  transform: translateX(4px);
  box-shadow: 0 14px 34px rgba(var(--ink-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.4);
}
.news-date {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--accent-secondary);
  flex-shrink: 0;
}
.news-title {
  flex-grow: 1;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-heading);
}
.news-badge {
  background: var(--accent);
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}
.news-archive {
  max-width: 850px;
  margin: 24px auto 0 auto;
}
.news-archive-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 8px;
}
.news-archive-select {
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid rgba(var(--ink-rgb), 0.22);
  border-radius: 4px;
  color: var(--text-heading);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s;
}
.news-archive-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}
@media (max-width: 665px) {
  .news {
    padding: 80px 0;
  }
  .news-item {
    flex-wrap: wrap;
    padding: 16px 18px;
  }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
  padding: 120px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: flex-start;
}
.profile-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  box-shadow: 0 15px 35px rgba(var(--ink-rgb), 0.08);
  margin-bottom: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.base-info {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 18px;
  border-radius: 4px;
  border-left: 3px solid var(--accent);
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(var(--ink-rgb), 0.03);
}
.profile-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}
.profile-name span {
  font-size: 0.85rem;
  font-weight: normal;
  color: var(--text-main);
}
.about-text-box h3 {
  font-size: 1.6rem;
  color: var(--text-heading);
  margin-bottom: 12px;
}
.about-lead-text {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 25px;
}
.bio-content .text-block {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-main);
}

.experience-list {
  list-style: none;
  margin: 18px 0;
  padding-left: 5px;
}
.experience-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-heading);
  font-size: 0.95rem;
  font-weight: 500;
}
/* 経歴の行頭マーカー。以前は落ち葉の絵文字だったが、
   キャラクターの配色に合わせて紺の小さな菱形に置き換えた。 */
.experience-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ==========================================================================
   Skills Section (サービス範囲)
   ========================================================================== */
.skills {
  padding: 120px 0;
}
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 50px;
}
.contrast-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 18px 44px rgba(var(--shadow-rgb), 0.05);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}
.contrast-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 56px rgba(var(--shadow-rgb), 0.1);
}
.contrast-card.can {
  border-top: 4px solid var(--accent-green);
}
.contrast-card.cannot {
  border-top: 4px solid var(--accent-red);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}
.card-header .icon {
  font-size: 1.5rem;
}
.card-header h3 {
  font-size: 1.35rem;
  color: var(--text-heading);
}

.contrast-list {
  list-style: none;
}
.contrast-list li {
  margin-bottom: 24px;
}
.contrast-list li:last-child {
  margin-bottom: 0;
}
.contrast-list li strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text-heading);
  margin-bottom: 6px;
}
.contrast-list li p {
  font-size: 0.9rem;
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   選ばれる理由（アピールポイント）：対応範囲の2枚カードの手前に置く強み紹介
   -------------------------------------------------------------------------- */
.strength-block {
  margin-top: 50px;
}
.strength-heading {
  font-size: 1.5rem;
  color: var(--text-heading);
  text-align: center;
  line-height: 1.5;
}
.strength-heading span {
  color: var(--accent);
}
.strength-lead {
  max-width: 760px;
  margin: 14px auto 0 auto;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.9;
}
.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.strength-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--accent);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 18px 44px rgba(var(--shadow-rgb), 0.05);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}
.strength-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 56px rgba(var(--shadow-rgb), 0.1);
}
.strength-icon {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 14px;
}
.strength-card h4 {
  font-size: 1.05rem;
  color: var(--text-heading);
  line-height: 1.6;
  margin-bottom: 10px;
}
.strength-card p {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.9;
}
.strength-card p + p {
  margin-top: 14px;
}
/* 補足注記（※オプション対応など）は本文より一段小さく */
.strength-card p.strength-note {
  font-size: 0.82rem;
  opacity: 0.85;
}
.strength-card strong {
  color: var(--accent-secondary);
}

/* ==========================================================================
   Pricing & Terms Section
   ========================================================================== */
.pricing {
  padding: 120px 0;
}
/* ==========================================================================
   料金プランカード（A / B / C の3プラン比較）
   ========================================================================== */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}
.plan-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 36px 30px;
  box-shadow: 0 18px 44px rgba(var(--shadow-rgb), 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 56px rgba(var(--shadow-rgb), 0.1);
}
.plan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent));
}
.plan-head {
  margin-bottom: 24px;
}
.plan-name {
  font-family: "Montserrat", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-heading);
  display: block;
  margin-bottom: 8px;
}
.plan-tagline {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.6;
}
.plan-prices {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px dashed rgba(var(--accent-rgb), 0.22);
}
.plan-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.plan-price-row:last-child {
  margin-bottom: 0;
}
.plan-price-label {
  font-size: 0.85rem;
  color: var(--text-main);
}
.plan-price-value {
  font-family: "Montserrat", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent-secondary);
  white-space: nowrap;
}
.plan-price-value small {
  font-size: 0.6em;
  font-weight: 500;
  margin-left: 2px;
}
.plan-price-note {
  margin: -14px 0 20px 0;
  font-size: 0.78rem;
  color: var(--accent-secondary);
  line-height: 1.6;
}
.plan-features {
  list-style: none;
  margin-bottom: 28px;
  flex-grow: 1;
}
.plan-features li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.6;
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-green);
  font-weight: 700;
}
.btn-plan {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--accent-secondary);
  border: 1px solid var(--accent);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.btn-plan:hover {
  background: linear-gradient(
    135deg,
    var(--accent-secondary) 0%,
    var(--accent) 100%
  );
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.3);
}
.plan-note {
  max-width: 800px;
  margin: 28px auto 0 auto;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.7;
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.term-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  padding: 24px;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(var(--ink-rgb), 0.02);
}
.term-card h4 {
  color: var(--text-heading);
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.term-card p {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.7;
}

/* ==========================================================================
   Workflow Section
   ========================================================================== */
.workflow {
  padding: 120px 0;
  background: transparent;
}
.workflow-timeline {
  max-width: 900px;
  margin: 50px auto 0 auto;
  position: relative;
  padding-left: 50px;
}
.workflow-timeline::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 20px;
  width: 2px;
  height: calc(100% - 30px);
  background: linear-gradient(
    to bottom,
    var(--accent) 0%,
    var(--accent-secondary) 100%
  );
  opacity: 0.4;
}
.workflow-step {
  position: relative;
  margin-bottom: 40px;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 25px 30px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(var(--ink-rgb), 0.04);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}
.workflow-step:hover {
  transform: translateX(5px);
  border-color: rgba(var(--accent-rgb), 0.25);
}
.workflow-step:last-child {
  margin-bottom: 0;
}
.step-number {
  position: absolute;
  left: -54px;
  top: 14px;
  width: 30px;
  height: 30px;
  background: var(--bg-dark);
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}
.workflow-step:nth-child(even) .step-number {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}
.step-icon {
  font-size: 2rem;
  line-height: 1;
  padding-top: 2px;
}
.step-body h3 {
  font-size: 1.2rem;
  color: var(--text-heading);
  margin-bottom: 8px;
}
.step-body p {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.7;
}

/* ==========================================================================
   Samples Section
   ========================================================================== */
.samples {
  padding: 120px 0;
}
.samples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.sample-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 35px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(var(--shadow-rgb), 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sample-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 0 0 0 8px;
}
/* サイト見どころプレビュー：ブラウザ風モックアップ＋スマホ風モックアップを
   カード上部に重ねて配置し、それぞれの画面内でスクリーンショットが
   ゆっくり上下にパンし続けることで「動いているサイト」の印象を伝える */
.sample-preview {
  position: relative;
  margin: 0 0 46px;
}
.preview-browser {
  border-radius: 16px;
  overflow: hidden;
  background: #10203a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 45px rgba(var(--shadow-rgb), 0.22);
}
.preview-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: #1a2f4f;
}
.preview-browser-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.preview-browser-bar span:nth-child(1) {
  background: #ff5f57;
}
.preview-browser-bar span:nth-child(2) {
  background: #febc2e;
}
.preview-browser-bar span:nth-child(3) {
  background: #28c840;
}
.preview-browser .preview-shot-window {
  height: 280px;
}
.preview-phone {
  position: absolute;
  right: 20px;
  bottom: -34px;
  width: 92px;
  border-radius: 16px;
  overflow: hidden;
  background: #0c1729;
  border: 3px solid #0c1729;
  box-shadow: 0 16px 32px rgba(var(--shadow-rgb), 0.28);
}
.preview-phone .preview-shot-window {
  height: 168px;
  border-radius: 13px;
  overflow: hidden;
}
/* スマホらしさを一目で伝えるホームインジケーターバー */
.preview-phone::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
  transform: translateX(-50%);
  pointer-events: none;
}
.preview-shot-window {
  position: relative;
  overflow: hidden;
  background: #10203a;
}
.preview-shot-window img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  /* ブラウザ／スマホどちらの画面も同じ周期・同じタイミングで動かし、
     常に同じ方向へ揃ってパンするようにする。object-positionのアニメーションは
     ペイントを伴い軽くないため、セクションが画面外にある間は止めておく
     （JSがsamples要素にis-in-viewを付け外しする）。 */
  animation: shotPan 15s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.samples.is-in-view .preview-shot-window img {
  animation-play-state: running;
}
@keyframes shotPan {
  0% {
    object-position: 50% 0%;
  }
  100% {
    object-position: 50% 100%;
  }
}
/* カード全体にカーソルを乗せている間は、じっくり見られるようパンを止める */
.sample-card:hover .preview-shot-window img {
  animation-play-state: paused;
}

.sample-card h3 {
  font-size: 1.3rem;
  color: var(--text-heading);
  margin-bottom: 12px;
  padding-right: 60px;
}
.sample-card p {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 20px;
  flex-grow: 1;
}
.path-box {
  background: rgba(var(--ink-rgb), 0.05);
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid rgba(var(--ink-rgb), 0.08);
  margin-bottom: 20px;
}
.path-box code {
  color: var(--accent-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}
.btn-sample {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.3s;
  align-self: flex-start;
}
.btn-sample:hover {
  color: var(--text-heading);
}

/* ==========================================================================
   Contact Section（セクション枠組みのみ。フォーム部品自体は base.css）
   ========================================================================== */
.contact {
  padding: 120px 0;
}
.contact-inner {
  max-width: 800px;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 16px;
  padding: 60px 50px;
  box-shadow: 0 25px 50px rgba(var(--ink-rgb), 0.08);
}

/* ==========================================================================
   Responsive Design（トップページ専用パーツ分）
   ========================================================================== */
@media (max-width: 960px) {
  .hero-content h1 {
    font-size: 2.3rem;
  }
  .about-grid,
  .contrast-grid,
  .samples-grid,
  .plan-grid,
  .terms-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .terms-grid {
    gap: 20px;
  }
  /* 特徴カードはタブレット幅では2列にして、縦に伸びすぎるのを防ぐ */
  .strength-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .strength-heading {
    font-size: 1.3rem;
  }
  .workflow-timeline {
    padding-left: 40px;
  }
  .workflow-timeline::before {
    left: 15px;
  }
  .step-number {
    left: -49px;
  }
  .about-img-box {
    max-width: 320px;
    margin: 0 auto;
  }
  .contact-inner {
    padding: 40px 24px;
  }
}
@media (max-width: 665px) {
  /* 料金プランカード：スマホ幅では余白をコンパクトに */
  .plan-card {
    padding: 28px 24px;
  }

  /* サービス内容セクション：スマホでは縦に長くなりすぎないよう、
     セクション余白・カード余白・文字サイズをまとめてコンパクトにする */
  .skills {
    padding: 80px 0;
  }
  .skills .section-title {
    margin-bottom: 24px;
  }
  .skills .section-desc {
    font-size: 0.88rem;
  }
  .strength-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 26px;
  }
  .strength-block {
    margin-top: 36px;
  }
  .strength-heading {
    font-size: 1.15rem;
  }
  .strength-lead {
    font-size: 0.88rem;
    line-height: 1.8;
    margin-top: 12px;
  }
  .strength-card {
    padding: 22px 20px;
  }
  .strength-icon {
    font-size: 1.35rem;
    margin-bottom: 10px;
  }
  .strength-card h4 {
    font-size: 1rem;
  }
  .strength-card p {
    font-size: 0.86rem;
    line-height: 1.8;
  }
  .strength-card p + p {
    margin-top: 10px;
  }
  .contrast-grid {
    margin-top: 30px;
    gap: 20px;
  }
  .contrast-card {
    padding: 28px 22px;
  }
  .contrast-list li {
    margin-bottom: 18px;
  }
  .contrast-list li p {
    font-size: 0.86rem;
  }
  .card-header {
    margin-bottom: 22px;
  }

  .hero-content h1 {
    font-size: 1.55rem;
  }
  .hero-badges {
    gap: 8px 10px;
    margin-bottom: 24px;
  }
  .hero-badges li {
    padding: 7px 12px;
    font-size: 0.74rem;
  }
  .workflow-step {
    padding: 20px;
    flex-direction: column;
    gap: 10px;
  }

  /* サンプルプレビュー：スマホ幅ではモックアップをひとまわり小さく */
  .sample-preview {
    margin-bottom: 40px;
  }
  .preview-browser .preview-shot-window {
    height: 170px;
  }
  .preview-phone {
    width: 76px;
    right: 14px;
    bottom: -28px;
  }
  .preview-phone .preview-shot-window {
    height: 138px;
  }
}
@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 1.38rem;
  }
}

/* ==========================================================================
   カードの3Dチルト演出（マウス追従・PCのみ、トップページの各カードで使用）
   ========================================================================== */
.contrast-card,
.term-card,
.strength-card,
.sample-card,
.plan-card,
.workflow-step,
.profile-frame {
  transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateY(0);
}
.tilt-ready {
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
}
.tilt-ready.is-tilting {
  transition:
    box-shadow 0.4s ease,
    border-color 0.3s ease;
}

/* ワークフロー：スクロール連動タイムライン進捗 */
.workflow-timeline::before {
  opacity: 0.25;
}
.timeline-fill {
  position: absolute;
  top: 5px;
  left: 20px;
  width: 2px;
  height: 0%;
  background: linear-gradient(
    to bottom,
    var(--accent) 0%,
    var(--accent-secondary) 100%
  );
  border-radius: 2px;
  z-index: 1;
}
@media (max-width: 960px) {
  .timeline-fill {
    left: 15px;
  }
}

/* セクションの区切り：背景の落ち葉アニメーションを邪魔しない、
   ごく薄い1本線だけでセクションの切り替わりが分かるようにする */
.news,
.about,
.skills,
.pricing,
.workflow,
.samples,
.contact,
.faq {
  border-top: 1px solid rgba(var(--accent-rgb), 0.14);
}

/* ==========================================================================
   FAQ（よくあるご質問）アコーディオン
   ========================================================================== */
.faq {
  padding: 120px 0;
}
.faq-list {
  max-width: 850px;
  margin: 50px auto 0 auto;
}
.faq-item {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(var(--ink-rgb), 0.04);
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.faq-item:last-child {
  margin-bottom: 0;
}
.faq-item.is-open {
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 10px 28px rgba(var(--ink-rgb), 0.08);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.6;
}
.faq-q:hover .q-text {
  color: var(--accent);
}
.q-mark {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.faq-q .q-text {
  transition: color 0.3s ease;
}
.faq-icon {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 400;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-a-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 22px;
  padding: 14px 0 20px 0;
  border-top: 1px dashed rgba(var(--accent-rgb), 0.18);
}
.a-mark {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-secondary);
  flex-shrink: 0;
  line-height: 1.6;
}
.faq-a-inner p {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 665px) {
  .faq {
    padding: 80px 0;
  }
  .faq-q {
    padding: 15px 16px;
    font-size: 0.92rem;
    gap: 10px;
  }
  .faq-a-inner {
    margin: 0 16px;
    gap: 10px;
  }
  .faq-a-inner p {
    font-size: 0.88rem;
  }
}

/* 操作精度が高い（マウス）端末のみ、より積極的な動きを付与 */
@media (hover: hover) and (pointer: fine) {
  .btn-sample {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .btn-sample .arrow {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .btn-sample:hover .arrow {
    transform: translateX(6px);
  }
}

/* 動きを抑えたいユーザーへの配慮（アクセシビリティ：トップページ専用パーツ分） */
@media (prefers-reduced-motion: reduce) {
  .hero-fade-in,
  .contrast-card,
  .term-card,
  .sample-card,
  .workflow-step,
  .profile-frame,
  .faq-a,
  .faq-icon,
  .preview-shot-window img {
    animation: none !important;
    transition: none !important;
  }
  .hero-fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}
