/*
Theme Name: PMP Company Theme
Theme URI: https://pmp-company.jp
Author: PMP Development Team
Author URI: https://pmp-company.jp
Description: PMP株式会社の軽貨物運送事業のためのカスタムWordPressテーマ
Version: 1.0
License: GPL v2 or later
Text Domain: pmp-theme
*/

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
}

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

/* カラー定義 */
:root {
    --primary: #1C3E70;    /* ネイビーブルー */
    --accent: #D4A437;     /* ゴールド */
    --white: #FFFFFF;      /* 白 */
    --light-blue: #F5F8FC; /* 薄いブルー */
    --text-dark: #333333;  /* 文字色 */
}

/* ヘッダー */
header {
    background-color: var(--white);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* ヘッダーのスクロール時スタイル */
header.header-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

header.header-hidden {
    transform: translateY(-100%);
}

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

.logo img {
    height: 70px;
    width: auto;
    max-height: calc(100vh - 20px);
}

/* カスタムロゴのスタイル調整 */
.custom-logo-link {
    display: inline-block;
}

.custom-logo {
    height: 70px;
    width: auto;
}

/* ナビゲーション */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent);
}

/* ハンバーガーメニュー（モバイル用） */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px;
    transition: all 0.3s ease;
}

/* メインビジュアル */
.hero {
    position: relative;
    color: var(--white);
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 アスペクト比 (9/16 * 100 = 56.25%) */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* YouTube動画専用スタイル */
.hero-video.youtube-video {
    border: none;
    outline: none;
    pointer-events: none; /* マウスイベントを無効化 */
    /* 動画を大きくして字幕やUI要素を見切れさせる */
    width: 110% !important;
    height: 110% !important;
    left: -5% !important;
    top: -5% !important;
}

/* YouTube内の要素を強制非表示 */
.hero-video.youtube-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

/* YouTube動画のマスク効果で下部要素を隠す */
.hero-video.youtube-video::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 15%; /* 下部15%をマスク */
    background: linear-gradient(transparent, rgba(28, 62, 112, 0.8));
    pointer-events: none;
    z-index: 1;
}

/* YouTube埋め込みの余白を除去 */
.hero .youtube-video {
    margin: 0 !important;
    padding: 0 !important;
}

/* YouTubeプレーヤーの追加のUI非表示対策 */
.hero {
    overflow: hidden !important;
}

.hero .youtube-video {
    transform: scale(1.08) translateY(-3%); /* 拡大率を上げて上方向にずらす */
    transform-origin: center center;
    top: -2%; /* さらに上方向に移動 */
    height: 104%; /* 高さを少し増加 */
    /* 追加の見切れ対策 */
    object-position: center top; /* 動画の表示位置を上部に調整 */
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    max-width: 50%;
    z-index: 1;
}

.hero h2 {
    font-size: 64px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 900;
    font-style: italic;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.8), 1px 1px 4px rgba(0,0,0,0.9); /* 影を強化 */
    letter-spacing: 2px;
}

.hero p {
    font-size: 28px;
    margin-bottom: 0;
    font-weight: 600;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8), 1px 1px 3px rgba(0,0,0,0.9); /* 影を強化 */
    letter-spacing: 1px;
}

/* ドライバーの一日 */
.driver-day {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 50px;
    position: relative;
}

.section-title:after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    z-index: 1;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--accent);
    border: 4px solid var(--primary);
    border-radius: 50%;
    top: 20px;
    right: -12px;
    z-index: 2;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    padding: 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.timeline-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.timeline-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.timeline-image:hover img {
    transform: scale(1.05);
}

.timeline-text {
    flex: 1;
}

.timeline-time {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, #2a5ba7 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 15px;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 6px rgba(28, 62, 112, 0.2);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-time::before {
    content: "⏱";
    display: inline-block;
    margin-right: 6px;
    font-size: 14px;
}

.timeline-content h3 {
    margin-top: 5px;
    font-size: 20px;
    color: var(--primary);
}

/* 募集要項 */
.job-info {
    padding: 80px 5%;
    background-color: var(--light-blue);
}

