/* ============================================================
   top-page.css — ガイネット トップページ 追加セクション専用
   既存の contentsstyle.css は変更せず、このファイルで追加分を管理。
   header.php の <head> 内に以下を追記してください：
   <link rel="stylesheet" href="<?=URL;?>css/top-page.css">
   ※ is_front_page() で出し分ける場合は functions.php で制御
   ============================================================ */

/* ── 変数（既存テーマのカラーに合わせる） ── */
:root {
  --top-red:       #e63c2f;
  --top-red-light: #fde8e7;
  --top-red-dark:  #c0302a;
  --top-text:      #1a1a1a;
  --top-text-sub:  #5a5a5a;
  --top-border:    #e0e0e0;
  --top-bg-gray:   #f7f6f4;
  --top-bg-dark:   #1a1a1a;
}

/* ── 共通インナー ── */
.top-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 共通セクション見出し ── */
.top-section-en {
  display: block;
  font-family: 'Anta', sans-serif;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--top-red);
  margin-bottom: 10px;
  text-align: center;
}
.top-section-ttl {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  color: var(--top-text);
  line-height: 1.6;
  margin-bottom: 16px;
  text-align: center;
  font-family: 'Noto Serif JP', serif;
}
.top-section-desc,
.top-section-body {
  font-size: 14px;
  color: var(--top-text-sub);
  line-height: 2;
  text-align: center;
  margin-bottom: 40px;
}

/* ── ボタン ── */
.top-btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-decoration: none;
  border-radius: 2px;
  transition: background .2s, color .2s, opacity .2s;
}
.top-btn--outline {
  background: transparent;
  color: var(--top-text);
  border: 1.5px solid var(--top-text);
}
.top-btn--outline:hover { background: var(--top-text); color: #fff; }
.top-btn--ghost {
  background: transparent;
  color: var(--top-red);
  border: 1.5px solid var(--top-red);
}
.top-btn--ghost:hover { background: var(--top-red); color: #fff; }
.top-btn--white {
  background: #fff;
  color: var(--top-red);
  border: 1.5px solid #fff;
}
.top-btn--white:hover { opacity: .88; }
.top-more { text-align: center; margin-top: 40px; }

/* ============================================================
   HERO 追加テキスト
   ============================================================ */
.top-area-caption {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  text-align: center;
  line-height: 2;
  margin-top: 24px;
  letter-spacing: .05em;
}

/* ============================================================
   CONCEPT
   ============================================================ */
.top-concept {
  padding: 80px 0;
  background: var(--top-bg-dark);
  text-align: center;
}
.top-concept .top-section-en  { color: rgba(255,255,255,.45); }
.top-concept .top-section-ttl { color: #fff; }
.top-concept .top-section-body {
  color: rgba(255,255,255,.72);
  margin-bottom: 36px;
}

/* ============================================================
   WORKS
   ============================================================ */
.top-works {
  padding: 120px 0;
  background: var(--top-bg-gray);
}
.top-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 0;
}
.top-works-card {
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
}
.top-works-card a {
  display: block;
  text-decoration: none;
  color: var(--top-text);
}
.top-works-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: opacity .25s;
}
.top-works-card a:hover img { opacity: .85; }
.top-works-card-title {
  font-size: 13px;
  padding: 12px 14px;
  line-height: 1.6;
  border-top: 1px solid var(--top-border);
}
@media (max-width: 768px) {
  .top-works-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .top-works-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   AREA（ローカルSEO）
   ============================================================ */
.top-area {
  padding: 120px 0;
  background: #fff;
}
.top-area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.top-area-card {
  border: 1.5px solid var(--top-border);
  border-top: 3px solid var(--top-red);
  border-radius: 2px;
  padding: 28px 24px;
}
.top-area-card-ttl {
  font-size: 18px;
  font-weight: 500;
  color: var(--top-text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Noto Serif JP', serif;
}
.top-area-pin {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--top-red);
  flex-shrink: 0;
}
.top-area-card-body {
  font-size: 14px;
  color: var(--top-text-sub);
  line-height: 1.9;
  margin-bottom: 16px;
}
.top-area-mail {
  font-size: 13px;
  color: var(--top-red);
  text-decoration: none;
}
.top-area-mail:hover { text-decoration: underline; }
.top-area-other {
  background: var(--top-bg-gray);
  border-radius: 2px;
  padding: 18px 24px;
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.top-area-other-label {
  font-size: 12px;
  color: var(--top-text-sub);
  white-space: nowrap;
}
.top-area-other-list {
  display: flex;
  gap: 6px 20px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--top-text-sub);
}
@media (max-width: 640px) {
  .top-area-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   BLOG
   ============================================================ */
.top-blog {
  padding: 80px 0;
  background: var(--top-bg-gray);
}
.top-blog-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--top-border);
  margin-bottom: 0;
}
.top-blog-item {
  border-bottom: 1px solid var(--top-border);
}
.top-blog-item a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 4px;
  text-decoration: none;
  color: var(--top-text);
  transition: opacity .2s;
}
.top-blog-item a:hover { opacity: .65; }
.top-blog-date {
  font-size: 12px;
  color: var(--top-text-sub);
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Anta', sans-serif;
  letter-spacing: .05em;
}
.top-blog-item-ttl {
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   FAQ
   ============================================================ */
.top-faq {
  padding: 80px 0;
  background: #fff;
}
.top-faq .top-inner { max-width: 800px; }
.top-faq-list {
  border-top: 1px solid var(--top-border);
}
.top-faq-item {
  border-bottom: 1px solid var(--top-border);
  padding: 20px 0;
}
.top-faq-q {
  font-size: 15px;
  font-weight: 500;
  color: var(--top-text);
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  line-height: 1.6;
}
.top-faq-q::before {
  content: 'Q';
  color: var(--top-red);
  font-weight: 700;
  font-family: 'Anta', sans-serif;
  flex-shrink: 0;
  font-size: 16px;
}
.top-faq-a {
  font-size: 14px;
  color: var(--top-text-sub);
  line-height: 1.9;
  padding-left: 28px;
}

/* ============================================================
   CTA
   ============================================================ */
.top-cta {
  padding: 80px 0;
  background: var(--top-red);
  text-align: center;
}
.top-cta-ttl {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.6;
  font-family: 'Noto Serif JP', serif;
}
.top-cta-body {
  font-size: 14px;
  color: rgba(255,255,255,.85);
  line-height: 1.9;
  margin-bottom: 32px;
}

/* ============================================================
   top-bnr — 中央寄せ・バランス調整
   既存の contentsstyle.css を上書きします
   ============================================================ */
.top-bnr {
  padding: 10px 24px 90px;
  background: #fff;
}
.top-bnr ul {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1200px;
  flex-wrap: wrap;
  gap: 0;
}
.top-bnr li {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 30%;
  padding: 0 10px;
  position: relative;
}

@media (max-width: 768px) {
  .top-bnr {
    padding: 40px 16px 44px;
  }
  .top-bnr li {
    width: 33.333%;
    padding: 16px 12px;
  }
  .top-bnr li::after {
    display: none;
  }
}
@media (max-width: 480px) {
  .top-bnr li {
    width: 50%;
  }
  .top-bnr .ih-item.circle {
    width: 84px;
    height: 84px;
  }
}
