/* =============================================
   common.css - 共通スタイル
   社会福祉法人 翔福祉会 かりゆし保育園グループ
   ============================================= */

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

/* CSS Variables */
:root {
  --font-main: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  --font-round: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;

  /* Neutral */
  --color-bg: #FAFBFF;
  --color-white: #FFFFFF;
  --color-gray-50: #F8F9FA;
  --color-gray-100: #F1F3F5;
  --color-gray-200: #E9ECEF;
  --color-gray-500: #ADB5BD;
  --color-gray-700: #495057;
  --color-gray-900: #212529;
  --color-text: #333344;
  --color-text-light: #666680;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --radius-full: 9999px;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Transition */
  --transition: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

/* =============================================
   Layout Utilities
   ============================================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--space-xl) 0;
}

.section-sm {
  padding: var(--space-lg) 0;
}

/* =============================================
   Section Heading
   ============================================= */
.section-heading {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-heading .en-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--color-accent, #FF8B60);
  color: white;
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
}

.section-heading h2 {
  font-family: var(--font-round);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  color: var(--color-primary, #4FC3E8);
  line-height: 1.3;
}

.section-heading .sub {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

/* =============================================
   Cards & Panels
   ============================================= */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

/* =============================================
   Scroll Animation
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =============================================
   Footer
   ============================================= */
.site-footer {
  background: var(--color-primary, #4FC3E8);
  color: white;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  margin-top: var(--space-xl);
}

.site-footer a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
}

/* =============================================
   Responsive Utilities
   ============================================= */
.show-sp { display: none; }
.show-pc { display: block; }

@media (max-width: 768px) {
  :root {
    --space-xl: 2.5rem;
    --space-2xl: 3.5rem;
  }
  html { font-size: 17px; }
  body { line-height: 1.9; }
  .show-sp { display: block; }
  .show-pc { display: none; }
  .container { padding: 0 1rem; }
  p, li, td, th { font-size: 1rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
}

/* =============================================
   Accessibility
   ============================================= */
:focus-visible {
  outline: 3px solid var(--color-accent, #FF8B60);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================
   Print
   ============================================= */
@media print {
  .site-header, .site-footer, .page-nav { display: none; }
}
