/*
Theme Name: Office FENEX - Elegant Renewal
Description: Office FENEX Renewal - Elegant & Sophisticated Design
Author: Office FENEX
*/

/* =========================================
   Entry Content Styles
   ========================================= */


.entry-content {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
}

/* H2 Heading Style - Premium Vertical Accent */
.entry-content h2 {
    position: relative;
    padding-left: 1rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
    font-family: "Cinzel", "Noto Serif JP", serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: #111;
    letter-spacing: 0.1em;
    border-left: 4px solid #C5A059;
    /* Fenex Gold */
    background: linear-gradient(90deg, rgba(197, 160, 89, 0.05) 0%, transparent 100%);
    display: flex;
    align-items: center;
    min-height: 2.5rem;
}

/* H3 Heading Style - Underline Gradient */
.entry-content h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #222;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(197, 160, 89, 0.4);
}

/* Paragraph spacing */
.entry-content p {
    margin-bottom: 1.8rem;
    line-height: 2.2;
    color: #333;
    /* Slate-300 equivalent */
}

/* List styling */
.entry-content ul,
.entry-content ol {
    margin-bottom: 1.8rem;
    margin-left: 1.5rem;
    color: #333;
    line-height: 2.2;
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* Strong emphasis */
.entry-content strong {
    color: #111;
    font-weight: 700;
    background: linear-gradient(transparent 60%, rgba(197, 160, 89, 0.2) 60%);
}

/* Blockquote */
.entry-content blockquote {
    border-left: 2px solid #8B0000;
    /* Fenex Red */
    padding-left: 1rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
}

/* =========================================
   FENEX Cockpit Styles
   ========================================= */

.cockpit-container {
    background-image:
        radial-gradient(circle at 10% 20%, rgba(20, 20, 20, 0.8) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(139, 0, 0, 0.05) 0%, transparent 20%);
}

.cockpit-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    height: 180px;
    backdrop-filter: blur(5px);
}

.cockpit-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(197, 160, 89, 0.3);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.card-icon-wrapper.border-fenex-red {
    border-color: rgba(139, 0, 0, 0.3);
}

.cockpit-card:hover .card-icon-wrapper {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(197, 160, 89, 0.8);
}

.card-title {
    color: #E5E5E5;
    font-family: "Cinzel", serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}

.card-desc {
    color: #888;
    font-size: 0.75rem;
    font-family: "Noto Sans JP", sans-serif;
}

/* Glow Effects */
.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.card-glow.red {
    background: radial-gradient(circle, rgba(139, 0, 0, 0.2) 0%, transparent 60%);
}

.cockpit-card:hover .card-glow {
    opacity: 1;
}

.cockpit-card.dashed {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.1);
}

.cockpit-card.dashed:hover {
    border-color: rgba(197, 160, 89, 0.3);
    background: rgba(255, 255, 255, 0.02);
}

/* Textarea Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* =========================================
   Contact Form 7 FENEX Overrides
   ========================================= */

/* Inputs & Textareas */
.cf7-container input[type="text"],
.cf7-container input[type="email"],
.cf7-container input[type="tel"],
.cf7-container textarea,
.wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    /* bg-white/5 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* border-white/10 */
    border-radius: 0.375rem;
    /* rounded-md */
    color: #E5E7EB;
    /* text-gray-200 */
    padding: 1rem 1.5rem;
    /* px-6 py-4 */
    font-size: 1.125rem;
    /* text-lg */
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* font-sans */
    transition: all 0.3s ease;
    outline: none;
    margin-bottom: 24px;
}

.cf7-container input::placeholder,
.cf7-container textarea::placeholder {
    color: #6B7280;
    /* text-gray-500 */
}

.cf7-container input:focus,
.cf7-container textarea:focus {
    background-color: rgba(255, 255, 255, 0.1);
    /* focus:bg-white/10 */
    border-color: #C5A059;
    /* focus:border-fenex-gold */
    box-shadow: 0 0 0 1px rgba(197, 160, 89, 0.3);
}

