/* ==========================================================================
   SPACE FACTORY LP - AパターンCSS (クラシック・明朝体テイスト / 完全版)
   ========================================================================== */

/* 1. 基本設定＆カラー変数
   -------------------------------------------------------------------------- */
:root {
    --gold: #c5a059;
    --gold-bright: #e5c178;
    --bg-dark: #0a0c0e;
    --bg-card: #14181c;
    --text-main: #e6e8ea;
    --text-sub: #9ea5ac;
    /* Aパターン用フォント定義 */
    --font-serif: 'Shippori Mincho', 'ヒラギノ明朝 ProN', 'Yu Mincho', serif;
    --font-en: 'Cinzel', serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-serif);
    line-height: 1.8;
    letter-spacing: 0.05em;
}

h1, h2, h3, .subtitle, .en-title {
    font-family: var(--font-serif);
}


/* 2. ヘッダー
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 14px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 12, 14, 0.88);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.logo-area {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-link {
    display: block;
    line-height: 1;
}

.logo-img {
    height: 18px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.logo-img:hover {
    opacity: 0.8;
}

.logo-subtext {
    width: 100%;
    font-size: 0.5rem;
    color: var(--gold);
    font-weight: 500;
    margin-top: 3px;
    line-height: 1;
    text-align: justify;
    text-align-last: justify;
    font-family: var(--font-serif);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

.nav-cta { 
    color: var(--gold); 
    text-decoration: none; 
    font-family: var(--font-en); 
    font-weight: 600;
    letter-spacing: 0.1em; 
    border: 1px solid var(--gold); 
    padding: 6px 20px; 
    transition: 0.3s; 
}

.nav-cta:hover { 
    background: var(--gold); 
    color: #000; 
}


/* 3. HEROセクション
   -------------------------------------------------------------------------- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 8%;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.hero-video-wrapper iframe {
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 12, 14, 0.75) 0%, rgba(10, 12, 14, 0.35) 100%);
    z-index: 1;
}

.hero-content { 
    position: relative; 
    z-index: 2; 
    max-width: 680px; 
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-content.hero-fade-in {
    animation: heroFadeUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
    opacity: 0;
    transform: translateY(40px);
}

@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle { 
    font-family: var(--font-en); 
    font-weight: 600;
    color: var(--gold); 
    letter-spacing: 0.2em; 
    margin-bottom: 15px; 
}

.hero h2,
.hero .hero-title { 
    font-size: 2.6rem; 
    font-weight: 500;
    line-height: 1.35; 
    margin-bottom: 20px; 
    color: #fff; 
    font-family: var(--font-serif) !important;
}

.hero .desc { 
    color: var(--text-main); 
    margin-bottom: 35px; 
    font-size: 1rem; 
}

.hero-btns { 
    display: flex; 
    gap: 20px; 
    flex-wrap: wrap;
}


/* 4. ボタンパーツ
   -------------------------------------------------------------------------- */
