/*
Theme Name:   TCD GENESIS Child
Theme URI:    https://kaikyomirai-power.co.jp/
Description:  TCD GENESIS (genesis_tcd103) の子テーマ
Author:       Kaikyo Mirai Power
Template:     genesis_tcd103
Version:      1.0.0
*/

/* ============================================================
   Google Fonts
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Montserrat:wght@400;600;700;800;900&display=swap');

/* ============================================================
   テーマ干渉リセット（トップページ固定ページ ID: 365）
   DOM構造:
     body.page-id-365 > #container
       > #lp_page_header          ← タイトル画像（非表示）
       > article#page_contents
           > .post_content
               > .tcdce-body
                   > [LP HTML]
       > footer#footer             ← テーマフッター（非表示）
   ============================================================ */

/* ① LP ページヘッダー（タイトル画像エリア）を非表示 */
body.page-id-365 #lp_page_header {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ② article#page_contents の上部余白をリセット */
body.page-id-365 #page_contents {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ③ .post_content の幅制限・padding・overflow を打ち消す */
body.page-id-365 #page_contents .post_content,
body.page-id-365 #page_contents .post_content.clearfix {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  display: block !important;
}

/* ④ .tcdce-body の余白をリセット */
body.page-id-365 #page_contents .tcdce-body {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  display: block !important;
}

/* ⑧ LP内のgrid・flex要素がoverflowで切られないよう全祖先をvisibleに */
body.page-id-365 #page_contents,
body.page-id-365 #page_contents .post_content,
body.page-id-365 #page_contents .post_content.clearfix,
body.page-id-365 #page_contents .tcdce-body {
  overflow: visible !important;
}

/* ⑨ テーマのword-break: break-wordがgridに干渉しないよう打ち消す */
body.page-id-365 .lp-about-grid,
body.page-id-365 .lp-topics-list,
body.page-id-365 .lp-service-cards,
body.page-id-365 .lp-service-header-grid,
body.page-id-365 .lp-footer-top {
  word-break: normal !important;
  word-wrap: normal !important;
}

/* ⑤ テーマフッターを非表示（LP独自フッターを使用するため） */
body.page-id-365 #footer {
  display: none !important;
}

/* ⑥ テーマヘッダーの z-index を下げて LP ヘッダーの下に隠す */
body.page-id-365 #header {
  z-index: 100 !important;
}

