/* ===================================
   Butterflys — 水彩・ジブリ風デザイン
   =================================== */

/* ---------- カラーパレット ---------- */
:root {
    /* ベース：温かみのあるナチュラルベージュ */
    --bg-cream: #f5ede0;
    --bg-warm: #efe5d5;
    --bg-soft: #e8dece;

    /* テキスト：柔らかい墨のような暗色 */
    --text-dark: #3a3632;
    --text-body: #5a5550;
    --text-light: #8a8580;

    /* 水彩アクセント */
    --wc-green: #7fb685;
    --wc-green-light: rgba(127, 182, 133, 0.15);
    --wc-blue: #7eb8d0;
    --wc-blue-light: rgba(126, 184, 208, 0.12);
    --wc-orange: #e8a87c;
    --wc-orange-light: rgba(232, 168, 124, 0.15);
    --wc-lavender: #c4a8d8;
    --wc-lavender-light: rgba(196, 168, 216, 0.12);
    --wc-pink: #e8b4b8;
    --wc-pink-light: rgba(232, 180, 184, 0.10);

    /* カード */
    --card-bg: rgba(255, 255, 255, 0.55);
    --card-border: rgba(180, 170, 155, 0.2);
    --card-shadow: 0 4px 24px rgba(140, 130, 115, 0.08);

    /* フォント */
    --font-heading: 'Quicksand', 'Zen Maru Gothic', sans-serif;
    --font-body-jp: 'Zen Maru Gothic', sans-serif;
    --font-body-cn: 'ZCOOL XiaoWei', serif;
    --font-body: var(--font-body-jp);

    /* その他 */
    --radius: 20px;
    --radius-sm: 12px;
    --container-width: 1100px;
    --ease-gentle: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition: 0.4s var(--ease-gentle);
}

/* ---------- リセット ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-heading), var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.85;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- 水彩背景レイヤー ---------- */
.watercolor-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.wc-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: blobFloat 20s ease-in-out infinite;
}

.wc-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--wc-green-light), transparent 70%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.wc-blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--wc-blue-light), transparent 70%);
    top: 30%;
    left: -10%;
    animation-delay: -5s;
}

.wc-blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--wc-orange-light), transparent 70%);
    bottom: 20%;
    right: 10%;
    animation-delay: -10s;
    animation-duration: 25s;
}

.wc-blob-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--wc-lavender-light), transparent 70%);
    top: 60%;
    left: 20%;
    animation-delay: -15s;
    animation-duration: 22s;
}

.wc-blob-5 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--wc-pink-light), transparent 70%);
    top: 10%;
    left: 40%;
    animation-delay: -8s;
    animation-duration: 28s;
}

@keyframes blobFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -20px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 30px) scale(0.95);
    }

    75% {
        transform: translate(15px, 15px) scale(1.03);
    }
}

/* ---------- 浮遊する蝶 ---------- */
.floating-butterflies {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.butterfly {
    position: absolute;
    font-size: 1.2rem;
    opacity: 0;
    animation: butterflyFly linear infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

@keyframes butterflyFly {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg) scale(0.8);
    }

    10% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.35;
        transform: translate(var(--dx), var(--dy)) rotate(15deg) scale(1);
    }

    90% {
        opacity: 0.3;
    }

    100% {
        opacity: 0;
        transform: translate(var(--dx2), var(--dy2)) rotate(-10deg) scale(0.7);
    }
}

/* ---------- コンテナ ---------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 28px;
}

/* ---------- 水彩風カード ---------- */
.card-watercolor {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.card-watercolor::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 4px;
    background: linear-gradient(90deg, var(--wc-green), var(--wc-blue), var(--wc-lavender), var(--wc-orange));
    border-radius: var(--radius) var(--radius) 0 0;
    opacity: 0;
    transition: opacity var(--transition);
}

.card-watercolor:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(140, 130, 115, 0.12);
}

.card-watercolor:hover::before {
    opacity: 1;
}

/* ---------- ボタン ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.btn-warm {
    background: linear-gradient(135deg, var(--wc-green), var(--wc-blue));
    color: #fff;
    box-shadow: 0 4px 16px rgba(127, 182, 133, 0.25);
}

.btn-warm:hover {
    box-shadow: 0 8px 28px rgba(127, 182, 133, 0.35);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 44px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--wc-green);
    color: var(--wc-green);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--wc-green);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(127, 182, 133, 0.2);
}

/* ---------- ナビバー ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(250, 246, 240, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 20px rgba(140, 130, 115, 0.08);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 101;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.logo-butterfly {
    font-size: 1.5rem;
    animation: gentleFloat 4s ease-in-out infinite;
}

@keyframes gentleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading), var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--wc-green), var(--wc-blue));
    border-radius: 1px;
    transition: width var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 101;
}

/* 言語スイッチ */
.lang-switcher {
    display: flex;
    gap: 3px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    padding: 3px;
}

.lang-btn {
    padding: 5px 11px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn.active {
    background: var(--wc-green);
    color: #fff;
}

.lang-btn:hover:not(.active) {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-dark);
}

/* モバイルトグル */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 1px;
    transition: all 0.3s;
}

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

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* モバイルメニュー閉じるボタン */
.mobile-close {
    display: none;
    position: absolute;
    top: 24px;
    right: 28px;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-dark);
    transition: all 0.3s;
    z-index: 1000;
}

.mobile-close span {
    line-height: 1;
}

.mobile-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .mobile-close {
        display: flex;
    }
}

