/* SOFI Corporate Theme - Main CSS */

body {
    background-color: #FAF8F4;
    color: #2D2A26;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: #B8963E; color: #fff; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F0EBE1; }
::-webkit-scrollbar-thumb { background: #D4CCBE; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #B8963E; }

.txt-outline { -webkit-text-stroke: 1px rgba(45, 42, 38, 0.1); color: transparent; }
.jp-leading { line-height: 2.2; }

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

/* Reveals - 高速化（スクロール速度に合わせる） */
.reveal-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }

.del-100 { transition-delay: 60ms; }
.del-200 { transition-delay: 120ms; }
.del-300 { transition-delay: 180ms; }
.del-400 { transition-delay: 240ms; }

/* Service Cards */
.service-world { transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.service-world img { transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1); }
.service-world:hover img { transform: scale(1.08); }
.service-img {
    filter: grayscale(25%) contrast(1.08) saturate(0.85) brightness(0.9);
}
.service-content {
    background: linear-gradient(to top, rgba(45, 42, 38, 0.9) 0%, rgba(45, 42, 38, 0.3) 50%, transparent 100%);
    transition: all 0.5s ease;
}
.service-world:hover .service-content {
    background: linear-gradient(to top, rgba(45, 42, 38, 0.95) 0%, rgba(45, 42, 38, 0.6) 60%, transparent 100%);
}

/* Animations */
@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}
.animate-slow-zoom { animation: slowZoom 25s linear infinite alternate; }

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(6, 199, 85, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(6, 199, 85, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 199, 85, 0); }
}
.line-btn {
    animation: pulse-glow 2s infinite;
    background-color: #06C755 !important;
    color: #fff !important;
}
.line-btn:hover {
    background-color: #05b34c !important;
}

/* Accordion */
.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}
.accordion-item.is-open .accordion-content { grid-template-rows: 1fr; }
.accordion-item.is-open .accordion-icon { transform: rotate(180deg); }

/* Number outline */
.num-outline {
    -webkit-text-stroke: 2px transparent;
    background: linear-gradient(#B8963E, #9E8046);
    -webkit-background-clip: text;
    color: transparent;
}

/* Hamburger - smooth X animation (slow & elegant) */
.hamburger {
    width: 32px;
    height: 24px;
    position: relative;
    cursor: pointer;
    background: transparent;
    border: 0;
    z-index: 60;
}
.hamburger-line {
    display: block;
    position: absolute;
    left: 5px;
    right: 5px;
    height: 2px;
    background-color: #2D2A26;
    border-radius: 2px;
    transition: top .55s cubic-bezier(.65,0,.35,1) .2s,
                transform .55s cubic-bezier(.65,0,.35,1) 0s,
                opacity .25s ease 0s,
                background-color .3s ease;
}
.hamburger-line:nth-child(1) { top: 4px; }
.hamburger-line:nth-child(2) { top: 11px; }
.hamburger-line:nth-child(3) { top: 18px; }
.hamburger.is-active .hamburger-line {
    transition: top .45s cubic-bezier(.65,0,.35,1) 0s,
                transform .55s cubic-bezier(.65,0,.35,1) .35s,
                opacity .25s ease .15s;
}
.hamburger.is-active .hamburger-line:nth-child(1) { top: 11px; transform: rotate(45deg); }
.hamburger.is-active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.is-active .hamburger-line:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* Mobile menu - side slide from right */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 42, 38, 0);
    z-index: 45;
    pointer-events: none;
    transition: background .4s ease;
}
.menu-overlay.is-open {
    background: rgba(45, 42, 38, .55);
    pointer-events: auto;
}
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 380px);
    height: 100dvh;
    max-height: 100dvh;
    background: #FAF8F4;
    box-shadow: -20px 0 60px -10px rgba(0,0,0,.18);
    z-index: 48;
    transform: translateX(100%);
    transition: transform .55s cubic-bezier(.65,0,.35,1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 5.5rem 1.75rem 3rem;
    gap: 0;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu .submenu {
    overflow: hidden !important;
    max-height: 0 !important;
    transition: max-height .45s ease;
    background: rgba(184,150,62,.04);
    margin: 0 -1.75rem;
    padding: 0 1.75rem;
}
.mobile-menu .submenu.is-open { max-height: 600px !important; }
.mobile-menu .submenu-toggle .caret { transition: transform .35s ease; }
.mobile-menu .submenu-toggle.is-open .caret { transform: rotate(180deg); }

/* Desktop dropdown */
.has-dropdown { position: relative; }
.has-dropdown > .dropdown-trigger { cursor: pointer; }
.has-dropdown > .dropdown-trigger .caret {
    display: inline-block;
    margin-left: 4px;
    transition: transform .35s ease;
    font-size: 9px;
    color: rgba(45,42,38,.5);
}
.has-dropdown:hover > .dropdown-trigger .caret,
.has-dropdown.is-open > .dropdown-trigger .caret { transform: rotate(180deg); color: #B8963E; }
.dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 220px;
    background: #FAF8F4;
    border: 1px solid rgba(45,42,38,.06);
    border-radius: 6px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.18);
    padding: 12px 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .35s cubic-bezier(.2,.8,.2,1);
    z-index: 50;
}
.has-dropdown:hover > .dropdown-panel,
.has-dropdown:focus-within > .dropdown-panel,
.has-dropdown.is-open > .dropdown-panel {
    opacity: 1; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.dropdown-panel a {
    display: block;
    padding: .65rem 1.25rem;
    font-family: "Shippori Mincho", serif;
    font-size: 13px;
    color: rgba(45,42,38,.82);
    transition: background .25s ease, color .25s ease, padding-left .3s ease;
    white-space: nowrap;
}
.dropdown-panel a:hover { color: #B8963E; background: rgba(184,150,62,.06); padding-left: 1.5rem; }
.dropdown-panel a small { display: block; font-family: "Jost",sans-serif; font-size: 9px; color: #9E8046; letter-spacing: .15em; text-transform: uppercase; margin-top: 2px; }

/* Hero video (people working in office, LIG-style) — mobile + desktop */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    pointer-events: none;
}

/* Autofill */
input:-webkit-autofill, textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #F0EBE1 inset !important;
    -webkit-text-fill-color: #2D2A26 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Blog single */
.entry-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid #B8963E;
}
.entry-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
}
.entry-content p {
    margin-bottom: 1.5rem;
    line-height: 2.0;
}
.entry-content ul, .entry-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}
.entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.entry-content th, .entry-content td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(45, 42, 38, 0.1);
    text-align: left;
}
.entry-content th {
    font-weight: 700;
}

