/* ==========================================
   FISA 共通スタイル (下層ページ用に本体から抽出)
   ========================================== */

:root {
  --fisa-green: #2f6d45;
  --fisa-green-dark: #1f4829;
  --fisa-green-light: #e6f1e8;
  --fisa-green-accent: #3a7c4e;
  --bg-base: #ffffff;
  --bg-soft: #fafbf9;
  --text-primary: #0f1b13;
  --text-body: #333b35;
  --text-muted: #7a857f;
  --border-line: #e4e8e3;
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --header-height: 80px;
  --notice-height: 40px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 87.5%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background-color: var(--bg-base);
  line-height: 1.75;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--fisa-green); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

/* Header (本体と同じ fixed + blur 挙動) */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.notice-bar {
  background-color: var(--fisa-green-dark);
  color: #fff;
  text-align: center;
  font-size: 0.875rem;
  padding: 8px 0;
  height: var(--notice-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header {
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.header-wrapper.scrolled .header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid var(--border-line);
}

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
  color: var(--fisa-green-dark);
}

.logo .logo-en {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--fisa-green-dark);
}

.logo .logo-ja {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.global-nav { display: flex; gap: 32px; }

.global-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
}

.global-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--fisa-green);
  transition: width 0.3s ease;
}

.global-nav a:hover::after {
  width: 100%;
}

.header-cta {
  padding: 10px 24px;
  background-color: var(--fisa-green);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

.header-cta:hover {
  background-color: var(--fisa-green-dark);
}

/* ハンバーガーメニュー (SP用、本体と同じ) */
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 1100;
}
.nav-toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--fisa-green-dark);
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 11px; }
.nav-toggle span:nth-child(2) { top: 17px; }
.nav-toggle span:nth-child(3) { top: 23px; }
.nav-toggle.open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

/* body上部のoffset (fixed headerに合わせる) */
body {
  padding-top: calc(var(--header-height) + var(--notice-height));
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--fisa-green) 0%, var(--fisa-green-light) 100%);
  z-index: 2000;
  transition: width 0.05s linear;
}

/* Grain Overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, var(--fisa-green-dark) 0%, var(--fisa-green) 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at top, rgba(255,255,255,0.1), transparent 70%);
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero .label {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  opacity: 0.8;
  margin-bottom: 12px;
  display: block;
}

.page-hero h1 {
  font-size: 2.25rem;
  color: #fff;
  position: relative;
  padding-bottom: 20px;
}

.page-hero h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: #fff;
  opacity: 0.6;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  background-color: var(--bg-soft);
  border-bottom: 1px solid var(--border-line);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--fisa-green); }
.breadcrumb span.sep { margin: 0 8px; }

/* Page Content */
.page-content {
  padding: 80px 0 120px;
  background-color: var(--bg-base);
}

.page-content .container {
  max-width: 820px;
}

/* Footer */
.footer {
  background-color: var(--text-primary);
  color: #fff;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 48px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
  line-height: 1.2;
}

.footer-logo .logo-en {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  color: #fff;
}

.footer-logo .logo-ja {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
}

.footer-info p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-nav h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-nav ul li { margin-bottom: 10px; }
.footer-nav ul li a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-nav ul li a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.8125rem;
}

.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.5); }
.footer-links a:hover { color: #fff; }

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .global-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(80%, 320px);
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 88px 32px 32px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.08);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .global-nav.open { right: 0; }
  .global-nav a {
    font-size: 1.125rem;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--border-line);
  }
  .global-nav a::after { display: none; }
  .header-cta { display: none; }

  .page-hero { padding: 56px 0 48px; }
  .page-hero h1 { font-size: 1.5rem; }
  .page-content { padding: 48px 0 72px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
