/* ===== 基本 ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 90px 0 0;
  background: #f3efe8;
  font-family: "M PLUS Rounded 1c", sans-serif;
  color: #4a3f35;
  overflow-x: hidden;
}

/* ===== ローディング ===== */
#loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #f5eee6;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #bd9872;
  border-top: 6px solid #7fa36b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

#content {
  display: none;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px;
}

/* ===== ヘッダー（絶対崩れない） ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #f5eee6;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;

  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
}

/* ロゴ */
.logo {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #3c6923;
  white-space: nowrap;
}

/* ナビ */
.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #4a3f35;
  font-weight: 600;
  padding: 5px 10px;
}

/* 下線 */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #7fa36b;
  transform: translateX(-50%);
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===== About ===== */
.top-about {
  background: linear-gradient(#d6bfa7, #cbb49c);
  max-width: 900px;
  margin: 30px auto;
  padding: 60px 20px;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.about-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

/* アイコンアニメ */
@keyframes float-icon {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.about-inner img {
  width: 140px;
  animation: float-icon 2.5s ease-in-out infinite;
}

.about-inner img:hover {
  transform: translateY(-15px) scale(1.05);
}

/* ===== Link ===== */
.link-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}

.pill {
  padding: 15px;
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  color: #4a3f35;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: 0.2s;
}

.pill:hover {
  transform: translateY(-4px);
  background: #e6f0e3;
  color: #3c6923;
}

.pill:active {
  transform: scale(0.95);
}

/* ===== Update ===== */
.update-box {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  margin-top: 40px;
}

.timeline {
  border-left: 3px solid #ccc;
  padding-left: 20px;
  margin-left: 20px;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-item .dot {
  position: absolute;
  left: -27px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: #8b5a2b;
  border-radius: 50%;
}

/* ===== タイトル ===== */
.section-title {
  text-align: center;
  font-family: 'Zen Maru Gothic', sans-serif;
  margin: 30px 0;
}

/* ===== コピーライト ===== */
.copyright {
  position: fixed;
  bottom: 15px;
  left: 15px;
  font-size: 12px;
  color: #7a6a5f;
  opacity: 0.7;
  pointer-events: none;
}

/* ===== スマホ ===== */
@media (max-width: 768px) {

  .nav-inner {
    flex-direction: column;
    gap: 10px;
  }

  .logo {
    font-size: 26px;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .about-inner {
    flex-direction: column;
    text-align: center;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }
}