/* ⑦ テーマの body font-size 上書きを打ち消す */
body.page-id-365 .lp-top {
  font-size: 16px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
.lp-top *, .lp-top *::before, .lp-top *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.lp-top {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}
.lp-top a { text-decoration: none; color: inherit; }
.lp-top img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   HEADER
   ============================================================ */
.lp-hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, box-shadow 0.4s;
}
.lp-hdr.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.lp-hdr-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lp-hdr-logo-mark {
  width: 38px; height: 38px;
}
.lp-hdr-logo-mark svg { width: 100%; height: 100%; }
.lp-hdr-logo-texts { line-height: 1.2; }
.lp-hdr-logo-ja {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  transition: color 0.4s;
  letter-spacing: 0.02em;
}
.lp-hdr-logo-en {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.4s;
}
.lp-hdr.scrolled .lp-hdr-logo-ja { color: #062a4e; }
.lp-hdr.scrolled .lp-hdr-logo-en { color: #999; }
.lp-hdr-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.lp-hdr-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.lp-hdr-nav a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.lp-hdr.scrolled .lp-hdr-nav a { color: #555; }
.lp-hdr.scrolled .lp-hdr-nav a:hover { color: #062a4e; background: #f0f5f5; }
.lp-hdr-nav .lp-hdr-cta {
  background: #0573ca;
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 3px;
  margin-left: 8px;
  transition: background 0.2s !important;
}
.lp-hdr-nav .lp-hdr-cta:hover { background: #0466a8 !important; }
.lp-hdr.scrolled .lp-hdr-nav .lp-hdr-cta { color: #fff !important; }

/* ============================================================
   HERO
   ============================================================ */
.lp-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.lp-hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.lp-hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.9);
}
.lp-hero-video-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #021428 0%, #083060 35%, #0d5a9a 65%, #0a3d7a 100%);
}
.lp-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(4,24,24,0.75) 0%, rgba(4,24,24,0.2) 60%, transparent 100%),
    linear-gradient(to top, rgba(4,24,24,0.6) 0%, transparent 50%);
}
.lp-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px 80px;
}
.lp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.lp-hero-eyebrow-line {
  width: 32px; height: 1px;
  background: #54c6cd;
}
.lp-hero-eyebrow-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #54c6cd;
  text-transform: uppercase;
}
.lp-hero h1 {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.lp-hero-h1-accent {
  display: block;
  color: #77dcb8;
}
.lp-hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 2;
  max-width: 480px;
  margin-bottom: 40px;
}
.lp-hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.lp-hero-btn-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #062a4e;
  font-size: 14px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.2s;
}
.lp-hero-btn-main:hover { background: #e8f4fc; transform: translateY(-2px); }
.lp-hero-btn-main svg { width: 16px; height: 16px; }
.lp-hero-btn-sub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.lp-hero-btn-sub:hover { color: #fff; border-color: #fff; }
.lp-hero-scroll {
  position: absolute;
  bottom: 32px;
  right: 48px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.lp-hero-scroll-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
  writing-mode: vertical-rl;
}
.lp-hero-scroll-bar {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.lp-hero-scroll-bar::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0573ca;
  animation: lp-scrollbar 2s ease-in-out infinite;
}
@keyframes lp-scrollbar {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* ============================================================
   MILESTONE BAR
   ============================================================ */
.lp-milestone-bar {
  background: #062a4e;
  padding: 0 48px;
}
.lp-milestone-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}
.lp-milestone-item {
  flex: 1;
  padding: 24px 32px;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 20px;
}
.lp-milestone-item:last-child { border-right: none; }
.lp-milestone-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: #0573ca;
  line-height: 1;
  white-space: nowrap;
}
.lp-milestone-num span {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-left: 2px;
}
.lp-milestone-text {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}
.lp-milestone-text strong {
  display: block;
  font-size: 13px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 2px;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.lp-sec { padding: 100px 48px; }
.lp-sec-inner { max-width: 1100px; margin: 0 auto; }
.lp-sec-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #0573ca;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.lp-sec-label::before {
  content: '';
  width: 24px; height: 1px;
  background: #0573ca;
}
.lp-sec-h2 {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 900;
  color: #062a4e;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.lp-sec-lead {
  font-size: 15px;
  color: #555;
  line-height: 2;
  max-width: 600px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.lp-about-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 80px;
  align-items: center;
}
.lp-about-text-wrap { order: 1; }
.lp-about-visual { order: 2; }
.lp-about-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  font-size: 13px;
  font-weight: 700;
  color: #062a4e;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #0573ca;
  padding-bottom: 4px;
  transition: gap 0.2s, color 0.2s;
}
.lp-about-cta:hover { gap: 16px; color: #0573ca; }
.lp-about-cta svg { width: 14px; height: 14px; }
.lp-about-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 140px;
  gap: 10px;
}
.lp-about-collage-img {
  border-radius: 4px;
  overflow: hidden;
  background: #b8e8f5;
}
.lp-about-collage-img:first-child {
  grid-row: span 2;
  background: linear-gradient(160deg, #0a4a80, #062a4e);
}
.lp-about-collage-img:nth-child(2) {
  background: linear-gradient(160deg, #1a6ab0, #0a4a80);
}
.lp-about-collage-img:nth-child(3) {
  background: linear-gradient(160deg, #a8f0d0, #54c6cd);
}
.lp-about-collage-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}

/* ============================================================
   TOPICS
   ============================================================ */
.lp-topics-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}
.lp-topics-more {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #0573ca;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #0573ca;
  padding-bottom: 2px;
  transition: gap 0.2s;
}
.lp-topics-more:hover { gap: 14px; }
.lp-topics-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.lp-topic-item {
  background: #fff;
  padding: 28px 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: background 0.2s;
}
.lp-topic-item:hover { background: #eef7fd; }
.lp-topic-item:first-child { border-radius: 4px 0 0 4px; }
.lp-topic-item:last-child { border-radius: 0 4px 4px 0; }
.lp-topic-thumb {
  width: 72px; height: 72px;
  border-radius: 4px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0a4a80, #062a4e);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px; color: rgba(255,255,255,0.3); letter-spacing: 0.1em;
}
.lp-topic-body { flex: 1; min-width: 0; }
.lp-topic-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.lp-topic-cat {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.15em;
  color: #0573ca;
  background: rgba(5,115,202,0.1);
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
}
.lp-topic-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  color: #aaa;
  letter-spacing: 0.05em;
}
.lp-topic-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.6;
}

