/* ============================================
   style.css — 共通CSS
   全ページで読み込む
   ============================================ */

/* --- 変数 --- */
:root {
  --font-main:  'Noto Sans JP', sans-serif;
  --font-title: 'Fredoka One', cursive;
  --c-primary:  #4A7CF7;
  --c-accent:   #FF8C42;
  --c-correct:  #2ECC71;
  --c-wrong:    #E74C3C;
  --c-bg:       #F4F7FF;
  --c-surface:  #FFFFFF;
  --c-border:   #E0E6F0;
  --c-text:     #2D2D2D;
  --c-sub:      #999999;
}

/* --- リセット --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-main);
  color: var(--c-text);
  background: var(--c-bg);
  min-height: 100vh;
}
h1{
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}
.logo {
	font-family: var(--font-title);
	font-size: 30px;
	display:flex;
	text-decoration:none;
}
.logo *{
	display:block;
	margin-top:0;
	margin-bottom:0;
	transition:all .5s;
	animation:pop .5s ease 0s forwards;
}
.logo:hover *{
	margin-top:-10px;
	margin-bottom:10px;
}
.logo b{
	font-weight:normal;
	color: var(--c-primary);
}
.logo u{
	text-decoration:none;
	color: var(--c-accent);
}
@keyframes pop{
	0%,100%{
		margin-top:0;
		margin-bottom:0;
	}50%{
		margin-top:-10px;
		margin-bottom:10px;
	}
}
.logo *:nth-child(1){
	animation-delay:.1s;
	transition-delay:.1s;
}
.logo *:nth-child(2){
	animation-delay:.2s;
	transition-delay:.2s;
}
.logo *:nth-child(3){
	animation-delay:.3s;
	transition-delay:.3s;
}
.logo *:nth-child(4){
	animation-delay:.4s;
	transition-delay:.4s;
}
.logo *:nth-child(5){
	animation-delay:.5s;
	transition-delay:.5s;
}
.logo *:nth-child(6){
	animation-delay:.6s;
	transition-delay:.6s;
}
.logo *:nth-child(7){
	animation-delay:.7s;
	transition-delay:.7s;
}

/* --- レイアウト --- */
.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px 60px;
}
/* --- ヘッダー --- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 16px;
}


.user-icon {
	width:50px;
	height:50px;
	border-radius:50%;
	overflow:hidden;
	margin:0;
	padding:0;
	position:absolute;
	top:20px;
	right:20px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	transition: box-shadow 0.2s, transform 0.2s;
}
.user-icon:hover {
	box-shadow: 0 4px 14px rgba(0,0,0,0.22);
	transform: scale(1.06);
}
.user-icon a {
	display:block;
	width:100%;
	height:100%;
}
.user-icon img {
	display:block;
	width:100%;
	height:100%;
	object-fit:cover;
	border-radius:50%;
	background:#ccc;
}

nav{
	max-width: 680px;
	margin: 0 auto;
	padding: 0 20px;
}
nav ul{
	display:flex;
	flex-wrap:wrap;
}
nav ul li{
	padding:0;
	margin:5px;
	list-style-type:none;
	position:relative;
}
nav ul li a{
	display:block;
	color:#fff;
	text-align:center;
	white-space:nowrap;
	line-height:40px;
	border-radius:15px;
	padding:0 20px;
	border:2px solid var(--c-primary);
	color:var(--c-primary);
	text-decoration:none;
	transition:all .3s;
}
nav ul li a:hover{
	background:var(--c-accent);
	border:2px solid var(--c-accent);
	color:#fff;
}
nav ul li a.active{
	border:2px solid var(--c-primary);
	background:var(--c-primary);
	color:#fff;
}
.nav-badge{
	position:absolute;
	top:-6px;
	right:-6px;
	display:inline-block;
	text-align:center;
	font-size:10pt;
	width:auto;
	padding:0 8px;
	border-radius:10px;
	line-height:20px;
	background:#f05;
	color:#fff;
}
/* --- お知らせバナー --- */
.notice {
  background: var(--c-primary);
  color: #fff;
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 28px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.35s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- セクションタイトル --- */
.sec-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-sub);
  letter-spacing: 0.06em;
  margin: 24px 0 12px;
  text-transform: uppercase;
}

/* --- フィルターバー --- */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

.filter-bar select {
  font-family: var(--font-main);
  font-size: 15px;
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
  padding: 6px 12px;
  background: var(--c-surface);
  color: var(--c-text);
  cursor: pointer;
}

/* --- ボタン --- */
.btn-primary {
  width: 100%;
  min-height: 56px;
  background: var(--c-primary);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 20px;
  font-family: var(--font-main);
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.15s, transform 0.1s;
  margin-top: 4px;
  display: none;
}
.btn-primary.show   { display: block; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:hover  { background: #3A6CE0; }
.btn-accent         { background: var(--c-accent); }
.btn-accent:hover   { background: #e07030; }

.btn-back {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 14px;
  font-family: var(--font-main);
  cursor: pointer;
  color: var(--c-text);
  flex-shrink: 0;
}

/* --- 画面切り替え --- */
.screen        { display: none; }
.screen.active { display: block; }

/* --- フィードバックオーバーレイ --- */
.feedback-overlay {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 200;
}
.feedback-overlay.show { display: flex; }
.feedback-mark {
  font-size: 110px;
  animation: popIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes popIn {
  from { transform: scale(0.2); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* --- レスポンシブ --- */
@media (min-width: 769px) {
  .wrap { padding: 0 32px 60px; }
}


/* ============================================
   CUSTOM — ここに追記して上書き
   ============================================ */
