/*
Theme Name: Yatagarasu Theme
Author: Your Name
Description: 八咫烏舎のオリジナルWordPressテーマ
Version: 1.0
*/

/* ===== GENERAL & VARIABLES ===== */
:root {
    --main-black: #0F0F0F; /* 少し明るめに調整 */
    --dark-gray: #1E1E1E;
    --accent-red: #D80000;
    --accent-yellow: #F2E800;
    --text-white: #FFFFFF;
    --light-gray: #B0B0B0; /* 補足色 */

    --font-heading: 'Bangers', cursive;
    --font-body: 'Roboto', sans-serif;
}

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

body {
    background-color: var(--main-black);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px; /* カンプに合わせて少し広めに */
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== HEADER ===== */
header {
    background-color: var(--main-black);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent-red); /* カンプの赤い線 */
}

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

header .logo img {
    height: 35px; /* カンプに合わせて調整 */
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 1)); /* 白い光沢感を出す */
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

/* header.phpのnav部分に適用するCSS（提案A） */
header nav ul li a {
    color: var(--text-white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 1.5px;
    padding: 8px 18px;
    position: relative; /* ::afterの位置の基準にする */
    transition: color 0.3s ease;
}

/* 元の赤い平行四辺形のスタイルは削除 */
header nav ul li a::before {
    content: none;
}

/* アンダーライン用のスタイルを追加 */
header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0; /* テキストの真下に配置 */
    left: 50%;
    transform: translateX(-50%);
    width: 0; /* 初期状態では幅0 */
    height: 3px; /* 線の太さ */
    background-color: var(--accent-yellow); /* 線の色 */
    transition: width 0.3s ease; /* 幅が変化するアニメーション */
}

/* ホバー時のスタイル */
header nav ul li a:hover {
    color: var(--accent-yellow); /* テキストの色も黄色に */
}

header nav ul li a:hover::after {
    width: 100%; /* ホバー時に幅100%に広がる */
}

/* ===== HERO SECTION ===== */
#hero {
    height: 90vh; /* 少し高めに */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden; /* キャラクターがはみ出すので隠す */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
/* hero-bg内の画像（メインビジュアル）のスタイル */
.hero-bg img.hero-symbol-mainvisual {
    width: 100%;
    height: 100%;
    object-fit: cover; /* アスペクト比を維持しつつ全体をカバー */
    object-position: center; /* 中央を基準に表示 */
    filter: brightness(0.7) contrast(1.2); /* ダークでコントラスト高く */
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

.hero-main-content {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.hero-symbol-main {
    width: 180px; /* カンプの鳥シンボルサイズ */
    filter: drop-shadow(0 0 15px var(--accent-yellow)) saturate(1.5); /* 光る感じ */
}

#hero h1 {
    font-family: var(--font-body); /* カンプの明朝体・ゴシック体に合わせる */
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(0,0,0,0.8), 0 0 20px rgba(255,255,255,0.3);
    letter-spacing: 2px;
}


/* ===== GENERAL SECTION STYLING ===== */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem; /* カンプに合わせて調整 */
    letter-spacing: 3px;
    color: var(--main-black); /* テキストは黒 */
    text-align: center;
    margin-bottom: 60px; /* 下部余白を確保 */
    position: relative;
    display: inline-block; /* spanに背景を適用するため */
    z-index: 1; /* 手前に表示 */
}

.section-title span:first-child { /* 英語タイトル部分 */
/*     background-image: url('speech-bubble-red.png'); 赤いフキダシ画像を背景に */
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 15px 40px; /* フキダシに合わせたパディング */
    display: block;
    filter: drop-shadow(5px 5px 0px rgba(0,0,0,0.5)); /* コミック風の影 */
    -webkit-text-stroke: 1.5px var(--text-white); /* 白い縁取り */
    color: var(--main-black); /* フキダシ内は黒文字 */
}

/* 日本語サブタイトル用のスタイル */
.section-title .japanese-subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--light-gray);
    margin-top: 10px;
    letter-spacing: 1px;
}


/* ===== COMIC PANEL SECTION (Mission, Works) ===== */
.comic-panel-section {
    background-color: var(--dark-gray);
    /* ハーフトーン（ドット柄）の背景 */
    background-image: radial-gradient(circle at 50% 50%, #333 1px, transparent 1px);
    background-size: 15px 15px; /* ドットのサイズと間隔 */
    position: relative;
    /* 斜めのクリップパス */
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    padding: 120px 0; /* 斜めのためパディングを増やす */
}

/* MISSION SECTION SPECIFIC */
#mission {
    background-color: var(--dark-gray); /* 背景色を指定 */
}

