/*
 Theme Name:   Astra Child
 Theme URI:    http://example.com/astra-child/
 Description:  Astra Child Theme
 Author:       Trae
 Author URI:   http://example.com
 Template:     astra
 Version:      1.0.0
 License:      GPLv2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  astra-child
*/

/* Force Global Font */
body, h1, h2, h3, h4, h5, h6, p, a, span, li, input, textarea, button, .elementor-widget-heading .elementor-heading-title, .elementor-tab-title {
    font-family: "Noto Sans JP", sans-serif !important;
}

header.entry-header .entry-title {
    display: none;
}
body.archive .ast-archive-description {
	display: none;
}
/* 自定义页头：主标题与小标题 */
.custom-page-title-section .custom-page-title{
    margin: 0;
    color: white;
    font-family: "Roboto Slab", serif !important;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 5px;
    text-align: center;
}
.custom-page-title-section .custom-page-subtitle{
    text-align: center;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    opacity: .9;
}
/* Header Top Bar Styles */
.header-top-wrapper {
    background-color: #fcfcfc;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    position: relative;
    z-index: 999;
}

/* Make container wider for header top bar */
.header-top-wrapper .ast-container {
    max-width: 95%;
    margin: 0 auto;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.header-top-left p {
    margin: 0;
    font-weight: 500;
    background-color: #edf6fb;
    color: #006eb3;
    padding: 3px 15px;
    border-radius: 50px;
    display: inline-block;
    font-size: 12px;
}

.header-top-right.share ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.header-top-right.share li {
    padding: 0 10px;
    display: flex;
    align-items: center;
    position: relative;
}

.header-top-right.share li:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -2px;
    color: #cbd5e0;
    font-size: 12px;
    line-height: 1;
}

.header-top-right.share a {
    color: #8faab9;
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.header-top-right.share a:hover {
    color: #006eb3;
}

.header-top-right.share .icon {
    font-size: 14px;
}

.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999;
    transition: transform 0.8s ease;
}

body.header-hidden .site-header {
    transform: translateY(-100%);
}

.site-header .custom-logo,
.site-header .ast-site-identity img {
    height: auto;
    width: auto;
    transition: transform 0.5s ease;
}

.site-header .custom-logo:hover,
.site-header .ast-site-identity img:hover {
    transform: scale(1.2);
}

.site-header .main-header-bar {
    padding-top: 8px;
    padding-bottom: 8px;
    transition: padding 0.25s ease, min-height 0.25s ease, height 0.25s ease;
}

.site-header .main-header-menu > li > a,
.site-header .ast-main-header-wrap .main-header-menu > li > a {
    padding-top: 8px;
    padding-bottom: 8px;
    transition: padding 0.25s ease;
}

.rate-ticker-bar {
    background-color: #213f7a;
    color: #ffffff;
}

.rate-ticker-bar .ast-container {
    max-width: 95%;
    margin: 0 auto;
}

.rate-ticker-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rate-box {
    display: flex;
    align-items: center;
    /* background-color: #01a7ea; */
    padding: 6px 16px;
    border-radius: 0 4px 4px 0;
    white-space: nowrap;
}

.rate-icon {
    margin-right: 6px;
    display: flex;
    align-items: center;
}

.rate-icon .icon {
    font-size: 14px;
}

.rate-text {
    font-size: 12px;
}

.ticker-box {
    /* flex: 0 0 50%; */
    max-width: 70%;
    overflow: hidden;
    display: flex;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); /* Fade effect edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: rateTicker 20s linear infinite;
    /* Remove padding-left to eliminate initial gap */
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 40px;
    font-size: 12px;
    flex-shrink: 0; /* Prevent items from shrinking */
}

/* Adjust animation for seamless loop */
@keyframes rateTicker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-5%); /* Move 1/20 of the duplicated content width (since we duplicated 20 times) */
    }
}

/* Contact Sidebar Styles */
.online-side {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 260px;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 99999;
    overflow: hidden;
    transition: all 0.3s ease;
}

.online-side.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

