/*
Theme Name: Plus Startup
Theme URI: https://protagonist-inc.jp/
Author: Protagonist Inc.
Description: A custom theme for the "Plus Startup" executive recruitment landing page.
Version: 2.3.2
*/

/* --- 基本設定 --- */
:root {
    --color-background: #0E0E0F;
    --color-surface: #141416;
    --color-text: #E0E0E0;
    --color-text-muted: #888888;
    --color-gold: #C0A045;
    --color-gold-dark: #A68A3A;
    --color-border: rgba(255, 255, 255, 0.1);
    --font-primary: 'Noto Sans JP', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-primary);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--color-gold-dark);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}


/* --- ヘッダー --- */
.site-header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(14, 14, 15, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.header-scrolled {
    background-color: var(--color-background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 20px;
}
.site-branding .site-title {
    font-family: var(--font-secondary);
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}
.site-branding .site-title a {
    color: #fff;
}
.site-branding .site-title span {
    color: var(--color-gold);
    font-weight: 600;
}

.company-note-header {
    font-size: 11px;
    color: rgba(224, 224, 224, 0.6);
    line-height: 1.5;
    padding-top: 4px;
    max-width: 320px;
    flex-shrink: 1;
}


/* --- ヘッダーナビゲーション --- */
.main-navigation {
    display: none;
}
@media (min-width: 992px) {
    .main-navigation {
        display: flex;
        align-items: center;
        gap: 28px;
    }
}

.nav-link {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: var(--color-gold);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

.nav-link.cta {
    background-color: var(--color-gold);
    color: var(--color-background);
    padding: 8px 18px;
    border-radius: 5px;
    border: 2px solid var(--color-gold);
    transition: all 0.3s ease;
}
.nav-link.cta:hover {
    background-color: var(--color-gold-dark);
    border-color: var(--color-gold-dark);
    color: #000;
}
.nav-link.cta::after {
    display: none;
}

/* --- モバイルメニューボタン --- */
.mobile-menu-button {
    z-index: 101;
}
@media (min-width: 992px) {
    .mobile-menu-button {
        display: none;
    }
}
.mobile-menu-button button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.mobile-menu-button button span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-menu-button button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-button button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-button button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- モバイルナビゲーションパネル --- */
.mobile-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-background);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}
.mobile-navigation.is-open {
    transform: translateY(0);
}
.mobile-nav-link {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
}
.mobile-nav-link.cta {
    margin-top: 20px;
    background-color: var(--color-gold);
    color: var(--color-background);
    padding: 12px 24px;
    border-radius: 5px;
}
body.no-scroll {
    overflow: hidden;
}

/* --- スキップリンク --- */
.skip-link {
    position: absolute;
    top: -100px; left: 0;
    background: var(--color-gold);
    color: var(--color-background);
    padding: 10px;
    z-index: 9999;
    transition: top 0.3s ease;
}
.skip-link:focus {
    top: 0;
}

/* --- メインコンテンツ --- */
#main-content {
    padding-top: 84px;
}

/* --- アンカーリンクのスクロール位置調整 --- */
#why, #process, #positions, #contact {
    scroll-margin-top: 100px; 
}


/* --- ヒーローセクション --- */
.hero {
    position: relative;
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}
.hero-title {
    font-size: clamp(2rem, 5.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.4;
    margin: 0 auto 20px;
    max-width: 900px;
    letter-spacing: 1px;
}
.hero-subtitle {
    font-size: 16px;
    max-width: 650px;
    margin: 0 auto 30px;
    color: var(--color-text-muted);
}
.hero .cta-button {
    font-size: 16px;
    padding: 14px 32px;
}

/* PC/モバイル テキスト切り替え */
.mobile-text {
    display: none;
}


/* --- コンテンツセクション共通 --- */
.content-section {
    padding: 120px 0;
    border-bottom: 1px solid var(--color-border);
}
.section-title {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 5.5vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin: 0 0 20px;
}
.section-title span {
    color: var(--color-gold);
}
.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 60px;
}

/* --- 選ばれる理由セクション --- */
.reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.reason-item {
    background-color: var(--color-surface);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}
.reason-number {
    font-family: var(--font-secondary);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 15px;
}
.reason-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px;
}
.reason-text {
    font-size: 15px;
    color: var(--color-text-muted);
}


/* --- 採用の流れセクション --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
}
.process-step {
    text-align: center;
}
.step-number {
    display: inline-flex;
    width: 60px;
    height: 60px;
    background-color: var(--color-surface);
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-family: var(--font-secondary);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 20px;
}
.step-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
}
.step-text {
    font-size: 14px;
    color: var(--color-text-muted);
}


/* --- 人材例リストセクション --- */
.talent-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
}
.talent-list-item {
    background-color: var(--color-surface);
    padding: 15px 20px;
    border-radius: 5px;
    border: 1px solid var(--color-border);
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.talent-list-item:hover {
    background-color: rgba(192, 160, 69, 0.1);
    border-color: rgba(192, 160, 69, 0.5);
}


/* --- 共通ボタン --- */
.cta-button {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-background);
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 5px;
    border: 2px solid var(--color-gold);
    transition: all 0.3s ease;
}
.cta-button:hover {
    background-color: var(--color-gold-dark);
    border-color: var(--color-gold-dark);
    color: #000;
    transform: translateY(-2px);
}