.mission-layout {
    display: flex;
    gap: 50px;
    align-items: center;
}

.mission-text-panel {
    flex: 1;
    text-align: center;
    padding-right: 30px; /* 線の間隔 */
    border-right: 2px dashed var(--light-gray); /* コマの境界線 */
}

.mission-text-panel .section-title {
    margin-bottom: 30px;
}

.mission-text-panel p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.mission-graphic-panel {
    flex: 1;
    height: 350px; /* 高さを指定 */
}
.mission-graphic-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(5px 5px 0px rgba(0,0,0,0.5)); /* コミック風の影 */
}


/* ===== SERVICE SECTION ===== */
#service {
    background-color: var(--main-black);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* PC版で2x2に固定 */
    gap: 50px; /* カード間の余白を少し広げる */
    padding-top: 20px;
}

.service-card {
    position: relative;
    background-color: transparent;
    transform: skew(-8deg);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(8px 8px 0px rgba(0,0,0,0.5));
}

.service-card:hover {
    transform: skew(-8deg) translateY(-10px);
    filter: drop-shadow(15px 15px 0px rgba(0,0,0,0.7));
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-gray);
    border: 3px solid var(--accent-yellow);
    z-index: -1;
}

.service-card .card-inner {
    padding: 40px 30px; /* 上下の余白を多めに */
    text-align: center;
    transform: skew(8deg); /* 内容を元に戻す */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* 上から順に配置 */
    height: 100%; /* 高さを親要素に合わせる */
}

/* ▼▼▼ アイコンのスタイルを変更 ▼▼▼ */
.service-icon {
    width: 130px; /* アイコンサイズを大きく */
    height: 130px;
    object-fit: contain; /* 画像が潰れないように */
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
    margin-bottom: 25px; /* アイコンとタイトルの間の余白 */
}

/* ▼▼▼ タイトルのスタイルを変更 ▼▼▼ */
.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.9rem; /* 文字サイズを少し小さくして改行を防ぐ */
    color: var(--accent-yellow);
    letter-spacing: 1px;
    position: relative;
    -webkit-text-stroke: 1px var(--dark-gray);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.7);
    margin-bottom: 15px; /* タイトルと説明文の間の余白 */
    line-height: 1.2; /* 行の高さを調整 */
}

.service-card h3::after {
    /* 下線は不要になったので削除 */
    content: none;
}

.service-card p {
    font-size: 1rem;
    color: var(--light-gray);
    line-height: 1.7;
    margin-bottom: 25px; /* ボタンとの間にしっかり余白を確保 */
    flex-grow: 1; 
}

/* ▼▼▼ このスタイルを修正 ▼▼▼ */
.service-social-links {
    display: flex;
    justify-content: center;
    gap: 15px; /* アイコン間の余白 */
    width: 100%;
    /* margin-top: auto; <-- この行を削除 */
}
.card-footer {
    width: 100%;
    margin-top: auto; /* フッター全体をカードの最下部に配置 */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* LINEボタンとSNSボタンの間の余白 */
}

.service-social-links a {
    /* アイコンの基本デザイン */
    display: inline-flex; /* flexboxで中央揃え */
    justify-content: center;
    align-items: center;
    width: 40px;  /* 幅 */
    height: 40px; /* 高さ */
    border-radius: 50%; /* 円形にする */
    background-color: #333; /* 背景色を追加 */
    color: var(--light-gray);
    font-size: 1.2rem; /* アイコンのサイズ */
    transition: all 0.3s ease;
    border: 2px solid #555; /* 枠線を追加 */
}

.service-social-links a:hover {
    /* ホバー時のデザイン */
    background-color: var(--accent-yellow); /* 背景色を黄色に */
    color: var(--main-black); /* アイコンの色を黒に */
    border-color: var(--accent-yellow); /* 枠線の色も黄色に */
    transform: scale(1.1); /* 少し拡大 */
}
/* ===== WORKS SECTION ===== */
#works {
    background-color: var(--dark-gray);
}
/* ulタグのスタイル */
.works-list {
    list-style: none; /* リストのデフォルトの点を消す */
    padding: 0;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px; /* 各項目の間隔 */
}

