/* ==========================================================================
   BRANDING-F EXPERIENCE | Studio-like Minimal Styles
   ========================================================================== */

:root {
    /* Color Palette (Tea, Wood, Silence) */
    --bg-light: #F9F8F6;
    /* Extremely light warm gray / ivory (White Tea) */
    --bg-dark: #2A2A28;
    /* Soft charcoal brown (Dark roasted tea or quiet wood) */
    --accent-gold: #c5a059;
    /* Existing gold, acts as a warm highlight */

    --text-main: #222222;
    /* Slightly darker for better contrast on thin fonts */
    --text-sub: #777777;
    --text-light: #F9F8F6;

    --border-color-light: rgba(0, 0, 0, 0.08);
    /* Extremely subtle border */
    --border-color-dark: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-serif: 'Shippori Mincho', serif;
    --font-sans: 'Outfit', 'Noto Sans JP', sans-serif;

    /* Effects */
    --glass-bg: rgba(249, 248, 246, 0.7);
    --glass-bg-dark: rgba(42, 42, 40, 0.8);

    /* Layout */
    --header-height: 80px;
    --section-padding: 120px;
}

/* --------------------------------------------------------------------------
   RESET & BASE
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

@media (max-width: 1200px) {
    html { font-size: 15px; }
}

@media (max-width: 900px) {
    html { font-size: 14px; }
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
    letter-spacing: 0.06em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 300;
    position: relative;
}

/* Noise Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.03;
    z-index: 9999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Ffilter id='noiseFilter'%3E%3FfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3/filter%3E%3rect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3/svg%3E");
}

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

a:hover {
    opacity: 0.6;
}

/* Utility Typography */
.serif {
    font-family: var(--font-serif);
    font-weight: 400;
}

.outfit {
    font-family: var(--font-sans);
    letter-spacing: 0.08em;
    font-weight: 300;
}

.text-center {
    text-align: center;
}

/* Borders */
.has-border-top {
    border-top: 1px solid var(--border-color-light);
}

.has-border-bottom {
    border-bottom: 1px solid var(--border-color-light);
}

.has-border {
    border: 1px solid var(--border-color-light);
    position: relative;
    overflow: hidden;
}

/* Border Drawing Animation Wrapper */
.reveal-border {
    position: relative;
}

.reveal-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--border-color-light);
    transition: width 1.2s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.bg-dark.reveal-border::after {
    background: var(--border-color-dark);
}

.reveal-border.is-visible::after {
    width: 100%;
}

.bg-dark.has-border-top {
    border-top-color: var(--border-color-dark);
}

.bg-dark .has-border {
    border-color: var(--border-color-dark);
}

/* --------------------------------------------------------------------------
   LAYOUT COMPONENTS (Studio Grid)
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4vw;
}

.studio-section {
    padding: var(--section-padding) 0;
    position: relative;
}

.reveal-image {
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal-image.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    transform: translateY(0);
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1;
}

.bg-dark .reveal-image::after {
    background: var(--bg-dark);
}

.reveal-image.is-visible::after {
    transform: translateY(-100%);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.section-title {
    font-size: clamp(2rem, 3vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
}

.section-title-sub {
    display: block;
    font-size: 0.85rem;
    color: var(--text-sub);
    letter-spacing: 0.2em;
    /* More breathing room */
    margin-top: 0.8rem;
    font-family: var(--font-sans);
    font-weight: 300;
    /* Light weight for elegance */
    text-transform: uppercase;
}

.grid-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4vw;
    display: grid;
    grid-template-columns: 3fr 7fr;
    gap: 4vw;
    align-items: start;
}

/* 2-Column Grid for typical Studio feeling (Title Left, Content Right) */
@media (max-width: 900px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.grid-right>*:first-child,
.concept-text>*:first-child,
.service-list>*:first-child,
.profile-layout>*:first-child,
.contact-form-wrapper>*:first-child {
    margin-top: 0 !important;
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
#site-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color-light);
}

.header-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    width: fit-content;
    height: 80px; /* header-inner align items center ensures it stays centered */
}

