/* ========================================
   CSS変数定義
   ======================================== */
:root {
    /* カラーパレット */
    --color-bg-dark: #0a0a0a;
    --color-bg-dark-alt: #1a1a1a;
    --color-text-primary: #ffffff;
    --color-text-secondary: #b0b0b0;
    --color-accent: #e8e8e8;
    --color-border: #333333;

    /* フォント */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    --font-en: 'Helvetica Neue', Arial, sans-serif;

    /* スペーシング */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-xxl: 8rem;

    /* トランジション */
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;
}

/* ========================================
   リセット・基本スタイル
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition-base);
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* 通常（PCなど）では改行タグを非表示 */
.sp-only {
  display: none;
}

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

/* ========================================
   ヘッダー
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-base), background-color var(--transition-base);
}

/* スクロール時のヘッダー背景 */
.header.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--color-border);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
}

.logo {
    height: 40px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    width: auto;
    display: block;
}

.nav-list {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-list a {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.nav-social {
    display: flex;
    align-items: center;
}

.nav-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: color var(--transition-base), transform var(--transition-base);
}

.nav-social a:hover {
    color: var(--color-text-primary);
    transform: translateY(-2px);
}

.nav-social svg {
    width: 20px;
    height: 20px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6.2px;
    padding: var(--spacing-xs);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: var(--transition-base);
}

/* ========================================
   ヒーローセクション
   ======================================== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* スライドショー背景 */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

/* 奇数番目のスライド（1番目、3番目、5番目） */
.hero-slideshow .slide:nth-child(odd) {
    filter: grayscale(80%);
}

/* 偶数番目のスライド（2番目、4番目） */
.hero-slideshow .slide:nth-child(even) {
    filter: grayscale(40%);
}

.hero-slideshow .slide.active {
    opacity: 1;
}

/* オーバーレイ（テキストを読みやすくするための暗めのフィルター） */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0.7) 100%);
    z-index: 2;
}

/* ロゴをオーバーレイの上に表示 */
.hero-logo {
    position: relative;
    z-index: 3;
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 1s ease;
}

.hero-logo img {
    width: clamp(400px, 60vw, 800px);
    height: auto;
    display: block;
}

/* コンテンツをオーバーレイの上に表示 */
.hero-content {
    position: relative;
    z-index: 3;
    animation: fadeInUp 1.2s ease 0.2s backwards;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
    font-family: 'Noto Serif JP', serif;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-primary);
    font-weight: 300;
    letter-spacing: 0.08em;
    font-family: 'Noto Serif JP', serif;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    font-family: var(--font-en);
    animation: scrollBounce 2s infinite;
    z-index: 3;
}

/* ========================================
   セクション共通
   ======================================== */
.section {
    padding: var(--spacing-xxl) 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header-plan {
    height: 850px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 0;
    background-image: url('../images/section-header-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--spacing-lg);
    padding-top: var(--spacing-xl);
}

.section-header-plan::before,
.section-header-plan::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 100px;
    pointer-events: none;
    z-index: 1;
}

.section-header-plan::before {
    top: -1px;
    background: linear-gradient(to bottom, var(--color-bg-dark) 0%, transparent 100%);
}

.section-header-plan::after {
    bottom: -1px;
    height: 400px;
    background: linear-gradient(to top, #000000 0%, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
}

.section-title {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
    font-family: 'Noto Serif JP', serif;
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-sm);
    z-index: 2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: var(--color-text-secondary);
}

.section-subtitle-en {
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-en);
}

.section-subtitle-image {
    text-align: center;
    margin-bottom: var(--spacing-sm);
    z-index: 2;
    position: relative;
}

.section-subtitle-image img {
    display: block;
    max-width: 400px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.section-subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-text-primary);
    line-height: 1.8;
    margin-top: auto;
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.08em;
    z-index: 2;
    position: relative;
}

/* ========================================
   コンセプトセクション
   ======================================== */
.concept {
    background-color: var(--color-bg-dark);
}

.concept-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 600px;
    gap: var(--spacing-lg);
}

.concept-logo {
    position: absolute;
    left: 0;
    width: 120px;
    height: 100%;
    z-index: 3;
    align-self: flex-start;
}

.concept-logo img {
    height: 100%;
    width: auto;
    display: block;
}

.concept-image {
    position: absolute;
    right: 0;
    width: 550px;
    z-index: 1;
}

.concept-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    box-shadow:
        inset 0 0 120px 60px rgba(10, 10, 10, 0.95),
        inset 0 0 80px 40px rgba(10, 10, 10, 0.6),
        inset 0 0 40px 20px rgba(10, 10, 10, 0.4);
    pointer-events: none;
    z-index: 1;
}

.concept-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 3 / 4;
    display: block;
    filter: grayscale(60%);
}

.concept-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-right: 300px;
    margin-left: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100%;
    min-height: 733px;
}

.concept-text {
    font-size: clamp(0.875rem, 1.3vw, 0.9375rem);
    line-height: 2.2;
    color: var(--color-text-primary);
    padding: var(--spacing-lg);
    padding-bottom: var(--spacing-xs);
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.85) 70%, transparent 100%);
    border-radius: 4px;
    display: block;
    width: 100%;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.08em;
    font-weight: 400;
}

.concept-text-en {
    font-size: clamp(0.75rem, 1.1vw, 0.8125rem);
    line-height: 1.8;
    color: var(--color-text-secondary);
    padding: var(--spacing-lg);
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.85) 70%, transparent 100%);
    border-radius: 4px;
    display: block;
    font-family: 'Inter', sans-serif;
    width: 100%;
    letter-spacing: 0.02em;
    font-weight: 400;
}

/* ========================================
   プランセクション
   ======================================== */