/* liタグのスタイル */
.work-item {
    background-color: #2a2a2a;
    border-left: 5px solid var(--accent-red); /* 左側にアクセント線を追加 */
    transition: all 0.3s ease;
}

/* リンクエリア全体のスタイル */
.work-item a {
    display: flex; /* 横並びにする */
    justify-content: space-between; /* 両端に寄せる */
    align-items: center; /* 上下中央揃え */
    padding: 20px 25px;
    transition: background-color 0.3s ease;
}

.work-item:hover {
    transform: translateX(10px); /* 右に少し動かす */
    background-color: #333;
}

.work-item h3 {
    font-family: var(--font-body);
    font-weight: bold;
    color: var(--text-white);
    font-size: 1.2rem;
    margin: 0;
}

.work-item time {
    font-size: 0.9rem;
    color: var(--light-gray);
    flex-shrink: 0; /* 日付が縮まないようにする */
    margin-left: 20px;
}

/* ===== VIEW MOREボタン ===== */
.view-more-container {
    text-align: center;
    margin-top: 40px; /* リストとの間に余白を設ける */
}

.view-more-button {
    display: inline-block;
    background-color: transparent;
    color: var(--text-white);
    border: 2px solid var(--accent-yellow); /* 黄色の枠線 */
    padding: 12px 35px;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    letter-spacing: 2px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-more-button:hover {
    background-color: var(--accent-yellow);
    color: var(--main-black);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

/* ===== CONTACT SECTION ===== */
#contact {
    background-color: var(--main-black);
    position: relative;
    overflow: hidden;
    padding: 100px 0 120px;
}
#contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(20deg); /* ロゴを回転 */
    width: 80%; /* サイズを大きく */
    height: 100%;
/*     background: url('karasu2.png') no-repeat center center/contain; */
    opacity: 0.05; /* 薄く */
    z-index: 0;
    pointer-events: none;
}
.contact-content {
    position: relative;
    z-index: 1;
    text-align: center;
}
.contact-description {
    font-size: 1.1rem;
    color: var(--light-gray);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.line-contact-button {
    display: inline-block;
    background-color: #06C755; /* LINEのブランドカラー */
    color: var(--text-white);
    border: 2px solid #06C755;
    padding: 15px 30px; /* 上下のpaddingを少し減らし、左右を調整 */
    font-family: var(--font-body);
    font-weight: bold;
    font-size: 18px; /* 少しだけ小さくしてバランスをとる */
    letter-spacing: 1px; /* 少しだけ詰める */
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(5px 5px 0px rgba(0,0,0,0.5));
    border-radius: 5px;
    width: 90%; /* 幅を90%に */
    max-width: 400px; /* ただし最大幅は400pxに制限 */
    box-sizing: border-box; /* paddingを含めて幅を計算 */
}
.line-contact-button:hover {
    background-color: var(--text-white);
    color: #06C755;
    border-color: var(--text-white);
    filter: drop-shadow(8px 8px 0px rgba(0,0,0,0.7));
    transform: translateY(-3px);
}

/* ===== Floating LINE Icon ===== */
.floating-line-icon {
    position: fixed; /* 画面に固定 */
    right: 30px;     /* 右から30px */
    bottom: 30px;    /* 下から30px */
    width: 65px;     /* アイコンの幅 */
    height: 65px;    /* アイコンの高さ */
    z-index: 999;    /* 他の要素より手前に表示 */
    transition: transform 0.3s ease-in-out;
}
.floating-line-icon img {
    width: 100%;
    height: auto;
    border-radius: 15px; /* 少し角を丸める */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}
.floating-line-icon:hover {
    transform: scale(1.1) rotate(5deg); /* ホバー時に少し拡大・回転 */
}

/* ===== FOOTER ===== */
footer {
    padding: 50px 0;
    text-align: center;
    background-color: var(--main-black);
    border-top: 3px solid var(--accent-red);
}

.footer-logo {
    height: 45px;
    margin-bottom: 25px; /* 下に余白 */
	filter: drop-shadow(0 0 1px rgba(255, 255, 255, 1));
    transition: opacity 0.3s ease;
}
.footer-logo:hover {
    opacity: 0.8;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px; /* アイコン間の余白 */
    margin-bottom: 25px;
}

.social-icons a {
    color: var(--light-gray);
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-yellow);
    transform: translateY(-4px); /* 少し上に動くホバー効果 */
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--light-gray);
    font-size: 0.9rem;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-white);
}

