/* Root variables - Crystal Pure Stream Water Flow Theme */
:root {
    --bg-primary: #F4FAFA;
    --bg-secondary: #E3F2FD;
    --bg-surface: rgba(255, 255, 255, 0.85);
    --text-main: #0B3C42;
    --text-muted: #4F747A;
    --accent-stream: #008B8B;
    --accent-cyan: #00D2D2;
    --accent-white: #FFFFFF;
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
    --max-width: 1100px;
}

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 210, 210, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 139, 139, 0.08) 0px, transparent 50%);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.4s ease;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: 0.05em;
}

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

/* Navbar with fluid background */
.navbar {
    background-color: rgba(244, 250, 250, 0.9);
    border-bottom: 2px solid rgba(0, 210, 210, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-title {
    font-size: 1.35rem;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.72rem;
    color: var(--accent-stream);
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-cyan);
    transition: width 0.3s ease;
}

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

.nav-menu a:hover {
    color: var(--accent-stream);
}

.nav-btn {
    background: linear-gradient(135deg, var(--accent-stream) 0%, var(--accent-cyan) 100%);
    color: var(--accent-white) !important;
    padding: 10px 24px !important;
    border-radius: 30px;
}

.nav-btn:hover {
    box-shadow: 0 4px 15px rgba(0, 210, 210, 0.3);
}

/* Hero styling with wave effects */
.hero {
    position: relative;
    padding: 80px 0 100px 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
}

.hero-text h1 {
    font-size: 2.8rem;
    line-height: 1.35;
    margin-bottom: 24px;
    color: var(--text-main);
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 36px;
    text-align: justify;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 20px 4px 20px 4px;
    box-shadow: 0 15px 35px rgba(11, 60, 66, 0.1);
    border: 1px solid rgba(0, 210, 210, 0.2);
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-stream) 0%, var(--accent-cyan) 100%);
    color: var(--accent-white);
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 139, 139, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 210, 210, 0.4);
}

.btn-secondary {
    display: inline-block;
    background: var(--accent-white);
    color: var(--text-main);
    padding: 14px 34px;
    border-radius: 30px;
    border: 1px solid rgba(0, 139, 139, 0.3);
    margin-left: 16px;
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-alt {
    background-color: var(--bg-secondary);
    padding: 100px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-size: 0.85rem;
    color: var(--accent-stream);
    letter-spacing: 0.1em;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid layout */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Crystalline card design */
.card-stream {
    background-color: var(--bg-surface);
    border: 1px solid rgba(0, 210, 210, 0.15);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(11, 60, 66, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.card-stream:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 35px rgba(0, 210, 210, 0.15);
}

.card-stream h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
    color: var(--text-main);
    border-left: 3px solid var(--accent-cyan);
    padding-left: 12px;
}

.card-stream p {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: justify;
}

/* Process step styles with wave numbers */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-item {
    display: flex;
    gap: 24px;
    background: var(--bg-surface);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(0, 210, 210, 0.1);
    align-items: center;
}

.step-num {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--accent-stream);
    background: rgba(0, 210, 210, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* FAQ style */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-surface);
    border: 1px solid rgba(0, 210, 210, 0.15);
    border-radius: 10px;
    padding: 24px;
}

.faq-q {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    gap: 10px;
    color: var(--text-main);
    margin-bottom: 12px;
}

.faq-a {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding-left: 20px;
}

/* Tables */
.profile-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-table th,
.profile-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 210, 210, 0.15);
}

.profile-table th {
    font-family: var(--font-serif);
    color: var(--text-main);
    width: 30%;
    font-weight: 700;
}

.profile-table td {
    color: var(--text-muted);
}

.map-container {
    height: 360px;
    border-radius: 12px;
    border: 1px solid rgba(0, 139, 139, 0.2);
    overflow: hidden;
}

.contact-form {
    background-color: var(--bg-surface);
    border: 1px solid rgba(0, 210, 210, 0.15);
    border-radius: 12px;
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    background-color: var(--bg-primary);
    border: 1px solid rgba(0, 139, 139, 0.2);
    border-radius: 6px;
    font-family: var(--font-sans);
    color: var(--text-main);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

/* Footer styling */
.footer {
    background-color: var(--text-main);
    color: var(--accent-white);
    padding: 80px 0 30px 0;
    border-top: 4px solid var(--accent-stream);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 48px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 1.15rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--text-main);
    color: var(--accent-white);
    border: 1px solid var(--accent-cyan);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(11, 60, 66, 0.2);
    max-width: 400px;
    z-index: 1000;
    display: none;
}

.cookie-banner-title {
    font-family: var(--font-serif);
    color: var(--accent-cyan);
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.cookie-banner-desc {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.cookie-banner-btns {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cookie-btn {
    background: linear-gradient(135deg, var(--accent-stream) 0%, var(--accent-cyan) 100%);
    color: var(--accent-white);
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

@media(max-width: 768px) {

    .hero-grid,
    .grid-3,
    .grid-2,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .navbar .container {
        flex-direction: column;
        height: auto;
        padding: 16px;
        gap: 12px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }
}