/* ---------- ヒーロー ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 28px;
}

.hero-content {
    max-width: 750px;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.1em;
    margin-bottom: 28px;
    font-style: italic;
    animation: fadeInUp 0.8s var(--ease-gentle) 0.2s both;
}

.hero-title {
    font-family: var(--font-heading), var(--font-body);
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s var(--ease-gentle) 0.4s both;
}

.title-accent {
    background: linear-gradient(135deg, var(--wc-green), var(--wc-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0.6s;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-body);
    margin-bottom: 40px;
    line-height: 1.9;
    font-weight: 400;
    animation: fadeInUp 0.8s var(--ease-gentle) 0.8s both;
}

.hero-cta {
    animation: fadeInUp 0.8s var(--ease-gentle) 1s both;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 0.8s var(--ease-gentle) 1.2s both;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--text-light), transparent);
    animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.8;
        transform: scaleY(1.2);
    }
}

/* ---------- セクション共通 ---------- */
.section {
    padding: 110px 0;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: var(--wc-green);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading), var(--font-body);
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    font-weight: 700;
    color: var(--text-dark);
}

/* ---------- ストーリー ---------- */
.story-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 52px;
    align-items: start;
}

.story-quote {
    font-family: var(--font-heading), var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 20px 24px;
    border-left: 3px solid var(--wc-green);
    background: var(--wc-green-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 28px;
    line-height: 1.7;
}

.story-text {
    color: var(--text-body);
    font-size: 0.98rem;
    margin-bottom: 18px;
    line-height: 2;
}

.story-note {
    font-size: 0.88rem;
    color: var(--text-light);
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--card-border);
}

.story-cards {
    display: grid;
    gap: 16px;
}

.story-card {
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.card-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.story-card h3 {
    font-family: var(--font-heading), var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.story-card p {
    font-size: 0.78rem;
    color: var(--text-light);
    font-family: var(--font-heading);
}

/* ---------- メンバー ---------- */
.members {
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-cream) 100%);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    max-width: 820px;
    margin: 0 auto;
}

.member-card {
    padding: 44px 36px;
    text-align: center;
}

.member-avatar {
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wc-green), var(--wc-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(127, 182, 133, 0.2);
}

.avatar-letter {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.member-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.member-role {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--wc-green);
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

.member-bio {
    color: var(--text-body);
    font-size: 0.92rem;
    line-height: 1.85;
    margin-bottom: 22px;
}

.member-socials {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-light);
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--wc-green);
    border-color: var(--wc-green);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(127, 182, 133, 0.3);
}

/* ---------- サービス ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    padding: 40px 28px;
    text-align: center;
}

.service-emoji {
    font-size: 2.4rem;
    margin-bottom: 18px;
    display: block;
}

.service-name {
    font-family: var(--font-heading), var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.service-desc {
    color: var(--text-body);
    font-size: 0.9rem;
    line-height: 1.85;
    margin-bottom: 18px;
}

.coming-badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 50px;
    background: var(--wc-orange-light);
    color: #c07040;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* ---------- コンタクト ---------- */
.contact {
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-warm) 100%);
}

.contact-card {
    max-width: 560px;
    margin: 0 auto;
    padding: 52px 44px;
    text-align: center;
}

.contact-desc {
    color: var(--text-body);
    font-size: 0.98rem;
    line-height: 1.9;
    margin-bottom: 28px;
}

.contact-email {
    margin-top: 16px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ---------- フッター ---------- */
.footer {
    position: relative;
    z-index: 2;
    padding: 44px 0;
    border-top: 1px solid var(--card-border);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-philosophy {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: var(--text-light);
    font-style: italic;
    letter-spacing: 0.06em;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-light);
    font-family: var(--font-heading);
}

/* ---------- スクロール表示 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s var(--ease-gentle), transform 0.9s var(--ease-gentle);
}

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

/* ---------- アニメーション ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1024px) {
    .section {
        padding: 80px 0;
    }

    .story-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(250, 246, 240, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        font-size: 1.3rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    .members-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .member-card {
        padding: 32px 24px;
    }

    .contact-card {
        padding: 36px 24px;
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }

    .wc-blob {
        filter: blur(60px);
    }

    .wc-blob-1 {
        width: 300px;
        height: 300px;
    }

    .wc-blob-2 {
        width: 350px;
        height: 350px;
    }

    .wc-blob-3 {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 60px 0;
    }

    .logo-img {
        height: 36px;
    }

    .logo-text {
        font-size: 1.15rem;
    }

    .hero {
        padding: 0 20px;
        min-height: 90vh;
    }

    .hero-tagline {
        font-size: 0.75rem;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 9vw, 2.5rem);
        margin-bottom: 18px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 32px;
    }

    .hero-subtitle br {
        display: none;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 15px 32px;
        font-size: 0.95rem;
    }

    .section-label {
        font-size: 0.7rem;
    }

    .section-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .story-quote {
        font-size: 1rem;
        padding: 16px 18px;
    }

    .story-text {
        font-size: 0.92rem;
    }

    .story-card {
        padding: 20px 22px;
    }

    .card-icon {
        font-size: 1.5rem;
    }

    .member-avatar {
        width: 76px;
        height: 76px;
    }

    .member-name {
        font-size: 1.2rem;
    }

    .member-role {
        font-size: 0.75rem;
    }

    .member-bio {
        font-size: 0.88rem;
    }

    .social-link {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .service-card {
        padding: 32px 22px;
    }

    .service-emoji {
        font-size: 2rem;
    }

    .service-name {
        font-size: 1rem;
    }

    .service-desc {
        font-size: 0.88rem;
    }

    .contact-card {
        padding: 32px 20px;
    }

    .contact-desc {
        font-size: 0.92rem;
    }

    .wc-blob-1,
    .wc-blob-2,
    .wc-blob-3,
    .wc-blob-4,
    .wc-blob-5 {
        width: 200px;
        height: 200px;
        filter: blur(50px);
    }

    .butterfly {
        font-size: 1rem;
    }
}