/* ============================================================
   SERVICE
   ============================================================ */
.lp-service-header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 48px;
}
.lp-service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
.lp-service-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #f0f5fb;
  cursor: pointer;
  border: 1px solid #d0e0f0;
}
.lp-service-card-bg { position: absolute; inset: 0; }
.lp-service-card-bg-1 {
  background: linear-gradient(160deg, #0a4a80 0%, #0573ca 100%);
  opacity: 0.9;
}
.lp-service-card-bg-2 {
  background: linear-gradient(160deg, #3ab1d9 0%, #0573ca 100%);
  opacity: 0.9;
}
.lp-service-card-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; color: rgba(255,255,255,0.2); letter-spacing: 0.15em;
}
.lp-service-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(2,20,40,0.85) 0%, rgba(2,20,40,0.3) 60%, transparent 100%);
}
.lp-service-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
}
.lp-service-card-en {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.2em;
  color: #77dcb8;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.lp-service-card-title {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 14px;
  white-space: nowrap;
}
.lp-service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s, gap 0.2s;
}
.lp-service-card-link::before { content: '→'; color: #77dcb8; }
.lp-service-card-link:hover { color: #fff; gap: 10px; }
.lp-service-dl {
  text-align: center;
  padding-top: 8px;
}
.lp-service-dl a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, #0573ca 0%, #3ab1d9 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 18px 48px;
  letter-spacing: 0.06em;
  transition: background 0.2s, transform 0.2s;
}
.lp-service-dl a:hover { background: #0a4a80; transform: translateY(-2px); }

/* ============================================================
   FOOTER
   ============================================================ */
.lp-footer {
  background: #021428;
  padding: 56px 48px 28px;
}
.lp-footer-inner { max-width: 1100px; margin: 0 auto; }
.lp-footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  align-items: start;
}
.lp-footer-logo {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.lp-footer-logo-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #0a4a80, #0573ca);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lp-footer-logo-mark svg { width: 18px; height: 18px; }
.lp-footer-logo-name {
  font-size: 14px; font-weight: 700; color: #fff;
}
.lp-footer-addr {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.9;
}
.lp-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.lp-footer-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.lp-footer-nav a:hover { color: #fff; }
.lp-footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.lp-footer-copy {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
}
.lp-footer-dl a {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  display: flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.lp-footer-dl a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .lp-hdr { padding: 0 20px; height: 60px; }
  .lp-hdr-nav { display: none; }
  .lp-hero-content { padding: 0 20px 64px; }
  .lp-hero-scroll { display: none; }
  .lp-milestone-bar { padding: 0 20px; }
  .lp-milestone-bar-inner { flex-direction: column; }
  .lp-milestone-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
  }
  .lp-milestone-item:last-child { border-bottom: none; }
  .lp-sec { padding: 64px 20px; }
  .lp-about-grid { grid-template-columns: 1fr; gap: 40px; }
  .lp-about-visual { order: -1; }
  .lp-about-collage { grid-template-rows: 160px 110px; }
  .lp-topics-list { grid-template-columns: 1fr; }
  .lp-topic-item:first-child { border-radius: 4px 4px 0 0; }
  .lp-topic-item:last-child { border-radius: 0 0 4px 4px; }
  .lp-service-header-grid { grid-template-columns: 1fr; gap: 20px; }
  .lp-service-cards { grid-template-columns: 1fr; }
  .lp-footer { padding: 40px 20px 24px; }
  .lp-footer-top { grid-template-columns: 1fr; gap: 32px; }
  .lp-footer-nav {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .lp-hdr { padding: 0 28px; }
  .lp-sec { padding: 80px 28px; }
  .lp-about-grid { gap: 48px; }
  .lp-service-header-grid { gap: 36px; }
}
