@charset "UTF-8";
/*
Theme Name: Video Portfolio Theme
Author: MINE
Version: 1.0
Description: 映像クリエイター向けのシンプルでスタイリッシュな自作テーマ。
*/

/* ==========================================================================
   💥 1. 全体設定（リセットと基本カラー）
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f4f7fc;
    color: #2c3e50;
    /* 🌟 フォントの指定を M PLUS Rounded 1c に変更 */
    font-family: "M PLUS Rounded 1c", sans-serif;
    line-height: 1.7;
}

a {
    color: #0077ff;            /* リンクカラー（爽やかな青） */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00bcd4;            /* ホバー時は鮮やかな水色に */
}

/* ==========================================================================
   🔷 2. ヘッダーのデザイン（スタイリッシュ＆横並び）
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* ほのかな影で立体感を */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between; /* ロゴとメニューを左右に振り分け */
    align-items: center;
}

.site-logo a {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a365d; /* 信頼感のある濃紺 */
    letter-spacing: 0.05em;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 25px; /* メニュー間の余白 */
}

.site-nav a {
    color: #4a5568;
    font-weight: 500;
    font-size: 0.95rem;
}

.site-nav a:hover {
    color: #0077ff;
}

/* ==========================================================================
   📝 3. メインコンテンツ（中央配置と余白）
   ========================================================================== */
.site-main {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    min-height: 60vh; /* フッターを画面下に押し下げるための高さ */
}

.site-main h2 {
    font-size: 2rem;
    color: #1a365d;
    margin-bottom: 15px;
}

/* ==========================================================================
   🔷 4. フッターのデザイン
   ========================================================================== */
.site-footer {
    background-color: #1a365d; /* 濃紺でサイトの足元を引き締める */
    color: #ffffff;
    padding: 30px 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* ==========================================================================
   📸 5. メインビジュアル（トップページ専用）
   ========================================================================== */
.main-visual {
    position: relative;
    height: 70vh; /* 画面の高さの70%のサイズ */
    background-image: url('images/main-visual.jpg'); /* 先ほど保存した画像 */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

/* 画像の上に薄い黒いモヤをかけて、白い文字を見やすくする */
.main-visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 54, 93, 0.4); /* 濃紺ベースの半透明フィルター */
    z-index: 1;
}

/* 文字やボタンのコンテンツ */
.main-visual-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.main-visual-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.main-visual-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* スタイリッシュな青いボタン */
.btn-primary {
    display: inline-block;
    background-color: #0077ff;
    color: #ffffff;
    padding: 15px 35px;
    border-radius: 50px; /* 丸みを持たせて親しみやすさを */
    font-weight: 600;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #00bcd4; /* 水色に変化 */
    color: #ffffff;
    transform: translateY(-2px); /* ほのかに浮き上がるアニメーション */
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

/* ==========================================================================
   🔷 6. 実績セクション（グリッドレイアウト）
   ========================================================================== */
.works-section {
    padding: 40px 0;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    color: #1a365d;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
}

.section-subtitle {
    text-align: center;
    color: #0077ff; /* アクセントの青 */
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 50px;
    letter-spacing: 0.1em;
}

/* 3カラムの横並びを作る（レスポンシブ対応） */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* カード同士の間隔 */
    margin-bottom: 50px;
}

/* 実績カード1つずつの設定 */
.work-item {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item:hover {
    transform: translateY(-5px); /* ホバー時に上に浮き上がる */
    box-shadow: 0 10px 25px rgba(0, 119, 255, 0.1);
}

/* サムネイル画像エリア（16:9を維持） */
.work-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 の比率 */
    background-color: #000;
}

.work-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像を比率を保ったままいっぱいに広げる */
}

/* カードの下半分のテキストエリア */
.work-info {
    padding: 20px;
}

.work-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0077ff;
    background-color: #e6f2ff; /* 薄い水色の背景 */
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.work-item-title {
    font-size: 1.05rem;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.4;
}

/* 「実績をすべて見る」ボタン */
.works-more {
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    border: 2px solid #0077ff;
    color: #0077ff;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #0077ff;
    color: #ffffff;
}

/* カード全体をリンクとして機能させる設定 */
.work-item-inner-link {
    display: block;
    color: inherit; /* テキストの色を親要素から引き継ぐ */
    text-decoration: none; /* リンクの下線を消す */
    height: 100%;
}

/* ==========================================================================
   📄 7. 固定ページ専用のデザイン
   ========================================================================== */
.page-template {
    max-width: 900px; /* 横幅を少し狭めて読みやすくする */
    margin: 50px auto;
}

.page-title {
    font-size: 2.4rem;
    color: #1a365d;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

/* タイトルの下にスタイリッシュな青い下線を引く */
.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #0077ff;
    border-radius: 2px;
}

/* 本文エリア（プロフィールやYouTube埋め込み）の調整 */
.entry-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    font-size: 1.05rem;
}

/* YouTubeの埋め込み（ブロック）が綺麗にレスポンシブ対応するための設定 */
.entry-content wp-block-embed,
.entry-content iframe {
    width: 100% !important;
    max-width: 100%;
    margin: 30px 0;
    border-radius: 8px;
}

.entry-content p {
    margin-bottom: 20px;
}

/* ==========================================================================
   📝 8. ブログ（一覧・個別）専用のデザイン
   ========================================================================== */
