/*
 Theme Name:   たけこし企画 Astra Child
 Theme URI:    https://k-takekoshi.com
 Description:  株式会社たけこし企画 公式サイト（Astra子テーマ）
 Author:       株式会社たけこし企画
 Template:     astra
 Version:      1.0.0
 Text Domain:  takekoshi-child
*/

/* =============================================
   CSS CUSTOM PROPERTIES
============================================= */
:root {
  --navy-dark:  #0A1E35;
  --navy:       #1B3A5C;
  --navy-light: #2B5A8A;
  --gold:       #C8A84B;
  --gold-light: #E8C96B;
  --white:      #FFFFFF;
  --off-white:  #F4F7FA;
  --gray-light: #E8EDF3;
  --gray:       #8A9BB0;
  --text-dark:  #1A2535;
  --text-gray:  #5A6B7D;
  --line-green: #00B900;
  --font-ja:    'Noto Sans JP', sans-serif;
  --font-en:    'Montserrat', sans-serif;
  --transition: all 0.3s ease;
  --shadow:     0 4px 20px rgba(10,30,53,0.12);
  --shadow-lg:  0 8px 40px rgba(10,30,53,0.22);
  --radius:     8px;
}

/* =============================================
   RESET & BASE（Astraのデフォルトを上書き）
============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ja) !important;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Astra デフォルト要素を非表示にする */
#masthead,
.ast-above-header-wrap,
.ast-below-header-wrap,
#colophon,
.ast-footer-overlay { display: none !important; }

/* =============================================
   UTILITIES
============================================= */
.tk-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.tk-section { padding: 88px 0; }
.bg-off-white { background: var(--off-white); }
.bg-navy { background: var(--navy-dark); }

.section-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.35;
  margin-bottom: 16px;
}
.section-title--white { color: var(--white); }
.section-desc {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.85;
}
.text-center { text-align: center; }
.text-center .section-desc { max-width: 540px; margin: 0 auto; }

/* =============================================
   BUTTONS
============================================= */
.tk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ja);
  font-weight: 700;
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-dark) !important;
  padding: 15px 32px;
  font-size: 15px;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,168,75,0.4); }

.btn-outline-white {
  background: transparent;
  color: var(--white) !important;
  padding: 15px 32px;
  font-size: 15px;
  border: 2px solid rgba(255,255,255,0.55);
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.1); transform: translateY(-2px); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy) !important;
  padding: 13px 36px;
  font-size: 14px;
  border: 2px solid var(--navy);
  border-radius: 4px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white) !important; }

.btn-line {
  background: var(--line-green);
  color: var(--white) !important;
  padding: 17px 48px;
  font-size: 16px;
  border-radius: 50px;
  box-shadow: 0 4px 18px rgba(0,185,0,0.38);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  transition: var(--transition);
}
.btn-line:hover { background: #00A000; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,185,0,0.48); }

.btn-line-sm {
  background: var(--line-green);
  color: var(--white) !important;
  padding: 10px 18px;
  font-size: 12px;
  border-radius: 50px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-line-sm:hover { background: #00A000; }

/* =============================================
   HEADER
============================================= */
.tk-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10,30,53,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(200,168,75,0.2);
  box-shadow: none;
  transition: box-shadow 0.3s ease;
}
.tk-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }

.tk-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}
.tk-logo { display: flex; flex-direction: column; gap: 2px; }
.tk-logo-en {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 3.5px;
  color: var(--gold);
  text-transform: uppercase;
}
.tk-logo-ja { font-size: 16px; font-weight: 700; color: var(--white); }
.tk-logo:hover { opacity: 0.85; }

.tk-nav-wrap { display: flex; align-items: center; gap: 6px; }
.tk-nav { display: flex; gap: 2px; }
.tk-nav a {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.78) !important;
  padding: 8px 12px;
  border-radius: 4px;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.tk-nav a:hover { color: var(--gold) !important; background: rgba(200,168,75,0.1); }

.tk-header-tel {
  font-family: var(--font-en);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  padding: 0 14px;
  border-left: 1px solid rgba(255,255,255,0.12);
}
.tk-header-tel a { color: var(--white) !important; font-weight: 600; }

.tk-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.tk-hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.tk-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.tk-hamburger.open span:nth-child(2) { opacity: 0; }
.tk-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =============================================
   MOBILE MENU