/* Submit Button Decoration */
.cf7-container input[type="submit"] {
    position: relative;
    display: inline-block;
    padding: 1.5rem 4rem;
    /* py-6 px-16 */
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.75rem;
    /* text-xs */
    font-weight: 700;
    letter-spacing: 0.3em;
    cursor: pointer;
    transition: all 0.5s ease;
    overflow: hidden;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.cf7-container input[type="submit"]:hover {
    background: rgba(139, 0, 0, 0.8);
    /* bg-fenex-redish */
    border-bottom-color: #8B0000;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.4);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Center submit wrapper if valid structure */
.wpcf7-submit {
    width: auto !important;
}

.cf7-container p {
    margin-bottom: 0;
}

/* Response Message Styling */
.wpcf7-response-output {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #E5E7EB;
    font-size: 0.9rem;
    /* text-sm */
    padding: 1rem 1.5rem !important;
    margin-top: 2rem !important;
    margin-bottom: 0 !important;
    border-radius: 0.375rem;
    text-align: center;
    font-family: "Noto Sans JP", sans-serif;
    animation: fadeIn 0.5s ease-out;
}

.wpcf7-not-valid-tip {
    color: #EF4444 !important;
    /* text-red-500 */
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    /* font-mono */
}

/* Success State */
form.sent .wpcf7-response-output {
    border-color: #C5A059 !important;
    /* Fenex Gold */
    background: rgba(197, 160, 89, 0.1);
    color: #C5A059;
}

/* Error State */
form.invalid .wpcf7-response-output,
form.failed .wpcf7-response-output,
form.spam .wpcf7-response-output {
    border-color: #8B0000 !important;
    /* Fenex Red */
    background: rgba(139, 0, 0, 0.1);
    color: #F87171;
    /* brighter red for text */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   News Content Utility Classes (Admin Editor)
   ========================================= */

/* Typography Colors */
.text-fenex-gold {
    color: #C5A059 !important;
}

.text-fenex-red {
    color: #8B0000 !important;
}

.text-white {
    color: #FFFFFF !important;
}

.text-gray-muted {
    color: #A3A3A3 !important;
}

/* Borders & Accents */
.border-l-red {
    border-left: 2px solid #8B0000;
    padding-left: 1.5rem;
}

.border-l-gold {
    border-left: 2px solid #C5A059;
    padding-left: 1.5rem;
}

/* Backgrounds */
.bg-glass-dark {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 4px;
}

/* Layout Utilities */
.u-mb-4 {
    margin-bottom: 1rem;
}

.u-mb-8 {
    margin-bottom: 2rem;
}

.u-mt-4 {
    margin-top: 1rem;
}

.u-text-center {
    text-align: center;
}

.u-font-serif {
    font-family: "Cinzel", "Noto Serif JP", serif;
}

/* =========================================
   Consultation Form (Paper Style)
   ========================================= */

.paper-consultation-form {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid #ddd;
}

.paper-consultation-form .form-title {
    font-size: 1.5rem;
    color: #111;
    text-align: center;
    margin-bottom: 0.5rem;
    font-family: "Noto Serif JP", serif;
    font-weight: 700;
}

.paper-consultation-form .form-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 3rem;
    border-bottom: 2px solid #C5A059;
    padding-bottom: 1.5rem;
    display: block;
    width: 100%;
    line-height: 1.8;
}

/* Form Groups */
.paper-consultation-form .form-group {
    margin-bottom: 2rem;
}

.paper-consultation-form label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #444;
}

.required-mark {
    color: #C5A059;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* Paper Style Inputs (Override CF7 Styles) */
.paper-consultation-form input[type="text"],
.paper-consultation-form input[type="email"],
.paper-consultation-form input[type="date"],
.paper-consultation-form textarea,
.paper-consultation-form select {
    width: 100%;
    padding: 0.8rem 0.5rem;
    font-size: 1rem;
    border: none !important;
    border-bottom: 1px solid #ccc !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    color: #333 !important;
    transition: border-color 0.3s, background-color 0.3s;
    font-family: inherit;
    box-shadow: none !important;
    margin-bottom: 0;
}

.paper-consultation-form input[type="text"]:focus,
.paper-consultation-form input[type="email"]:focus,
.paper-consultation-form input[type="date"]:focus,
.paper-consultation-form textarea:focus {
    outline: none;
    border-bottom: 2px solid #C5A059 !important;
    background-color: #fcfcfc !important;
}

.paper-consultation-form textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 2.0;
    /* Match background-size */
    background-image: linear-gradient(transparent, transparent 31px, #eee 31px, #eee 32px);
    background-size: 100% 32px;
    padding-top: 8px;
}

/* Radio Buttons */
.paper-consultation-form .wpcf7-list-item {
    display: block;
    margin: 0.5rem 0 0.5rem 1rem;
}

.paper-consultation-form .wpcf7-list-item-label {
    font-size: 0.95rem;
    color: #333;
}

/* Submit Button Area */
.paper-consultation-form .submit-area {
    margin-top: 4rem;
    text-align: center;
}

.paper-consultation-form input[type="submit"] {
    background-color: #111 !important;
    color: #fff !important;
    border: 1px solid #111 !important;
    padding: 1rem 3rem !important;
    font-size: 1rem !important;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
    width: auto !important;
    display: inline-block !important;
    margin: 0 auto !important;
}

.paper-consultation-form input[type="submit"]:hover {
    background-color: #111 !important;
    color: #C5A059 !important;
    border-color: #C5A059 !important;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.4) !important;
    transform: translateY(-2px);
}



.paper-consultation-form .note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.5rem;
}

/* =========================================
   Consultation Link Button (Option A: Gold Standard)
   ========================================= */

.btn-consultation-link {
    display: inline-block;
    background-color: #C5A059;
    color: #fff !important;
    padding: 16px 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    border: 1px solid #C5A059;
    font-family: 'Noto Serif JP', serif;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.btn-consultation-link:hover {
    background-color: #fff;
    color: #C5A059 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
    border-color: #C5A059;
}

/* =========================================
   CF7 Validation & Date Picker Enhancements
   ========================================= */

/* Error Response Box (Bottom Banner) */
.paper-consultation-form .wpcf7-response-output {
    border: 2px solid #D8000C !important;
    background-color: #FFBABA !important;
    color: #D8000C !important;
    font-weight: bold;
    padding: 1rem !important;
    margin: 2rem 0 !important;
    text-align: center;
    border-radius: 4px;
}

/* Individual Field Validation Tips */
.paper-consultation-form .wpcf7-not-valid-tip {
    color: #D8000C !important;
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 0.2rem;
}

/* Date Input Styling */
.paper-consultation-form input[type="date"] {
    position: relative;
    padding-right: 1rem;
    cursor: pointer;
}

/* Webkit Calendar Icon (Chrome/Edge/Safari) */
.paper-consultation-form input[type="date"]::-webkit-calendar-picker-indicator {
    color: transparent;
    background: transparent;
    z-index: 1;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

/* Custom Icon Overlay using Wrapper (Targeting the span created by CF7) */
.paper-consultation-form .wpcf7-form-control-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}

.paper-consultation-form .wpcf7-form-control-wrap:has(input[type="date"])::after {
    content: "📅";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;
    opacity: 0.6;
    z-index: 0;
}

/* Centering Fix for Submit Button parent */
.paper-consultation-form p:has(input[type="submit"]) {
    text-align: center !important;
}

/* Force Block display for centering if parent method fails */
.paper-consultation-form input[type="submit"] {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Note Text Above Button - Softer Gray */
.paper-consultation-form .note {
    color: #666 !important;
    font-weight: normal;
    font-size: 0.85rem;
}

/* =========================================
   News Portal Styles (Typewriter / Secret Doc)
   ========================================= */

.news-portal-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #1a1a1a;
    background-image: radial-gradient(#2a2a2a 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 2rem;
    font-family: 'Courier Prime', 'Courier New', monospace;
}

.news-portal-container {
    width: 100%;
    max-width: 800px;
    background-color: #f4f1ea;
    /* Old paper color */
    color: #333 !important;
    /* Force dark text on light background */
    padding: 3rem;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 0 0 10px rgba(255, 255, 255, 0.05),
        /* Outline effect */
        10px 10px 30px rgba(0, 0, 0, 0.5);
    /* Deep shadow */
    position: relative;
    border: 1px solid #d3cfc2;
    margin: 0 auto;
}

/* Paper Texture Effect */
.news-portal-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.news-portal-container * {
    position: relative;
    z-index: 1;
}

.portal-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -2px;
    text-transform: uppercase;
    border-bottom: 3px double #333;
    padding-bottom: 1rem;
    font-family: 'Courier Prime', 'Courier New', monospace;
}

/* Login Box */
.portal-login-box {
    text-align: center;
    padding: 2rem;
    border: 2px dashed #999;
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.02);
}

.typewriter-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #555;
    white-space: pre-wrap;
    font-family: 'Courier Prime', monospace;
}