footer .copyright {
    color: var(--light-gray);
    font-size: 0.85rem;
    margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    #hero h1 {
        font-size: 2.2rem;
    }
    .hero-symbol-main {
        width: 150px;
    }
    .mission-layout {
        flex-direction: column;
        text-align: center;
    }
    .mission-text-panel {
        border-right: none;
        border-bottom: 2px dashed var(--light-gray);
        padding-right: 0;
        padding-bottom: 30px;
    }
    .mission-graphic-panel {
        width: 100%;
        height: 300px;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        transform: none; /* スマホでは斜めを解除 */
    }
    .service-card::before {
        transform: none;
    }
    .service-card .card-inner {
        transform: none;
    }
    .service-card:hover {
        transform: translateY(-10px);
    }
    .section-title span:first-child {
        font-size: 0.8em; /* スマホでのフキダシ内の文字サイズ */
        padding: 10px 20px;
    }
    .section-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    header nav ul li a {
        font-size: 1.1rem;
        padding: 6px 12px;
    }
    #hero h1 {
        font-size: 1.8rem;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .comic-panel-section {
        clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
        padding: 80px 0;
    }
    #contact form {
        padding: 25px;
    }
    #contact button {
        font-size: 1.8rem;
    }
}

/* ===== COMPANY PAGE =====
-------------------------------------------------- */

/* ページ全体の基本設定 */
.page-company {
    background-color: var(--main-black);
}

/* ページヒーロー */
.page-hero-section {
    padding: 80px 0;
    background-color: var(--dark-gray);
    text-align: center;
}
.page-hero-section .page-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    letter-spacing: 4px;
    display: inline-block;
}
.page-hero-section .page-title span {
    display: block;
}
.page-hero-section .page-title .japanese-subtitle {
    font-size: 1.5rem;
    margin-top: 10px;
    color: var(--light-gray);
}


/* 理念セクション */
.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 2;
    color: var(--light-gray);
}
.philosophy-content p {
    margin-bottom: 2em;
}
.philosophy-signature {
    text-align: right;
    font-size: 1rem;
    line-height: 1.8;
}

/* 会社概要テーブル */
.profile-list {
    max-width: 900px;
    margin: 40px auto 0;
    /* 枠線をなくし、代わりにカード間の余白を設定 */
    border-top: none; 
    display: flex;
    flex-direction: column;
    gap: 15px; /* カード間の垂直方向の余白 */
}

.profile-item {
    display: flex;
    border: none; /* 元の線は不要に */
    background-color: var(--dark-gray); /* カードの背景色 */
    overflow: hidden; /* 角丸を有効にするため */
    border-radius: 5px; /* カードの角を少し丸める */
    filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.5));
}

.profile-item dt {
    background-color: #111; /* ラベルの背景を少し濃くしてメリハリを */
    color: var(--accent-yellow);
    font-weight: bold;
    padding: 20px;
    width: 200px; /* 幅を固定値に */
    flex-shrink: 0;
    border-right: 3px solid var(--accent-red); /* 赤いアクセント線を追加 */
    display: flex;
    align-items: center; /* 文字を垂直方向に中央揃え */
    justify-content: center; /* 文字を水平方向に中央揃え */
    text-align: center;
}

.profile-item dd {
    padding: 20px 25px; /* 内側の余白を調整 */
    flex: 1; /* 残りの幅をすべて使用 */
    margin: 0;
    color: var(--light-gray);
    display: flex;
    align-items: center;
}

.profile-item dd ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.profile-item dd ul li {
    margin-bottom: 0.5em;
}
.profile-item dd ul li:last-child {
    margin-bottom: 0;
}


/* アクセスセクション */
.access-content {
    text-align: center;
}
.access-address {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}
.map-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 40%; /* マップのアスペクト比 (高さ / 幅) */
    overflow: hidden;
    border: 3px solid var(--accent-yellow);
    filter: drop-shadow(5px 5px 0px rgba(0,0,0,0.5));
}
.map-container iframe,
.map-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .page-hero-section .page-title {
        font-size: 2.5rem;
    }
    .profile-item {
        flex-direction: column; /* 縦並びに変更 */
    }
    .profile-item dt,
    .profile-item dd {
        width: 100%;
        border-right: none;
    }
    .profile-item dt {
        border-bottom: 2px solid #444;
    }
    .map-container {
        padding-bottom: 75%; /* スマホでは高さを多めに */
    }
}

