/* ===================================
   合同会社ミライヲ - 共通スタイル
=================================== */

/* リセット・ベース */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary:   #1a3c6e;   /* 深ネイビー */
  --color-accent:    #d4a017;   /* ゴールド */
  --color-accent2:   #2a6db5;   /* ブルー */
  --color-bg:        #f8f9fc;
  --color-text:      #2d2d2d;
  --color-muted:     #6b7280;
  --color-white:     #ffffff;
  --color-border:    #e2e8f0;
  --color-footer-bg: #0f2340;
  --font-main: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  --max-width: 1120px;
  --header-h: 70px;
  --transition: 0.3s ease;
  --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.15);
  --radius: 8px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 15px;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================
   ヘッダー・ナビゲーション
=================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

#site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ロゴ */
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.site-logo .logo-main {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}
.site-logo .logo-sub {
  font-size: 10px;
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* デスクトップナビ */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-desktop .nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-desktop .nav-link:hover,
.nav-desktop .nav-link.active {
  color: var(--color-accent2);
  background: #eef4fb;
}

/* プルダウンコンテナ */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.nav-dropdown-toggle:hover {
  background: var(--color-accent2);
}

.nav-dropdown-toggle .arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--color-white);
  transition: transform var(--transition);
}

.nav-dropdown.open .nav-dropdown-toggle .arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 2000;
  border: 1px solid var(--color-border);
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
  animation: dropDown 0.2s ease;
}

@keyframes dropDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
  border-bottom: 1px solid var(--color-border);
}

.nav-dropdown-menu a:last-child { border-bottom: none; }

.nav-dropdown-menu a:hover {
  background: #eef4fb;
  color: var(--color-accent2);
}

.nav-dropdown-menu a.active {
  background: var(--color-primary);
  color: var(--color-white);
}

.nav-dropdown-menu .menu-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* ハンバーガー（モバイル） */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.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: var(--header-h);
  left: 0;
  width: 100%;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  z-index: 999;
  padding: 16px 0;
  border-top: 2px solid var(--color-primary);
}

.mobile-menu.open { display: block; animation: slideDown 0.25s ease; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition), color var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: #eef4fb;
  color: var(--color-accent2);
}

.mobile-menu .menu-icon { font-size: 18px; width: 22px; }

/* ===================================
   ページオフセット（固定ヘッダー）
=================================== */
.page-offset {
  padding-top: var(--header-h);
}

/* ===================================
   セクション共通
=================================== */
section { padding: 80px 0; }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 16px;
}

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

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-desc { margin: 0 auto; }

.divider {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent2));
  border-radius: 2px;
  margin: 16px auto 20px;
}

.divider-left {
  margin: 16px 0 20px;
}

/* ===================================
   ボタン
=================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-accent2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,60,110,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-accent:hover {
  background: #b8860b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,160,23,0.4);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
}
.btn-white:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ===================================
   カード共通
=================================== */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

/* ===================================
   ページヒーロー（内部ページ）
=================================== */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2a5ca8 60%, var(--color-accent2) 100%);
  padding: 70px 0 60px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.7); transition: color var(--transition); }
.page-hero .breadcrumb a:hover { color: var(--color-white); }
.page-hero .breadcrumb .sep { color: rgba(255,255,255,0.4); }

.page-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.page-hero .hero-en {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  text-transform: uppercase;
  font-weight: 600;
}

/* ===================================
   フッター
=================================== */
#site-footer {
  background: var(--color-footer-bg);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 0;
}

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

.footer-logo .logo-main { font-size: 22px; font-weight: 700; color: var(--color-white); }
.footer-logo .logo-sub  { font-size: 10px; color: var(--color-accent); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 2px; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 12px; line-height: 1.8; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col ul li a:hover { color: var(--color-white); }

.footer-info { font-size: 13px; line-height: 2; color: rgba(255,255,255,0.7); }
.footer-info span { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ===================================
   グリッドレイアウト
=================================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ===================================
   ユーティリティ
=================================== */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-accent  { color: var(--color-accent); }
.bg-white     { background: var(--color-white); }
.bg-light     { background: var(--color-bg); }
.bg-dark      { background: var(--color-primary); color: var(--color-white); }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ===================================
   アニメーション
=================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   レスポンシブ
=================================== */
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .btn { padding: 12px 24px; font-size: 14px; }
}
