/*
Theme Name: AKINAI-X
Theme URI: https://akinai-x.com
Author: AKINAI-X Team
Author URI: https://akinai-x.com
Description: AKINAI-X フルオリジナルテーマ。中小企業のDX・リスキリング・採用支援サービスサイト。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: Proprietary
Text Domain: akinai-x
*/

/* ============================================================
   CSS CUSTOM PROPERTIES（デザイントークン）
   ============================================================ */
:root {
  /* --- Brand Colors --- */
  --color-navy:        #1B2D5B;
  --color-navy-dark:   #0F1A38;
  --color-navy-light:  #2A4080;
  --color-orange:      #E8721A;
  --color-orange-light:#F5923A;
  --color-orange-pale: #FFF3E8;
  --color-gold:        #C9A84C;

  /* --- Neutral --- */
  --color-white:       #FFFFFF;
  --color-off-white:   #F8F9FC;
  --color-gray-100:    #F2F4F8;
  --color-gray-200:    #E2E6EE;
  --color-gray-400:    #9AA3B5;
  --color-gray-600:    #5A6478;
  --color-gray-800:    #2C3347;
  --color-black:       #111827;

  /* --- Typography --- */
  --font-display:   'Noto Serif JP', 'Georgia', serif;
  --font-sans:      'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --font-en:        'Montserrat', 'Arial', sans-serif;

  /* --- Font Sizes (clamp: mobile → desktop) --- */
  --fs-xs:    clamp(0.75rem,  1.5vw, 0.875rem);
  --fs-sm:    clamp(0.875rem, 1.8vw, 1rem);
  --fs-base:  clamp(1rem,     2vw,   1.125rem);
  --fs-lg:    clamp(1.125rem, 2.5vw, 1.25rem);
  --fs-xl:    clamp(1.25rem,  3vw,   1.5rem);
  --fs-2xl:   clamp(1.5rem,   4vw,   2rem);
  --fs-3xl:   clamp(2rem,     5vw,   2.75rem);
  --fs-4xl:   clamp(2.5rem,   6vw,   3.75rem);
  --fs-hero:  clamp(3rem,     8vw,   5.5rem);

  /* --- Spacing --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Layout --- */
  --container-max:  1280px;
  --container-wide: 1440px;
  --section-py:     clamp(4rem, 8vw, 7rem);

  /* --- Effects --- */
  --shadow-sm:  0 1px 3px rgba(27,45,91,0.08);
  --shadow-md:  0 4px 16px rgba(27,45,91,0.12);
  --shadow-lg:  0 8px 32px rgba(27,45,91,0.16);
  --shadow-xl:  0 16px 64px rgba(27,45,91,0.20);
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full:9999px;

  /* --- Transitions --- */
  --transition-fast:   150ms ease;
  --transition-base:   300ms ease;
  --transition-slow:   600ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  color: var(--color-gray-800);
  background-color: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding-block: var(--section-py);
}

.section--navy {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.section--gray {
  background-color: var(--color-gray-100);
}

.section--off-white {
  background-color: var(--color-off-white);
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.text-en {
  font-family: var(--font-en);
  letter-spacing: 0.05em;
}

.text-display {
  font-family: var(--font-display);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-en);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-orange);
}

.eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--color-orange);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-navy);
  margin-top: var(--space-3);
}

.section-title--white {
  color: var(--color-white);
}

.section-lead {
  font-size: var(--fs-lg);
  color: var(--color-gray-600);
  line-height: 1.8;
  margin-top: var(--space-4);
  max-width: 42em;
}

/* ============================================================
   BUTTON COMPONENTS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform var(--transition-base);
}

.btn:hover::after { transform: translateX(0); }

.btn--primary {
  background: var(--color-orange);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(232,114,26,0.4);
}

.btn--primary:hover {
  background: var(--color-orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,114,26,0.5);
}

.btn--navy {
  background: var(--color-navy);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn--navy:hover {
  background: var(--color-navy-light);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}

.btn--outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn--outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--color-white);
}

.btn--lg {
  padding: var(--space-4) var(--space-12);
  font-size: var(--fs-base);
}

/* ============================================================
   CARD COMPONENT
   ============================================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* ============================================================
   SCROLL ANIMATIONS（JSで .is-visible を付与）
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  transform: translateX(-32px);
}
.reveal--left.is-visible {
  transform: translateX(0);
}

.reveal--right {
  transform: translateX(32px);
}
.reveal--right.is-visible {
  transform: translateX(0);
}

/* delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */
@media (max-width: 768px) {
  .hide-sp { display: none !important; }
}
@media (min-width: 769px) {
  .hide-pc { display: none !important; }
}
