/* --- 基本設定 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body.type-vibrant {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: white;
    overflow-x: hidden;
    color: #111827;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    position: relative;
}
.relative-z { position: relative; z-index: 10; }
.section-padding { padding: 5rem 0; }

/* --- ヘッダー & メニュー --- */
.header {
    position: absolute;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
.logo { font-weight: 900; font-size: 1.5rem; letter-spacing: -1px; }

/* メニューボタン */
.menu-btn {
    background: #111827;
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 99px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    z-index: 101;
    transition: transform 0.2s;
}
.menu-btn:hover { transform: scale(1.05); }
.menu-btn.open { background: white; color: black; }

/* 全画面メニュー */
.nav {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
}
.nav.active { transform: translateY(0); }

.nav a {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}
.nav a:hover { color: #facc15; }

/* --- ヒーローセクション --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 6rem;
}

/* 背景Blobアニメーション */
.blob {
    position: absolute;
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: blur(50px);
    opacity: 0.6;
    animation: blob-bounce 8s infinite ease-in-out;
    z-index: 0;
}
.blob-1 { top: -5%; left: -5%; background-color: #d8b4fe; }
.blob-2 { top: 0%; right: -5%; background-color: #fde047; animation-delay: 2s; }
.blob-3 { bottom: -10%; left: 30%; background-color: #f9a8d4; animation-delay: 4s; }

@keyframes blob-bounce {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* レイアウト */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}
@media (min-width: 768px) {
    .hero-content { flex-direction: row; justify-content: space-between; }
    .text-area { width: 50%; }
    .image-area { width: 45%; }
}

.headline {
    font-size: 4rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}
@media (min-width: 768px) { .headline { font-size: 7rem; } }

.highlight {
    background: linear-gradient(to right, #9333ea, #db2777);
    -webkit-background-clip: text;
    color: transparent;
}
.sub-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 3rem;
    border-left: 5px solid #a855f7;
    padding-left: 1rem;
    position: relative;
    z-index: 10;
}

.cta-button {
    display: inline-block;
    background-color: #111827;
    color: white;
    font-weight: bold;
    padding: 1.2rem 3rem;
    border-radius: 99px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
}
.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    background-color: black;
}
.full-width { width: 100%; }

.image-area {
    position: relative;
    height: 400px;
    width: 100%;
}
.card {
    position: absolute;
    width: 14rem;
    height: 18rem;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 5px solid white;
    transition: 0.4s;
}
.card-1 { transform: rotate(-8deg); top: 0; left: 10%; z-index: 10; }
.card-2 { transform: rotate(8deg); bottom: 0; right: 10%; z-index: 20; }
.card:hover { transform: rotate(0) scale(1.05); z-index: 30; }

/* --- 下層ページ共通 --- */
.page-header {
    padding-top: 10rem;
    padding-bottom: 2rem;
}
.title-bg {
    font-size: 3.5rem;
    font-weight: 900;
    text-align: center;
    background: linear-gradient(to right, #9333ea, #db2777);
    -webkit-background-clip: text;
    color: transparent;
}
.page-desc, .contact-desc {
    text-align: center;
    font-weight: bold;
    color: #4b5563;
    margin-top: 1rem;
}

/* --- Activities (Service) ページ --- */
.vibrant-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 768px) { .vibrant-grid { grid-template-columns: repeat(3, 1fr); } }

.vibrant-card {
    background: white;
    padding: 2rem;
    border-radius: 2rem;
    border: 2px solid #f3f4f6;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.vibrant-card:hover {
    transform: translateY(-10px) rotate(2deg);
    border-color: #d8b4fe;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.card-num {
    font-size: 4rem;
    font-weight: 900;
    color: #f3f4f6;
    position: absolute;
    top: -1rem; right: 0;
    line-height: 1;
}
.vibrant-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}
.vibrant-card p {
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.tags span {
    display: inline-block;
    background: #f3f4f6;
    padding: 0.2rem 0.8rem;
    border-radius: 99px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    font-weight: bold;
    color: #4b5563;
}

/* フローチャート */
.sub-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
}
.flow-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}
@media (min-width: 768px) { .flow-steps { flex-direction: row; justify-content: center; } }

.step {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 250px;
}
.step-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }
.step h4 { font-size: 1.2rem; margin-bottom: 0.5rem; font-weight: bold; }
.step-arrow { font-size: 2rem; color: #d1d5db; transform: rotate(90deg); }
@media (min-width: 768px) { .step-arrow { transform: rotate(0); } }
.center-btn { text-align: center; }

/* --- About ページ --- */
.mission-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.mission-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2rem;
}
@media (min-width: 768px) { .mission-title { font-size: 4rem; } }
.mission-text { font-size: 1.1rem; line-height: 2; color: #4b5563; }

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

.team-member { text-align: center; }
.member-img {
    width: 200px; height: 200px;
    border-radius: 50%;
    background-size: cover; background-position: center;
    margin: 0 auto 1.5rem;
    border: 5px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.team-member h3 { font-weight: 900; font-size: 1.2rem; }
.team-member p { color: #db2777; font-weight: bold; font-size: 0.9rem; }

.info-card {
    background: white;
    padding: 3rem;
    border-radius: 2rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}
.info-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #f3f4f6;
    padding: 1rem 0;
}
.info-row dt { font-weight: bold; }
.info-row dd { color: #6b7280; text-align: right; }

/* --- お問い合わせ & Privacy --- */
.pop-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 2rem;
    border: 2px solid white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}
.input-group { margin-bottom: 1.5rem; }
.input-group label {
    display: block; font-weight: 900; font-size: 0.8rem; margin-bottom: 0.5rem; color: #111827;
}
.input-group input, .input-group textarea {
    width: 100%; padding: 1rem;
    border: 3px solid #f3f4f6; border-radius: 1rem;
    font-size: 1rem; background: #f9fafb; transition: 0.3s;
}
.input-group input:focus, .input-group textarea:focus {
    outline: none; border-color: #111827; background: white;
}

/* プライバシーポリシー */
.policy-box {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.policy-box h3 { margin: 2rem 0 1rem; font-size: 1.3rem; border-left: 5px solid #db2777; padding-left: 1rem; }
.policy-box p { line-height: 1.8; color: #4b5563; }
.policy-box ul { margin: 1rem 0 1rem 2rem; color: #4b5563; }
.contact-info { background: #f9fafb; padding: 1.5rem; border-radius: 1rem; margin-top: 1rem; font-weight: bold; }

/* フッター */
.footer {
    text-align: center;
    padding: 3rem 0;
    background: #f9fafb;
    margin-top: auto;
}
.footer-links { margin-bottom: 1rem; }
.footer-links a {
    color: #9ca3af; text-decoration: none; font-weight: bold; transition: 0.3s;
}
.footer-links a:hover { color: #111827; }