/* common.css - 全ページ共通スタイル */

/* 基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-teal: #2B8A8F;
  --secondary-teal: #1F6B70;
  --accent-orange: #FF8A33;
  --light-teal: #4A9EA3;
  --glass-white: rgba(255, 255, 255, 0.1);
  --glass-teal: rgba(43, 138, 143, 0.1);
  --text-dark: #2a2a2a;
  --text-light: rgba(255, 255, 255, 0.9);
}

html, body{
	max-width: 100%;
	overflow-x: hidden;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: linear-gradient(135deg, #f8fcff 0%, #e8f6ff 100%);
  color: var(--text-dark);
  overflow-x: hidden;
  min-height: 100vh;
	width: 100%;
}

/* 背景パーティクル */
.particle-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: var(--primary-teal);
  border-radius: 50%;
  opacity: 0.15;
  animation: float 15s infinite linear;
}

@keyframes float {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100px) translateX(100px); opacity: 0; }
}

/* ヘッダー */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 50px;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(43, 138, 143, 0.2);
  display: flex;
  align-items: center;
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  width: 100%;
}

.logo-img {
  justify-content: center;
  display: flex;
  z-index: 1002;
  position: relative;
  transition: all 0.3s ease;
}

.logo-img img {
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 0 transparent);
}

.logo:hover img,
.logo-img:hover img {
  filter: drop-shadow(0 4px 8px rgba(43, 138, 143, 0.3));
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.1); }
}

/* デスクトップナビゲーション */
nav {
  display: block;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-teal), var(--light-teal));
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a.current {
  color: var(--primary-teal);
  font-weight: 600;
}

nav a.current::after {
  width: 100%;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  z-index: 1003;
  position: relative;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-teal);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
  z-index: 1003;
  position: relative;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: var(--primary-teal);
  z-index: 1003;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: var(--primary-teal);
  z-index: 1003;
}

/* モバイルメニュー */
.mobile-menu {
  position: fixed;
  top: 50px;
  bottom: 0;
  right: -85%;
  width: 85%;
  height: auto;
  background: rgba(43, 138, 143, 0.85);
  backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: right 0.3s ease;
  z-index: 1000;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
}

.mobile-menu li {
  margin: 30px 0;
}

.mobile-menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-menu a::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: #ffffff;
  transition: width 0.3s ease;
}

/* メインコンテンツ */
main {
  position: relative;
  z-index: 10;
  padding-top: 50px;
  min-height: 100vh;
}

/* パンくずリスト */
.breadcrumb {
  padding: 30px 0;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.breadcrumb-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumb a {
  color: var(--text-dark);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
  opacity: 1;
}

/* ページヘッダー */
.page-hero {
  padding: 50px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(43, 138, 143, 0.03) 0%, rgba(74, 158, 163, 0.05) 100%);
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(43, 138, 143, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(74, 158, 163, 0.06) 0%, transparent 50%);
}

.page-hero h1 {
  font-family: 'Goldman', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 30px;
  background: linear-gradient(135deg, var(--primary-teal), var(--light-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 10;
}

.page-hero p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-dark);
  opacity: 0.8;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* セクション共通スタイル */
.section {
  padding: 80px 0;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* フッター */
footer {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  color: var(--text-light);
  padding: 30px 0 30px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--light-teal);
}

.copyright {
  opacity: 0.6;
  font-size: 0.9rem;
}

/* 共通ボタンスタイル */
.btn-primary {
  display: inline-block;
  padding: 18px 40px;
  background: linear-gradient(135deg, var(--primary-teal), var(--light-teal));
  border: 1px solid var(--primary-teal);
  border-radius: 50px;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary-teal), var(--primary-teal));
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(43, 138, 143, 0.3);
}

/* 共通カードスタイル */
.card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(43, 138, 143, 0.2);
  border-radius: 20px;
  padding: 60px;
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-teal), var(--light-teal));
}

/* レスポンシブ */
@media (max-width: 800px) {
  body {
    position: relative;
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
  
  header {
    height: 50px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
  }

  /* デスクトップナビを非表示 */
  nav {
    display: none;
  }

  /* ハンバーガーメニューを表示 */
  .hamburger {
    display: flex;
  }

  .header-content {
    justify-content: space-between;
    padding: 0 20px;
  }

  .page-hero {
    padding: 60px 0;
  }

  .section {
    padding: 60px 0;
  }

  .card {
    padding: 40px 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 20px;
  }

  .btn-primary {
    padding: 15px 30px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .card {
    padding: 30px 15px;
  }
}