@charset "UTF-8";
/*
Theme Name: Organical Theme
Description: Organic & Sustainable Corporate Theme
Author: Your Name
Version: 1.0.8
*/

/* ==========================================================================
   1. Variables & Base
   ========================================================================== */
:root {
    /* Color Palette */
    --color-base: #FFFEFC;
    --color-main: #EAE4DD;
    --color-text: #1F1F1F;
    --color-accent: #6B5E52;
    --color-white: #FFFFFF;

    /* Fonts */
    --font-ja: 'Noto Sans JP', sans-serif;
    --font-en: 'Cormorant Garamond', serif;

    /* Breakpoints */
    --bp-sm: 767px;
    --bp-md: 1023px;

    /* Transition */
    --transition-default: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-ja);
    background-color: var(--color-base);
    color: var(--color-text);
    line-height: 1.8;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition-default), color var(--transition-default);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
    object-fit: cover;
}

ul {
    list-style: none;
}

/* ==========================================================================
   2. Utilities / Typography
   ========================================================================== */
/* PC Sizes */
.u-text-catch-lg { font-size: 40px; font-weight: 700; line-height: 1.4; }
.u-text-catch-sm { font-size: 32px; font-weight: 500; line-height: 1.5; }
.u-text-heading { font-size: 32px; font-weight: 700; margin-bottom: 1.5rem; }
.u-text-subheading { font-size: 24px; font-weight: 700; margin-bottom: 1rem; }
.u-text-subcopy { font-size: 22px; font-weight: 400; line-height: 1.6; }
.u-text-body { font-size: 16px; font-weight: 400; }
.u-text-small { font-size: 14px; font-weight: 400; }

.u-en-big-heading { 
    font-family: var(--font-en); 
    font-size: 56px; 
    font-weight: 600; 
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    display: block;
}

.u-en-nav { font-family: var(--font-en); font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; }

/* SP Sizes */
@media screen and (max-width: 767px) {
    .u-text-catch-lg { font-size: 24px; }
    .u-text-catch-sm { font-size: 20px; }
    .u-text-heading { font-size: 20px; }
    .u-text-subheading { font-size: 20px; }
    .u-text-subcopy { font-size: 14px; }
    .u-text-body { font-size: 16px; }
    .u-text-small { font-size: 14px; }
    
    .u-en-big-heading { font-size: 28px; }
    .u-en-nav { font-size: 16px; }
}

.u-sp-only { display: none; }
@media screen and (max-width: 767px) {
    .u-sp-only { display: inline; }
}

/* ==========================================================================
   3. Layout Common
   ========================================================================== */
.l-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Narrow Container for Single Post */
.l-container--narrow {
    max-width: 800px;
}

.l-section {
    padding-top: 120px;
    padding-bottom: 120px;
}

@media screen and (max-width: 767px) {
    .l-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

.l-section__header {
    margin-bottom: 60px;
    text-align: center;
}

/* Animations */
.js-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Component: Button */
.c-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 16px 48px;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color var(--transition-default);
    border: none;
    cursor: pointer;
}

.c-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-text);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-default);
    z-index: -1;
}

.c-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* ==========================================================================
   4. Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    transition: background-color 0.3s, padding 0.3s;
    display: flex;
    align-items: center;
}

.header.is-scrolled {
    background-color: rgba(255, 254, 252, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 70px;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.header__logo {
    font-family: var(--font-en);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.05em;
    z-index: 101;
}

.header__nav-list {
    display: flex;
    gap: 40px;
}

.header__nav-item a {
    position: relative;
    display: inline-block;
}

.header__nav-item a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.header__nav-item a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header__hamburger {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
    cursor: pointer;
}

.header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    position: absolute;
    transition: all 0.3s;
}

.header__hamburger span:nth-child(1) { top: 0; }
.header__hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.header__hamburger span:nth-child(3) { bottom: 0; }

@media screen and (max-width: 767px) {
    .header__inner { padding: 0 20px; }
    .header__hamburger { display: block; }

    .header__nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-base);
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        z-index: 100;
    }

    .header__nav.is-open {
        transform: translateX(0);
    }

    .header__nav-list {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .header__hamburger.is-open span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
    .header__hamburger.is-open span:nth-child(2) { opacity: 0; }
    .header__hamburger.is-open span:nth-child(3) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }
}

