@charset "UTF-8";

:root {
    --font-family: 'Noto Sans JP', sans-serif;
    --primary-color: #0056b3;
    /* 信頼感のある濃い青 */
    --accent-color: #FFC107;
    /* 明るい黄色 */
    --text-color: #343a40;
    --white-color: #FFFFFF;
    --light-gray-color: #f8f9fa;
    --bg-color: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

/* Lenis Recommended Styles */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    margin: 0;
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
}

/* 文節改行用クラス */
.ib {
    display: inline-block;
}

.container {
    width: 100%;
    /* ← 90%から変更。ここの数値で隙間が変わります */
    max-width: 1100px;
    margin: 0 auto;
}

/* ヘッダー */
.header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid #dee2e6;
    position: sticky;
    /* sticky -> fixed (fullPage.js対応) */
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    text-decoration: none;
    color: var(--primary-color);
}

.nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 15px;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary-color);
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-accent {
    background-color: var(--accent-color);
    color: #333;
}

.btn-secondary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 26px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ファーストビュー */
.hero {
    min-height: 72vh;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

/* ヒーローテキスト個別調整 */
.hero-text h1 {
    font-size: 52px;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1.5;
    margin-bottom: -30px;
}

/* デスクトップでは改行しない */
@media (min-width: 769px) {

    .hero-text h1 br,
    .hero-subtitle br,
    .mobile-br {
        /* 追加: モバイル用改行を非表示 */
        display: none;
    }
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1.5;
    white-space: nowrap;
    margin-bottom: 30px;
}

.hero-text #hero-paragraph {
    font-size: 17px;
    line-height: 2;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-color);
}

/* ヒーローテキストアニメーション用スタイル */
.hero-text span {
    opacity: 0;
    /* 初期状態では非表示 */
    transition: opacity 0.5s ease-out;
    /* フェードインのトランジション */
    display: inline-block;
    /* 文字ごとにアニメーションを適用するため */
}


/* セクション共通 */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 40px;
}

.section-title span {
    display: block;
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.section-title .quest-title {
    font-size: 32px;
    display: inline;
}

.centered {
    text-align: center;
}

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

/* EdFILMの想い */
.mission-text {
    font-size: 18px;
    font-weight: 500;
    line-height: 2;
    max-width: 900px;
    margin: 0 auto;
}

.bg-colorful {
    background: linear-gradient(45deg, #f0f7ff, #fffbeb);
}

#mission {
    /* ↓ ここの数値を変更すると、このセクションだけの上下の幅が変わります */
    padding-top: 250px;
    /* 上の余白 */
    padding-bottom: 250px;
    /* 下の余白 */
}

.project-card {
    background: var(--white-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);

    /* ▼▼▼ テキストを中央に配置するための設定を追加 ▼▼▼ */
    display: flex;
    justify-content: center;
    text-align: center;
}

.project-card+.project-card {
    margin-top: 40px;
}

.project-text {
    /* ▼▼▼ 横幅が広がりすぎないように最大幅を設定 ▼▼▼ */
    max-width: 1000px;
}

.project-text h3 {
    font-size: 24px;
    font-weight: 900;
    margin-top: 0;
    line-height: 1.5;
}

.project-text strong {
    font-size: 28px;
    color: var(--primary-color);
    display: block;
    margin-top: 5px;
}

/* ▼▼▼ ボタンの上に適度な余白を追加 ▼▼▼ */
.project-text .btn {
    margin-top: 20px;
}

/* YouTubeチャンネルの副題スタイル */
.channel-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-top: -35px;
    letter-spacing: 0.25em;
    /* ← 文字間隔を調整 */
}

/* 会社概要ページ */
.page-header {
    background-color: var(--light-gray-color);
    padding: 50px 0;
}

.page-title {
    font-size: 36px;
    text-align: center;
    margin: 0;
    line-height: 1.4;
    font-weight: 900;
}

.page-title span {
    display: block;
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 700;
}