/* 一覧のリスト構造 */
.blog-list {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

/* 記事ごとの区切り */
.blog-item {
    border-bottom: 1px solid #eef2f6;
}
.blog-item:last-child {
    border-bottom: none;
}

.blog-item-link {
    display: flex;
    align-items: center;
    padding: 25px 35px;
    color: #2c3e50;
    transition: background-color 0.3s ease;
}

.blog-item-link:hover {
    background-color: #f4f7fc;
    color: #0077ff;
}

.blog-date {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-right: 40px;
    font-weight: 600;
}

.blog-item-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* 個別記事ページの見出しまわり */
.post-header {
    text-align: center;
    margin-bottom: 30px;
}

.post-date {
    display: block;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 10px;
}

.post-title {
    font-size: 2.2rem;
    color: #1a365d;
    line-height: 1.4;
}

.post-footer-nav {
    text-align: center;
    margin-top: 50px;
}

/* ==========================================================================
   📬 9. お問い合わせページ（Googleフォーム）専用デザイン
   ========================================================================== */
.contact-form-container {
    padding: 20px; /* フォームの周りに少し余白を持たせる */
    text-align: center;
}

/* Googleフォームのiframeをレスポンシブ（画面幅ぴったり）に対応させる */
.contact-form-container iframe {
    width: 100% !important;
    max-width: 640px; /* Googleフォームが一番綺麗に見える標準の横幅 */
    height: 800px;    /* フォームの長さに合わせて必要なら調整してください */
    border: none;
    background: transparent;
}

/* ==========================================================================
   📱 10. スマホ・タブレット対応（レスポンシブデザイン）
   ========================================================================== */

/* 画面幅が 768px 以下の時（一般的なスマホ・タブレット縦向き）に適用 */
@media screen and (max-width: 768px) {
    
    /* 1. ヘッダー：ロゴとメニューを縦並び、またはコンパクトに */
    .header-container {
        flex-direction: column; /* 左右ではなく上下並びにする */
        gap: 15px;
        padding: 15px 10px;
    }
    
    .site-nav ul {
        gap: 15px; /* メニュー同士の間隔を少し狭める */
        flex-wrap: wrap; /* 画面幅が足りない時は自動で折り返す */
        justify-content: center;
    }
    
    .site-nav a {
        font-size: 0.85rem; /* 文字を少し小さくして押しやすく */
        padding: 5px 8px;
    }

    /* 2. メインビジュアル：文字サイズをスマホ用に最適化 */
    .main-visual {
        height: 60vh; /* スマホでは少し高さを抑える */
    }

    .main-visual-content h1 {
        font-size: 1.8rem; /* パソコン用（2.8rem）からスマホ用に縮小 */
        line-height: 1.3;
    }

    .main-visual-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .btn-primary {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    /* 3. 実績セクション：3列から1列（縦並び）に自動切り替え */
    .works-grid {
        grid-template-columns: 1fr; /* 1列にする */
        gap: 20px;
        padding: 0 10px;
    }
    
    /* 🌟 追記：スマホ時にカード内（テキスト部分）の余白を最適化して見やすく */
    .works-grid .work-info {
        padding: 15px 12px !important;
    }
    
    .section-title {
        font-size: 1.8rem;
    }

    /* 4. 固定ページ（プロフィール・お問い合わせ）：左右の余白を削って画面を広く使う */
    .page-template {
        margin: 30px auto;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .entry-content {
        padding: 25px 15px; /* パソコン用の広い余白をスマホ用に狭める */
        border-radius: 8px;
    }

    .blog-item-link {
        flex-direction: column; /* 日付とタイトルを上下並びにする */
        align-items: flex-start;
        padding: 20px 15px;
    }

    .blog-date {
        margin-right: 0;
        margin-bottom: 5px; /* 日付の下に少し隙間を作る */
    }
}

/* ==========================================================================
   💰 11. 料金ページ（テーブル）専用デザイン
   ========================================================================== */
/* 表がスマホではみ出さないように横スクロールを許可するラッパー */
.price-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 1rem;
}

.price-page-content th,
.price-page-content td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

/* 表のヘッダー（一番上の行）を青ベースに */
.price-page-content th {
    background-color: #e6f2ff;
    color: #1a365d;
    font-weight: 700;
}

/* 行にマウスを乗せたときにほんのり背景色を変える */
.price-page-content tr:hover {
    background-color: #f8fafc;
}

/* スマホ対応：画面幅が狭い時は表を横スクロールできるように */
@media screen and (max-width: 600px) {
    .price-page-content {
        /* ブロックエディタのテーブル用 */
        overflow-x: auto;
    }
    .price-page-content th,
    .price-page-content td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }
}

/* フッターナビのリンクホバー時 */
.footer-nav a:hover {
    opacity: 1 !important;
    color: #0077ff !important; /* アクセントの青に光る */
}

/* ==========================================================================
   🏠 12. トップページ自由編集エリア（ブロックエディタ用）
   ========================================================================== */
.front-page-content {
    max-width: 1200px;
    margin: 60px auto;
}

/* トップページに追加する各ブロック（見出しや段落）の上下にほどよい隙間を作る */
.front-page-content > * {
    margin-bottom: 40px;
}

.front-page-content h2 {
    font-size: 2.2rem;
    text-align: center;
    color: #1a365d;
    margin-top: 60px;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}