.job-details {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

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

.detail-box {
    text-align: center;
    padding: 20px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 8px;
}

.detail-box h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.detail-box p {
    font-size: 15px;
}

.detail-icon {
    max-width: 50px;
    margin: 0 auto 15px;
}

.requirements {
    margin-top: 40px;
}

.requirements h3 {
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.requirements ul {
    padding-left: 20px;
}

.requirements ul li {
    margin-bottom: 10px;
}

/* 会社の魅力 */
.company-appeal {
    padding: 80px 5%;
}

.holiday-video-container {
    margin: 0 auto 50px;
    max-width: 1000px;
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 アスペクト比 */
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
}

.placeholder-video, .holiday-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 休日の様子YouTube動画専用スタイル */
.holiday-video.youtube-video {
    border: none;
    outline: none;
    pointer-events: all; /* 休日動画はクリック可能にする */
}

.video-caption {
    text-align: center;
}

.video-caption h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 22px;
}

.video-caption p {
    font-size: 16px;
    color: var(--text-dark);
}

/* 女性ドライバーセクション */
.female-drivers-section {
    text-align: center;
    margin: 40px 0;
}

.female-drivers-title {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 30px;
}

.female-drivers-photos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.driver-photo {
    max-width: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.driver-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.appeal-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.appeal-box {
    width: calc(33.33% - 20px);
    min-width: 280px;
    background-color: var(--light-blue);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.appeal-box h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 20px;
}

.appeal-icon {
    margin-bottom: 20px;
}

.appeal-icon img {
    width: 60px;
    height: 60px;
}

/* お問い合わせ */
.contact {
    padding: 80px 5%;
    background-color: var(--light-blue);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-info {
    margin-bottom: 40px;
    text-align: center;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-method {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 5px;
    text-decoration: none;
}

.contact-method img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    filter: brightness(0) invert(1);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    min-height: 150px;
}

.submit-button {
    background-color: var(--accent);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #b28a2d;
}

/* Contact Form 7 スタイル調整 */
.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-textarea,
.wpcf7-form .wpcf7-email {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.wpcf7-form .wpcf7-submit {
    background-color: var(--accent);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcf7-form .wpcf7-submit:hover {
    background-color: #b28a2d;
}

/* アクセスマップ用スタイル */
.access-map-wrapper {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 0 5%;
}

.access-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.map-wrapper {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* アスペクト比 16:9 - より見やすい比率 */
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #eee;
}

.map-placeholder,
.google-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Googleマップのタッチ操作改善 */
.google-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    pointer-events: auto;
}

.access-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.access-details {
    flex: 1;
    min-width: 300px;
}

.access-details h3 {
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
}

.access-details p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 会社紹介セクションのスタイル */
.company-intro {
    padding: 100px 5%;
    position: relative;
    background-color: var(--white);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.company-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 0;
}

.intro-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

.intro-block {
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(0);
    transition: all 0.3s ease;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    word-wrap: break-word; /* 長い単語の改行を許可 */
    overflow-wrap: break-word; /* テキストのオーバーフロー対策 */
}

.intro-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.intro-mission {
    grid-column: span 12;
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 40px;
    background-size: cover;
    background-position: center;
    word-wrap: break-word; /* 長い単語の改行を許可 */
    overflow-wrap: break-word; /* テキストのオーバーフロー対策 */
}

.intro-mission h2 {
    font-size: 32px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.intro-mission h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent);
}

.intro-features {
    grid-column: span 8;
    background: var(--light-blue);
    position: relative;
    background-size: cover;
    background-position: center;
}

.intro-text-block {
    padding: 25px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.intro-text-block:hover {
    background: rgba(255,255,255,1);
    transform: translateX(10px);
}

.intro-text-block h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 20px;
    border-left: 4px solid var(--accent);
    padding-left: 10px;
}

.intro-welcome {
    grid-column: span 4;
    background: var(--accent);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.intro-welcome h3 {
    font-size: 24px;
    margin-bottom: 15px;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

@media screen and (max-width: 768px) {
    .intro-container {
        grid-template-columns: 1fr;
        gap: 20px; /* ギャップを小さく */
    }

    .intro-features, .intro-welcome {
        grid-column: span 12;
    }
    
    .company-intro {
        padding: 60px 3%; /* パディングを調整 */
    }
    
    .intro-block {
        padding: 20px; /* ブロック内のパディングを小さく */
    }
    
    .intro-mission {
        padding: 30px 20px; /* ミッションブロックのパディングを調整 */
    }
    
    .intro-mission h2 {
        font-size: 24px; /* フォントサイズを小さく */
        margin-bottom: 15px;
    }
    
    .intro-text-block h4 {
        font-size: 18px; /* 見出しサイズを調整 */
    }
    
    .intro-welcome h3 {
        font-size: 20px; /* ウェルカムメッセージのフォントサイズを調整 */
    }
}

/* セクションタイトルのレスポンシブ対応 */
@media screen and (max-width: 768px) {
    .section-title {
        font-size: 24px; /* タブレットでタイトルサイズを調整 */
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 480px) {
    .section-title {
        font-size: 20px; /* スマホでさらに小さく */
        margin-bottom: 30px;
        padding: 0 10px; /* 左右に余白を追加 */
    }
    
    .section-title:after {
        width: 40px; /* アンダーラインを短く */
        height: 2px; /* 少し細く */
    }
}

/* レスポンシブデザイン */
@media screen and (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-content {
        max-width: 60%;
    }
    
    .hero h2 {
        font-size: 48px;
    }
    
    .hero p {
        font-size: 24px;
    }
}

@media screen and (max-width: 768px) {
    .hero-content {
        max-width: 90%;
        left: 5%;
    }
    
    .hero h2 {
        font-size: 32px;
        line-height: 1.3;
        letter-spacing: 1px;
    }
    
    .hero p {
        font-size: 18px;
        letter-spacing: 0.5px;
    }
    
    nav {
        position: absolute;
        right: 0;
        top: 70px;
        background-color: var(--white);
        width: 100%;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        clip-path: circle(0px at 100% 0%);
        transition: all 0.3s ease-out;
    }
    
    nav.active {
        clip-path: circle(1000px at 90% -10%);
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active .line2 {
        opacity: 0;
    }
    
    .hamburger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 10px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after {
        left: 10px;
        top: 20px;
    }
    
    .timeline-item:nth-child(even)::after {
        left: 10px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-time {
        font-size: 14px;
        padding: 5px 10px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .appeal-box {
        width: 100%;
    }
    
    .access-container {
        padding: 20px;
    }
    
    .map-wrapper {
        padding-bottom: 70%; /* スマホでは縦長に調整 */
    }
}

@media screen and (max-width: 576px) {
    .logo h1 {
        font-size: 22px;
    }
    
    .hero-content {
        max-width: 95%;
        left: 2.5%;
    }
    
    .hero h2 {
        font-size: 24px;
        line-height: 1.4;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .contact-container {
        padding: 20px;
    }
}

/* レスポンシブ対応でのYouTube動画見切れ対策 */
@media (max-width: 768px) {
    .hero .youtube-video {
        transform: scale(1.15) translateY(-5%); /* モバイルでより大きく上にずらす */
        width: 115% !important;
        height: 115% !important;
        left: -7.5% !important;
        top: -7.5% !important;
    }
}

@media (max-width: 480px) {
    .hero .youtube-video {
        transform: scale(1.2) translateY(-6%); /* スマートフォンでさらに大きく */
        width: 120% !important;
        height: 120% !important;
        left: -10% !important;
        top: -10% !important;
    }
}

/* 会社紹介セクションのスマホ対応強化 */
@media screen and (max-width: 480px) {
    .company-intro {
        padding: 40px 2%; /* さらに小さなパディング */
    }
    
    .intro-container {
        gap: 15px; /* ギャップをさらに小さく */
    }
    
    .intro-block {
        padding: 15px; /* ブロック内のパディングをさらに小さく */
        margin: 0; /* マージンをリセット */
    }
    
    .intro-mission {
        padding: 20px 15px; /* ミッションブロックのパディングをさらに調整 */
    }
    
    .intro-mission h2 {
        font-size: 20px; /* フォントサイズをさらに小さく */
        margin-bottom: 10px;
        line-height: 1.3; /* 行間を調整 */
    }
    
    .intro-mission p {
        font-size: 14px; /* テキストサイズを調整 */
        line-height: 1.5;
    }
    
    .intro-text-block {
        padding: 15px; /* テキストブロックのパディングを小さく */
        margin-bottom: 15px;
    }
    
    .intro-text-block h4 {
        font-size: 16px; /* 見出しサイズをさらに調整 */
        margin-bottom: 8px;
    }
    
    .intro-text-block p {
        font-size: 13px; /* テキストサイズを調整 */
        line-height: 1.4;
    }
    
    .intro-welcome {
        padding: 20px 15px; /* ウェルカムブロックのパディングを調整 */
    }
    
    .intro-welcome h3 {
        font-size: 18px; /* ウェルカムメッセージのフォントサイズをさらに調整 */
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .intro-welcome p {
        font-size: 13px; /* ウェルカムメッセージのテキストサイズを調整 */
        line-height: 1.4;
    }
}

/* フッター */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 5% 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(28, 62, 112, 0.97) 0%, rgba(28, 62, 112, 0.9) 100%);
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

.footer-info {
    grid-column: span 4;
}

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

.footer-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.footer-logo .custom-logo {
    height: 50px;
    filter: brightness(0) invert(1);
}

.footer-address {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-address h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--accent);
}

.footer-contact {
    grid-column: span 4;
}

.footer-contact h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--accent);
}

.contact-methods-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-method-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.contact-method-footer:hover {
    transform: translateX(10px);
}

.contact-method-footer img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.social-links {
    grid-column: span 4;
}

.social-links h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--accent);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.social-icon img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.footer-links {
    grid-column: span 12;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.copyright {
    grid-column: span 12;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

@media screen and (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-info, .footer-contact, .social-links {
        grid-column: span 12;
        text-align: left; /* 左揃えに変更 */
    }

    .contact-methods-footer {
        align-items: flex-start; /* 左揃えに変更 */
    }

    .social-icons {
        justify-content: flex-start; /* 左揃えに変更 */
    }
}

/* 募集要項セクションのアクションボタンスタイル */
.action-button-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* 縦方向に配置 */
    padding: 20px 60px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(212, 164, 55, 0.3);
    position: relative;
    overflow: hidden;
    line-height: 1.3; /* 行の高さを調整 */
}

.action-button::after {
    content: '→';
    margin-top: 5px; /* 上に余白を追加 */
    transform: translateX(0);
    transition: transform 0.3s ease;
    font-size: 18px; /* 矢印のサイズを調整 */
}

.action-button:hover {
    background: #e4b84c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 164, 55, 0.4);
}

.action-button:hover::after {
    transform: translateX(5px);
}

/* アクションボタンのレスポンシブ対応 */
@media (max-width: 768px) {
    .action-button {
        font-size: 18px; /* タブレットで少し小さく */
        padding: 18px 50px;
    }
    
    .action-button::after {
        font-size: 16px; /* 矢印も小さく */
    }
}

@media (max-width: 480px) {
    .action-button {
        font-size: 16px; /* スマホでさらに小さく */
        padding: 16px 40px;
        line-height: 1.2;
    }
    
    .action-button::after {
        font-size: 14px; /* 矢印もさらに小さく */
        margin-top: 3px;
    }
}

@media (max-width: 360px) {
    .action-button {
        font-size: 14px; /* 小型スマホで最小サイズ */
        padding: 14px 30px;
        border-radius: 80px; /* 角の丸みも調整 */
    }
    
    .action-button::after {
        font-size: 12px; /* 矢印も最小サイズ */
        margin-top: 2px;
    }
}

/* シンプルなスクロールアニメーション用スタイル */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* タッチデバイス用スタイル */
.touch-device .timeline-image:hover img,
.touch-device .appeal-box:hover,
.touch-device .intro-block:hover {
    transform: none;
}

.touch-active {
    transform: scale(0.98);
}

/* ローディング完了時のアニメーション */
body.loaded {
    overflow-x: hidden;
}

/* タイムラインアイテムのアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* WordPress管理バー対応 */
.admin-bar header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar header {
        top: 46px;
    }
}

/* アクセスマップのレスポンシブ改善 */
@media screen and (max-width: 768px) {
    .access-info {
        flex-direction: column; /* 縦並びに変更 */
        gap: 20px;
    }
    
    .access-details {
        min-width: auto; /* 最小幅制限を解除 */
        width: 100%;
    }
    
    .access-details h3 {
        font-size: 18px; /* フォントサイズを調整 */
    }
    
    .access-details p {
        font-size: 14px; /* テキストサイズを調整 */
    }
    
    .map-wrapper {
        padding-bottom: 75%; /* タブレットサイズで高さを調整 */
    }
}

@media screen and (max-width: 480px) {
    .access-map-wrapper {
        padding: 0 3%; /* パディングを小さく */
        margin: 60px auto 0; /* マージンを調整 */
    }
    
    .access-container {
        padding: 15px; /* パディングをさらに小さく */
    }
    
    .map-wrapper {
        padding-bottom: 100%; /* スマホで正方形に近い比率で大きく表示 */
        margin-bottom: 20px;
    }
    
    .access-details h3 {
        font-size: 16px; /* さらに小さなフォント */
        margin-bottom: 10px;
    }
    
    .access-details p {
        font-size: 13px; /* さらに小さなテキスト */
        margin-bottom: 8px;
    }
}