/*
  老田硝子店 - 最小構成用スタイル
  目的
    - Tailwindの補助として、軽量なアニメーションと共通効果を提供
    - HTMLコメントに連動したシンプルな命名
*/

:root {
  --brand-600: #0284c7; /* sky-600 */
  --brand-700: #0369a1; /* sky-700 */
}

/* ヒーロー背景のフェードインと画像の軽いズームアウト */
.hero-img {
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 900ms ease, transform 1200ms ease;
  width: 100%;
  height: clamp(420px, 72vh, 920px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left center; /* テキストを含む左側を優先表示 */
  display: block;
}
.hero-img.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ヒーローテキストのフェードアップ */
.hero-text {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms ease 150ms, transform 700ms ease 150ms;
}
.hero-text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* カードやボタンの軽い持ち上がり（ホバー時） */
.hover-float { transition: transform 200ms ease, box-shadow 200ms ease; }
.hover-float:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 24px rgba(2,132,199,0.12); }

/* 入力フォーカス時のわずかなシャドウ */
.focus-elevate:focus {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(2,132,199,0.25),
    0 4px 12px rgba(0,0,0,0.06);
}

/* セクション背景の淡いグラデーション（会社概要などに使用） */
.bg-gradient-soft {
  background: linear-gradient(180deg, rgba(14,165,233,0.08), rgba(14,165,233,0));
}

/* モバイル下部CTAの自然な表示 */
.fade-in { opacity: 0; transition: opacity 700ms ease; }
.fade-in.is-visible { opacity: 1; }

/* =========================
   Hero Typography Tuning
   - Improve readability and focus without touching HTML
   ========================= */

/* Enhance hero card visibility and spacing */
.hero-text {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 1.5rem !important; /* ~p-6 but a touch tighter on mobile */
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.6);
  max-width: 40rem;
}
@media (min-width: 640px) { /* sm */
  .hero-text { padding: 2rem !important; max-width: 48rem; }
}
@media (min-width: 768px) { /* md */
  .hero-text { padding: 2.5rem !important; }
}

/* Headline scale and rhythm */
.hero-text h1 {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-size: clamp(1.75rem, 2.1vw + 1rem, 2.9rem); /* 28–46px */
}
@media (min-width: 768px) {
  .hero-text h1 { font-size: 2.75rem; }
}
@media (min-width: 1024px) {
  .hero-text h1 { font-size: 2.9rem; }
}

/* Lead sentence: slightly larger with generous line-height */
.hero-text p {
  margin-top: 1rem !important;
  font-size: 1rem;            /* 16px */
  line-height: 1.75;          /* comfortable reading */
  max-width: 42rem;
  color: #334155;             /* close to slate-700 */
}
@media (min-width: 768px) {
  .hero-text p { font-size: 1.125rem; } /* 18px */
}

/* CTAs: make hit area and type a touch larger */
.hero-text a {
  padding: 0.75rem 1.25rem !important; /* ~px-5 py-3 */
  font-weight: 500;
  font-size: 0.95rem;
}
@media (min-width: 768px) {
  .hero-text a { font-size: 1rem; }
}

/* Hero image height fine-tuning */
@media (min-width: 768px) {
  .hero-img { height: clamp(520px, 78vh, 1040px); }
}
