/* ============================================
   Custom Template: tgarage（T-1.0 仕様）
   apps/tgarage/app/globals.css をベースに
   [data-template="custom-tgarage"] スコープへ閉じ込め
   ============================================ */

[data-template="custom-tgarage"] {
  --color-primary: #1a1a1a;
  --color-secondary: #2a2a2a;
  --color-accent: #ff6600;
  --color-accent-alt: #ff8533;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f5;
  --color-bg-dark: #1a1a1a;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-white: #ffffff;
  --color-border: #e5e5e5;
  --color-line: #06c755;

  font-size: 18px;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
}

[data-template="custom-tgarage"] h1,
[data-template="custom-tgarage"] h2,
[data-template="custom-tgarage"] h3,
[data-template="custom-tgarage"] h4,
[data-template="custom-tgarage"] h5,
[data-template="custom-tgarage"] h6 {
  font-weight: 800;
}

@keyframes tg-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── ロゴ：ページロード時に軽くフェードイン → 11 秒に 1 回 軽くズーム ── */
@keyframes tg-logo-fade-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes tg-logo-zoom {
  0%, 90%, 100% { transform: scale(1); }
  95%          { transform: scale(1.06); }
}
[data-template="custom-tgarage"] .tg-logo {
  animation:
    tg-logo-fade-in 0.9s ease-out 0.05s both,
    tg-logo-zoom 11s ease-in-out 1.5s infinite;
}

/* ── 見出し：下からスライドで出現 ── */
@keyframes tg-slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
[data-template="custom-tgarage"] .section-title-en,
[data-template="custom-tgarage"] .section-title-ja,
[data-template="custom-tgarage"] .tg-heading-slide {
  animation: tg-slide-up 0.8s ease-out both;
}
/* 対応ブラウザではスクロール連動でビューポート進入時に発火 */
@supports (animation-timeline: view()) {
  [data-template="custom-tgarage"] .section-title-en,
  [data-template="custom-tgarage"] .section-title-ja,
  [data-template="custom-tgarage"] .tg-heading-slide {
    animation-timeline: view();
    animation-range: entry 0% cover 25%;
  }
}
/* ── サービス詳細ページ：PC のみ本文・料金表など全テキストを +2px ── */
@media (min-width: 1024px) {
  [data-template="custom-tgarage"] .tg-service-detail              { font-size: 1.125rem; } /* 16 → 18 */
  [data-template="custom-tgarage"] .tg-service-detail .text-xs     { font-size: 0.875rem; } /* 12 → 14 */
  [data-template="custom-tgarage"] .tg-service-detail .text-sm     { font-size: 1rem; }     /* 14 → 16 */
  [data-template="custom-tgarage"] .tg-service-detail .text-base   { font-size: 1.125rem; } /* 16 → 18 */
  [data-template="custom-tgarage"] .tg-service-detail .text-lg     { font-size: 1.25rem; }  /* 18 → 20 */
}

@media (prefers-reduced-motion: reduce) {
  [data-template="custom-tgarage"] .tg-logo,
  [data-template="custom-tgarage"] .section-title-en,
  [data-template="custom-tgarage"] .section-title-ja,
  [data-template="custom-tgarage"] .tg-heading-slide {
    animation: none;
  }
}

[data-template="custom-tgarage"] .section-padding {
  padding: 60px 20px;
}
@media (min-width: 1024px) {
  [data-template="custom-tgarage"] .section-padding {
    padding: 100px 40px;
  }
}

[data-template="custom-tgarage"] .container-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 1024px) {
  [data-template="custom-tgarage"] .container-main {
    padding: 0 40px;
  }
}

[data-template="custom-tgarage"] .section-title-en {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
}

[data-template="custom-tgarage"] .section-title-ja {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 4px;
}
@media (min-width: 1024px) {
  [data-template="custom-tgarage"] .section-title-ja {
    font-size: 2rem;
  }
}

/* ── ブログ記事本文スタイル ───────────────────────────── */
[data-template="custom-tgarage"] .article-body h1,
[data-template="custom-tgarage"] .article-body h2,
[data-template="custom-tgarage"] .article-body h3,
[data-template="custom-tgarage"] .article-body h4 {
  color: var(--color-primary);
  margin-top: 2em;
  margin-bottom: 0.6em;
  line-height: 1.4;
}
[data-template="custom-tgarage"] .article-body h1 {
  font-size: 1.5rem;
  font-weight: 800;
}
@media (min-width: 1024px) {
  [data-template="custom-tgarage"] .article-body h1 {
    font-size: 1.75rem;
  }
}
[data-template="custom-tgarage"] .article-body h2 {
  font-size: 1.25rem;
  border-left: 4px solid var(--color-accent);
  padding-left: 0.75rem;
}
[data-template="custom-tgarage"] .article-body h3 {
  font-size: 1.0625rem;
}
[data-template="custom-tgarage"] .article-body p { margin-bottom: 1.2em; }
[data-template="custom-tgarage"] .article-body ul,
[data-template="custom-tgarage"] .article-body ol {
  margin-bottom: 1.2em;
  padding-left: 1.5em;
}
[data-template="custom-tgarage"] .article-body li { margin-bottom: 0.4em; }
[data-template="custom-tgarage"] .article-body blockquote {
  border-left: 4px solid var(--color-border);
  padding: 0.5em 1em;
  margin: 1.5em 0;
  background: var(--color-bg-alt);
  border-radius: 0 8px 8px 0;
  color: var(--color-text-light);
}
[data-template="custom-tgarage"] .article-body code {
  background: var(--color-bg-alt);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
  font-family: monospace;
}
[data-template="custom-tgarage"] .article-body pre {
  background: #1a1a1a;
  color: #e5e5e5;
  padding: 1em;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.5em;
}
[data-template="custom-tgarage"] .article-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
[data-template="custom-tgarage"] .article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1em 0;
}
[data-template="custom-tgarage"] .article-body a {
  color: var(--color-accent);
  text-decoration: underline;
}
[data-template="custom-tgarage"] .article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  font-size: 0.875rem;
}
[data-template="custom-tgarage"] .article-body th,
[data-template="custom-tgarage"] .article-body td {
  border: 1px solid var(--color-border);
  padding: 0.5em 0.75em;
  text-align: left;
}
[data-template="custom-tgarage"] .article-body th {
  background: var(--color-bg-alt);
  font-weight: 700;
}
[data-template="custom-tgarage"] .article-body hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2em 0;
}
