/*
Theme Name: Rocky Theme
Theme URI: https://www.live-cafe-bar-rocky.com/
Author: Rocky Dev Team
Author URI: https://www.live-cafe-bar-rocky.com/
Description: ライブレストランRocky - Custom WordPress Theme. Red & white two-tone design for a live restaurant.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rocky-theme
Tags: one-column, custom-menu, featured-images, full-width-template
*/

/* ==========================================================================
   CSS Custom Properties — Red/White Theme
   Light (white) sections use body-level variables.
   Dark (red) sections re-scope variables via .section--dark.
   ========================================================================== */

:root {
	/* Colors — light (white) sections */
	--color-bg-main: #faf7f3;
	--color-bg-sub: #f0ece5;
	--color-text-main: #1e1a17;
	--color-text-sub: #5a5550;
	--color-accent-gold: #b08d0a;
	--color-cta-orange: #d45500;
	--color-border: #ddd8cf;

	/* Typography */
	--font-heading: 'Noto Serif JP', serif;
	--font-body: 'Noto Sans JP', sans-serif;

	/* Font Sizes */
	--fs-h1: clamp(2.5rem, 5vw, 4rem);
	--fs-h2: clamp(2rem, 4vw, 2.5rem);
	--fs-h3: clamp(1.5rem, 3vw, 1.75rem);
	--fs-body: 1rem;
	--fs-small: 0.875rem;

	/* Spacing */
	--section-padding: clamp(4rem, 8vw, 8rem);
	--container-width: 1200px;
	--container-padding: 1.5rem;

	/* Transitions */
	--transition-base: 0.3s ease;
	--transition-slow: 0.6s ease;

	/* Header */
	--header-height: 80px;
}

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

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

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

body {
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: 1.8;
	color: var(--color-text-main);
	background-color: var(--color-bg-main);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

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

a {
	color: var(--color-accent-gold);
	text-decoration: none;
	transition: color var(--transition-base);
}

a:hover {
	color: #8a7208;
}

ul,
ol {
	list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: 1.3;
}

h1 {
	font-family: var(--font-heading);
	font-size: var(--fs-h1);
}

h2 {
	font-family: var(--font-heading);
	font-size: var(--fs-h2);
}

h3 {
	font-family: var(--font-body);
	font-size: var(--fs-h3);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

.section {
	padding: var(--section-padding) 0;
}

.section--light {
	background-color: var(--color-bg-sub);
}

/* Dark sections — red with depth */
.section--dark {
	--color-bg-main: #d90000;
	--color-bg-sub: #b80000;
	--color-text-main: #f5f0eb;
	--color-text-sub: rgba(245, 240, 235, 0.75);
	--color-accent-gold: #ffd700;
	--color-cta-orange: #f5f0eb;
	--color-border: rgba(245, 240, 235, 0.18);
	background-color: var(--color-bg-main);
	background-image: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.08) 0%,
		rgba(0, 0, 0, 0) 40%,
		rgba(0, 0, 0, 0) 60%,
		rgba(0, 0, 0, 0.08) 100%
	);
}

.section--dark a:hover {
	color: #ffd700;
}

/* Section Header */
.section__header {
	text-align: center;
	margin-bottom: 3rem;
}

.section__title {
	color: var(--color-text-main);
	position: relative;
	display: inline-block;
	padding-bottom: 1rem;
}

.section__title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 2px;
	background-color: var(--color-accent-gold);
}

.section--dark .section__title::after {
	background-color: #f5f0eb;
}

.section__subtitle {
	color: var(--color-text-sub);
	margin-top: 1rem;
	font-size: var(--fs-body);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 1rem 2.5rem;
	font-family: var(--font-body);
	font-size: var(--fs-body);
	font-weight: 700;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all var(--transition-base);
	text-decoration: none;
	line-height: 1;
}

/* Primary — white sections */
.btn--primary {
	background-color: var(--color-cta-orange);
	color: #ffffff;
}

.btn--primary:hover {
	background-color: #e86a1a;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 20px rgba(212, 85, 0, 0.3);
}

/* Primary — red sections */
.section--dark .btn--primary {
	background-color: #f5f0eb;
	color: #c00000;
}

.section--dark .btn--primary:hover {
	background-color: #ffffff;
	color: #c00000;
	box-shadow: 0 4px 20px rgba(245, 240, 235, 0.35);
}

/* Outline — white sections */
.btn--outline {
	background-color: transparent;
	color: var(--color-accent-gold);
	border: 1px solid var(--color-accent-gold);
}

.btn--outline:hover {
	background-color: var(--color-accent-gold);
	color: #1e1a17;
	transform: translateY(-2px);
}

/* Outline — red sections */
.section--dark .btn--outline {
	color: #f5f0eb;
	border-color: #f5f0eb;
}

.section--dark .btn--outline:hover {
	background-color: #f5f0eb;
	color: #c00000;
}

/* Gold — white sections */
.btn--gold {
	background-color: var(--color-accent-gold);
	color: #1e1a17;
}

.btn--gold:hover {
	background-color: #9a7d0a;
	color: #1e1a17;
	transform: translateY(-2px);
	box-shadow: 0 4px 20px rgba(176, 141, 10, 0.3);
}

/* Gold — red sections */
.section--dark .btn--gold {
	background-color: #ffd700;
	color: #1e1a17;
}

.section--dark .btn--gold:hover {
	background-color: #ffed70;
	color: #1e1a17;
	box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.btn--large {
	padding: 1.25rem 3rem;
	font-size: 1.125rem;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center {
	text-align: center;
}

.text-gold {
	color: var(--color-accent-gold);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Scroll Animation */
.fade-in {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
	:root {
		--header-height: 60px;
		--container-padding: 1rem;
	}
}