/* ==========================================================================
   5. Sections (Hero, News, Service, etc)
   ========================================================================== */
/* Hero */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?q=80&w=2813&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
}

.hero__content {
    position: relative;
    z-index: 2;
    padding-left: 10%;
    max-width: 800px;
}

.hero__title { margin-bottom: 2rem; color: var(--color-text); }
.hero__sub { color: var(--color-accent); margin-bottom: 1rem; display: block; }

/* News */
.news { background-color: var(--color-white); padding: 60px 0; }
.news__list { max-width: 900px; margin: 0 auto; }
.news__item { border-bottom: 1px solid var(--color-main); transition: background-color 0.3s; }
.news__item:first-child { border-top: 1px solid var(--color-main); }

/* News Link Layout */
.news__link { 
    display: flex; 
    padding: 20px; 
    align-items: flex-start; 
    flex-direction: row; 
}

/* News Meta (Date area) */
.news__meta {
    width: 120px;
    flex-shrink: 0;
    margin-right: 30px;
}

.news__date { 
    font-family: var(--font-en); 
    color: var(--color-accent); 
    display: block;
}

.news__title { 
    flex: 1; 
}

.news__item:hover { background-color: rgba(234, 228, 221, 0.3); }

@media screen and (max-width: 767px) {
    .news__link { flex-direction: column; }
    .news__meta { 
        width: auto;
        margin-right: 0;
        margin-bottom: 8px; 
    }
}

/* Service */
.service__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.service__card { 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 4px;
}
.service__card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}
.service__image-wrapper { width: 100%; height: 250px; overflow: hidden; margin-bottom: 24px; border-radius: 4px; }
.service__image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service__card:hover .service__image { transform: scale(1.05); }
.service__body { flex: 1; color: var(--color-text); }

.service__arrow {
    display: inline-block;
    margin-left: 10px;
    font-family: var(--font-en);
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}
.service__card:hover .service__arrow {
    opacity: 1;
    transform: translateX(0);
}

@media screen and (max-width: 1023px) {
    .service__grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; gap: 60px; }
    .service__image-wrapper { height: 300px; }
}

/* Products */
.product-section { 
    background-color: var(--color-base); 
}

.product__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
}

.product__card {
    transition: opacity 0.3s;
}

.product__link {
    display: block;
}

.product__thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 4px;
    background-color: #f0f0f0;
}

.product__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product__link:hover .product__thumb img {
    transform: scale(1.05);
}

.product__info {
    text-align: left;
}

.product__cat {
    display: block;
    font-size: 12px;
    color: var(--color-accent);
    margin-bottom: 5px;
    font-family: var(--font-en);
    letter-spacing: 0.05em;
}

