/* 合同会社ライトハウス — 共通スタイル（Tailwind CDNと併用） */
html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Noto Sans JP', sans-serif; color: #111827; }

.premium-bg {
    background:
        radial-gradient(circle at 12% 18%, rgba(245, 166, 35, 0.14), transparent 30%),
        radial-gradient(circle at 88% 12%, rgba(17, 24, 39, 0.08), transparent 26%),
        linear-gradient(135deg, #ffffff 0%, #f8f9fa 52%, #fff8eb 100%);
}
.premium-dark {
    background:
        radial-gradient(circle at 15% 20%, rgba(245, 166, 35, 0.18), transparent 32%),
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.08), transparent 28%),
        linear-gradient(135deg, #05070b 0%, #111827 52%, #1d1608 100%);
}
.premium-card {
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 24px 70px -48px rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(14px);
}
.premium-card-hover {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.premium-card-hover:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 166, 35, 0.48);
    box-shadow: 0 30px 80px -44px rgba(17, 24, 39, 0.55);
}
.premium-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #f5a623;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.premium-kicker::before {
    content: "";
    width: 2rem;
    height: 1px;
    background: currentColor;
}
.premium-cta {
    box-shadow: 0 18px 38px -22px rgba(245, 166, 35, 0.95);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.premium-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 26px 48px -24px rgba(245, 166, 35, 1);
}
.premium-image {
    filter: saturate(0.82) contrast(1.04);
}
.premium-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(17, 24, 39, 0.14), transparent);
}
.premium-outline-text {
    color: transparent;
    -webkit-text-stroke: 1px rgba(17, 24, 39, 0.08);
}
.premium-stat {
    border-left: 1px solid rgba(245, 166, 35, 0.5);
    padding-left: 1rem;
}

.bg-tech-grid {
    background-image:
        linear-gradient(to right, rgba(17, 24, 39, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(17, 24, 39, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
}

@keyframes heroFadeUp {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes lineGrowX {
    0% { transform: scaleX(0); opacity: 0; }
    100% { transform: scaleX(1); opacity: 0.6; }
}
@keyframes lineGrowY {
    0% { transform: scaleY(0); opacity: 0; }
    100% { transform: scaleY(1); opacity: 1; }
}
@keyframes spinSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes spinSlowReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}
@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.hero-animate {
    animation: heroFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
    will-change: transform, opacity;
}
.line-x-animate {
    transform-origin: left;
    animation: lineGrowX 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
    will-change: transform, opacity;
}
.line-y-animate {
    transform-origin: top;
    animation: lineGrowY 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
    will-change: transform, opacity;
}

.scroll-line-inner {
    animation: scrollLine 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .hero-animate,
    .line-x-animate,
    .line-y-animate,
    .spin-anim,
    .scroll-line-inner {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
        will-change: auto !important;
    }
    .line-x-animate { opacity: 0.6 !important; }
    .line-y-animate { opacity: 1 !important; }
}

/* Mobile menu */
html.lh-mobile-menu-open,
body.lh-mobile-menu-open {
    overflow: hidden;
}

/* Fixed header spacing */
main.pt-32 {
    padding-top: 4.5rem;
}
@media (min-width: 768px) {
    main.pt-32 {
        padding-top: 5rem;
    }
}

/* ヘッダー メガメニュー（md以上。ホバー＋キーボード focus-within） */
.nav-mega-root {
    position: relative;
    display: inline-flex;
    align-items: stretch;
}
.nav-mega-panel {
    /* 画面基準で配置（親のリンク幅に潰れないようにする） */
    position: fixed;
    left: 1rem;
    right: 1rem;
    margin-left: auto;
    margin-right: auto;
    transform: none;
    /* header: md 80px, パネルはヘッダー直下（隙間ゼロ） */
    top: 5rem;
    padding-top: 0;
    box-sizing: border-box;
    width: auto;
    max-width: 72rem;
    max-height: min(80vh, 36rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 60;
}
/* WordPress管理バーがある場合はパネル位置を下げる */
body.admin-bar .nav-mega-panel {
    top: calc(var(--wp-admin--admin-bar--height, 32px) + 5rem);
}
/* ヘッダー⇄メガメニューの移動でホバーが切れないように"橋"を作る */
.nav-mega-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1.5rem;
    height: 1.5rem;
}
.nav-mega-panel-inner {
    max-height: inherit;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    border-radius: 1.25rem;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background:
        radial-gradient(circle at top left, rgba(245, 166, 35, 0.08), transparent 34%),
        rgba(255, 255, 255, 0.96);
    box-shadow: 0 35px 80px -35px rgb(0 0 0 / 0.28);
    backdrop-filter: blur(18px);
}
.nav-mega-root:hover .nav-mega-panel,
.nav-mega-root.is-open .nav-mega-panel,
.nav-mega-root:focus-within .nav-mega-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
/* メガメニュー内の「タグ（チップ）」の高さ・整列を固定 */
.nav-mega-panel a.rounded-md {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-height: 1.75rem;
    white-space: nowrap;
}
.nav-mega-root > a:focus-visible {
    outline: none;
}
.nav-mega-root > a:focus-visible .nav-mega-chevron {
    color: #f5a623;
}

/* =========================
   Contact Form 7 (Contact)
   ========================= */
.lh-contact-content .wpcf7 {
    margin-top: 0;
}
.lh-contact-content .wpcf7 form {
    display: grid;
    gap: 1rem;
}
.lh-contact-content .wpcf7 p {
    margin: 0;
}
.lh-contact-content .wpcf7 label {
    display: grid;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
}
.lh-contact-content .wpcf7 input[type="text"],
.lh-contact-content .wpcf7 input[type="email"],
.lh-contact-content .wpcf7 input[type="tel"],
.lh-contact-content .wpcf7 input[type="url"],
.lh-contact-content .wpcf7 input[type="number"],
.lh-contact-content .wpcf7 textarea,
.lh-contact-content .wpcf7 select {
    width: 100%;
    border-radius: 0.9rem;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: #fff;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    color: #111827;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.lh-contact-content .wpcf7 textarea {
    min-height: 10rem;
    resize: vertical;
}
.lh-contact-content .wpcf7 input:focus,
.lh-contact-content .wpcf7 textarea:focus,
.lh-contact-content .wpcf7 select:focus {
    border-color: rgba(245, 166, 35, 0.9);
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.18);
}
.lh-contact-content .wpcf7 .wpcf7-submit {
    width: 100%;
    border-radius: 9999px;
    padding: 0.95rem 1.25rem;
    background: #f5a623;
    color: #111827;
    font-weight: 800;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 18px 38px -22px rgba(245, 166, 35, 0.95);
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}
.lh-contact-content .wpcf7 .wpcf7-submit:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
    box-shadow: 0 26px 48px -24px rgba(245, 166, 35, 1);
}
.lh-contact-content .wpcf7 .wpcf7-not-valid-tip {
    font-size: 0.8125rem;
    color: #dc2626;
    margin-top: 0.35rem;
}
.lh-contact-content .wpcf7 .wpcf7-response-output {
    margin: 0.75rem 0 0;
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
}
.lh-contact-content .wpcf7 form.invalid .wpcf7-response-output,
.lh-contact-content .wpcf7 form.failed .wpcf7-response-output,
.lh-contact-content .wpcf7 form.aborted .wpcf7-response-output {
    border-color: rgba(220, 38, 38, 0.4);
    background: rgba(220, 38, 38, 0.06);
    color: #991b1b;
}
.lh-contact-content .wpcf7 form.sent .wpcf7-response-output {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.08);
    color: #065f46;
}

