/*
Theme Name: CREW Original
Author: Takahashi
Version: 7.2 (Cleaned & Integrated)
*/

/* =======================================================
   1. 基本変数・リセット
   ======================================================= */
:root { --main-orange: #f38120; --sub-grey: #333; --light-bg: #fdf2e9; --white: #ffffff; }
* { box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif; color: var(--sub-grey); line-height: 1.8; background: #fff; }
body:not(.home) { padding-top: 80px; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.page-header { display: none !important; }

/* =======================================================
   2. ヘッダー ＆ ハンバーガーメニュー
   ======================================================= */
#masthead { position: fixed; top: 0; left: 0; width: 100%; height: 80px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); z-index: 1000; display: flex; align-items: center; }
.header-container { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; position: relative; }
.site-branding img { height: 50px; width: auto; display: block; }
.main-navigation ul { display: flex; list-style: none; gap: 25px; margin: 0; padding: 0; }
.main-navigation a { text-decoration: none; color: var(--sub-grey); font-weight: bold; font-size: 15px; transition: 0.3s; }
.main-navigation a:hover { color: var(--main-orange); }

.nav-open { display: none; position: relative; width: 30px; height: 24px; cursor: pointer; }
.nav-open span, .nav-open span::before, .nav-open span::after { content: ''; display: block; width: 100%; height: 3px; background: var(--sub-grey); border-radius: 3px; position: absolute; transition: 0.3s; }
.nav-open span { top: 10px; }
.nav-open span::before { top: -10px; }
.nav-open span::after { top: 10px; }

@media screen and (max-width: 782px) {
    .nav-open { display: block; z-index: 1100; }
    .main-navigation { position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background: #fff; box-shadow: -5px 0 15px rgba(0,0,0,0.1); transition: 0.4s; z-index: 1050; padding-top: 100px; }
    .main-navigation ul { flex-direction: column; align-items: center; gap: 30px; }
    #nav-input:checked ~ .main-navigation { right: 0; }
    #nav-input:checked ~ .nav-open span { background: transparent; }
    #nav-input:checked ~ .nav-open span::before { transform: rotate(45deg); top: 0; }
    #nav-input:checked ~ .nav-open span::after { transform: rotate(-45deg); top: 0; }
}

/* =======================================================
   3. サブページ共通コンポーネント (About, Recruit, Contact, News)
   ======================================================= */
.crew-hero-box { text-align: center; background: var(--light-bg); padding: 40px 20px; border-radius: 15px; margin-bottom: 50px; border: 1px solid #fce4d2; }
.crew-hero-title { font-size: 26px; font-weight: bold; margin: 0; color: #333; line-height: 1.6; }
.crew-orange-focus { color: var(--main-orange); font-size: 32px; display: block; margin-top: 15px; }

.crew-section-title { 
    text-align: center; font-size: 30px; font-weight: bold; 
    margin-bottom: 50px; position: relative; line-height: 1.2; 
    padding-bottom: 20px;
}
.crew-section-title span { display: block; font-size: 14px; color: #888; font-weight: normal; margin-top: 5px; letter-spacing: 0.1em; }
.crew-section-title::after { 
    content: ''; position: absolute; bottom: 0; left: 50%; 
    transform: translateX(-50%); width: 50px; height: 3px; background: var(--main-orange); 
}
.crew-title-line { display: none; }

.crew-section { margin-bottom: 80px; }
.crew-btn { display: inline-block; padding: 15px 40px; background: var(--main-orange); color: #fff !important; text-decoration: none !important; font-weight: bold; border-radius: 50px; transition: 0.3s; box-shadow: 0 5px 15px rgba(243, 129, 32, 0.2); border: 2px solid var(--main-orange); }
.crew-btn:hover { transform: translateY(-3px); }

/* =======================================================
   4. 組織図・カード・タイムライン
   ======================================================= */
.crew-org-flex { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; align-items: flex-start; }
.crew-org-col { flex: 1; min-width: 320px; }
.crew-org-header { padding: 12px; text-align: center; font-weight: bold; border-radius: 6px; margin-bottom: 20px; color: #fff; }
.bg-dark { background: #555; }
.bg-orange { background: var(--main-orange); }

.crew-card, .crew-card-grey {
    background: #fff;
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.crew-card      { border-left: 6px solid var(--main-orange); }
.crew-card-grey { border-left: 6px solid #555; }
.crew-card h4, .crew-card-grey h4 { margin: 0 0 10px 0; font-size: 16px; }
.crew-card h4      { color: var(--main-orange); }
.crew-card-grey h4 { color: #555; }
.crew-card p, .crew-card-grey p { margin: 0; font-size: 13px; color: #666; }
.crew-card ul, .crew-card-grey ul { margin: 0; padding-left: 20px; font-size: 14px; color: #555; list-style: disc; }

.crew-grid-2x2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; max-width: 850px; margin: 0 auto; }
.crew-grid-item { background: #fff; padding: 20px; border-radius: 8px; font-weight: bold; border: 1px solid #eee; box-shadow: 0 2px 10px rgba(0,0,0,0.03); display: flex; align-items: center; justify-content: center; height: 70px; text-align: center; }

.crew-history-box { background: #f9f9f9; padding: 40px; border-radius: 12px; border-top: 4px solid var(--main-orange); }
.timeline-wrapper { border-left: 3px solid var(--main-orange); padding-left: 30px; margin-left: 15px; }
.timeline-row { position: relative; margin-bottom: 35px; }
.timeline-row::before { content: ''; position: absolute; left: -38px; top: 4px; width: 16px; height: 16px; background: #fff; border: 3px solid var(--main-orange); border-radius: 50%; box-sizing: border-box; z-index: 2; }
.timeline-time { font-weight: bold; color: var(--main-orange); font-size: 17px; margin-bottom: 5px; display: block; }
.timeline-desc { font-size: 15px; color: #333; margin: 0; }
.timeline-note { font-size: 13px; color: #777; display: block; margin-top: 8px; background: #eee; padding: 8px 12px; border-radius: 4px; line-height: 1.4; }

/* =======================================================
   5. お知らせ・Contact 関連
   ======================================================= */
.crew-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 40px; }
.crew-contact-card { background: #fff; padding: 35px 30px; border-radius: 12px; border: none; box-shadow: 0 8px 20px rgba(0,0,0,0.04); text-align: left; }
.crew-mail-box { background: #fafafa; padding: 10px; border-radius: 5px; border: 1px dashed #ccc; margin: 15px 0; }
.crew-mail-code { font-size: 17px; color: var(--main-orange); font-family: Consolas, Monaco, monospace; font-weight: bold; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.news-card { background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: 0.3s; border: 1px solid #eee; height: 100%; text-align: left;}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); border-color: var(--main-orange); }
.news-date { font-size: 0.85rem; color: #999; margin-bottom: 10px; display: block; }
.pagination { display: flex; justify-content: center; margin-top: 60px; }
.pagination .nav-links { display: flex; gap: 10px; align-items: center; }
.pagination a, .pagination span { display: inline-block; padding: 10px 18px; background: #fff; border: 1px solid #eee; border-radius: 6px; text-decoration: none; color: #333; font-weight: bold; transition: 0.3s; }
.pagination a:hover { background: var(--light-bg); color: var(--main-orange); border-color: var(--main-orange); }
.pagination .current { background: var(--main-orange); color: #fff; border-color: var(--main-orange); }

.single-article { background: #fff; padding: 50px 40px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #eee; margin-bottom: 40px; }
.single-title { font-size: 28px; font-weight: bold; margin: 0 0 15px 0; color: #333; line-height: 1.4; }
.single-meta { font-size: 14px; color: #888; border-bottom: 2px solid var(--light-bg); padding-bottom: 20px; margin-bottom: 30px; }
.single-content { line-height: 1.8; color: #444; font-size: 16px; }

/* =======================================================
   6. トップページ (front-page.php) 専用 ＆ インラインCSS移行
   ======================================================= */
.hero-section { height: 100vh; padding-top: 80px; background-color: #333; background-size: cover; background-position: center; background-blend-mode: overlay; display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; }
.hero-content h1 { font-size: clamp(24px, 3.5vw, 40px); font-weight: bold; letter-spacing: 0.1em; margin: 0 0 10px 0; }
.hero-content p { font-size: 1.2rem; letter-spacing: 0.15em; margin: 0; }

/* MVVセクション用 */
.home-about-text { max-width: 800px; margin: 0 auto 50px; text-align: center; line-height: 1.8; font-size: 15px; }
.mvv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.mvv-card { background: #fff; padding: 40px 30px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.06); border: 1px solid #f9f9f9; position: relative; overflow: hidden; transition: 0.3s; text-align: left; }
.mvv-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(243,129,32,0.15); }
.mvv-bar { position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--main-orange); }
.mvv-card h3 { color: var(--main-orange); font-size: 26px; font-weight: 900; margin-top: 0; margin-bottom: 25px; letter-spacing: 0.05em; }
.mvv-lead { font-size: 16px; font-weight: bold; color: #333; margin-bottom: 15px; line-height: 1.6; }
.mvv-desc { font-size: 13.5px; color: #666; line-height: 1.8; margin: 0; }
.value-item { margin-bottom: 22px; }
.value-item:last-child { margin-bottom: 0; }
.value-title { font-size: 15px; font-weight: bold; color: #333; margin: 0 0 6px 0; }
.value-desc { font-size: 13.5px; color: #666; margin: 0; line-height: 1.6; }
.center-btn-block { text-align: center; margin-top: 50px; }

/* 活動内容用 */
.activities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin: 50px auto 40px; max-width: 850px; }
.activity-badge { display: inline-block; background: var(--main-orange); color: #fff; font-size: 12px; font-weight: bold; padding: 4px 10px; border-radius: 4px; margin-bottom: 15px; }
.activities-grid h3 { margin-top: 0; font-size: 18px; color: #333; margin-bottom: 15px; }
.activities-grid p { font-size: 14px; color: #555; line-height: 1.7; margin: 0; }

/* 縦並びアクションボタン */
.v-actions-container { display: flex; flex-direction: column; align-items: center; gap: 40px; margin-top: 60px; }
.action-block { text-align: center; width: 100%; }
.action-label { font-size: 15px; font-weight: bold; color: #555; margin: 0 0 15px 0; letter-spacing: 0.05em; }
.crew-btn-large { display: inline-block; width: 100%; max-width: 320px; box-sizing: border-box; padding: 16px 0; font-size: 16px; text-align: center; }

/* 白抜きボタン用 */
.crew-btn-outline { display: inline-block; width: 100%; max-width: 320px; box-sizing: border-box; padding: 14px 0; font-size: 16px; text-align: center; background: #fff; color: var(--main-orange); border: 2px solid var(--main-orange); text-decoration: none !important; font-weight: bold; border-radius: 50px; transition: 0.3s; }
.crew-btn-outline:hover { background: var(--light-bg); }

/* メンバー募集 */
.recruit-section-home { background: #333; color: #fff; padding: 90px 0; text-align: center; margin-bottom: 0; }
.recruit-section-home h2 { font-size: 32px; margin-top: 0; margin-bottom: 20px; font-weight: bold; color: #fff; }
.recruit-section-home p { max-width: 600px; margin: 0 auto 40px; opacity: 0.9; font-size: 15px; line-height: 1.8; }
.recruit-btn-size { display: inline-block; width: 100%; max-width: 280px; box-sizing: border-box; padding: 16px 0; font-size: 16px; text-align: center; }

/* お問い合わせ */
.contact-grid-home { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; max-width: 850px; margin: 50px auto 0; }
.contact-card-left { background: #fff; padding: 40px 30px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.04); text-align: left; display: flex; flex-direction: column; }
.contact-card-left h3, .contact-card-right h3 { color: var(--main-orange); margin-top: 0; font-size: 20px; font-weight: bold; margin-bottom: 15px; }
.contact-card-left p { font-size: 14.5px; color: #555; line-height: 1.7; margin: 0 0 25px 0; flex-grow: 1; }
.contact-info-list { padding-top: 20px; border-top: 1px solid #eee; font-size: 14px; color: #444; line-height: 2.0; }

.contact-card-right { background: #fff; padding: 40px 30px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.04); text-align: center; display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
.contact-card-right p { font-size: 14.5px; color: #555; line-height: 1.7; margin: 0 0 25px 0; }
.form-btn-wrap { width: 100%; text-align: center; margin-top: 10px; }
.form-btn-size { display: inline-block; width: 100%; max-width: 280px; box-sizing: border-box; padding: 16px 0; font-size: 16px; text-align: center; }

@media screen and (max-width: 768px) {
    .crew-grid-2x2 { grid-template-columns: 1fr; }
}

/* About ページ専用の補助スタイル */
.crew-about-wrapper { max-width: 1100px; margin: 40px auto; padding: 0 20px; }
.crew-hero-subtitle { display: block; font-size: 14px; color: #888; font-weight: normal; margin-top: 5px; letter-spacing: 0.1em; }
.crew-signature { text-align: right; font-size: 20px; font-weight: bold; margin-top: 30px; padding-top: 15px; border-top: 1px solid #eee; color: #333; }

/* =======================================================
   7. 下層ページ共通レイアウト＆SNSボタン設定（最終版）
   ======================================================= */
/* 全ページの間延び一括解消 */
.crew-about-wrapper,
.crew-works-wrapper,
.crew-recruit-wrapper,
.crew-contact-wrapper { 
    max-width: 960px !important; 
    margin: 40px auto !important; 
    padding: 0 20px !important; 
    width: 100% !important;
}

.crew-signature { text-align: right; font-size: 20px; font-weight: bold; margin-top: 30px; padding-top: 15px; border-top: 1px solid #eee; color: #333; }

/* SNSボタンの共通デザイン（WordPressのバグ回避用） */
.sns-btn {
    display: flex; align-items: center; 
    justify-content: flex-start; /* 中身を左寄りに強制 */
    padding: 15px 20px; color: #fff !important; 
    text-decoration: none !important; border-radius: 8px; transition: 0.3s; 
    min-height: 74px; 
    height: 100%; /* グリッド内で3つの箱の高さを完璧に揃える */
    box-sizing: border-box;
}
.sns-btn.bg-x { background: #000; }
.sns-btn.bg-insta { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.sns-btn.bg-youtube { background: #f5f5f5; border: 1px solid #eee; position: relative; overflow: hidden; }
.sns-icon { font-size: 22px; margin-right: 15px; font-weight: bold; }
.sns-text-wrap { 
    display: flex; flex-direction: column; 
    text-align: left !important; /* テキストの左寄せを強制 */
    justify-content: center;
}
.sns-title { font-size: 14px; font-weight: bold; line-height: 1.2; }
.sns-sub { font-size: 11px; opacity: 0.8; margin-top: 4px; line-height: 1.2; }
.sns-btn.bg-youtube .sns-title, .sns-btn.bg-youtube .sns-sub { color: #bbb; }
.prep-ribbon { position: absolute; top: 8px; right: -28px; background: #ff0000; color: #fff; font-size: 9px; padding: 2px 30px; transform: rotate(45deg); font-weight: bold; letter-spacing: 0.05em; box-shadow: 0 2px 5px rgba(0,0,0,0.1); line-height: 1; }