.error-text {
    color: #8b0000;
    font-weight: bold;
    background: rgba(139, 0, 0, 0.1);
    padding: 0.5rem;
    display: inline-block;
    border: 1px solid #8b0000;
    margin-bottom: 1rem;
}

/* Status Indicator */
.portal-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #999;
    padding-bottom: 0.5rem;
}

.status-indicator {
    color: #006400;
    /* Dark Green */
    font-weight: bold;
    animation: blink 2s infinite;
    font-size: 0.9rem;
}

.logout-link {
    color: #8b0000;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.logout-link:hover {
    text-decoration: underline;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Form Styles */
.portal-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #222 !important;
    /* Force dark label */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.2rem;
    width: max-content;
}

.portal-input,
.portal-textarea,
.portal-select {
    width: 100%;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #555 !important;
    padding: 0.8rem 0.5rem;
    font-family: 'Courier Prime', monospace;
    font-size: 1.1rem;
    color: #111 !important;
    transition: all 0.3s;
    border-radius: 0;
    box-shadow: none !important;
}

.portal-input:focus,
.portal-textarea:focus,
.portal-select:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.03) !important;
    border-bottom-color: #000 !important;
}

.portal-textarea {
    resize: vertical;
    border: 1px solid #999 !important;
    /* Box style for textarea */
    min-height: 250px;
    line-height: 1.6;
    background-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.05) !important;
}