/* =========================
   HubSpot form embed (Contact)
   ========================= */
.lh-contact-content .hs-form-frame {
    width: 100%;
}
.lh-contact-content .hs-form-frame iframe {
    width: 100% !important;
    max-width: 100% !important;
    border: 0 !important;
}

/* =========================
   Note-like typography (Posts)
   ========================= */
.lh-note-prose{
    color:#4B5563; /* brand-gray */
    font-size:16px;
    line-height:1.95;
    letter-spacing:0.01em;
    word-break:break-word;
}
@media (min-width:768px){
    .lh-note-prose{
        font-size:17px;
        line-height:2.0;
    }
}
.lh-note-prose > *{
    margin-top:0;
}
.lh-note-prose p{
    margin:0 0 1.1em;
}
.lh-note-prose a{
    color:#111827;
    font-weight:700;
    text-decoration:underline;
    text-decoration-thickness:2px;
    text-underline-offset:3px;
    text-decoration-color:rgba(245,166,35,.55);
}
.lh-note-prose a:hover{
    color:#f5a623;
    text-decoration-color:#f5a623;
}
.lh-note-prose h2{
    margin:2.2em 0 .8em;
    font-size:1.55em;
    line-height:1.35;
    font-weight:800;
    letter-spacing:0.01em;
    color:#111827;
}
.lh-note-prose h3{
    margin:1.6em 0 .7em;
    font-size:1.15em;
    line-height:1.5;
    font-weight:800;
    letter-spacing:0.01em;
    color:#111827;
}
.lh-note-prose ul,
.lh-note-prose ol{
    margin:0 0 1.1em;
    padding-left:1.25em;
}
.lh-note-prose ul{
    list-style:disc;
}
.lh-note-prose ol{
    list-style:decimal;
}
.lh-note-prose li{
    margin:.35em 0;
}
.lh-note-prose blockquote{
    margin:1.2em 0;
    padding:.8em 1em;
    border-left:4px solid rgba(245,166,35,.45);
    background:rgba(245,166,35,.06);
    border-radius:.75rem;
    color:#374151;
}
.lh-note-prose hr{
    margin:2em 0;
    border:0;
    height:1px;
    background:linear-gradient(90deg,transparent,rgba(17,24,39,.14),transparent);
}
.lh-note-prose figure{
    margin:1.4em 0;
}
.lh-note-prose figure img{
    border-radius:1rem;
}
.lh-note-prose figcaption{
    margin-top:.55rem;
    font-size:.85em;
    line-height:1.6;
    color:rgba(75,85,99,.9);
}

/* Yellow marker highlight */
.lh-marker{
    background:linear-gradient(transparent 60%, rgba(245,166,35,.35) 60%);
    font-weight:700;
    color:#111827;
}