.btn-gold, 
.btn-gold-large, 
input[type="submit"].btn-gold-large {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: #000;
    padding: 14px 35px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.08em;
    display: inline-block;
    transition: 0.3s;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.btn-gold:hover, 
.btn-gold-large:hover, 
input[type="submit"].btn-gold-large:hover { 
    opacity: 0.9; 
    transform: translateY(-2px); 
}

.btn-line, .btn-line-large {
    background: #06c755;
    color: #fff;
    padding: 14px 35px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.btn-line-large { 
    display: block; 
    max-width: 400px; 
    margin: 0 auto; 
    padding: 18px; 
    text-align: center; 
    font-size: 1.1rem; 
}

.btn-line:hover, .btn-line-large:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}


/* 5. 共通セクション
   -------------------------------------------------------------------------- */
.section { 
    padding: 120px 8%; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    position: relative;
}

.container { 
    max-width: 1000px; 
    margin: 0 auto; 
    position: relative;
    z-index: 2;
}

.en-title { 
    font-family: var(--font-en); 
    font-weight: 600;
    color: var(--gold); 
    font-size: 0.85rem; 
    letter-spacing: 0.25em; 
    text-align: center; 
    margin-bottom: 10px; 
}

.section-title { 
    font-size: 2rem; 
    text-align: center; 
    font-weight: 500; 
    line-height: 1.4; 
    margin-bottom: 60px; 
    color: #fff; 
    font-family: var(--font-serif);
}


/* 6. コンテンツ固有デザイン
   -------------------------------------------------------------------------- */
/* 仕事内容：ギャラリー */
.job-gallery {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-main {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.3);
    height: 100%;
    min-height: 380px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-sub {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.3);
    height: 180px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-main:hover img,
.gallery-item:hover img {
    transform: scale(1.05);
}

.job-detail .content-box {
    background: var(--bg-card);
    padding: 35px 40px;
    border-left: 3px solid var(--gold);
    line-height: 2;
    font-size: 1.05rem;
}

/* 具体的な主な業務内容：3カラムカードレイアウト */
.task-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
    width: 100%;
}

.task-card {
    background: rgba(10, 12, 14, 0.6);
    border: 1px solid rgba(197, 160, 89, 0.25);
    overflow: hidden;
    width: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.task-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}

.task-img {
    height: 160px;
    width: 100%;
    overflow: hidden;
}

.task-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.task-card:hover .task-img img {
    transform: scale(1.05);
}

.task-text {
    padding: 15px;
}

.task-text p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-sub);
}

.task-text p strong {
    color: var(--gold-bright);
    font-weight: 600;
}

/* 求める人材：2カラム */
.req-intro-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-left: 4px solid var(--gold);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.req-intro-text p {
    line-height: 1.9;
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

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

.req-intro-text .highlight-p {
    color: #fff;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(197, 160, 89, 0.3);
}

.req-intro-img {
    position: relative;
    border: 1px solid rgba(197, 160, 89, 0.4);
    overflow: hidden;
}

.req-intro-img img {
    width: 100%;
    height: 100%;
    max-height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.req-intro-img:hover img {
    transform: scale(1.04);
}

.req-intro-img .img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 12, 14, 0.75);
    backdrop-filter: blur(4px);
    color: var(--gold);
    font-size: 0.75rem;
    padding: 6px 12px;
    text-align: right;
    letter-spacing: 0.05em;
}

/* 求める人材：リスト表示 */
.person-list.simple-list { 
    list-style: none; 
    max-width: 1000px; 
    margin: 0 auto; 
}

.person-list.simple-list li {
    background: var(--bg-card);
    padding: 20px 25px;
    margin-bottom: 15px;
    border-left: 2px solid var(--gold);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 0.95rem;
}

.person-list.simple-list li:last-child {
    margin-bottom: 0;
}

.person-list.simple-list span { 
    font-family: var(--font-en); 
    font-weight: 600;
    color: var(--gold); 
    font-size: 1.1rem; 
    line-height: 1.4;
    flex-shrink: 0;
}

/* なぜスペースか（左：画像 / 右：4カード 2カラムレイアウト） */
.why-us-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 30px;
    align-items: stretch;
}

.why-us-media {
    border: 1px solid rgba(197, 160, 89, 0.3);
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

.why-us-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.why-us-media:hover img {
    transform: scale(1.03);
}

.features-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 20px; 
}

.feature-card { 
    background: var(--bg-card); 
    padding: 25px 25px; 
    border: 1px solid rgba(197, 160, 89, 0.25); 
    border-left: 3px solid var(--gold);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}

.feature-card h3 { 
    font-size: 1.05rem; 
    color: var(--gold); 
    margin-bottom: 10px; 
    font-weight: 500; 
    line-height: 1.4;
}

.feature-card p { 
    color: var(--text-sub); 
    font-size: 0.9rem; 
    line-height: 1.7;
}

/* 新規：サービスフロント同時募集セクション */
.service-front {
    background: rgba(20, 24, 28, 0.6);
}