.portal-submit-btn,
.portal-btn {
    background-color: #111;
    color: #fff;
    border: none;
    padding: 1.2rem 3rem;
    font-family: 'Courier Prime', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.portal-submit-btn:hover,
.portal-btn:hover {
    background-color: #C5A059;
    color: #111;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.file-input-wrapper {
    position: relative;
}

.portal-file-input {
    font-family: 'Courier Prime', monospace;
    font-size: 0.9rem;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .news-portal-container {
        padding: 1.5rem;
    }

    .portal-title {
        font-size: 1.8rem;
    }
}

/* =========================================
   Main Visual (Hero) Updates - 2026/02 
   ========================================= */

/* Sub Copy Animation & Typography */
.sub-copy-line {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
    margin-bottom: 0.8rem;
    line-height: 2.2;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    /* Standard Weight */
    letter-spacing: 0.05em;
    color: #A3A3A3;
}

.sub-copy-line.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gold Glow for "AI活用御用聞き" */
.gold-glow {
    color: #C5A059;
    text-shadow: 0 0 10px rgba(197, 160, 89, 0.4);
    display: inline-block;
    font-weight: 700;
    font-size: 1.25em;
    /* Larger size for emphasis */
    margin-top: 0.5rem;
}

/* Animation Keyframes */
@keyframes glow {
    0% {
        text-shadow: 0 0 5px rgba(197, 160, 89, 0.2);
    }

    100% {
        text-shadow: 0 0 20px rgba(197, 160, 89, 0.6), 0 0 10px rgba(197, 160, 89, 0.4);
    }
}

.animate-glow {
    animation: glow 3s ease-in-out infinite alternate;
}