@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Lekton:ital,wght@0,400;0,700;1,400&family=Zen+Kaku+Gothic+Antique&display=swap");

:root {
  --bg-color: #e6e9ef;
  --text-main: #2c3e50;
  --accent-blue: #70a1ff;
  --navy-blue: #1e272e;
  --glass-bg: rgba(255, 255, 255, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  background: linear-gradient(135deg, #fcfdff 0%, #c0cde3 100%);
  color: var(--text-main);
  font-family: "Josefin Sans", "Zen Kaku Gothic Antique", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  min-height: 100svh;
  display: flex;
  padding: 2vh 0;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(112, 161, 255, 0.1), transparent);
  pointer-events: none;
}

.container {
  width: 90%;
  max-width: 500px;
  text-align: center;
  z-index: 10;
}

.top-page {
  font-family: "Josefin Sans", sans-serif;
}

header {
  margin-bottom: 3rem;
  font-family: "Josefin Sans", sans-serif;
}

h1 {
  font-size: 2.2rem;
  font-weight: 200;
  letter-spacing: 0.3rem;
  color: var(--navy-blue);
  margin-bottom: 0.5rem;
  text-shadow: #ffffff 0px 0px 4px;
}

.subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  opacity: 0.6;
  text-shadow: #ffffff 0px 0px 4px;
}

nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-card:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--accent-blue);
}

.card-content h2 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  text-align: left;
}

.card-content span {
  display: block;
  font-size: 0.7rem;
  opacity: 0.6;
  text-align: left;
  text-transform: uppercase;
}

.arrow {
  font-size: 1.2rem;
  opacity: 0.3;
  transition: transform 0.3s;
}

.nav-card:hover .arrow {
  transform: translateX(5px);
  opacity: 1;
  color: var(--accent-blue);
}

footer {
  margin-top: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: #ffffff 0px 0px 4px;
}

footer p {
  font-size: 0.8rem;
  opacity: 0.6;
  letter-spacing: 0.05rem;
}

/* --- Content Page Styles --- */
.content-page {
  text-align: left;
  max-width: 600px;
  margin: auto;
  max-height: none;
}

.back-link {
  margin-bottom: 1.5rem;
}

.back-link a {
  text-decoration: none;
  font-size: 0.8rem;
  color: var(--accent-blue);
  letter-spacing: 0.1rem;
  text-shadow: #ffffff 0px 0px 4px;
}

.content-body {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}

/* Café Timer Specific */
h3 {
  font-size: 1.3rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--navy-blue);
}

.step-list {
  list-style: none;
}

.step-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.6rem;
  align-items: flex-start;
}

.step-num {
  font-family: "Lekton", monospace;
  color: var(--accent-blue);
  font-weight: 700;
}

.launch-button {
  display: block;
  text-align: center;
  background: var(--navy-blue);
  color: white;
  text-decoration: none;
  padding: 1rem;
  margin-top: 1.5rem;
  border-radius: 8px;
  letter-spacing: 0.2rem;
  font-family: "Josefin Sans", sans-serif;
  transition: opacity 0.3s;
}

.launch-button:hover {
  opacity: 0.8;
}

/* Profile Specific */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.avatar-placeholder {
  width: 60px;
  height: 60px;
  background: var(--accent-blue);
  border-radius: 50%;
}

.detail-item {
  margin-bottom: 1.2rem;
}

.label {
  display: block;
  font-size: 0.7rem;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

/* タブナビゲーション */
.tab-container {
  display: flex;
  gap: 2rem;
  margin-bottom: -1px; /* コンテンツボックスの枠線と重ねる */
  padding-left: 1rem;
}

.tab-button {
  background: none;
  border: none;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  font-family: "Josefin Sans", sans-serif;
  font-size: 1rem;
  color: var(--text-main);
  opacity: 0.5;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.tab-button.active {
  opacity: 1;
  color: var(--accent-blue);
  border-bottom: 2px solid var(--accent-blue);
}

/* タブコンテンツの表示・非表示 */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ガイドページ全体の調整 */
.guide-page {
  max-width: 650px;
  margin: 2rem auto;
  text-align: left;
}

.section-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  letter-spacing: 0.05rem;
}

/* --- ガイドページ用装飾 --- */
.feature-list {
  margin-top: 1.5rem;
  padding-left: 0.5rem;
}

.feature-list ul {
  list-style: none;
  margin-top: 0.5rem;
}

.feature-list li {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  position: relative;
  padding-left: 1.2rem;
  opacity: 0.85;
}

/* 箇条書きのドットを水色の四角に */
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  background: var(--accent-blue);
  transform: rotate(45deg);
}

.separator {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin: 2rem 0;
}

/* 小隊カラーのアクセントライン */
.blue-line {
  border-left: 4px solid var(--accent-blue);
}
.yellow-line {
  border-left: 4px solid #f1c40f;
}

.item {
  margin-bottom: 1.2rem;
  padding-left: 1.2rem;
}

.item-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.95rem;
  color: var(--navy-blue);
  margin-bottom: 0.3rem;
}

.content-body p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* 共通のインフォメーションボックス */
.info-box {
  margin-top: 1rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.3); /* グラスモフィズム継承 */
  border-radius: 12px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.03);
}

.info-title {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.05rem;
  display: flex;
  align-items: center;
}

/* 通常時のタイトル色 */
.info-box:not(.alert) .info-title {
  color: var(--accent-blue);
}

/* 警告時のタイトル色 */
.info-box.alert .info-title {
  color: #c0392b;
}

.info-box p {
  font-size: 0.85rem !important;
  line-height: 1.6;
  margin: 0;
}

.highlight {
  margin-top: 0.8rem !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.copyright {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.7rem;
  opacity: 0.4;
}
