/*
Theme Name: Olana
Theme URI: https://olana.jp
Author: Olana Inc.
Author URI: https://olana.jp
Description: 株式会社オルアナ 公式WordPressテーマ。AIエージェント開発・新規事業開発支援・システム開発・バックオフィス業務支援のコーポレートサイト。
Version: 1.0.0
License: All Rights Reserved
License URI: https://olana.jp
Text Domain: olana
Tags: corporate, japanese, dark, minimal
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface2: #f4f2f1;
  --accent: #9a1a3c;
  --accent2: #b82048;
  --accent-light: rgba(154,26,60,0.06);
  --accent-glow: rgba(154,26,60,0.1);
  --text: #1a1414;
  --text-muted: #7a6e6e;
  --border: rgba(0,0,0,0.08);
  --border-accent: rgba(154,26,60,0.2);
  --gradient: linear-gradient(135deg, #7a1530 0%, #9a1a3c 60%, #b82048 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* =============================================
   NAVIGATION
   ============================================= */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  background: rgba(250,250,249,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
}

.site-nav.scrolled { padding: 14px 60px; }

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

.nav-logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.nav-logo-sub {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.current-page,
.nav-links a.active { color: var(--accent); font-weight: 500; }

.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--accent2) !important; color: white !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 65px; left: 0; right: 0;
  background: rgba(250,250,249,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px 24px 32px;
  z-index: 99;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 14px 4px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .m-cta {
  margin-top: 20px;
  background: var(--accent);
  color: white !important;
  text-align: center;
  border-radius: 8px;
  padding: 14px !important;
  font-weight: 500;
  border-bottom: none !important;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: white;
  padding: 16px 36px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(154,26,60,0.25);
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(154,26,60,0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text);
  padding: 16px 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, transform 0.2s, color 0.2s;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* =============================================
   SECTION COMMON
   ============================================= */
section { padding: 120px 60px; }

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--accent); }

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--text);
}

.section-desc {
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-muted);
  max-width: 560px;
}

/* =============================================
   PAGE HEADER (inner pages)
   ============================================= */
.page-header {
  padding: 140px 60px 72px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 80% 50%, rgba(154,26,60,0.04) 0%, transparent 70%);
}
.page-header-inner { max-width: 1200px; margin: 0 auto; position: relative; }

.page-header-accent { background: var(--accent); }
.page-header-accent::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.page-header-accent::after {
  content: '';
  position: absolute;
  bottom: -120px; left: 20%;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.page-header-accent .breadcrumb { color: rgba(255,255,255,0.5); }
.page-header-accent .breadcrumb a { color: rgba(255,255,255,0.5); }
.page-header-accent .breadcrumb a:hover { color: white; }
.page-header-accent .section-eyebrow { color: rgba(255,255,255,0.55); }
.page-header-accent .section-eyebrow::before { background: rgba(255,255,255,0.4); }
.page-header-accent .page-title { color: white; }
.page-header-accent .page-catch { color: rgba(255,255,255,0.7); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.06em;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }

.section-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); }

.page-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.1;
}
.page-catch { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin-top: 12px; }

/* =============================================
   MARQUEE
   ============================================= */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
  background: var(--surface2);
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 22s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.marquee-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: 0.6; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 64px 60px 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-logo { display: flex; align-items: center; text-decoration: none; margin-bottom: 12px; gap: 10px; }
.footer-logo-text { font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 800; color: white; }
.footer-brand p { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.45); max-width: 260px; margin-top: 8px; }
.footer-col h4 {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-family: 'DM Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.3); letter-spacing: 0.05em; }
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 11px; }
.footer-bottom a:hover { color: white; }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .site-nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 80px 24px; }
  .page-header { padding: 110px 24px 56px; }
  .footer-inner { grid-template-columns: 1fr; }
  .site-footer { padding: 48px 24px 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* Method Visual Image */


/* ===== v1.1.0 緊急修正: モーダル・フォーム幅 ===== */
.dl-modal-overlay {
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0,0,0,0.6) !important;
  z-index: 9000 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}
.dl-modal-overlay.open {
  display: block !important;
}
.dl-modal-box {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  width: 90% !important;
  max-width: 480px !important;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
  margin: 40px auto !important;
}

