@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Shippori+Mincho:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #f5f5dc;
    --secondary-color: #6b8e23;
    --accent-color: #f7e7ce;
    --text-color: #4a4a4a;
    --text-light: #7a7a7a;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--primary-color);
    background-image: radial-gradient(circle at 10% 20%, rgba(247, 231, 206, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(107, 142, 35, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Shippori Mincho', serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-speed);
}

header.scrolled {
    background: var(--glass-bg);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--secondary-color);
    transition: var(--transition-speed);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Button */
.btn {
    display: inline-block;
    padding: 12px 35px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(107, 142, 35, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 142, 35, 0.3);
    background-color: #5a7a1e;
}

/* Glassmorphism Card */
.section-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 60px 40px;
    margin: 40px 0;
}

/* Hero Base */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/main_visual.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeIn 1.5s ease-out;
}

.hero-subtitle {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    opacity: 0.9;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
    color: var(--text-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
    background: var(--white);
    padding: 80px 0 40px;
    margin-top: 100px;
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    padding: 0 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 60px;
    margin-top: 60px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.8rem;
    color: #888;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    margin-right: 15px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition-speed);
}

/* X Animation */
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Smart Line Breaks --- */
.pc-br { display: block; }
.tab-br, .sp-br { display: none; }

/* --- Responsive Tiers --- */

/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .pc-br { display: none; }
    .tab-br { display: block; }
    
    .hero-title { font-size: 3rem; }
    .container { padding: 0 40px; }
}

/* Smartphone (up to 767px) */
@media screen and (max-width: 767px) {
    .tab-br { display: none; }
    .sp-br { display: block; }

    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }

    .nav-container { padding: 0 20px; }
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    }
    .nav-links.active { right: 0; }
    .section-glass { padding: 40px 20px; margin: 20px 0; }
    .container { padding: 0 15px; }
}