:root {
  /* 色 */
  --color-main: #0000ff;
  --color-bg: #f8f9fa;
  --color-text: #333;
  --color-heading: #2c3e50;
  --color-footer-bg: #2c3e50;
  --color-nav-hover: #dbeafe;
  --color-card-bg: #ffffff;
  --color-card-shadow: rgba(0, 0, 0, 0.1);

  /* レイアウト・サイズ */
  --header-height: 60px;
  --layout-max-width: 1100px;
  --section-padding-y: 60px;
  /* プロフィール画像用（PCベース） */
  --profile-img-min-width: 150px;
  --profile-img-max-width: 150px;
  --profile-img-min-height: 200px;
  --profile-img-max-height: 200px;
  --hero-height-pc: 400px;
  --hero-height-sp: 250px;

  /* その他 */
  --radius-card: 8px;
  --transition-fast: 0.3s;

  /* ブレイクポイント */
  --bp-sp: 768px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/*header{border:solid 3px cyan; display:none !important;}*/
html {
  overflow-y: scroll; /* 常に縦スクロールバーを表示する */
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "sans-serif";
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

main {
  margin-top: var(--header-height); /* 固定ヘッダー分の余白 */
  position: relative;
  
}

footer {
  background: var(--color-footer-bg);
  color: #fff;
  text-align: center;
  padding: 2rem;
  
}

/* ========== 3. ヘッダー / ナビゲーション ========== */
.navbar-area {
  position: fixed;
  inset: 0 0 auto 0; /* top:0; left:0; right:0 相当 */
  height: var(--header-height);
  background-color: var(--color-main);
  color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
}
nav {
  width: 100%;
  height: 100%; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  position: relative;

}

.logo-container {
  display: flex;
  align-items: center;
  height: 27px;
}

.logo-img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  white-space: nowrap;
  gap:1rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: color var(--transition-fast);
  margin-top: 0px;
}

.nav-links a:hover {
  color: var(--color-nav-hover);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.menu-toggle:active {
  transform: scale(0.9);
  color: var(--color-nav-hover);
}

/* ========== 4. ヒーロー（スライドショー） ========== */

/* ========== 8. フェードイン（ユーティリティ） ========== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ========== 9. スマホ対応 ========== */
@media (max-width: 768px) {
  :root {
    /* プロフィール画像用（PCベース） */
    --profile-img-min-width: 150px;
    --profile-img-max-width: 150px;
    --profile-img-min-height: 200px;
    --profile-img-max-height: 200px;
  }
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: var(--header-height); /* または 60px */
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    flex-direction: column;
    display: none;
    gap:1rem;
    
  }

  .nav-links.active {
    display: flex;
    padding:15px 0px;
  }

  .nav-links li {
    padding: 0.3rem 0;
  }


  .top_cl{
    margin-left:1rem;
    font-size: 1.2rem;
  }

}