/* Close Button Styles */
.online-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: transparent; /* Removed background shadow as requested */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999999;
    transition: all 0.3s;
}

.online-close:hover {
    transform: rotate(90deg);
}

.online-close .icon {
    font-size: 14px;
    line-height: 1;
    display: block; /* Ensure icon is visible */
}

/* Minimized Ball Styles (Image based) */
.online-small-side {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    background-color: #00aeef; /* Adjusted to match common design patterns or DENDEN branding */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    overflow: hidden;
}

.online-small-side img {
    display: block;
    width: 100%; /* Adjust size within the circle */
    height: 100%;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.online-small-side:hover {
    background-color: #009ce0; /* Slightly darker on hover */
}

.online-small-side:hover img {
    transform: scale(1.1);
}

.online-small-side.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.online-small-side:hover {
    transform: translateY(-50%) scale(1.05);
}

.online-pic {
    width: 100%;
    height: auto;
    line-height: 0;
    position: relative; /* Ensure stacking context */
}

.online-pic img {
    width: 100%;
    height: auto;
    display: block;
}

.title-online {
    padding: 15px 15px 10px;
    text-align: center;
}

.title-online h2 {
    font-size: 18px;
    color: #0056b3;
    margin: 0;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.title-online h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #213f7a;
    margin: 8px auto 0;
    border-radius: 2px;
}

.online-link {
    padding: 0 15px 15px;
}

.online-link ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.online-link li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.online-link li:last-child {
    margin-bottom: 0;
}

.online-link li i {
    color: #213f7a;
    font-size: 18px;
    margin-right: 10px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.online-link p {
    margin: 0;
}

.online-link a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.online-link a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.sign {
    background: #f0f5fa;
    padding: 10px;
    text-align: center;
}

.sign p {
    margin: 0;
    font-size: 12px;
    color: #0056b3;
    font-weight: 700;
}

@media (max-width: 768px) {
    .online-side {
        right: 10px;
        bottom: 10px;
        width: 240px;
    }
    
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    
    .header-top-right.share {
        margin-top: 5px;
    }
}
/* Custom Page Header Styles */
.custom-page-header-wrapper {
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
}

.custom-page-title-section {
    background: #f0f5fa;
    background: linear-gradient(135deg, #f0f5fa 0%, #e6eff7 100%);
    background-size: 100% 100% !important;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 50px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

/* 页面标题背景遮罩 (Overlay) */
.custom-page-title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.450);
    z-index: 1;
}

/* 确保内容在遮罩之上 */
.custom-page-title-section .ast-container {
    position: relative;
    z-index: 2;
}

/* Add a subtle decorative element */
.custom-page-title-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(to left, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    pointer-events: none;
}

.custom-page-title {
    color: #0056b3; 
    font-size: 42px; /* Larger font */
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

/* Optional: Add a small decorative line under the title */
/* .custom-page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #00bfd8;
    margin-top: 15px;
    border-radius: 2px;
} */

.custom-breadcrumb-section {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    padding: 18px 0;
    font-size: 14px;
    color: #666;
    position: relative;
}

.custom-breadcrumb-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-weight: 500;
}

.location-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    color: #00bfd8; /* Match accent color */
    background: rgba(0, 191, 216, 0.1);
    padding: 6px;
    border-radius: 50%;
}

.location-icon svg {
    width: 14px;
    height: 14px;
}

.custom-breadcrumb-inner a {
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 2px 6px;
    border-radius: 4px;
}

.custom-breadcrumb-inner a:hover {
    color: #0056b3;
    background-color: #f5f8fa;
}

.breadcrumb-separator {
    margin: 0 4px;
    color: #ccc;
    font-size: 10px;
}

.current-page {
    color: #0056b3;
    font-weight: 700;
    padding: 2px 6px;
}

@media (max-width: 768px) {
    .custom-page-title-section {
        padding: 60px 0;
    }
    .custom-page-title {
        font-size: 28px;
    }
    .custom-page-title::after {
        margin-top: 10px;
    }
}