/* ===== PRIVACY POLICY PAGE =====
-------------------------------------------------- */

.page-privacy-policy {
    background-color: var(--main-black);
}

.privacy-content {
    padding: 80px 0;
}

/* 本文全体のコンテナ */
.privacy-content .container {
    max-width: 800px; /* 読みやすいように幅を制限 */
    background-color: var(--dark-gray);
    padding: 50px;
    border: 2px solid #333;
}

/* 前文 */
.preface {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px dashed #444;
}

/* 各ポリシー項目 */
.policy-article {
    margin-bottom: 40px;
}

.policy-article h2 {
    font-family: var(--font-body); /* 見出しフォントを本文と同じに */
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-yellow); /* 黄色いアクセントカラー */
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-yellow);
    letter-spacing: 1px;
}

.policy-article p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--light-gray);
    margin-bottom: 1em;
}

.policy-article ul {
    list-style: none;
    padding-left: 0;
    color: var(--light-gray);
}

.policy-article ul li {
    padding-left: 1.5em;
    position: relative;
    margin-bottom: 0.8em;
}

.policy-article ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-red); /* 赤いアクセント */
    font-size: 0.8em;
}

.contact-info {
    background-color: #111;
    border-left: 4px solid var(--accent-red);
    padding: 20px;
    margin-top: 20px;
}
.contact-info p {
    margin: 0;
}

@media (max-width: 768px) {
    .privacy-content .container {
        padding: 30px;
    }
    .policy-article h2 {
        font-size: 1.3rem;
    }
}

/* ===== 404 ERROR PAGE =====
-------------------------------------------------- */

.error-404-page {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - 150px); /* ヘッダーとフッターの高さを考慮した画面の高さ */
    padding: 80px 0;
}

/* 404の数字 */
.error-404-title {
    font-family: var(--font-heading);
    /* 画面幅に応じて滑らかにサイズが変わるように設定 */
    font-size: clamp(8rem, 30vw, 20rem);
    color: var(--accent-yellow);
    line-height: 1;
    margin: 0;
    -webkit-text-stroke: 3px var(--main-black);
    text-shadow: 10px 10px 0px rgba(0,0,0,0.5);
    animation: flicker 3s infinite alternate; /* 点滅するようなアニメーション */
}

/* PAGE NOT FOUND のメッセージ */
.error-message {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: var(--text-white);
    letter-spacing: 3px;
    margin: -10px 0 20px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.7);
}

/* 説明文 */
.error-description {
    color: var(--light-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* トップページへ戻るボタン */
.return-home-button {
    display: inline-block;
    background-color: var(--accent-red);
    color: var(--text-white);
    border: 2px solid var(--accent-red);
    padding: 15px 35px;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(5px 5px 0px rgba(0,0,0,0.5));
}
.return-home-button:hover {
    background-color: var(--text-white);
    color: var(--accent-red);
    border-color: var(--text-white);
    filter: drop-shadow(8px 8px 0px rgba(0,0,0,0.7));
    transform: translateY(-3px);
}

/* 404タイトルの点滅アニメーション */
@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    text-shadow:
      0 0 4px #fff,
      0 0 11px #fff,
      0 0 19px #fff,
      0 0 40px var(--accent-yellow),
      0 0 80px var(--accent-yellow),
      0 0 90px var(--accent-yellow),
      0 0 100px var(--accent-yellow),
      0 0 150px var(--accent-yellow);
  }
  20%, 24%, 55% {        
    text-shadow: none;
  }
}

/* ===== WORKS (ARCHIVE & SINGLE) =====
-------------------------------------------------- */

/* == アーカイブページ (archive-works.php) == */
.works-list-section .container {
    padding: 80px 0;
}

.works-archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 2px solid #444; /* リスト全体の上の線 */
}

.works-archive-item {
    border-bottom: 2px solid #444; /* 各項目の下の区切り線 */
}

.works-archive-item a {
    display: flex;
    align-items: center;
    padding: 25px 20px;
    gap: 30px; /* 日付とタイトルの間の余白 */
    transition: background-color 0.3s ease;
}
.works-archive-item a:hover {
    background-color: var(--dark-gray);
}

