/*
 * UIZU-ART トップ固有CSS（ヒーロー・新着情報・施工事例・選ばれる理由）
 *
 * 移植元：uizu-art-mockup_20260702/css/style.css
 * - is_front_page()（フェーズ4以降は pickup テンプレートも）でのみ読み込む
 * - 変数・ヘッダー・フッター・.section-padding／.bg-gray／.container は site.css
 * - Lightning（Bootstrap）の汎用クラス（.container-sm／.text-center／.mt-4 等）と衝突しないよう
 *   すべて .front-page（front-page.php の <main>）配下に限定。!important は使わない
 * - モックアップで未使用のルール（message-section・drone-banner・works-filter・filter-btn・btn・hero-message・mt-5）は移植しない
 */

/* ==========================================================================
   Reset & Base（.front-page 配下のみ）
   ========================================================================== */
.front-page,
.front-page *,
.front-page *::before,
.front-page *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.front-page {
  display: block;
  font-family: var(--font-sans);
  color: var(--color-text-main);
  line-height: 1.6;
  letter-spacing: 0.05em;
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

.front-page h1,
.front-page h2,
.front-page h3,
.front-page h4,
.front-page h5,
.front-page h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.4;
}

.front-page a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.front-page a:hover {
  color: var(--color-accent-gold);
}

.front-page ul {
  list-style: none;
}

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

/* ==========================================================================
   Layout / Utilities
   ========================================================================== */
/* 上の .front-page * リセット（後読み・同詳細度）に消されないよう、site.css の .section-padding を再指定 */
.front-page .section-padding {
  padding: 100px 0;
}

/* Bootstrap の .container-sm（ブレークポイント別 max-width）を上書き */
.front-page .container.container-sm {
  max-width: var(--max-width-sm);
}

.front-page .text-center {
  text-align: center;
}

.front-page .mt-4 {
  margin-top: 2rem;
}

/* Section Title */
.front-page .section-title {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-primary);
  position: relative;
}

.front-page .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--color-accent-gold);
  margin: 1rem auto 0;
}

.front-page .text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 0.2rem;
}

.front-page .text-link:hover {
  color: var(--color-accent-gold);
  border-bottom-color: var(--color-accent-gold);
}

.front-page .sp-only {
  display: none;
}

/* ==========================================================================
   2. Hero Video Section
   ========================================================================== */
.front-page .hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.front-page .hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 動画の読込前・未配置時に白文字が読めるよう下地を敷く（モックアップには無い） */
  background-color: var(--color-primary);
}

/* SP 縦画面でも余白を出さず全面を覆う（handoff 課題） */
.front-page .hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.front-page .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Lightened overlay: bright at top, only the lower area (where text sits)
     is gently darkened to preserve readability of the white catch/subcopy. */
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.10) 0%,
      rgba(0, 0, 0, 0.15) 45%,
      rgba(0, 0, 0, 0.35) 100%);
}

.front-page .hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--color-white);
  padding: 0 20px;
  margin-top: var(--header-height);
  /* Offset for header */
}

.front-page .hero-catchphrase {
  font-size: 4rem;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  animation: uizuFadeUp 1s ease 0.5s both;
}

.front-page .hero-subcatch {
  font-size: 1.25rem;
  font-family: var(--font-sans);
  letter-spacing: 0.15em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
  animation: uizuFadeUp 1s ease 0.8s both;
}

.front-page .scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-white);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  animation: uizuBounce 2s infinite;
}

.front-page .scroll-down i {
  margin-top: 10px;
  font-size: 1.2rem;
}

/* keyframes 名は Lightning／プラグインとの衝突を避けて接頭辞付き */
@keyframes uizuFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes uizuBounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }

  40% {
    transform: translateY(-15px) translateX(-50%);
  }

  60% {
    transform: translateY(-7px) translateX(-50%);
  }
}

/* ==========================================================================
   3. Features Section
   ========================================================================== */
.front-page .features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.front-page .feature-card {
  display: block;
  background-color: var(--color-white);
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.front-page .feature-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

.front-page .feature-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  /* Force minimum align height */
  font-size: 3rem;
  color: var(--color-accent-gold);
  margin-bottom: 1.5rem;
}

.front-page .feature-icon-img {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  /* Increase container height to allow larger image */
  margin-bottom: 1.5rem;
}