.site-logo img {
    display: block;
    height: 28px;
    width: auto !important; /* SVG width="100%" overrides */
    flex-shrink: 0;
    object-fit: contain;
}

.site-nav {
    display: flex;
    gap: 2.5rem;
}

.site-nav a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Mobile Menu Trigger */
.menu-trigger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.menu-trigger span {
    display: block;
    width: 25px;
    height: 1px;
    background: var(--text-main);
    margin: 6px 0;
    transition: 0.4s;
}

.menu-trigger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-trigger.active span:nth-child(2) {
    transform: rotate(-45deg) translate(4px, -5px);
}

@media (max-width: 768px) {
    .menu-trigger {
        display: block;
    }

    .site-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        right: -100%;
        top: 0;
        width: 80%;
        height: 100vh;
        background: var(--bg-light);
        padding: 120px 40px;
        transition: 0.5s;
        z-index: 1050;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    }

    .site-nav.active {
        right: 0;
    }

    .site-nav a {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4vw;
    z-index: 2;
}

.hero-en {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-sub);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.hero-title {
    font-family: 'Zen Kaku Gothic New', var(--font-sans);
    font-size: clamp(2.2rem, 5.5vw, 5.5rem);
    line-height: 1.25;
    margin-bottom: 4.5rem;
    letter-spacing: 0.1em; /* 太さに合わせて少し調整 */
    font-weight: 700; /* 案F：しっかりとした主張を持たせる */
}

/* Character Animation for split-text */
.split-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s cubic-bezier(0.215, 0.610, 0.355, 1), 
                transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.split-text.is-animated span {
    opacity: 1;
    transform: translateY(0);
}

/* For mobile break */
.br-sp {
    display: none;
}

@media (max-width: 768px) {
    .br-sp {
        display: block;
    }
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-bottom: 4vh;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-sub);
    letter-spacing: 0.1em;
}

.scroll-indicator {
    font-size: 0.8rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 1rem;
    writing-mode: vertical-rl;
    position: absolute;
    right: 4vw;
    bottom: 4vh;
    animation: blink 2.5s infinite ease-in-out;
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background-color: var(--text-main);
    display: inline-block;
}

/* --------------------------------------------------------------------------
   HERO BACKGROUND CIRCLE
   -------------------------------------------------------------------------- */
.hero-bg-circle {
    position: fixed;
    width: 40vw;
    height: 40vw;
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 50%;
    right: -10vw;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    will-change: transform;
}

.hero-bg-circle::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(197, 160, 89, 0.8);
}

/* --------------------------------------------------------------------------
   CONCEPT SECTION
   -------------------------------------------------------------------------- */
.concept-catch {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 400;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.concept-text p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   EXPERIENCE SECTION (App Area)
   -------------------------------------------------------------------------- */
.app-wrapper {
    margin-top: 3rem;
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02);
    /* Very subtle float */
}

.app-entrance {
    position: relative;
    z-index: 10;
}

/* --------------------------------------------------------------------------
   SERVICE SECTION
   -------------------------------------------------------------------------- */
.service-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    padding: 3rem 0;
}

.service-item:first-child {
    padding-top: 0;
}

.service-item h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.service-num {
    font-size: 0.9rem;
    color: var(--accent-gold);
}

.service-sub {
    font-size: 0.8rem;
    color: var(--text-sub);
    text-transform: uppercase;
    margin-left: auto;
    /* push to right */
}

.service-item p {
    font-size: 1rem;
    color: var(--text-sub);
    line-height: 2;
    padding-left: 2.5rem;
}

@media (max-width: 600px) {
    .service-item h4 {
        flex-direction: column;
        gap: 0.5rem;
    }

    .service-sub {
        margin-left: 0;
    }

    .service-item p {
        padding-left: 0;
    }
}

/* --------------------------------------------------------------------------
   PROFILE SECTION
   -------------------------------------------------------------------------- */