/* Contact Form 7 - SOFI style */
.wpcf7-form {
    font-family: inherit;
    color: #2D2A26;
}
.wpcf7-form p {
    margin: 0;
}
.wpcf7-form .cf7-input,
.wpcf7-form .cf7-textarea,
.wpcf7-form .cf7-select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(45, 42, 38, 0.15);
    padding: 0.75rem 0;
    color: #2D2A26;
    font-size: 0.875rem;
    font-weight: 300;
    outline: none;
    transition: border-color 0.25s ease;
    font-family: inherit;
}
.wpcf7-form .cf7-input::placeholder,
.wpcf7-form .cf7-textarea::placeholder {
    color: #8A8279;
}
.wpcf7-form .cf7-input:focus,
.wpcf7-form .cf7-textarea:focus,
.wpcf7-form .cf7-select:focus {
    border-bottom-color: #B8963E;
}
.wpcf7-form .cf7-textarea {
    resize: none;
    min-height: 7rem;
}
.wpcf7-form .cf7-select {
    color: #8A8279;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A8279' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.25rem center;
    background-size: 1rem;
    padding-right: 1.75rem;
}
.wpcf7-form .cf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 1px solid #B8963E;
    color: #B8963E;
    background: transparent;
    padding: 1rem 3rem;
    border-radius: 4px;
    font-family: 'Jost', sans-serif;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 16rem;
}
.wpcf7-form .cf7-submit:hover {
    background: #B8963E;
    color: #fff;
}
.wpcf7-form .wpcf7-spinner {
    margin: 0 0 0 1rem;
}
.wpcf7-form .wpcf7-not-valid-tip {
    color: #cf2e2e;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    display: block;
}
.wpcf7 form .wpcf7-response-output {
    margin: 1.5rem 0 0;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    border: 1px solid rgba(45, 42, 38, 0.15);
}
.wpcf7 form.sent .wpcf7-response-output {
    border-color: #3D6B5E;
    background: rgba(61, 107, 94, 0.08);
    color: #3D6B5E;
}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output {
    border-color: #cf2e2e;
    background: rgba(207, 46, 46, 0.06);
    color: #cf2e2e;
}
.wpcf7-form .wpcf7-form-control-wrap {
    display: block;
}

/* Blog pagination */
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid rgba(45, 42, 38, 0.15);
    border-radius: 6px;
    color: #4A4540;
    font-family: 'Jost', sans-serif;
    font-size: 0.875rem;
    transition: all 0.25s ease;
    text-decoration: none;
}
.page-numbers:hover {
    border-color: #B8963E;
    color: #B8963E;
}
.page-numbers.current {
    background: #B8963E;
    color: #fff;
    border-color: #B8963E;
}
.page-numbers.dots {
    border: none;
}

/* Custom Cursor - 信頼感の演出（デスクトップのみ） */
@media (pointer: fine) {
    html, body, a, button, input, textarea, select, label, [role="button"], .interactive {
        cursor: none;
    }
    .sofi-cursor,
    .sofi-cursor-ring {
        position: fixed;
        top: 0; left: 0;
        pointer-events: none;
        z-index: 10000;
        will-change: transform;
        transition: opacity 0.3s ease, background-color 0.25s ease, border-color 0.25s ease, width 0.25s ease, height 0.25s ease;
    }
    .sofi-cursor {
        width: 6px; height: 6px;
        margin: -3px 0 0 -3px;
        background: #B8963E;
        border-radius: 50%;
    }
    .sofi-cursor-ring {
        width: 36px; height: 36px;
        margin: -18px 0 0 -18px;
        border: 1px solid rgba(184, 150, 62, 0.55);
        border-radius: 50%;
        mix-blend-mode: difference;
    }
    .sofi-cursor.is-hover {
        width: 10px; height: 10px;
        margin: -5px 0 0 -5px;
        background: #B8963E;
    }
    .sofi-cursor-ring.is-hover {
        width: 60px; height: 60px;
        margin: -30px 0 0 -30px;
        border-color: rgba(184, 150, 62, 1);
        background: rgba(184, 150, 62, 0.08);
    }
}
@media (prefers-reduced-motion: reduce) {
    .sofi-cursor, .sofi-cursor-ring { display: none !important; }
    html, body, a, button { cursor: auto !important; }
}