.section-company-info {
    padding-top: 60px;
    padding-bottom: 80px;
}

.company-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    background: var(--white-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.company-table th,
.company-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

.company-table th {
    width: 25%;
    font-weight: 700;
    background-color: var(--light-gray-color);
}

.business-list {
    margin: 0;
    padding-left: 20px;
}

.business-list li:not(:last-child) {
    margin-bottom: 8px;
}

/* お問い合わせフォーム */
.contact-form {
    max-width: 600px;
    margin: 30px auto 0;
    text-align: left;
    background: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #555;
    font-size: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    box-sizing: border-box;
    font-family: var(--font-family);
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 2;
    pointer-events: auto !important;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* ファイル入力のスタイル調整 */
.contact-form input[type="file"] {
    padding: 8px 10px;
    font-size: 14px;
    cursor: pointer;
}

.file-info {
    font-size: 13px;
    color: #666;
    margin-top: -15px;
    margin-bottom: 20px;
}

.contact-form button.btn {
    display: block;
    text-align: center;
    width: 100%;
    padding: 15px 0;
    font-size: 16px;
}

.form-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    background-color: #f8f9fa;
    border-radius: 50px;
    padding: 4px;
    border: 1px solid #dee2e6;
    margin-bottom: 30px;
}

.tab-label {
    z-index: 2;
}

.tab-label span {
    display: block;
    /* ▼▼▼ 上下のpaddingを調整して、文字を中央に寄せました ▼▼▼ */
    padding: 5px 10px 7px;
    /* 上パディング、左右パディング、下パディング */
    text-align: center;
    color: #555;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
    position: relative;
    /* 位置調整の基準になります */
    top: 5px;
    /* ← ここの数値を変更すると、文字だけが上下に動きます */
}

.tab-label input[type="radio"] {
    display: none;
}

.tab-label input[type="radio"]:checked+span {
    color: white;
}

/* スライドする青い背景 */
.form-tabs::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc(50% - 4px);
    background-color: var(--primary-color);
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0, 86, 179, 0.2);
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 1;
}

/* JavaScriptによってこのクラスが付与されると、青い背景が右に移動する */
.form-tabs.tab2-selected::after {
    transform: translateX(100%);
}

/* フッター */
.footer {
    background-color: #343a40;
    color: var(--white-color);
    padding: 40px 0;
    text-align: center;
}

.footer .logo {
    color: var(--white-color);
    margin-bottom: 10px;
    display: inline-block;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 30px;
}

.footer-nav a {
    color: var(--white-color);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-nav a:hover {
    opacity: 1;
}

.copyright {
    margin: 0;
    font-size: 14px;
    opacity: 0.5;
}

/* --- ▼▼▼ 全てのアニメーションスタイルをここにまとめました ▼▼▼ --- */



/* 2. スクロール時のアニメーション */
.reveal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.reveal-fade-up {
    transform: translateY(50px);
}

.reveal-from-left {
    transform: translateX(-50px);
}

.reveal-from-right {
    transform: translateX(50px);
}

.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0);
    visibility: visible;
}

/* --- ▲▲▲ アニメーションスタイルここまで ▲▲▲ --- */
/* =========================================
   レスポンシブ対応 (Mobile & Tablet)
   ========================================= */

