:root {
  /* Color Palette */
  --color-bg-header: #fff;
  --color-border-header: #ddd;
  --color-footer-bg: #222;
  --color-footer-text: #ccc;
  --color-nav-text: #333;

  /* Typography */
	--font-base: 0.95rem;
	  --font-size-base: 1rem;      /* 基本フォントサイズ */
  --line-height-base: 1.6;     /* 基本行間 */


  /* Spacing */
  --space-xs: 8px;
  --space-s: 16px;
  --space-m: 32px;
  --space-l: 64px;

  /* Border radius */
  --radius-base: 8px;
}

body {
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: #333;
}

header {
  background: var(--color-bg-header);
  border-bottom: 1px solid var(--color-border-header);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-s) var(--space-m);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-title {
  height: 70px;
}

.logo-title img {
  height: 100%;
  width: auto;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background-color: var(--color-nav-text);
  margin: 4px 0;
}

nav {
  display: flex;
  gap: var(--space-s);
}

nav a {
  text-decoration: none;
  color: var(--color-nav-text);
  font-size: var(--font-base);
  position: relative;
}

nav a:hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-nav-text);
}

nav a.active {
  color: var(--color-nav-text);       /* アクセントカラー */
  font-weight: bold;                /* 太字に */
}
nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-nav-text);
}


footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  text-align: center;
  padding: var(--space-m) 0;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fafafa;
    padding: var(--space-s) 0;
    position: absolute;
    top: 64px;
    left: 0;
    border-top: 1px solid var(--color-border-header);
  }
  nav.active {
    display: flex;
  }
  nav a {
    margin: var(--space-xs) 0;
  }
}

.insta-icon {
  display: inline-block;
  height: 36px;
  margin-left: var(--space-s);
  position: relative;
  top: -6px;
}

.insta-icon img {
  height: 100%;
}

main.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 30px 20px 80px;
  text-align: left;
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg-header: #1f1f1f;
    --color-border-header: #444;
    --color-footer-bg: #111;
    --color-footer-text: #aaa;
    --color-nav-text: #e0e0e0;
  }
  header {
    background: var(--color-bg-header);
    border-bottom-color: var(--color-border-header);
  }
  .menu-toggle div {
    background-color: var(--color-nav-text);
  }
  nav a {
    color: var(--color-nav-text);
  }
  footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* CTA ボタン */
.cta-container {
  text-align: center;
  margin: 32px 0;
}
.cta-button {
  display: inline-block;
  background: var(--color-accent, #4ADEDE);
  color: #fff;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}
.cta-button:hover {
  background: #34c1c1;      /* 少し濃いめに */
  transform: translateY(-2px);
}

/* 通常 */
.logo-title img { filter: none; }

/* ダークモード時のみ反転＋明度上げ */
@media (prefers-color-scheme: dark) {
  .logo-title img {
    filter: invert(1) brightness(1.2) contrast(1.2);
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background: #181818;
  }
  main.container {
    background: #232323;
  }
}
@media (prefers-color-scheme: dark) {
  body,
  main.container,
  section,
  p,
  li,
  h1, h2, h3, h4, h5, h6 {
    color: #eee !important;
  }
  /* もし見出しだけ強調したいなら */
  h2, h3, h4 {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);  /* 少しだけ影をつけて立体感UP */
  }
  /* 他に読みにくい部分があれば同様に上書き可能 */
}
/* --- 最終保険（他CSSより強制優先） --- */
header .logo-title { height: 70px; }
header .logo-title img {
  height: 100% !important;
  width: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  display: inline-block;
}