.front-page .feature-icon-img img {
  height: 60px;
  /* Increase height to visually match the text icon size */
  width: auto;
  object-fit: contain;
  /* CSS Filter to approximate the gold color #d4af37 for transparent PNGs */
  filter: invert(72%) sepia(21%) saturate(1478%) hue-rotate(9deg) brightness(97%) contrast(92%);
}

.front-page .feature-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  /* Keep Japanese words intact; only break at meaningful points (<wbr>). */
  word-break: keep-all;
  line-break: strict;
  /* Reserve 2 lines so all three headings align top-to-bottom. */
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.front-page .feature-desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  text-align: left;
}

/* ==========================================================================
   4. Works Section
   ========================================================================== */
.front-page .works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.front-page .work-item {
  position: relative;
  overflow: hidden;
  display: block;
}

.front-page .work-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.front-page .work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Always-on category band, drawn in CSS (decoupled from the image). */
.front-page .work-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(17, 24, 39, 0.82);
  /* KINOL navy, translucent */
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0.6rem 1rem;
  z-index: 2;
  /* 1行固定・長い名前は末尾を「…」で省略（全文はカードの title 属性。instructions/20260926-001） */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hover embellishments — gated to fine-pointer (mouse) devices only.
   ホバーは写真の拡大のみ。帯（.work-label）は常時表示のまま
   （物件名の overlay は廃止：instructions/20260926-001 0-A-1・2A-2/3） */
@media (hover: hover) and (pointer: fine) {
  .front-page .work-item:hover .work-image img {
    transform: scale(1.1);
  }
}

/* ==========================================================================
   5. News Section
   ========================================================================== */
.front-page .news-list {
  border-top: 1px solid var(--color-border);
}

.front-page .news-item {
  border-bottom: 1px solid var(--color-border);
}

.front-page .news-item a {
  display: flex;
  align-items: center;
  padding: 1.5rem 1rem;
  transition: var(--transition);
}

.front-page .news-item a:hover {
  background-color: rgba(212, 175, 55, 0.05);
  /* Very light gold */
}

.front-page .news-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 250px;
  flex-shrink: 0;
}

.front-page .news-meta time {
  font-family: 'Times New Roman', Times, serif;
  /* Usually numbers look good in serifs or specific fonts */
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.front-page .news-cat {
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  color: var(--color-white);
  font-weight: 500;
  text-align: center;
  min-width: 80px;
}

.front-page .cat-notice {
  background-color: var(--color-secondary);
}

.front-page .cat-works {
  background-color: var(--color-accent-gold);
}

.front-page .cat-status {
  background-color: var(--color-accent-red);
}

.front-page .news-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  margin-top: 0;
  flex-grow: 1;
  color: var(--color-text-main);
}

.front-page .news-item a:hover .news-title {
  color: var(--color-accent-gold);
}

/* ==========================================================================
   6. Pickup Page（page-templates/pickup.php・要望③）
   グリッドとカードは 4. Works Section を流用し、差分だけここに書く
   ========================================================================== */
/* 見出し上の余白：固定ヘッダー分はスペーサー（site.css .uizu-header-spacer）で下げ済みのため、
   トップ用の .section-padding（上 100px）を詰めて下層のタイトル帯の文字位置（約 3rem）に揃える */
.front-page.pickup-page .section-padding {
  padding-top: 3rem;
}

.front-page .pickup-title__sub {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
}

.front-page .pickup-intro {
  max-width: var(--max-width-sm);
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--color-text-light);
}

.front-page .pickup-intro p + p {
  margin-top: 1em;
}

.front-page .pickup-noimage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: var(--color-gray-bg);
  color: #aaaaaa;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}

.front-page .pickup-video {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background-color: var(--color-accent-red);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  pointer-events: none;
}

.front-page .pickup-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  padding: 0.6rem 0.25rem 0;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.front-page .pickup-meta time {
  font-family: 'Times New Roman', Times, serif;
}

.front-page .pickup-empty {
  color: var(--color-text-light);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media screen and (max-width: 992px) {
  .front-page .hero-catchphrase {
    font-size: 3rem;
  }

  .front-page .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .front-page .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .front-page .sp-only {
    display: block;
  }

  .front-page .hero-catchphrase {
    font-size: 2.25rem;
  }

  .front-page .hero-subcatch {
    font-size: 1rem;
  }

  .front-page .features-grid {
    grid-template-columns: 1fr;
  }

  .front-page .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .front-page .news-item a {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .front-page .news-meta {
    width: 100%;
  }
}