.sf-content-card {
    background: var(--bg-card);
    border: 1px solid rgba(197, 160, 89, 0.3);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.sf-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.sf-item {
    background: rgba(10, 12, 14, 0.5);
    border: 1px solid rgba(197, 160, 89, 0.2);
    overflow: hidden;
}

.sf-img {
    height: 240px;
    overflow: hidden;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.sf-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.sf-item:hover .sf-img img {
    transform: scale(1.04);
}

.sf-text {
    padding: 20px;
}

.sf-text h3 {
    font-size: 1.1rem;
    color: var(--gold-bright);
    margin-bottom: 10px;
    font-weight: 500;
}

.sf-text p {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.75;
}

.sf-summary-box {
    background: rgba(10, 12, 14, 0.8);
    border-left: 3px solid var(--gold);
    padding: 25px;
    margin-top: 10px;
}

.sf-summary-box h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.sf-summary-box p {
    color: var(--text-main);
    font-size: 0.92rem;
    line-height: 1.8;
}

/* 会社概要背景 */
.section.company {
    background: url('company-bg.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.company-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 14, 0.3);
    z-index: 1;
}

.section.company .info-table {
    background: rgba(10, 12, 14, 0.45);
    padding: 30px 40px;
    border: 1px solid rgba(197, 160, 89, 0.4);
    backdrop-filter: blur(6px);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.catch-box {
    background: var(--bg-card);
    border: 1px solid var(--gold);
    padding: 25px;
    text-align: center;
    margin-bottom: 40px;
}

.catch-text {
    color: var(--gold-bright);
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.8;
}

.info-table { 
    border-top: 1px solid rgba(197, 160, 89, 0.3); 
}

.info-table dt { 
    color: var(--gold); 
    font-weight: 500;
    padding-top: 25px; 
    font-size: 1.05rem; 
}

.info-table dd { 
    padding-top: 5px;
    padding-bottom: 25px; 
    color: var(--text-main); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); 
}

.info-table dd small {
    color: var(--text-sub);
    font-size: 0.85rem;
}

/* PC表示時のカッコ内テキスト制御 */
.sp-break {
    display: inline;
}

.detail-list {
    list-style-type: disc;
    padding-left: 20px;
}

.detail-list li {
    margin-bottom: 6px;
}

/* 中間CTA */
.section.mid-cta {
    padding: 60px 8%;
    background: var(--bg-card);
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
}

.mid-cta h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 500;
}

.mid-cta p {
    color: var(--text-sub);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* 会社概要：公式サイトリンクスタイル */
.site-link {
    color: var(--gold);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease, opacity 0.3s ease;
    display: inline-block;
    word-break: break-all;
}

.site-link:hover {
    color: var(--gold-bright);
    opacity: 0.85;
}

.ext-icon {
    font-size: 0.85em;
    margin-left: 2px;
    display: inline-block;
}

/* FAQ (LLMO) */
.faq-item {
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.faq-item:hover {
    border-left-color: var(--gold-bright) !important;
    transform: translateX(4px);
}


/* 7. お問い合わせ・フォーム
   -------------------------------------------------------------------------- */
.contact-desc { 
    text-align: center; 
    color: var(--text-sub); 
    margin-bottom: 40px; 
}

.line-box { 
    text-align: center; 
    margin-bottom: 40px; 
}

.line-box p { 
    font-size: 0.9rem; 
    color: var(--gold); 
    margin-bottom: 10px; 
}

.border-line { 
    text-align: center; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    line-height: 0.1em; 
    margin: 40px 0; 
}

.border-line span { 
    background: var(--bg-dark); 
    padding: 0 15px; 
    color: var(--text-sub); 
    font-family: var(--font-en); 
    font-weight: 600;
}

.contact-form { 
    max-width: 600px; 
    margin: 0 auto; 
}

.form-group { 
    margin-bottom: 25px; 
}

.formInner .form-group label { 
    display: inline-block; 
    padding: 0;
    margin-bottom: 8px; 
    font-size: 0.9rem; 
    font-weight: 500;
}

.formInner .form-group label span { 
    color: var(--gold); 
    font-size: 0.75rem; 
    margin-left: 5px; 
}

.form-group input[type="text"], 
.form-group input[type="tel"], 
.form-group input[type="email"], 
.form-group input[type="url"], 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-serif);
}

.form-group input:focus, .form-group textarea:focus { 
    border-color: var(--gold); 
    outline: none; 
}

input[type="submit"].btn-gold-large, 
input[type="submit"].btn-gold-large:hover { 
    width: 100%; 
    max-width: 100%;
    margin-top: 10px; 
    font-size: 1.1rem; 
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}


/* 8. アニメーション
   -------------------------------------------------------------------------- */
.fade-up, .fade-up-delay-1, .fade-up-delay-2 {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.fade-up.active, .fade-up-delay-1.active, .fade-up-delay-2.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.2s; }
.fade-up-delay-2 { transition-delay: 0.4s; }


/* 9. フッター
   -------------------------------------------------------------------------- */
.footer { 
    text-align: center; 
    padding: 40px 0; 
    color: var(--text-sub); 
    font-size: 0.8rem; 
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
}


/* 10. ページトップへ戻るボタン
   -------------------------------------------------------------------------- */
.page-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: rgba(20, 24, 28, 0.85);
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 0.8rem;
    z-index: 99;
    cursor: pointer;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.page-top-btn.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.page-top-btn:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-3px);
}