.plan {
    padding: 0;
    padding-bottom: var(--spacing-xl);
    background-color: #000000;
    position: relative;
}

.plan::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--color-bg-dark-alt) 0%, transparent 100%);
    pointer-events: none;
    z-index: 10;
}

.plan-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
    padding: 0, var(--spacing-xl);
}

.plan-step {
    padding: var(--spacing-md) 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    text-align: center;
}

.step-content {
    width: 100%;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.08em;
    color: #ffffff;
    font-family: 'Noto Serif JP', serif;
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-sm);
}

.step-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
}

.step-description {
    font-size: 0.9375rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Noto Sans JP', sans-serif;
}

/* ========================================
   自己紹介セクション
   ======================================== */
.profile {
    background-color: var(--color-bg-dark-alt);
    position: relative;
}

.profile::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;
    background: linear-gradient(to top, var(--color-bg-dark) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.profile-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.profile-image {
    flex: 0 0 auto;
    width: 350px;
}

.profile-image img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

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

.profile-role {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2em;
    margin-bottom: var(--spacing-sm);
}

.profile-name {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-text-primary);
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.08em;
    margin-bottom: var(--spacing-xs);
    font-weight: 400;
}

.profile-name-en {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.15em;
    margin-bottom: var(--spacing-md);
}

.profile-social {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
}

.profile-social a {
    color: var(--color-text-secondary);
    transition: color var(--transition-base), transform var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-social a:hover {
    color: var(--color-text-primary);
    transform: translateY(-2px);
}

.profile-social svg {
    width: 24px;
    height: 24px;
}

.profile-content {
    width: 100%;
    text-align: center;
}

.profile-text {
    font-size: clamp(0.875rem, 1.2vw, 0.9375rem);
    line-height: 2;
    color: var(--color-text-secondary);
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.05em;
    text-align: center;
}

.profile-text p {
    margin-bottom: var(--spacing-md);
}

.profile-text p:last-child {
    margin-bottom: 0;
}

/* ========================================
   お問い合わせセクション
   ======================================== */
.contact {
    background-color: var(--color-bg-dark);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--spacing-md);
    padding-bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    position: relative;
}

/* ハニーポット（スパム対策） */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* reCAPTCHA v3 バッジのスタイル調整 */
.grecaptcha-badge {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.grecaptcha-badge:hover {
    opacity: 1;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.08em;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--color-text-primary);
    font-weight: 500;
}

.required {
    color: #ff6b6b;
    margin-left: var(--spacing-xs);
    font-size: 0.75rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 180px;
    line-height: 1.8;
}

.submit-btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    color: #000000;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.submit-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.95) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.form-message {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: 4px;
    text-align: center;
    display: none;
    white-space: pre-line;
}

.form-message.success {
    display: block;
    background-color: rgba(72, 187, 120, 0.2);
    border: 1px solid rgba(72, 187, 120, 0.5);
    color: #68d391;
}

.form-message.error {
    display: block;
    background-color: rgba(245, 101, 101, 0.2);
    border: 1px solid rgba(245, 101, 101, 0.5);
    color: #fc8181;
}

/* ========================================
   フッター
   ======================================== */
.footer {
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg-dark-alt);
}

.footer-text {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
    font-family: var(--font-en);
}

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

@keyframes scrollBounce {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 10px);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   レスポンシブデザイン
   ======================================== */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
        --spacing-xxl: 4rem;
    }

    .logo img {
        width: 50%;
        height: auto;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-bg-dark-alt);
        padding: var(--spacing-xxl) var(--spacing-lg);
        transition: right var(--transition-base);
        border-left: 1px solid var(--color-border);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .nav-list a {
        font-size: 1.125rem;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

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

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

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

    .concept-wrapper {
        position: relative;
        min-height: auto;
    }

    .concept-logo {
        display: none;
    }

    .concept-content {
        display: flex;
        flex-direction: column;
        max-width: 100%;
        margin-right: 0;
        margin-left: 0;
        min-height: auto;
        position: relative;
        z-index: 2;
    }

    .concept-text {
        font-size: 0.7rem;
        padding: var(--spacing-sm);
        background: rgba(10, 10, 10, 0.85);
        border-radius: 8px;
        min-height: auto;
        margin-bottom: 0;
    }

    .concept-text-en {
        font-size: 0.6875rem;
        padding: var(--spacing-sm);
        background: linear-gradient(to bottom, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.7) 60%, transparent 100%);
        border-radius: 8px;
        margin-top: 0;
        margin-bottom: var(--spacing-lg);
        padding-bottom: var(--spacing-xl);
    }

    .concept-image {
        position: absolute;
        bottom: -50px;
        right: 0;
        width: 60%;
        max-width: 300px;
        z-index: 1;
    }

    .concept-image img {
        aspect-ratio: 3 / 4;
    }

    .hero-slideshow .slide:nth-child(1) {
        background-image: url('../images/slide1-sp.jpg') !important;
    }

    .hero-slideshow .slide:nth-child(4) {
        background-image: url('../images/slide4-sp.jpg') !important;
    }

    .section-header-plan {
        background-image: url('../images/section-header-bg-sp.jpg');
    }

    .plan .section-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }

    .plan-step {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .step-description {
        font-size: 0.875rem;
    }

    .step-number {
        font-size: 2rem;
        min-width: auto;
    }

    .profile-wrapper {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .profile-image {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .profile-text {
        font-size: 0.7rem;
        text-align: center;
    }

    .section {
        min-height: auto;
    }

    .sp-only {
        display: inline;
    }

    .form-group {
        margin-bottom: var(--spacing-sm);
    }
}

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

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    .concept-text {
        font-size: 0.63rem;
        line-height: 2;
    }
}
