/*
Theme Name: Hoshino Consulting
Theme URI: https://hoshino-consulting.com
Author: 株式会社ホシノコンサルティング
Author URI: https://hoshino-consulting.com
Description: AIを駆使したITコンサルティング会社のモダンテックテーマ。テクノロジーと業務の融合をコンセプトにダーク×グラデーションデザインで表現。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: hoshino-consulting
*/

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark: #050d1a;
  --bg-card: #0d1e35;
  --accent1: #00c8ff;
  --accent2: #7b4fff;
  --accent3: #00ffb3;
  --text-primary: #e8f0fe;
  --text-muted: #8aabcc;
  --border: rgba(0, 200, 255, 0.15);
  --grad-main: linear-gradient(135deg, #00c8ff 0%, #7b4fff 100%);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ── Utility ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent1);
  margin-bottom: 12px;
}

/* ── Header / Nav ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(5, 13, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo-wrap { display: flex; align-items: center; gap: 12px; }

.logo-mark {
  width: 36px; height: 36px;
  background: var(--grad-main);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.logo-text { font-size: 0.85rem; font-weight: 700; line-height: 1.3; }
.logo-text span { display: block; font-size: 0.68rem; color: var(--text-muted); font-weight: 400; }

/* WordPress メニュー */
.main-navigation { display: flex; align-items: center; }

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}

.main-navigation ul li a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}

.main-navigation ul li a:hover { color: var(--accent1); }

.main-navigation ul li.menu-item-cta a {
  padding: 8px 20px;
  border-radius: 6px;
  background: var(--grad-main);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  transition: opacity 0.2s;
}

.main-navigation ul li.menu-item-cta a:hover { opacity: 0.85; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(60px); }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.orb1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,200,255,0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: float1 8s ease-in-out infinite;
}

.orb2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(123,79,255,0.12) 0%, transparent 70%);
  bottom: 0; left: -50px;
  animation: float2 10s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(-30px, 30px); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(20px, -20px); }
}

.hero-content { position: relative; z-index: 1; max-width: 720px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(0,200,255,0.06);
  font-size: 0.75rem;
  color: var(--accent1);
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent1);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 .line2 { display: block; }

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  padding: 14px 32px;
  border-radius: 8px;
  background: var(--grad-main);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
  cursor: pointer;
  border: none;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); color: #fff; }

.btn-outline {
  padding: 14px 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}

.btn-outline:hover { border-color: var(--accent1); background: rgba(0,200,255,0.05); color: var(--text-primary); }

.hero-stats {
  position: relative; z-index: 1;
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat-num {
  font-size: 2rem;
  font-weight: 900;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label { font-size: 0.75rem; color: var(--text-muted); }

/* ── Section common ── */
.site-section { padding: 100px 0; position: relative; }
.site-section--alt { background: rgba(13, 30, 53, 0.4); }
.site-section--sm { padding: 60px 0; }

/* ── AI Strip ── */
.ai-strip {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.ai-strip-track {
  display: flex;
  gap: 48px;
  animation: marquee 22s linear infinite;
  white-space: nowrap;
}

.ai-strip-item {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ai-strip-item::before {
  content: '●';
  color: var(--accent1);
  font-size: 0.4rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Section Header ── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header--left { text-align: left; margin-bottom: 36px; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; line-height: 1.3; }
.section-header p { color: var(--text-muted); margin-top: 16px; max-width: 520px; margin-left: auto; margin-right: auto; font-size: 0.92rem; }
.section-header--left p { margin-left: 0; }

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.capability-item {
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--border);
  background: rgba(0,200,255,0.04);
  font-size: 0.6rem;
  color: var(--text-muted);
  padding: 8px 4px;
  text-align: center;
}

.capability-item .cap-icon { font-size: 1.2rem; }

.about-quote {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0,200,255,0.04);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; line-height: 1.3; margin-bottom: 20px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; font-size: 0.92rem; }

.tag-highlight {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  background: rgba(0,200,255,0.1);
  border: 1px solid rgba(0,200,255,0.2);
  color: var(--accent1);
  font-size: 0.8rem;
  margin-bottom: 20px;
}

/* ── Service Cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  padding: 36px 28px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.service-card:hover { border-color: var(--accent1); transform: translateY(-6px); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(0,200,255,0.08);
  border: 1px solid rgba(0,200,255,0.15);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.service-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 12px; }
.service-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.75; }

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--accent1);
  font-weight: 600;
  transition: gap 0.2s;
}

.service-card:hover .learn-more { gap: 10px; }

/* ── Why Grid ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.why-item {
  padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  gap: 20px;
}

.why-num {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  width: 40px;
}

.why-item h3 { font-size: 0.95rem; font-weight: 800; margin-bottom: 8px; }
.why-item p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.7; }

/* ── CTA Band ── */
.cta-band {
  background: linear-gradient(135deg, rgba(0,200,255,0.07) 0%, rgba(123,79,255,0.07) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 80px 0;
}

.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; margin-bottom: 16px; }
.cta-band p { color: var(--text-muted); margin-bottom: 36px; font-size: 0.92rem; }

/* ── News (WordPress loop 対応) ── */
.news-list { list-style: none; }

.news-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.2s;
}

.news-item:hover { padding-left: 8px; }
.news-date { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }

.news-cat {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0,200,255,0.3);
  color: var(--accent1);
  white-space: nowrap;
  flex-shrink: 0;
}

.news-cat a { color: var(--accent1); }
.news-title { font-size: 0.88rem; }
.news-title a { color: var(--text-primary); transition: color 0.2s; }
.news-title a:hover { color: var(--accent1); }

/* ── Access ── */
.access-info { font-size: 0.88rem; color: var(--text-muted); line-height: 2.2; }
.access-info strong { color: var(--text-primary); }

/* ── Footer ── */
.site-footer { padding: 60px 0 32px; border-top: 1px solid var(--border); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-desc { font-size: 0.82rem; color: var(--text-muted); margin-top: 12px; line-height: 1.75; }
.footer-address { margin-top: 16px; font-size: 0.78rem; color: var(--text-muted); line-height: 1.9; }

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* WordPress フッターメニュー */
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav ul li a { font-size: 0.83rem; color: var(--text-muted); transition: color 0.2s; }
.footer-nav ul li a:hover { color: var(--accent1); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-powered { color: var(--accent1); font-size: 0.7rem; }

/* ── Scroll Reveal ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── WordPress 標準クラス ── */
.wp-block-image img { border-radius: 12px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .main-navigation { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .two-col-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-stats { gap: 28px; }
  .news-item { flex-wrap: wrap; gap: 8px; }
}