/* CF7 フォーム幅強制 */
.form-wrap .wpcf7,
.form-wrap .wpcf7 form { width: 100% !important; }
.form-wrap .wpcf7 .wpcf7-form-control-wrap {
  display: block !important;
  width: 100% !important;
}
.form-wrap .wpcf7 input[type="text"],
.form-wrap .wpcf7 input[type="email"],
.form-wrap .wpcf7 input[type="tel"],
.form-wrap .wpcf7 textarea {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 13px 16px !important;
  border: 1.5px solid rgba(0,0,0,0.08) !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  background: #fafaf9 !important;
}
.form-wrap .wpcf7 textarea { min-height: 140px !important; resize: vertical !important; }
.form-wrap .wpcf7 input[type="submit"] {
  display: block !important;
  width: 100% !important;
  padding: 16px !important;
  background: #9a1a3c !important;
  color: white !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  margin-top: 8px !important;
  box-sizing: border-box !important;
}

/* ===== v1.2.0 CF7フォーム幅 完全上書き ===== */
.form-wrap { width: 100%; box-sizing: border-box; }
.form-wrap * { box-sizing: border-box; }
.form-wrap .wpcf7 { display: block; width: 100% !important; }
.form-wrap .wpcf7 form { display: block; width: 100% !important; }
.form-wrap .wpcf7 p,
.form-wrap .wpcf7 div { display: block; width: 100% !important; max-width: 100% !important; }
.form-wrap .wpcf7 label { display: block; width: 100% !important; }
.form-wrap .wpcf7 .wpcf7-form-control-wrap { display: block; width: 100% !important; max-width: 100% !important; }
/* required-badge・list-item等のspanは幅を自動に戻す */
.form-wrap .wpcf7 .required-badge,
.form-wrap .wpcf7 .optional-badge,
.form-wrap .wpcf7 .wpcf7-list-item,
.form-wrap .wpcf7 .wpcf7-list-item-label,
.form-wrap .wpcf7 .wpcf7-not-valid-tip { display: inline !important; width: auto !important; max-width: none !important; }
.form-wrap .wpcf7 .wpcf7-radio,
.form-wrap .wpcf7 .wpcf7-checkbox { display: flex !important; flex-wrap: wrap; gap: 10px; width: 100% !important; }
.form-wrap .wpcf7 input[type="text"],
.form-wrap .wpcf7 input[type="email"],
.form-wrap .wpcf7 input[type="tel"],
.form-wrap .wpcf7 input[type="url"],
.form-wrap .wpcf7 select,
.form-wrap .wpcf7 textarea {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 13px 16px !important;
  background: #fafaf9 !important;
  border: 1.5px solid rgba(0,0,0,0.08) !important;
  border-radius: 10px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  color: #1a1414 !important;
  outline: none !important;
  margin-top: 8px !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
}
.form-wrap .wpcf7 textarea { min-height: 140px !important; resize: vertical !important; }
.form-wrap .wpcf7 input[type="submit"],
.form-wrap .wpcf7 button[type="submit"] {
  display: block !important;
  width: 100% !important;
  padding: 16px !important;
  background: #9a1a3c !important;
  color: white !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  margin-top: 8px !important;
  box-sizing: border-box !important;
  letter-spacing: 0.06em !important;
}
.form-wrap .wpcf7 input[type="submit"]:hover { background: #b82048 !important; }
.form-wrap .wpcf7 .wpcf7-not-valid-tip { font-size: 12px !important; color: #e74c3c !important; margin-top: 4px !important; }
.form-wrap .wpcf7 .wpcf7-response-output { margin-top: 16px !important; padding: 12px 16px !important; border-radius: 8px !important; font-size: 13px !important; border: none !important; }
.form-wrap .wpcf7 .wpcf7-mail-sent-ok { background: #f0fdf4 !important; color: #15803d !important; }
.form-wrap .wpcf7 .wpcf7-validation-errors,
.form-wrap .wpcf7 .wpcf7-acceptance-missing { background: #fef2f2 !important; color: #dc2626 !important; }

/* ===== v1.2.0 モーダルスクロール修正 ===== */
.dl-modal-overlay {
  display: none !important;
  position: fixed !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important; height: 100% !important;
  background: rgba(0,0,0,0.6) !important;
  z-index: 9000 !important;
  overflow-x: hidden !important;
  overflow-y: scroll !important;
  -webkit-overflow-scrolling: touch !important;
}
.dl-modal-overlay.open { display: block !important; }
.dl-modal-box {
  background: #fff !important;
  border-radius: 20px !important;
  padding: 36px !important;
  width: 90% !important;
  max-width: 460px !important;
  position: relative !important;
  margin: 48px auto !important;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2) !important;
  box-sizing: border-box !important;
}
