/*
Theme Name: Animephill
Theme URI: https://www.ikeani.jp/
Author: Ikeani
Author URI: https://www.ikeani.jp/
Description: アニメ音楽オーケストラ「池袋アニメフィルハーモニー」公式サイト用オリジナルテーマ。漫画のコマ割り×ポップなハイブリッドデザインを採用。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: animephill
Tags: custom-menu, featured-images, translation-ready, grid-layout
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
	--color-ink: #1a1a1a;
	--color-black: #0a0a0a;
	--color-paper: #f5f5f5;
	--color-white: #ffffff;
	--color-sky: #4ec0e8;
	--color-sky-light: #90caf9;
	--color-pop-pink: #ff6b9d;
	--color-pop-yellow: #ffd93d;
	--color-pop-green: #6bcb77;
	--color-accent: #c62828;

	/* Brand: red / blue / black */
	--color-brand-red: #c62828;
	--color-brand-red-dark: #8e0000;
	--color-brand-red-light: #ef5350;
	--color-brand-blue: #1565c0;
	--color-brand-blue-light: #42a5f5;

	/* Cyber theme */
	--cyber-cyan: #3f98d0;
	--cyber-magenta: #bfa6cf;
	--cyber-lime: #d8e7c8;
	--cyber-orange: #f2c8ae;
	--hero-edge-color: #b8ecf8;
	--cyber-bg: #6eb8e8;
	--cyber-bg-soft: #8ecaea;
	--cyber-bg-panel: rgba(94, 178, 228, 0.86);
	--cyber-sky: #d9e2ef;
	--cyber-text: #f2f6fb;
	--cyber-text-muted: rgba(242, 246, 251, 0.72);
	--cyber-border: rgba(122, 162, 202, 0.36);
	--cyber-glow: 0 0 20px rgba(57, 141, 195, 0.24);
	--cyber-glow-magenta: 0 0 16px rgba(191, 166, 207, 0.24);

	--font-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
	--font-display: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;

	--border-comic: 4px solid var(--color-ink);
	--border-comic-thick: 6px solid var(--color-ink);
	--gap-comic: 12px;
	--radius-bubble: 2px 16px 16px 16px;
	--shadow-comic: 4px 4px 0 var(--color-ink);
	--transition-panel: transform 0.25s ease, box-shadow 0.25s ease;

	--container-max: 1280px;
	--header-height: 96px;
	--header-padding-y: 24px;
	/* Subpages use in-flow header (has-ambient-bg); only a small gap below nav */
	--page-section-top: 0.75rem;
	--header-action-y: calc(var(--header-padding-y) + var(--header-height) / 2);
	--header-teal: #7aa2ca;
	--font-oswald: "Oswald", "Noto Sans JP", sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.7;
	color: var(--cyber-text);
	background-color: var(--cyber-bg);
	background-image:
		radial-gradient(ellipse 100% 60% at 50% -8%, rgba(184, 236, 248, 0.55), transparent 58%),
		radial-gradient(ellipse 80% 45% at 50% 100%, rgba(63, 152, 208, 0.18), transparent 62%);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.3;
}

p {
	margin: 0 0 1em;
}

/* ==========================================================================
   Utility
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--color-white);
	clip: auto !important;
	clip-path: none;
	color: var(--color-ink);
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.container {
	width: min(100% - 2rem, var(--container-max));
	margin-inline: auto;
}

/* ==========================================================================
   Comic-style headings (bubble)
   ========================================================================== */

.heading-bubble {
	display: inline-block;
	position: relative;
	padding: 0.45em 1.1em;
	background: var(--cyber-bg-panel);
	border: 1px solid var(--cyber-border);
	border-radius: 6px;
	box-shadow: var(--cyber-glow);
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	color: var(--cyber-text);
	text-transform: none;
	letter-spacing: 0.04em;
}

.heading-bubble::after,
.heading-bubble::before {
	display: none;
}

/* ==========================================================================
   Buttons & CTA
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.75em 1.5em;
	font-family: var(--font-display);
	font-size: 0.9375rem;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid var(--cyber-border);
	border-radius: 6px;
	box-shadow: var(--cyber-glow);
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 0 24px rgba(0, 212, 255, 0.4);
	border-color: var(--cyber-cyan);
}

.btn--primary {
	background: linear-gradient(135deg, var(--cyber-magenta), #c4006a);
	color: var(--color-white);
	border-color: rgba(255, 45, 155, 0.5);
}

.btn--primary:hover {
	box-shadow: var(--cyber-glow-magenta);
	border-color: var(--cyber-magenta);
}

.btn--secondary {
	background: rgba(0, 212, 255, 0.12);
	color: var(--cyber-cyan);
	border-color: rgba(0, 212, 255, 0.45);
}

.btn--accent {
	background: rgba(184, 255, 60, 0.15);
	color: var(--cyber-lime);
	border-color: rgba(184, 255, 60, 0.45);
}

.btn--line {
	background: #06c755;
	color: var(--color-white);
	border-color: #06c755;
	box-shadow: 0 0 16px rgba(6, 199, 85, 0.35);
}

.btn--donate {
	background: linear-gradient(135deg, var(--cyber-orange), #e86a00);
	color: var(--color-white);
	border-color: rgba(255, 138, 61, 0.5);
}

.btn--ghost {
	background: rgba(255, 255, 255, 0.1);
	color: var(--color-white);
	border-color: rgba(255, 255, 255, 0.35);
	box-shadow: none;
}

.btn--ghost:hover {
	background: rgba(255, 255, 255, 0.18);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.btn-text-3d {
	position: relative;
	display: inline-block;
	text-decoration: none;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(1.05rem, 2.4vw, 1.35rem);
	letter-spacing: 0.04em;
	line-height: 1.2;
	color: #7ef0ff;
	text-shadow:
		0px 3px 2px rgba(0, 0, 0, 0.4),
		0px 1px 0px #1aa8c4,
		0px 2px 0px #1488a0,
		0px 3px 0px #0f6d82,
		0 0 12px rgba(0, 212, 255, 0.35);
	transition: top 0.1s ease, text-shadow 0.1s ease, color 0.15s ease;
}

.btn-text-3d:hover {
	color: #b8f8ff;
	text-decoration: none;
	text-shadow:
		0px 3px 2px rgba(0, 0, 0, 0.4),
		0px 1px 0px #1aa8c4,
		0px 2px 0px #1488a0,
		0px 3px 0px #0f6d82,
		0 0 16px rgba(0, 212, 255, 0.5);
}

.btn-text-3d:active {
	top: 3px;
	text-shadow: none;
}