============================================= */
.tk-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy-dark);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.tk-mobile-menu.open { display: flex; }
.tk-mobile-menu-list { text-align: center; display: flex; flex-direction: column; gap: 22px; }
.tk-mobile-menu-list a {
  font-size: 19px;
  font-weight: 700;
  color: var(--white) !important;
  transition: var(--transition);
}
.tk-mobile-menu-list a:hover { color: var(--gold) !important; }

/* =============================================
   HERO
============================================= */
.tk-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy-dark);
  overflow: hidden;
}
.tk-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(140deg, rgba(10,30,53,0.88) 0%, rgba(27,58,92,0.72) 55%, rgba(10,30,53,0.92) 100%),
    url('/wp-content/uploads/2026/06/hero.jpg');
  background-size: cover;
  background-position: center;
}

.tk-hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 0 100px;
  width: 100%;
}
.tk-hero-tag {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 6px;
  color: var(--gold);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.tk-hero-tag::before { content: ''; width: 36px; height: 1px; background: var(--gold); display: block; }

.tk-hero h1 {
  font-size: clamp(30px, 5.5vw, 60px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.28;
  margin-bottom: 18px;
}
.tk-hero h1 em { color: var(--gold); font-style: normal; }

.tk-hero-sub {
  font-size: clamp(14px, 1.8vw, 17px);
  color: rgba(255,255,255,0.72);
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 48px;
  max-width: 520px;
}
.tk-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.tk-hero-wave {
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; line-height: 0; z-index: 3;
}
.tk-hero-wave svg { display: block; width: 100%; }

.tk-scroll-indicator {
  position: absolute;
  bottom: 70px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 4;
}
.tk-scroll-bar {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(200,168,75,0.8), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* =============================================
   SERVICES
============================================= */
.tk-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.tk-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.tk-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }

.tk-card-thumb {
  height: 210px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.tk-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tk-card:hover .tk-card-thumb img { transform: scale(1.06); }
.tk-card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}
.tk-card-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 11px; font-weight: 700;
  padding: 3px 12px;
  border-radius: 50px;
}
.tk-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.tk-card-no {
  font-family: var(--font-en);
  font-size: 10px; font-weight: 600;
  letter-spacing: 3px; color: var(--gold);
  margin-bottom: 8px;
}
.tk-card-title { font-size: 19px; font-weight: 700; color: var(--navy-dark); margin-bottom: 12px; }
.tk-card-desc { font-size: 14px; color: var(--text-gray); line-height: 1.85; flex: 1; margin-bottom: 24px; }
.tk-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700;
  color: var(--navy) !important;
  transition: var(--transition);
}
.tk-card-link:hover { color: var(--gold) !important; gap: 10px; }
.tk-card-link::after { content: '→'; }

/* =============================================
   FLOW
============================================= */
.tk-flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  position: relative;
}
.tk-flow-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--navy-light));
}
.tk-flow-step { text-align: center; padding: 0 16px; }
.tk-flow-num {
  width: 80px; height: 80px;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en);
  font-size: 22px; font-weight: 700;
  margin: 0 auto 20px;
  position: relative; z-index: 1;
  box-shadow: 0 4px 16px rgba(200,168,75,0.4);
}
.tk-flow-step-title { font-size: 16px; font-weight: 700; color: var(--navy-dark); margin-bottom: 10px; }
.tk-flow-step-desc { font-size: 13px; color: var(--text-gray); line-height: 1.7; }

/* =============================================
   STATS BAR
============================================= */
.tk-stats-bar { background: var(--navy-dark); padding: 60px 0; }
.tk-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.tk-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tk-stat-num {
  font-family: var(--font-en);
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.tk-stat-num sup { font-size: 0.5em; vertical-align: super; }
.tk-stat-label { font-size: 13px; color: var(--gray); letter-spacing: 0.3px; }

/* =============================================
   YOUTUBE
============================================= */
.tk-yt-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.tk-yt-desc { font-size: 15px; color: var(--text-gray); line-height: 1.9; margin: 18px 0 32px; }
.tk-yt-embed {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  background: var(--navy-dark);
}
.tk-yt-embed::before { content: ''; display: block; padding-top: 56.25%; }
.tk-yt-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: none;
}
.tk-yt-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
}
.tk-yt-play {
  width: 64px; height: 64px;
  background: rgba(200,168,75,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.tk-yt-placeholder p { font-size: 14px; color: rgba(255,255,255,0.65); }

/* =============================================
   CTA（LINE）
============================================= */
.tk-cta {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-dark) 100%);
  padding: 88px 0;
  text-align: center;
}
.tk-cta-title { font-size: clamp(20px, 3vw, 30px); font-weight: 700; color: var(--white); margin-bottom: 12px; }
.tk-cta-desc { font-size: 15px; color: rgba(255,255,255,0.68); margin-bottom: 44px; }
.tk-cta-btns { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.btn-tel {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--white) !important;
  border: 2px solid rgba(255,255,255,0.45);
  padding: 17px 40px;
  font-size: 16px; font-weight: 700;
  border-radius: 50px;
  transition: var(--transition);
}
.btn-tel:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.tk-cta-note { font-size: 12px; color: rgba(255,255,255,0.38); margin-top: 22px; }