.product__name {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

@media screen and (max-width: 1023px) {
    .product__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media screen and (max-width: 767px) {
    .product__grid {
        grid-template-columns: 1fr;
    }
}


/* About */
.about__info {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.about__table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--color-main); }
.about__table th, .about__table td { padding: 24px 0; border-bottom: 1px solid var(--color-main); text-align: left; }
.about__table th { width: 30%; font-weight: 500; color: var(--color-accent); }

@media screen and (max-width: 767px) {
    .about__table th, .about__table td { display: block; width: 100%; padding: 10px 0; }
    .about__table th { padding-top: 20px; border-bottom: none; }
    .about__table td { padding-bottom: 20px; }
}

/* Footer */
.footer { background-color: var(--color-text); color: var(--color-main); padding: 80px 0 30px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 60px; flex-wrap: wrap; gap: 40px; }
.footer__logo { font-family: var(--font-en); font-size: 28px; color: var(--color-white); margin-bottom: 20px; display: block; }
.footer__nav-list { display: flex; gap: 30px; }
.footer__nav-item a { font-size: 14px; transition: color 0.3s; }
.footer__nav-item a:hover { color: var(--color-white); }
.footer__copyright { text-align: center; font-size: 12px; color: #666; border-top: 1px solid #333; padding-top: 30px; font-family: var(--font-en); }

@media screen and (max-width: 767px) {
    .footer__inner { flex-direction: column; }
    .footer__nav-list { flex-direction: column; gap: 15px; }
}

/* ==========================================================================
   6. Pagination
   ========================================================================== */
.pagination {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: var(--font-en);
}

.pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 48px;
    height: 48px;
    padding: 0 10px;
    border: 1px solid var(--color-main);
    background-color: var(--color-white);
    color: var(--color-text);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 4px;
}

/* Current Page */
.pagination .page-numbers.current {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
    pointer-events: none;
    cursor: default;
}

/* Hover State */
.pagination .page-numbers:not(.current):hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background-color: rgba(107, 94, 82, 0.05); /* Light accent background */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Prev/Next Arrows */
.pagination .prev,
.pagination .next {
    font-size: 20px;
    line-height: 1;
    border: 1px solid var(--color-main); /* Ensure border matches */
    background: var(--color-white);
}

.pagination .prev:hover,
.pagination .next:hover {
    background-color: rgba(107, 94, 82, 0.05);
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* ==========================================================================
   7. Single Post
   ========================================================================== */
/* Header Area */
.p-post-header {
    padding: 160px 0 60px; /* Adjust top padding for fixed header */
    background-color: var(--color-base);
    text-align: center;
}

.p-post-header__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

/* Date Style Update: Bigger & Center */
.p-post-header__date {
    font-family: var(--font-en);
    color: var(--color-accent);
    font-size: 24px; /* Increased size */
    font-weight: 600;
    letter-spacing: 0.05em;
}

.p-post-header__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.5;
    max-width: 900px;
    margin: 0 auto;
}

@media screen and (max-width: 767px) {
    .p-post-header { padding-top: 120px; }
    .p-post-header__title { font-size: 22px; }
}

/* Body Area */
.p-post-body {
    padding-top: 0;
    background-color: var(--color-white);
}

/* Thumbnail */
.p-post-thumbnail {
    margin-bottom: 60px;
    border-radius: 4px;
    overflow: hidden;
}

/* Content Styles */
.p-post-content {
    margin-bottom: 80px;
    font-size: 16px;
    line-height: 1.9;
    /* Prevent Overflow */
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ======= Added: Link Styling for Content ======= */
.p-post-content a {
    color: var(--color-accent);
    text-decoration: underline;
    transition: opacity 0.3s;
}

.p-post-content a:hover {
    opacity: 0.7;
    text-decoration: none;
}
/* =============================================== */

.p-post-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 60px 0 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-main);
}

.p-post-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 40px 0 20px;
    padding-left: 15px;
    border-left: 4px solid var(--color-accent);
}

.p-post-content p {
    margin-bottom: 30px;
}

.p-post-content img {
    max-width: 100%;
    height: auto;
    margin: 40px 0;
    border-radius: 4px;
}

.p-post-content ul,
.p-post-content ol {
    margin: 30px 0;
    padding: 30px;
    background-color: #FAFAFA;
    border-radius: 4px;
}

.p-post-content ul li {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 10px;
}
.p-post-content ul li:last-child { margin-bottom: 0; }

.p-post-content ol li {
    list-style: decimal;
    margin-left: 20px;
    margin-bottom: 10px;
}

.p-post-content blockquote {
    margin: 40px 0;
    padding: 30px;
    border-left: 4px solid var(--color-main);
    background-color: #f9f9f9;
    color: #555;
}

