/* Lingerica.plus — styles.css
   Base variables, layout, responsive behavior, component styles
*/

/* ===========================
   Design Tokens (CSS variables)
   =========================== */
body {
  font-family: "Noto Sans JP", sans-serif;
  margin: 0;
  color: #333;
  background: #fffafc;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
}
.plus {
  color: #e87fa1;
}
.logo a {
  text-decoration: none;
  color: #333;
}

#mainNav{
  display: none;
  flex-direction: column;
  background: #fff;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  border-top: 1px solid #eee;
}
#mainNav a {
  padding: 12px 18px;
  text-decoration: none;
  color: #333;
}
#mainNav.show {
  display: flex;
}

.mobile-menu-button {
  font-size: 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  display: block;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #ffe5ed 0%, #fff 100%);
  text-align: center;
  padding: 80px 20px;
}
.hero h1 {
  font-size: 1.8rem;
  color: #d65582;
  line-height: 1.4;
}
.hero p {
  color: #555;
  margin: 10px auto 20px;
}
.cta {
  background: #e87fa1;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 24px;
  font-size: 1rem;
}

/* Cards */
.content-grid {
  padding: 30px 20px;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.card h2 {
  color: #d65582;
  margin-bottom: 10px;
}

.content-grid .btn {
  display: inline-block;
  margin-top: 1em;
  padding: 0.6em 1.2em;
  background: #f7b6c2;
  color: #fff;
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 600;
  transition: background 0.3s ease;
}
.content-grid .btn:hover {
  background: #e48ca2;
}


/* Footer */
footer {
  background: #fff;
  text-align: center;
  padding: 20px;
  border-top: 1px solid #eee;
  min-height:120px;
}
.footer-links {
  margin-top: 8px;
}
.footer-links a {
  color: #888;
  text-decoration: none;
  margin: 0 6px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  width: 90%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-align: center;
  padding: 15px;
  display: none;
  z-index: 1000;
}
.cookie-banner p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.btn-group button {
  background: #e87fa1;
  color: #fff;
  border: none;
  border-radius: 20px;
  margin: 4px;
  padding: 8px 16px;
  font-size: 0.85rem;
}
.btn-group button:nth-child(2) {
  background: #ccc;
}
.btn-group button:nth-child(3) {
  background: #f9b2c2;
}

/* Modal */
.cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}
.cookie-modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 350px;
  text-align: center;
}
.modal-buttons button {
  background: #e87fa1;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  margin: 8px;
}

/* ✅ Bottom Navigation */
.bottom-nav {
  position:fixed;
  bottom:0;
  left:0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  background: rgba(255,255,255,0.98);
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.05);
  z-index: 100;
  height: 60px;
}

.nav-item {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #555;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.nav-item.active,
.nav-item:hover {
  color: #e91e63;
}
.bottom-nav a {
  flex: 1;
  text-align: center;
  color: #777;
  text-decoration: none;
  font-size: 0.7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bottom-nav .icon {
  font-size: 1.4rem;
  line-height: 1;
}
.bottom-nav a.active {
  color: #e87fa1;
}

/* 戻るボタンの基本スタイル */
.back-button {
	position: fixed;
    bottom: 10px;
    left: 2px;
    background-color: #4CAF50; /* 緑色背景 */
    color: white;              /* 文字色 */
    border: none;              /* 枠線なし */
    padding: 10px 20px;        /* 内側余白 */
    font-size: 16px;           /* 文字サイズ */
    border-radius: 5px;        /* 角丸 */
    cursor: pointer;           /* ホバー時にポインタ表示 */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* ホバー時の色変化 */
.back-button:hover {
    background-color: #45a049;
    transform: translateY(-2px); /* 少し浮くアニメーション */
}

/* クリック時の押し込み感 */
.back-button:active {
    background-color: #3e8e41;
    transform: translateY(0);
}

/* フォーカス時のアクセシビリティ対応 */
.back-button:focus {
    outline: 2px solid #80e27e;
    outline-offset: 2px;
}


/* Responsive */
@media (min-width: 769px) {
  nav {
    display: flex;
    position: static;
    flex-direction: row;
  }
  .mobile-menu-button {
    display: none;
  }
  .content-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  .card {
    width: 45%;
  }
  
  .bottom-nav {
    display: none; /* PCでは非表示 */
  }
}
