:root {
    /* Colors - Deep Indigo Theme */
    --color-bg: #0D1B2A;
    --color-surface-1: #1B263B;
    --color-surface-2: #415A77;
    --color-accent: #778DA9;
    --color-highlight: #E0E1DD;
    --color-text-main: #FFFFFF;
    --color-text-muted: #A0A0A0;

    /* Typography */
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-jp);
    line-height: 1.8;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Typography Tools */
.section-title {
    font-family: var(--font-en);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-highlight);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
}

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

/* Utility: Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 27, 42, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 70px;
    display: flex;
    align-items: center;
}

.header__inner {
    width: 94%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-family: var(--font-en);
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: var(--color-highlight);
}

.header__nav {
    display: none;
    /* Mobile first hidden, show on desktop later */
}

@media (min-width: 768px) {
    .header__nav {
        display: block;
    }
}

.header__list {
    display: flex;
    gap: var(--spacing-md);
}

.header__list a {
    font-family: var(--font-en);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.header__list a:hover {
    color: var(--color-highlight);
}

.header__cta {
    font-family: var(--font-en);
    font-size: 0.9rem;
    border: 1px solid var(--color-highlight);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: var(--color-highlight);
}

.header__cta:hover {
    background: var(--color-highlight);
    color: var(--color-bg);
    opacity: 1;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(65, 90, 119, 0.2), transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(27, 38, 59, 0.4), transparent 60%);
    z-index: -1;
}

.hero__container {
    position: relative;
    z-index: 1;
}

.hero__tags {
    margin-bottom: var(--spacing-md);
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: var(--color-accent);
    letter-spacing: 0.05em;
}

.hero__tags span::after {
    content: " / ";
    margin: 0 0.3rem;
    color: rgba(255, 255, 255, 0.2);
}

.hero__tags span:last-child::after {
    content: "";
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.hero__catch {
    font-size: 0.9rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-lg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-family: var(--font-en);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn--primary {
    background: var(--color-highlight);
    color: var(--color-bg);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(224, 255, 255, 0.2);
    opacity: 1;
}

/* Definition */
.definition {
    text-align: center;
}

.definition__text {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    line-height: 2;
}

.definition__what {
    background: rgba(255, 255, 255, 0.02);
    padding: var(--spacing-lg);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.definition__what h3 {
    font-family: var(--font-en);
    font-size: 1.2rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
}

/* Product & Certification Lists */
.product__content,
.certification__content {
    background: rgba(27, 38, 59, 0.4);
    padding: var(--spacing-lg);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product__list,
.feature-list {
    margin: var(--spacing-md) 0;
    padding-left: 1.5em;
}

.product__list li,
.feature-list li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
    color: var(--color-highlight);
}

/* Why Sake */
.why-sake {
    background: linear-gradient(135deg, var(--color-surface-1), var(--color-bg));
    padding: 0;
    /* Full width bg handling if needed, but keeping section padding */
    padding: var(--spacing-xl) 0;
}

.why-sake__inner {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.why-sake__title {
    font-family: var(--font-en);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

/* Ecosystem Diagram */
.ecosystem__diagram {
    margin-top: var(--spacing-lg);
    height: 450px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.eco-circle {
    width: 300px;
    height: 300px;
    border: 1px dashed var(--color-surface-2);
    border-radius: 50%;
    position: relative;
    /* Gentle rotation for dynamic feel */
    animation: rotate 60s linear infinite;
}

.eco-item {
    position: absolute;
    background: var(--color-bg);
    /* Use bg color to mask dashed line if needed, or surface */
    background: rgba(27, 38, 59, 0.9);
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--color-accent);
    color: var(--color-text-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    white-space: nowrap;

    /* Counter-rotate to keep text upright */
    animation: counter-rotate 60s linear infinite;
}

/* Arrows or Connecting Lines (Pseudo-elements) */
.eco-circle::after {
    content: "PLATFORM";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-en);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--color-surface-2);
    font-weight: 700;
}

/* Positioning items on the circle */
.item-1 {
    top: -20px;
    left: 50%;
    transform: translate(-50%, 0);
    margin-left: -15px;
}

/* Experience */
.item-2 {
    top: 25%;
    right: -30px;
}

/* Data */
.item-3 {
    bottom: 25%;
    right: -30px;
}

/* Knowledge */
.item-4 {
    bottom: -20px;
    left: 50%;
    transform: translate(-50%, 0);
    margin-left: 15px;
}

/* Community */
.item-5 {
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
}

/* Stores/Events */

/* Animation Definitions */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes counter-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

/* Responsive adjustment for diagram */
@media (max-width: 600px) {
    .eco-circle {
        width: 240px;
        height: 240px;
    }

    .eco-item {
        font-size: 0.75rem;
        padding: 0.5rem 0.8rem;
    }
}

/* Vision */
.vision {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.vision__text {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.6;
    background: linear-gradient(to bottom, #fff, #777);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Company */
.company__list {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.company__row {
    display: flex;
    flex-wrap: wrap;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.company__row dt {
    width: 200px;
    font-weight: bold;
    color: var(--color-accent);
}

.company__row dd {
    flex: 1;
}

/* Contact */
.contact__form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-highlight);
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    padding: var(--spacing-md) 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header__inner {
        justify-content: space-between;
    }

    .header__nav {
        display: none;
        /* Todo: Hamburger menu */
    }

    .company__row {
        flex-direction: column;
        gap: 0.5rem;
    }
}