.profile-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 768px) {
    .profile-layout {
        flex-direction: row;
        align-items: flex-start;
    }
}

.profile-image {
    flex: 1;
    width: 100%;
    position: relative;
    z-index: 10;
}

.profile-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--bg-dark);
    /* Fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.2em;
    font-size: 0.9rem;
}

.profile-text {
    flex: 1.5;
}

.profile-text h4 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
    letter-spacing: 0.1em;
}

.profile-role {
    color: var(--accent-gold);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.profile-desc {
    font-size: 1rem;
    color: rgba(249, 248, 246, 0.8);
    line-height: 2;
}

/* --------------------------------------------------------------------------
   CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-form-wrapper {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 3vw;
    position: relative;
    z-index: 10;
    border: 1px solid var(--border-color-dark);
    color: var(--text-light);
}

.form-group {
    margin-bottom: 2rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    letter-spacing: 0.1em;
}

.form-group label .required {
    font-size: 0.7rem;
    color: var(--accent-gold);
    margin-left: 0.5rem;
    vertical-align: middle;
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper textarea,
.contact-form-wrapper select {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    font-family: var(--font-sans);
    color: var(--text-light);
    border: 1px solid var(--border-color-dark);
    border-radius: 0;
}

.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

.contact-form-wrapper textarea {
    height: 180px;
    resize: vertical;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus,
.contact-form-wrapper select:focus {
    border-color: var(--accent-gold);
}

.select-wrapper {
    position: relative;
    width: 100%;
    background: transparent;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1px solid var(--text-light);
    border-bottom: 1px solid var(--text-light);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.contact-form-wrapper select {
    appearance: none;
    cursor: pointer;
    border: 1px solid var(--border-color-dark); /* 他の項目と同様に表示 */
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
    color: var(--text-light);
}

.contact-form-wrapper select option {
    background-color: var(--bg-dark); /* ドロップダウンの背景を暗くして文字を見やすく */
    color: var(--text-light);
}

.form-actions {
    margin-top: 3rem;
    text-align: left;
}

.privacy-policy {
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 0.2rem;
    cursor: pointer;
    flex-shrink: 0;
}

.policy-link {
    text-decoration: underline;
    color: var(--accent-gold);
}

.policy-link:hover {
    opacity: 0.7;
}

.submit-btn {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-light);
    border: 1px solid var(--text-light);
    padding: 1.2rem 4rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: var(--text-light);
    color: var(--bg-dark);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
#site-footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border-color-dark);
}

.footer-logo {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
}

.social-links {
    margin-top: 4rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--text-sub);
}

.social-links a {
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.social-links a:hover {
    color: var(--accent-gold);
    border-bottom: 1px solid var(--accent-gold);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-nav a {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-sub);
}

.copyright {
    font-size: 0.65rem;
    color: var(--text-sub);
    letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes breathing {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.3; }
}

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.215, 0.610, 0.355, 1), 
                transform 1s cubic-bezier(0.215, 0.610, 0.355, 1);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   APP SCOPE: #branding-f-experience-app (Refined for Standalone app.html)
   ========================================================================== */
.app-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

.app-container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem 4vw;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

#branding-f-experience-app {
    width: 100%;
    position: relative;
    text-align: center;
}

#branding-f-experience-app section {
    display: none;
    position: relative;
    width: 100%;
    min-height: 70vh;
    padding: 4rem 1rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#branding-f-experience-app section.active {
    display: flex;
    animation: fadeInApp 1.2s cubic-bezier(0.215, 0.610, 0.355, 1) forwards;
}

@keyframes fadeInApp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#branding-f-experience-app .content {
    width: 100%;
    max-width: 800px;
    z-index: 2;
    position: relative;
}

#branding-f-experience-app .logo {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
    font-weight: 300;
}

#branding-f-experience-app .content p {
    margin-bottom: 4rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