/* ハンバーガーメニュー (デフォルトは非表示) */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
    /* ナビゲーションより上に */
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* タブレット・モバイル向けスタイル (768px以下) */
@media (max-width: 768px) {

    /* コンテナの幅調整 */
    .container {
        width: 90%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* ヘッダー調整 */
    .header {
        padding: 10px 0;
    }

    .logo {
        font-size: 20px;
    }

    /* ハンバーガーメニュー表示 */
    .hamburger-menu {
        display: flex;
    }

    /* ナビゲーションメニュー (モバイル用) */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        /* 画面外に配置 */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding-top: 80px;
        transition: right 0.3s ease-in-out;
        z-index: 150;
    }

    .nav.active {
        right: 0;
        /* 画面内にスライド */
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .nav a {
        font-size: 18px;
    }

    /* ハンバーガーメニューのアニメーション (×印になる) */
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg);
    }

    /* ヒーローセクション */
    .hero {
        padding: 60px 0;
        min-height: auto;
        /* 高さをコンテンツに合わせる */
    }

    .hero-text h1 {
        font-size: 28px;
        /* 32px -> 28px */
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 16px;
        /* 18px -> 16px */
        margin-bottom: 20px;
        white-space: normal;
        /* 折り返し許可 */
    }

    .hero-text #hero-paragraph {
        font-size: 15px;
        line-height: 1.8;
    }

    /* セクション共通 */
    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .section-title .quest-title {
        font-size: 22px;
    }

    /* Missionセクション */
    #mission {
        padding-top: 80px;
        padding-bottom: 80px;
    }


    .mission-text {
        font-size: 13px;
        text-align: justify;
        /* 両端揃えで左右の端を揃える */
    }

    /* デスクトップ用の改行をモバイルでは非表示 */
    .desktop-br {
        display: none;
    }

    /* Contactセクション */
    #contact p {
        font-size: 11px;
        /* 13px -> 11px */
    }

    .file-info {
        font-size: 11px;
        /* 少し小さく */
    }

    /* ファイル入力フィールドのサイズ調整 */
    .contact-form input[type="file"] {
        padding: 6px 8px;
        font-size: 12px;
    }

    /* Projectカード */
    .project-card {
        padding: 25px;
        flex-direction: column;
        /* 必要に応じて */
    }

    .project-text h3 {
        font-size: 20px;
    }

    .project-text p {
        font-size: 13px;
        /* 追加: 本文を小さく */
        line-height: 1.7;
        text-align: justify;
        /* 両端揃えで左右の端を揃える */
    }

    .project-text strong {
        font-size: 24px;
    }

    /* YouTubeチャンネルの副題をモバイルで小さく */
    .channel-subtitle {
        font-size: 14px;
        letter-spacing: 0.2em;
        margin-top: -25px;
        /* ← モバイル時の上マージンを調整 */
    }

    .project-text .channel-name {
        font-size: 21px;
    }

    /* 会社概要テーブル */
    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .company-table th {
        background-color: #f1f3f5;
        padding: 10px 15px;
        border-bottom: none;
    }

    .company-table td {
        padding: 10px 15px 20px;
        border-bottom: 1px solid #eee;
        font-size: 13px;
        /* 16px -> 14px */
    }

    /* 事業内容は元のサイズ(16px)を維持 -> 削除して親要素に合わせる */
    /* .business-list { }  ← 空のルールセットを削除 */

    /* 事業内容リストを両端揃えに */
    .business-list li {
        text-align: justify;
        /* 両端揃えで左右の端を揃える */
    }

    /* お問い合わせフォーム */
    .contact-form {
        padding: 25px;
    }

    .form-tabs {
        grid-template-columns: 1fr;
        /* 縦並び */
        border-radius: 15px;
    }

    .form-tabs::after {
        width: 100%;
        height: 50%;
        top: 0;
        left: 0;
        border-radius: 15px;
    }

    .form-tabs.tab2-selected::after {
        transform: translateY(100%);
        /* 下に移動 */
    }

    /* フッター */
    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }
}

/* ============================================
   制作実績ページ（Works）
============================================ */

.works-section {
    padding: 80px 0;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.work-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.work-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 アスペクト比 */
    overflow: hidden;
    background: #000;
}

.work-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.work-video img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f5f5f5;
    padding: 60px;
    box-sizing: border-box;
}

.work-info {
    padding: 30px;
    text-align: center;
}

.work-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .works-section {
        padding: 50px 0;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .work-info {
        padding: 20px;
    }

    .work-title {
        font-size: 16px;
    }
}