.cta-button-outline {
    background: transparent;
    color: var(--color-gold);
    border-color: var(--color-gold);
}
.cta-button-outline:hover {
    background-color: var(--color-gold);
    color: var(--color-background);
}


/* --- フッター --- */
.site-footer {
    background-color: #1a1a1a;
    padding: 80px 0 40px;
    border-top: 1px solid var(--color-border);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
    padding-bottom: 60px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

.footer-column-main { }
.footer-column-nav { }

.footer-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #fff;
    font-family: var(--font-secondary);
}
.footer-title span {
    color: var(--color-gold);
}
.footer-address {
    font-size: 14px;
    color: rgba(224, 224, 224, 0.7);
    line-height: 1.8;
    font-style: normal;
}
.footer-license {
    font-size: 12px;
    color: rgba(224, 224, 224, 0.5);
    margin-top: 15px;
}

.footer-nav-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-menu {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-menu a {
    font-size: 14px;
    color: rgba(224, 224, 224, 0.8);
}
.footer-menu a:hover {
    color: var(--color-gold);
}
.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 13px;
    color: rgba(224, 224, 224, 0.6);
}

/* --- トップに戻るボタン --- */
#back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-gold);
    color: var(--color-background);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
#back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#back-to-top-btn:hover {
    background-color: var(--color-gold-dark);
    transform: translateY(-2px);
}
#back-to-top-btn svg {
    width: 24px;
    height: 24px;
}

/* --- Contact Form 7 スタイル --- */
.contact-form-section {
    background-color: var(--color-surface);
}
.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}
@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 25px;
    }
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group.half-width {
    grid-column: span 1;
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.form-group label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text-muted);
}
.form-control {
    background-color: #0E0E0F;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}
textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* --- CF7 - チェックボックス --- */
.wpcf7-acceptance {
    display: flex;
    align-items: flex-start;
}
.wpcf7-acceptance input[type="checkbox"] {
    display: none;
}
.wpcf7-acceptance .wpcf7-list-item-label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}
.wpcf7-acceptance .wpcf7-list-item-label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-border);
    background-color: #0E0E0F;
    border-radius: 3px;
    transition: all 0.2s ease;
}
.wpcf7-acceptance .wpcf7-list-item-label:after {
    content: '✔';
    position: absolute;
    left: 4px;
    top: 5px;
    font-size: 16px;
    color: var(--color-gold);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
}
.wpcf7-acceptance input[type="checkbox"]:checked + .wpcf7-list-item-label:before {
    border-color: var(--color-gold);
}
.wpcf7-acceptance input[type="checkbox"]:checked + .wpcf7-list-item-label:after {
    opacity: 1;
    transform: scale(1);
}

/* --- CF7 - 送信ボタン --- */
.form-group.submit-button {
    text-align: center;
}
.form-group.submit-button > p {
    margin: 0;
}
.wpcf7-submit {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-background);
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 5px;
    border: 2px solid var(--color-gold);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 18px;
    width: auto;
}
.wpcf7-submit:hover {
    background-color: var(--color-gold-dark);
    border-color: var(--color-gold-dark);
    color: #000;
    transform: translateY(-2px);
}
/* --- CF7 - エラー・成功メッセージ --- */
.wpcf7-response-output {
    border-radius: 5px;
    margin: 20px 0 0 0;
    padding: 15px;
    text-align: center;
}
div.wpcf7-validation-errors {
    border: 2px solid #f44336;
    background: rgba(244, 67, 54, 0.1);
}
div.wpcf7-mail-sent-ok {
    border: 2px solid #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}
.wpcf7-not-valid-tip {
    font-size: 12px;
    color: #f44336;
}


/* --- レスポンシブ対応 --- */
@media (max-width: 991px) {
    .site-header .container {
        flex-wrap: wrap;
    }
    .site-branding {
        width: calc(100% - 60px);
    }
}

@media (max-width: 768px) {
    .site-branding {
        width: 100%;
        justify-content: center;
        gap: 8px;
        margin-bottom: 20px;
        text-align: center;
    }
     .site-header .container {
        justify-content: center;
    }
    .company-note-header {
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    .mobile-menu-button {
       position: absolute;
       top: 20px;
       right: 20px;
    }

    #main-content {
        padding-top: 110px;
    }
    .hero {
        padding: 60px 0;
    }

    /* PC/モバイル テキスト切り替え */
    .desktop-text {
        display: none;
    }
    .mobile-text {
        display: inline;
    }
    .hero-title {
        font-size: 1.9rem; /* バランス調整 */
        line-height: 1.5; /* バランス調整 */
    }
    .hero-subtitle {
        font-size: 15px;
    }

    .content-section {
        padding: 70px 0;
    }
    .section-title {
        margin-bottom: 15px;
    }
    .section-subtitle {
        margin-bottom: 40px;
    }
    .form-wrapper {
        padding: 0;
    }
    .form-grid {
        grid-template-columns: 1fr !important;
    }
    .wpcf7-acceptance {
        display: block;
    }
    .wpcf7-acceptance .wpcf7-list-item-label {
        display: inline-block;
    }
}