#branding-f-experience-app .breathing-circle {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: breathing 10s infinite ease-in-out;
    z-index: 1;
    pointer-events: none;
}

/* App Inputs & Buttons */
#branding-f-experience-app .quiz-input {
    display: block;
    width: 100%;
    max-width: 500px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    font-size: 1.1rem;
    outline: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: var(--font-sans);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    margin: 1.5rem auto;
    text-align: left;
}

#branding-f-experience-app .quiz-input:focus {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.1);
}

#branding-f-experience-app .quiz-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

#branding-f-experience-app .app-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    padding: 1.2rem 4rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    letter-spacing: 0.2rem;
    font-weight: 400;
    position: relative;
    overflow: hidden;
}

#branding-f-experience-app .app-btn:hover {
    background: var(--text-light);
    color: var(--bg-dark);
    letter-spacing: 0.3rem;
    padding-left: 4.5rem;
    padding-right: 4.5rem;
    border-color: var(--text-light);
}

#branding-f-experience-app .app-btn.accent {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #fff;
}

#branding-f-experience-app .app-btn.accent:hover {
    background: #fff;
    color: var(--accent-gold);
}

#branding-f-experience-app button.btn-text {
    background: transparent;
    border: none;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s;
}

#branding-f-experience-app button.btn-text:hover {
    color: var(--text-light);
}

#branding-f-experience-app .suggestions-container {
    margin-bottom: 3rem;
    text-align: center;
}

#branding-f-experience-app .suggestions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

#branding-f-experience-app .suggestion-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    border-radius: 30px;
    letter-spacing: 0.05rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#branding-f-experience-app .suggestion-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    color: #fff;
    transform: translateY(-2px);
}

#branding-f-experience-app .progress-bar-container {
    width: 60px; /* Refined small progress indicator */
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0 auto 3rem;
    overflow: hidden;
}

#branding-f-experience-app .progress-bar {
    height: 100%;
    background-color: var(--accent-gold);
    transition: width 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#branding-f-experience-app .navigation-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

/* App: Animal Grid */
#branding-f-experience-app .animal-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 3rem auto;
}

#branding-f-experience-app .animal-item {
    width: calc(33.333% - 1rem);
    min-width: 200px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
}

#branding-f-experience-app .animal-img-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

#branding-f-experience-app .animal-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}

#branding-f-experience-app .animal-item strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
    color: var(--text-light);
}

#branding-f-experience-app .animal-item small {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

#branding-f-experience-app .animal-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-gold);
    transform: translateY(-8px);
}

#branding-f-experience-app .animal-item:hover .animal-img-wrapper img {
    transform: scale(1.08);
}

/* App: Statement Layout */
#branding-f-experience-app .statement-layout {
    display: flex;
    gap: 5vw;
    width: 100%;
    margin-top: 2rem;
    align-items: flex-start;
    text-align: left;
}

#branding-f-experience-app #statement-editor-container {
    flex: 1.4;
}

#branding-f-experience-app #statement-editor-container h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

#branding-f-experience-app .editor-desc {
    color: rgba(255, 255, 255, 0.5) !important;
    margin-bottom: 2.5rem !important;
    font-size: 0.95rem !important;
}

#branding-f-experience-app .textarea-wrapper {
    position: relative;
    width: 100%;
    margin-top: 1rem;
}

#branding-f-experience-app .edit-badge {
    position: absolute;
    top: -1.2rem;
    left: 0;
    font-size: 0.7rem;
    color: var(--accent-gold);
    letter-spacing: 0.1em;
}

#branding-f-experience-app #statement-editor {
    width: 100%;
    height: 400px;
    background: rgba(255, 255, 255, 0.02);
    /* Decorative borders */
    border: none;
    border-top: 2px solid rgba(255, 255, 255, 0.4);
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    position: relative;
    /* --- */
    color: #fff;
    font-size: 1.05rem; /* Reduced font size */
    line-height: 2.2;
    padding: 2.5rem;
    resize: vertical;
    outline: none;
    transition: background 0.4s;
}