.works-item-date {
    font-size: 1rem;
    color: var(--accent-yellow);
    font-weight: bold;
    flex-shrink: 0; /* 日付が縮まないように */
    width: 120px; /* 日付の幅を固定して縦を揃える */
}

.works-item-title {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-white);
    margin: 0;
    transition: color 0.3s ease;
}
.works-archive-item a:hover .works-item-title {
    color: var(--accent-yellow); /* ホバー時にタイトル色を変更 */
}

.no-posts-message {
    text-align: center;
    padding: 50px 0;
    font-size: 1.1rem;
    color: var(--light-gray);
}

/* ページネーション */
.pagination {
    padding: 40px 0 0;
    text-align: center;
}
.pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 2px solid #444;
    color: var(--light-gray);
    transition: all 0.3s ease;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--text-white);
}
.pagination .page-numbers.dots {
    border: none;
    background: none;
}


/* == シングルページ (single-works.php) == */
.single-works-post {
    background-color: var(--main-black);
    padding: 80px 0;
}

/* 投稿ヘッダー */
.works-post-header {
    text-align: center;
    padding-bottom: 40px;
    border-bottom: 2px dashed #444;
}
.works-post-header .entry-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--text-white);
    margin-bottom: 15px;
}
.works-post-header .entry-meta {
    color: var(--accent-yellow);
    font-size: 1.1rem;
}

/* アイキャッチ画像 */
.works-post-thumbnail {
    margin: 50px 0;
}
.works-post-thumbnail img {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    height: auto;
}

/* 投稿本文 */
.works-post-content .container {
    max-width: 800px; /* 本文の幅を読みやすく調整 */
}
.post-content-body {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--light-gray);
}
.post-content-body p,
.post-content-body ul,
.post-content-body ol,
.post-content-body blockquote {
    margin-bottom: 1.5em;
}
.post-content-body h2,
.post-content-body h3,
.post-content-body h4 {
    font-family: var(--font-body);
    font-weight: bold;
    color: var(--text-white);
    margin: 2em 0 1em;
}
.post-content-body h2 { font-size: 1.8rem; }
.post-content-body h3 { font-size: 1.5rem; }
.post-content-body a {
    color: var(--accent-yellow);
    text-decoration: underline;
}

/* 前後の記事へのナビゲーション */
.works-post-navigation {
    padding-top: 50px;
    margin-top: 50px;
    border-top: 2px dashed #444;
}
.works-post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}
.works-post-navigation .nav-previous a,
.works-post-navigation .nav-next a {
    display: block;
    padding: 15px;
    border: 2px solid #444;
    max-width: 350px;
    color: var(--light-gray);
    transition: all 0.3s ease;
}
.works-post-navigation .nav-previous a:hover,
.works-post-navigation .nav-next a:hover {
    border-color: var(--accent-red);
    color: var(--text-white);
}
.works-post-navigation .nav-next { text-align: right; }
.works-post-navigation .nav-title {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
}
.works-post-navigation .nav-post-title {
    font-weight: bold;
}

/* ===== LOADING SCREEN STYLES (修正版) ===== */
#loading-screen {
    position: fixed; /* 画面全体を覆う */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; /* 全ての要素の最前面に */
    background-color: var(--main-black); /* テーマに合わせた背景色 */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

/* JavaScriptでこのクラスを付与して非表示にする */
#loading-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
    /* 非表示になったらクリックなどを貫通させる */
    pointer-events: none; 
}

/* ローディング中のロゴのスタイルとアニメーション */
#loading-screen img {
    /* ★★★ ここからが変更点 ★★★ */
    width: 100%; /* 横幅は親要素に合わせる */
    max-width: 150px; /* ただし最大幅は150px */
    height: auto; /* 高さは自動調整 */
    max-height: 80vh; /* 画面の高さの80%を最大に */
    padding: 20px; /* 画面端との余白 */
    box-sizing: border-box; /* paddingを含めてサイズ計算 */
    /* ★★★ ここまでが変更点 ★★★ */

    animation: pulsate 2s infinite ease-in-out;
    filter: drop-shadow(0 0 15px var(--accent-yellow));
}

/* 点滅アニメーションの定義 */
@keyframes pulsate {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}