/* =============================================
   NEWS
============================================= */
.tk-news-list { margin-top: 48px; }
.tk-news-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-light);
  transition: var(--transition);
}
.tk-news-item:first-child { border-top: 1px solid var(--gray-light); }
.tk-news-item:hover { padding-left: 8px; }
.tk-news-date { font-family: var(--font-en); font-size: 13px; color: var(--gray); white-space: nowrap; min-width: 88px; }
.tk-news-cat {
  font-size: 11px; font-weight: 700;
  padding: 2px 10px; border-radius: 50px; white-space: nowrap;
}
.tk-news-cat.cat-boat    { background: #E3F0FF; color: #1B5E9A; }
.tk-news-cat.cat-info    { background: #E8F5E9; color: #2E7D32; }
.tk-news-cat.cat-haisen  { background: #FFF3E0; color: #E65100; }
.tk-news-cat.cat-default { background: var(--gray-light); color: var(--text-gray); }
.tk-news-item-title {
  font-size: 15px; color: var(--text-dark); flex: 1;
  transition: var(--transition);
}
.tk-news-item-title a { color: inherit !important; }
.tk-news-item:hover .tk-news-item-title { color: var(--navy); }
.tk-news-footer { text-align: center; margin-top: 40px; }

/* =============================================
   FOOTER
============================================= */
.tk-footer { background: var(--navy-dark); padding: 64px 0 0; }
.tk-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tk-footer-brand { display: flex; flex-direction: column; gap: 16px; }
.tk-footer-logo-en { font-family: var(--font-en); font-size: 9px; font-weight: 300; letter-spacing: 4px; color: var(--gold); text-transform: uppercase; }
.tk-footer-logo-ja { font-size: 17px; font-weight: 700; color: var(--white); }
.tk-footer-tagline { font-size: 13px; color: var(--gray); line-height: 1.85; }
.tk-footer-contact { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 2.2; }
.tk-footer-contact a { color: inherit !important; }
.tk-footer-nav-label { font-size: 10px; font-weight: 700; letter-spacing: 2.5px; color: var(--gold); text-transform: uppercase; margin-bottom: 18px; display: block; }
.tk-footer-links { display: flex; flex-direction: column; gap: 13px; }
.tk-footer-links a { font-size: 13px; color: rgba(255,255,255,0.65) !important; transition: var(--transition); }
.tk-footer-links a:hover { color: var(--gold) !important; padding-left: 4px; }
.tk-footer-bottom {
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.tk-footer-copy { font-size: 12px; color: rgba(255,255,255,0.35); }
.tk-footer-invoice { font-size: 11px; color: rgba(255,255,255,0.25); }

/* =============================================
   FLOATING LINE（モバイル）
============================================= */
.tk-float-line {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 998;
  display: none;
}
.tk-float-line a {
  width: 58px; height: 58px;
  background: var(--line-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0,185,0,0.48);
  transition: var(--transition);
}
.tk-float-line a:hover { transform: scale(1.1); }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .tk-services-grid { grid-template-columns: repeat(2, 1fr); }
  .tk-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .tk-flow-steps { grid-template-columns: repeat(2, 1fr); }
  .tk-flow-steps::before { display: none; }
  .tk-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .tk-yt-layout { gap: 48px; }
}
@media (max-width: 768px) {
  .tk-nav, .tk-header-tel, .btn-line-sm { display: none !important; }
  .tk-hamburger { display: flex; }
  .tk-services-grid { grid-template-columns: 1fr; }
  .tk-flow-steps { grid-template-columns: 1fr; gap: 32px; }
  .tk-yt-layout { grid-template-columns: 1fr; gap: 40px; }
  .tk-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .tk-footer-bottom { flex-direction: column; text-align: center; }
  .tk-float-line { display: block; }
  .tk-hero-btns { flex-direction: column; }
  .tk-cta-btns { flex-direction: column; align-items: center; }
  .tk-section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .tk-stats-grid { grid-template-columns: 1fr 1fr; }
}