.page-top-btn span {
    line-height: 1;
    font-size: 0.75rem;
}


/* 11. スマホレスポンシブ（最適化済み）
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .header {
        padding: 12px 4%;
    }

    .logo-img {
        height: 15px;
    }

    .logo-subtext {
        font-size: 0.42rem;
        margin-top: 2px;
    }

    .section {
        padding: 80px 6%;
    }

    .en-title {
        text-align: left;
    }

    .section-title {
        text-align: left;
        font-size: 1.55rem;
        margin-bottom: 40px;
    }

    .catch-box {
        text-align: left;
        padding: 20px;
    }

    .contact-desc {
        text-align: left;
    }

    /* 募集要項：指定のカッコ内をスマホでのみ改行 */
    .sp-break {
        display: block;
        margin-top: 2px;
    }

    /* 1. JOB DESCRIPTION（メインギャラリー） */
    .job-gallery {
        grid-template-columns: 1fr;
    }
    .gallery-main {
        height: 220px;
        min-height: auto;
    }
    .gallery-item {
        height: 160px;
    }

    /* 2. JOB DESCRIPTION（業務内容 3枚カードの横幅・余白スマホ調整） */
    .job-detail .content-box {
        padding: 25px 18px;
    }

    .task-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        width: 100%;
        margin: 20px 0;
    }

    .task-card {
        width: 100%;
        box-sizing: border-box;
    }

    .task-img {
        height: 180px;
        width: 100%;
    }

    .task-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    /* 3. WHY SPACE FACTORY（正方形 1:1 指定） */
    .why-us-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .why-us-media {
        min-height: auto;
        height: auto;
        width: 100%;
        aspect-ratio: 1 / 1; /* 正方形 1:1 に調整 */
    }

    .why-us-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 30%;
    }

    /* 4. SERVICE FRONT（スマホレスポンシブ） */
    .sf-content-card {
        padding: 20px;
    }

    .sf-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sf-img {
        height: 180px;
        aspect-ratio: 16 / 10;
    }

    .sf-summary-box {
        padding: 18px;
    }

    /* 5. REQUIREMENT（求める人材 スマホ表示時 1:1 正方形指定） */
    .req-intro-card {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .req-intro-img {
        order: -1;
        width: 100%;
        aspect-ratio: 1 / 1; /* スマホ表示時は 1:1 の正方形に変更 */
    }

    .req-intro-img img {
        max-height: none;
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }

    .person-list.simple-list {
        padding: 0;
    }

    .person-list.simple-list li {
        padding: 16px 18px;
        gap: 12px;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .person-list.simple-list li strong {
        color: var(--gold-bright);
        display: inline-block;
        margin-right: 4px;
        white-space: nowrap;
    }

    .hero h2,
    .hero .hero-title {
        font-size: 1.85rem;
    }

    .section.company .info-table {
        padding: 15px 20px;
    }

    .page-top-btn {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    .faq-item {
        padding: 20px !important;
    }

    .faq-item h3 {
        font-size: 1rem !important;
    }
}