@media screen and (max-width: 767px) {
    .p-post-thumbnail { margin-bottom: 40px; }
    .p-post-content h2 { font-size: 22px; margin-top: 40px; }
    .p-post-content h3 { font-size: 18px; }
}

/* Post Navigation */
.p-post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-main);
    padding-top: 40px;
    gap: 20px;
}

.p-post-navigation__prev,
.p-post-navigation__next {
    flex: 1;
    font-size: 14px;
}
.p-post-navigation__prev { text-align: left; }
.p-post-navigation__next { text-align: right; }

.p-post-navigation__prev a,
.p-post-navigation__next a {
    display: inline-block;
    transition: color 0.3s;
}
.p-post-navigation__prev a:hover,
.p-post-navigation__next a:hover {
    color: var(--color-accent);
}

.p-post-navigation__archive a {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid var(--color-main);
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}
.p-post-navigation__archive a:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

@media screen and (max-width: 767px) {
    .p-post-navigation {
        flex-direction: column-reverse; /* Archive button on bottom or top? layout dependent. usually stack vertically */
        gap: 30px;
        text-align: center;
    }
    .p-post-navigation__prev,
    .p-post-navigation__next {
        width: 100%;
        text-align: center;
    }
    .p-post-navigation__archive {
        order: -1; /* Place 'Back to List' button at top if needed, or remove order to keep middle */
    }
}

/* ==========================================================================
   8. Page: About
   ========================================================================== */
.p-about-message {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 60px;
}

/* Image styling - Vertical Rectangle */
.p-about-message__img {
    flex: 0 0 300px;
    width: 300px;
    position: sticky;
    top: 120px;
    z-index: 1;
}

.p-about-message__img img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.p-about-message__body {
    flex: 1;
}

.p-about-message__body h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.4;
}

.p-about-message__body p {
    margin-bottom: 1.5em;
    text-align: justify;
}

@media screen and (max-width: 767px) {
    .p-about-message {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        align-items: center;
    }
    .p-about-message__img {
        width: 100%;
        max-width: 400px;
        height: auto;
        position: static;
        flex: none;
        margin: 0 auto 20px;
    }
    
    .p-about-message__body p {
        text-align: left;
    }
}

/* ==========================================================================
   9. Page: Contact
   ========================================================================== */
.contact {
    background-color: var(--color-white);
}

.contact__form {
    max-width: 700px;
    margin: 0 auto;
    background: #F9F9F9;
    padding: 60px;
    border-radius: 4px;
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--color-text);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: var(--color-white);
    font-family: inherit;
    font-size: 16px;
    appearance: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(107, 94, 82, 0.1);
}

.form-textarea {
    height: 200px;
    resize: vertical;
}

@media screen and (max-width: 767px) {
    .contact__form {
        padding: 30px 20px;
    }
}

/* ==========================================================================
   10. Page: Privacy Policy
   ========================================================================== */
.p-privacy-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.8;
}

.p-privacy-body h2 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-main);
    color: var(--color-text);
}

.p-privacy-body p {
    margin-bottom: 20px;
}

/* Numbered Lists (Terms) */
.p-privacy-body ol {
    counter-reset: item;
    padding-left: 0;
    list-style: none;
    margin-bottom: 20px;
}

.p-privacy-body ol > li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 10px;
}

.p-privacy-body ol > li::before {
    content: counter(item) ".";
    counter-increment: item;
    position: absolute;
    left: 0;
    font-weight: 500;
}

/* Nested Lists (Sub-terms) */
.p-privacy-body ol ol {
    margin-top: 10px;
    margin-bottom: 0;
}

.p-privacy-body ol ol > li {
    padding-left: 1.5em;
}

.p-privacy-body ol ol > li::before {
    content: counter(item) "."; /* Reset handled by scope usually, but styling simply here */
}