/*
Theme Name: Akari Custom Theme
Description: OOCSS-refactored WordPress theme for AKARI site[](https://akari-tea.lifeadviceservice.com/).
Version: 1.0
Author: Grok
Text Domain: akari
*/

:root {
    --font-ja: "A1明朝", "游明朝", "ヒラギノ明朝 ProN W3", "ＭＳ Ｐ明朝", serif;
    --font-en: Balthazar, serif;
    --color-primary: #1d1dff;
    --color-base-100: #ffffff;
    --color-base-200: #f6f5fa;
    --color-base-300: #e3e2ed;
    --color-base-400: #b0aed0;
    --color-base-500: #5a5d8d;
    --color-base-600: #000852;
    --color-base-700: #010132;
    --shadow-sm: 0 2px 20px 0 rgba(0, 8, 82, 0.03);
    --shadow-md: 0 5px 20px 0 rgba(0, 8, 82, 0.05);
    --shadow-lg: 0 5px 30px 0 rgba(0, 8, 82, 0.1);
}

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

body {
    font-family: var(--font-en);
    color: var(--color-base-600);
    background: var(--color-base-100);
    line-height: 1.6;
}

/* OOCSS Layout Objects */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.col {
    flex: 1;
    min-width: 0;
}

.col--1-3 {
    flex: 0 0 33.333%;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .col--md-full {
        flex: 0 0 100%;
    }
}

/* OOCSS Component Objects: Banner (Announce/News) */
.banner {
    position: relative;
    padding: 1rem;
}

.banner--announce {
    background: var(--color-base-200);
    border-bottom: 1px solid var(--color-base-300);
    text-align: center;
}

.banner--news {
    background: var(--color-base-100);
}

.banner__close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-base-500);
}

.banner__link {
    color: var(--color-base-600);
    text-decoration: none;
    font-size: 1rem;
}

.banner__list {
    list-style: none;
    padding: 0;
}

.banner__list .list__item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.list__time {
    font-size: 0.875rem;
    color: var(--color-base-400);
    margin-right: 1rem;
    white-space: nowrap;
}

.list__link {
    color: var(--color-primary);
    text-decoration: none;
}

/* OOCSS Component Objects: Card (Products/Story Items) */
.card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.card--product,
.card--post,
.card--cart-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card__image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.card__content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card__name {
    font-family: var(--font-ja);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card__lede {
    font-size: 0.875rem;
    color: var(--color-base-500);
    line-height: 1.4;
}

.card__link-text {
    align-self: flex-start;
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

/* OOCSS Component Objects: Navigation */
.nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav--horizontal {
    display: flex;
    gap: 2rem;
}

.nav__item {
    position: relative;
}

.nav__item a {
    text-decoration: none;
    color: var(--color-base-600);
}

.nav--children {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-base-100);
    box-shadow: var(--shadow-lg);
    display: none;
    min-width: 250px;
}

.nav--children.is-active {
    display: block;
}

/* OOCSS Component Objects: Hero (KV Section) */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero--kv {
    background-size: cover;
    background-position: center;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* OOCSS Component Objects: Grid (Products/Story) */
.grid {
    display: grid;
}

.grid--products {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid--story {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* OOCSS Component Objects: Section (About/Experience) */
.section {
    padding: 4rem 0;
}

.section--about {
    background: var(--color-base-200);
}

/* OOCSS Themes: Text Variants */
.text--ja {
    font-family: var(--font-ja);
}

.text--en {
    font-family: var(--font-en);
    font-weight: 600;
}

.heading {
    text-align: center;
    margin-bottom: 2rem;
}

.heading .text--ja {
    font-size: 2rem;
}

.heading .text--en {
    font-size: 1.5rem;
    color: var(--color-primary);
}

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

.hidden {
    display: none;
}

.is-active {
    display: block;
}

.is-empty {
    opacity: 0.7;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.input--email {
    padding: 0.75rem;
    border: 1px solid var(--color-base-300);
    border-radius: 0.25rem;
}

.button--primary {
    background: var(--color-primary);
    color: var(--color-base-100);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.button--primary:hover {
    background: var(--color-base-600);
}

/* Modal for Popups/Carts */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.is-active {
    display: flex;
}

.modal__container {
    background: var(--color-base-100);
    padding: 2rem;
    max-width: 500px;
    border-radius: 0.5rem;
    max-height: 90vh;
    overflow-y: auto;
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .col--1-3 {
        flex: 0 0 100%;
    }

    .hero {
        height: 60vh;
    }

    .heading .text--ja {
        font-size: 1.5rem;
    }
}

/* WooCommerce Overrides */
.woocommerce .container {
    max-width: 100%;
}

.woocommerce .products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.woocommerce .product {
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.woocommerce .product:hover {
    box-shadow: var(--shadow-md);
}

/* Divider for Footer/Sub Nav */
.divider {
    border: none;
    height: 1px;
    background: var(--color-base-300);
    margin: 2rem 0;
}

@media (min-width: 1024px) {
    .lg-min {
        display: block;
    }
}

@media (max-width: 1023px) {
    .lg-min {
        display: none;
    }
}

@media (min-width: 768px) {
    .md-max {
        display: none;
    }
}

@media (max-width: 767px) {
    .md-max {
        display: block;
    }
}

/* Additional Site-Specific Styles */
.tags {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--color-primary);
}

.thumbnail {
    position: relative;
    overflow: hidden;
}

.thumbnail__image {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.thumbnail-link:hover .thumbnail__image {
    transform: scale(1.05);
}

.link-more {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.link-more:hover {
    text-decoration: none;
}

.more--link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.more__icon {
    width: 1rem;
    height: 1rem;
}

/* Lity Modal Support */
.lity-hide {
    display: none;
}

/* Header Specific */
.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo-col {
    flex: 0 0 auto;
}

.header__icons-col {
    display: flex;
    gap: 1rem;
}

.nav-toggle {
    display: none;
}

@media (max-width: 767px) {
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
    }

    .nav--primary {
        display: none;
    }

    .nav--primary.is-active {
        display: block;
    }
}

.bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bar {
    width: 24px;
    height: 3px;
    background: var(--color-base-600);
}

.footer-primary__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-social__list {
    display: flex;
    gap: 1rem;
}

.footer-social__list i {
    font-size: 1.5rem;
}