/* Inner thin borders for the "ticket" look */
#branding-f-experience-app .textarea-wrapper::before,
#branding-f-experience-app .textarea-wrapper::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}
#branding-f-experience-app .textarea-wrapper::before {
    top: 6px;
}
#branding-f-experience-app .textarea-wrapper::after {
    bottom: 6px;
}

#branding-f-experience-app #statement-editor:focus {
    background: rgba(255, 255, 255, 0.05);
}

#branding-f-experience-app #reference-panel {
    flex: 0.6;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 2.5rem;
}

#branding-f-experience-app #reference-panel h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    font-weight: 500;
}

#branding-f-experience-app .ref-item {
    margin-bottom: 1.2rem; /* Reduced from 2rem for PC */
}

#branding-f-experience-app .ref-q {
    font-size: 0.7rem; /* Reduced from 0.8rem for PC */
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.4rem; /* Reduced from 0.6rem */
    line-height: 1.4;
}

#branding-f-experience-app .ref-a {
    font-size: 0.85rem; /* Reduced from 1rem for PC */
    color: #fff;
    padding-left: 0.8rem;
    border-left: 2px solid var(--accent-gold);
    line-height: 1.6;
}

/* History Panel (Pattern A: Floating Accordion) */
#branding-f-experience-app .history-toggle {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.8rem 1.4rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    letter-spacing: 0.1em;
    z-index: 100;
}

#branding-f-experience-app .history-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
}

.history-panel {
    position: absolute;
    top: 50px; /* Offset from toggle */
    right: 0;
    width: 360px;
    background: rgba(30, 30, 28, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2000;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    max-height: 80vh;
    overflow-y: auto;
}

.history-panel.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.history-panel h3 {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--accent-gold);
    letter-spacing: 0.23em; /* Slightly wider */
    text-transform: uppercase;
}

.history-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-q {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.6rem;
    letter-spacing: 0.05em;
}

.history-a {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #fff;
    font-weight: 300;
}

/* Base Responsive */
@media (max-width: 900px) {
    #branding-f-experience-app .statement-layout {
        flex-direction: column;
        gap: 4rem;
    }

    #branding-f-experience-app #reference-panel {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 3rem;
        width: 100%;
    }
    
    #branding-f-experience-app #statement-editor {
        height: 300px;
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    #branding-f-experience-app section {
        padding: 2rem 0;
    }

    #branding-f-experience-app .logo {
        font-size: 1.8rem;
        letter-spacing: 0.2em;
    }

    #branding-f-experience-app .content p {
        font-size: 1rem;
        margin-bottom: 3rem;
    }
    
    #branding-f-experience-app .navigation-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    #branding-f-experience-app .app-btn {
        width: 100%;
        padding: 1.2rem 2rem;
    }
    
    /* Mobile Bottom Sheet for Pattern A */
    .history-panel {
        position: fixed;
        width: 100%;
        top: auto;
        bottom: 0;
        left: 0;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        max-height: 70vh;
        padding: 2rem 1.5rem;
    }
    
    .history-panel.visible {
        transform: translateY(0);
    }

    #branding-f-experience-app .animal-item {
        width: 100%;
    }

    /* Restore Original Reference Size for Mobile */
    #branding-f-experience-app .ref-item {
        margin-bottom: 2rem;
    }
    #branding-f-experience-app .ref-q {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }
    #branding-f-experience-app .ref-a {
        font-size: 1rem;
    }
}

