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

:root {
    --ky-bg: #FDFCF5; /* Rice paper */
    --ky-dark: #2F3330; /* Charcoal */
    --ky-green: #88A34F; /* Matcha */
    --ky-sage: #C8D6B9;
    --ky-accent: #D48C70; /* Terracotta */
    --ky-border: #D3D3D3;
    --ky-radius: 16px;
    --ky-font-main: 'Noto Sans JP', sans-serif;
    --ky-font-serif: 'Shippori Mincho', serif;
}

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

body {
    background-color: var(--ky-bg);
    color: var(--ky-dark);
    font-family: var(--ky-font-main);
    line-height: 1.6;
    font-size: 16px;
    /* Density Texture */
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2388a34f' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { width: 100%; display: block; object-fit: cover; }
ul { list-style: none; }

/* Main Wrapper */
.ky-flow-wrap {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-left: 1px solid var(--ky-border);
    border-right: 1px solid var(--ky-border);
    min-height: 100vh;
    overflow: hidden;
}

/* HEADER & NAV */
.ky-flow-head {
    background: rgba(253, 252, 245, 0.95);
    padding: 15px 20px;
    border-bottom: 1px solid var(--ky-green);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.ky-flow-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ky-font-serif);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--ky-green);
}
.ky-flow-logo img { width: 36px; height: 36px; }

/* Hamburger */
.ky-flow-burger {
    width: 32px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}
.ky-flow-line {
    width: 100%;
    height: 3px;
    background: var(--ky-green);
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile Menu Overlay */
.ky-flow-nav-ovl {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--ky-green);
    z-index: 1001;
    transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}
.ky-flow-nav-ovl.active { right: 0; }

.ky-flow-link {
    font-family: var(--ky-font-serif);
    font-size: 1.3rem;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
}
.ky-flow-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

/* HERO */
.ky-flow-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--ky-sage);
    border-bottom: 1px solid var(--ky-border);
}
.ky-flow-hero-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ky-flow-tag {
    background: #fff;
    color: var(--ky-green);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    width: fit-content;
    margin-bottom: 15px;
    border: 1px solid var(--ky-green);
}
.ky-flow-h1 {
    font-family: var(--ky-font-serif);
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--ky-dark);
}
.ky-flow-lead {
    font-size: 1rem;
    margin-bottom: 30px;
    color: #444;
}
.ky-flow-btn {
    background: var(--ky-accent);
    color: #fff;
    padding: 15px 30px;
    border-radius: var(--ky-radius);
    font-weight: 700;
    text-align: center;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.1);
}
.ky-flow-btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(0,0,0,0.1); }

/* Visual Effects Variant C: Rounding + Filter */
.ky-flow-img-style {
    border-radius: var(--ky-radius);
    filter: sepia(20%);
    transition: 0.4s;
    height: 100%;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.1);
}
.ky-flow-img-style:hover { filter: sepia(0%); }

/* SECTIONS & GRIDS */
.ky-flow-sect { padding: 40px; border-bottom: 1px solid var(--ky-border); }
.ky-flow-h2 {
    font-family: var(--ky-font-serif);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--ky-green);
}

/* BENTO GRID */
.ky-flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}
.ky-flow-card {
    background: #fff;
    border: 1px solid var(--ky-border);
    border-radius: var(--ky-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}
.ky-flow-card:hover { border-color: var(--ky-green); background: #FDFCF5; }
.ky-flow-card-img {
    height: 180px;
    margin-bottom: 15px;
    border-radius: 10px;
    object-fit: cover;
}
.ky-flow-h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.ky-flow-p { font-size: 0.9rem; color: #666; }

/* FORM */
.ky-flow-form-wrap {
    background: var(--ky-dark);
    color: #fff;
    padding: 40px;
    border-radius: var(--ky-radius);
}
.ky-flow-inp {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #555;
    background: #444;
    color: #fff;
    font-family: var(--ky-font-main);
}
.ky-flow-inp:focus { border-color: var(--ky-green); background: #555; }
.ky-flow-label { font-size: 0.9rem; margin-bottom: 5px; display: block; color: var(--ky-sage); }

/* FOOTER */
.ky-flow-foot {
    background: var(--ky-green);
    padding: 40px;
    color: #fff;
    font-size: 0.9rem;
}
.ky-flow-ft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.ky-flow-ft-l { display: block; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 4px; }

@media (max-width: 768px) {
    .ky-flow-hero { grid-template-columns: 1fr; }
    .ky-flow-sect { padding: 20px; }
    .ky-flow-h1 { font-size: 2rem; }
}