/* --- Form Validation --- */
.error-message { color: #ff6b6b; font-size: 0.8rem; margin-top: 0.5rem; height: 0; opacity: 0; line-height: 1.4; overflow: hidden; transition: all 0.3s ease; }
.error-message.is-visible { height: auto; opacity: 1; margin-bottom: 0.5rem; }
.is-invalid { border-color: #ff6b6b !important; background-color: rgba(255, 107, 107, 0.05) !important; }

/* --- Confirmation Modal & Thanks Message --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: none; justify-content: center; align-items: center; z-index: 3000; opacity: 0; transition: opacity 0.4s ease; }
.modal-overlay.is-visible { display: flex; opacity: 1; }
.modal-content.glassmorphism { background: rgba(40, 38, 35, 0.85); border: 1px solid rgba(255, 255, 255, 0.1); padding: 3rem; max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 40px rgba(0,0,0,0.3); transform: scale(0.9); transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
.modal-overlay.is-visible .modal-content { transform: scale(1); }
.modal-header { margin-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 1rem; }
.modal-header h3 { font-size: 1.4rem; color: var(--accent-gold); margin-bottom: 0.5rem; letter-spacing: 0.1em; }
.modal-header p { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.confirm-item { margin-bottom: 1.5rem; }
.confirm-item .label { display: block; font-size: 0.75rem; color: var(--accent-gold); margin-bottom: 0.4rem; letter-spacing: 0.05em; }
.confirm-item .value { display: block; font-size: 1rem; color: var(--text-light); line-height: 1.6; }
.modal-footer { display: flex; gap: 1rem; margin-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 2rem; }
.modal-btn { flex: 1; padding: 1.2rem; font-size: 0.9rem; letter-spacing: 0.1em; transition: all 0.3s; cursor: pointer; border: none; font-family: var(--font-sans); }
.modal-btn.back { background: rgba(255,255,255,0.05); color: var(--text-light); border: 1px solid rgba(255,255,255,0.1); }
.modal-btn.back:hover { background: rgba(255,255,255,0.1); }
.modal-btn.submit { background: var(--accent-gold); color: #000; font-weight: 500; }
.modal-btn.submit:hover { background: #fff; }
.thanks-content { text-align: center; }
.thanks-content h3 { color: var(--accent-gold); margin-bottom: 1.5rem; }
.thanks-content p { line-height: 2; margin-bottom: 2rem; }

/* AI Loading State */
#branding-f-experience-app #statement-editor.loading {
    opacity: 0.6;
    pointer-events: none;
    animation: statementPulse 2s infinite;
}

@keyframes statementPulse {
    0% { opacity: 0.4; }
    50% { opacity: 0.7; }
    100% { opacity: 0.4; }
}

/* AI Security & Privacy Notices */
.ai-disclaimer {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.8;
    text-align: left;
    display: inline-block;
}

.app-footer {
    position: absolute;
    bottom: 1rem;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 0 1rem;
    pointer-events: none;
}

.app-footer p {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.05em;
    text-align: left;
    display: inline-block;
    line-height: 1.8;
}

@media (max-height: 700px) {
    .app-footer {
        position: static;
        margin-top: 2rem;
        padding-bottom: 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   JOURNAL SECTION (Featured Article)
   -------------------------------------------------------------------------- */
#journal {
    overflow: hidden;
}

.journal-wrapper {
    position: relative;
    width: 100%;
}

.journal-featured-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border-color-light);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    text-decoration: none;
    max-width: 800px; /* Limit width for a single card to keep it elegant */
}

.journal-featured-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #eee;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.journal-featured-card:hover .card-image-wrap img {
    transform: scale(1.05);
}

.card-content {
    padding: 2.5rem; /* Larger padding for featured look */
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.card-tag {
    font-size: 0.7rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
}

.card-date {
    font-size: 0.85rem;
    color: var(--text-sub);
}

.card-title {
    font-family: 'Shippori Mincho', var(--font-serif);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    line-height: 1.6;
    color: var(--text-main);
    font-weight: 500;
}

.card-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-sub);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.card-footer::after {
    content: '→';
    transition: transform 0.3s ease;
}

.journal-featured-card:hover .card-footer::after {
    transform: translateX(5px);
}

.pinned-label {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-gold);
    color: #fff;
    font-size: 0.7rem;
    padding: 5px 12px;
    letter-spacing: 0.15em;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

@media (max-width: 768px) {
    .card-content {
        padding: 1.5rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
}
