/*
Theme Name:   Hello Elementor Child
Theme URI:    https://example.com/
Description:  Hello Elementor の子テーマ
Author:       あなたの名前
Author URI:   https://example.com/
Template:     hello-elementor
Version:      1.0.0
Text Domain:  hello-elementor-child
*/

/* ナビメニュー */
nav.custom-nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
nav.custom-nav ul li {
    margin-bottom: 20px !important;
    padding: 0 !important;
}
nav.custom-nav ul li::before {
    display: none !important;
}
nav.custom-nav ul li a {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    color: #171816 !important;
}
nav.custom-nav .nav-en {
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    color: #171816 !important;
}
nav.custom-nav .nav-ja {
    font-size: 11px !important;
    color: #5E615A !important;
    margin-top: 0px !important;
    letter-spacing: 0.03em !important;
}
nav.custom-nav ul li a:hover .nav-en,
nav.custom-nav ul li a:hover .nav-ja {
    color: #3B73A6 !important;
}

/* テキストアニメーション */
.text-reveal {
    overflow: hidden;
    display: inline-block;
}
.text-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: textReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.3s;
}
.text-reveal.delay-1 span { animation-delay: 0.2s; }
.text-reveal.delay-2 span { animation-delay: 0.4s; }
.text-reveal.delay-3 span { animation-delay: 0.6s; }
.text-reveal.delay-4 span { animation-delay: 0.8s; }
@keyframes textReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* お知らせリスト */
.news-list {
    width: 100%;
    max-width: 600px;
}
.news-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px 0;
    border-bottom: 1px solid #ddd;
}
.news-item:first-child {
    border-top: none;
}
.news-dash {
    color: #666;
    font-size: 14px;
}
.news-date {
    font-size: 14px;
    color: #333;
    min-width: 93px;
    letter-spacing: 0.05em;
}
.news-title {
    font-size: 14px;
    color: #333;
    text-decoration: none;
}
.news-title:hover {
    color: #3B73A6;
}
.news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Moreボタン */
.more-btn-wrap {
    display: flex;
    justify-content: flex-end;
}
.more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
    cursor: pointer;
}
.more-text {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: letter-spacing 0.4s ease;
}
.more-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #333;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.more-btn:hover .more-text {
    letter-spacing: 0.3em;
}
.more-btn:hover .more-circle {
    background-color: #333;
    color: #fff;
}

/* マーキー */
.marquee-wrap {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    display: block;
    font-size: 0;
    line-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    height: 600px;
}
.marquee-track {
    display: flex;
    gap: 100px;
    animation: marquee 60s linear infinite;
    width: max-content;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    height: 600px;
}
.marquee-item {
    flex-shrink: 0;
    width: calc(50vw - 12px);
    height: 600px;
    overflow: hidden;
    border-radius: 80px 0 0 0;
    display: block;
    font-size: 0;
}
.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* We areセクション */
#we-are-section {
    position: relative;
    overflow: visible !important;
}
.we-are-text {
    position: relative;
    z-index: 10;
    margin-top: -285px !important;
    background: #fff;
    padding: 40px !important;
}

/* 見出しライン */
.heading-line {
    display: flex !important;
    align-items: center !important;
}
.heading-line::after {
    content: '';
    display: block;
    height: 1px;
    flex: 1;
    background-color: #333;
    margin-left: 80px;
}

/* サービス画像 */
#service-image {
    height: 430px !important;
    max-height: 430px !important;
    min-height: 430px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}
#service-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* フッターナビ */
.footer-nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 40px;
}
.footer-nav ul li {
    padding: 0 !important;
}
.footer-nav ul li::before {
    display: none !important;
}
.footer-nav ul li a {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    color: #171816 !important;
}
.footer-nav .nav-en {
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    color: #171816 !important;
}
.footer-nav .nav-ja {
    font-size: 10px !important;
    color: #5E615A !important;
    margin-top: 0px !important;
    letter-spacing: 0.03em !important;
}
.footer-nav ul li a:hover .nav-en,
.footer-nav ul li a:hover .nav-ja {
    color: #3B73A6 !important;
}

/* Page Topボタン */
.page-top {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #aaa;
    cursor: pointer;
}
.page-top-text {
    writing-mode: vertical-rl;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px;
    color: #aaa;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}
.page-top-arrow {
    display: inline-flex;
    color: #aaa;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}
.page-top:hover .page-top-arrow {
    transform: translateY(-6px);
}
.page-top:hover .page-top-text,
.page-top:hover .page-top-arrow {
    color: #666;
}

/* ハンバーガーボタン */
.hamburger-btn {
    position: fixed;
    top: 20px;
    right: 16px;
    z-index: 10000 !important;
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 7px !important;
}
.hb-line {
    display: block !important;
    width: 28px !important;
    height: 1px !important;
    background-color: #333 !important;
    margin: 0 !important;
    transition: transform 0.4s ease !important;
    transform-origin: center !important;
    font-style: normal !important;
}
.hamburger-btn.is-open .hb-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg) !important;
}
.hamburger-btn.is-open .hb-line:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg) !important;
}

/* メニューオーバーレイ */
.hamburger-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 9998 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.4s ease !important;
}
.hamburger-menu.is-open {
    opacity: 1 !important;
    pointer-events: all !important;
}
.hamburger-menu nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}
.hamburger-menu nav ul li {
    margin-bottom: 40px !important;
    opacity: 0 !important;
    transform: translateY(16px) !important;
    transition: opacity 0.4s ease, transform 0.4s ease !important;
}
.hamburger-menu.is-open nav ul li {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.hamburger-menu nav ul li:nth-child(1) { transition-delay: 0.1s !important; }
.hamburger-menu nav ul li:nth-child(2) { transition-delay: 0.15s !important; }
.hamburger-menu nav ul li:nth-child(3) { transition-delay: 0.2s !important; }
.hamburger-menu nav ul li:nth-child(4) { transition-delay: 0.25s !important; }
.hamburger-menu nav ul li:nth-child(5) { transition-delay: 0.3s !important; }
.hamburger-menu nav ul li a {
    font-size: 20px !important;
    font-weight: 500 !important;
    color: #333 !important;
    text-decoration: none !important;
    letter-spacing: 0.1em !important;
}
.hamburger-menu nav ul li a:hover {
    color: #3B73A6 !important;
}

/* パンくず */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 17px;
    font-size: 12px;
    color: #999;
    justify-content: flex-end;
    padding: 16px 24px;
}

.breadcrumb a {
    color: #999;
    text-decoration: none;
}
.breadcrumb a:hover {
    color: #333;
}
.breadcrumb-sep {
    font-size: 15px;
    color: #333;
    border: none !important;
    background: none !important;
    padding: 0 !important;
}
.breadcrumb-current {
    color: #333;
}

/* スクロールフェードイン（ブラー効果） */
.fade-in {
    opacity: 0 !important;
    filter: blur(12px) !important;
    transition: opacity 0.9s ease, filter 0.9s ease !important;
}
.fade-in.is-visible {
    opacity: 1 !important;
    filter: blur(0px) !important;
}
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }
.fade-in.delay-4 { transition-delay: 0.4s; }
.fade-in.delay-5 { transition-delay: 0.5s; }

/* ============================================
   スマホ対応（768px以下）
   ============================================ */
@media (max-width: 768px) {

    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    * {
        box-sizing: border-box !important;
    }

    /* ナビを非表示 */
    .custom-nav {
        display: none !important;
    }

    /* 見出しのはみ出し防止 */
    h1, h2, h3, h4 {
        word-break: break-word !important;
    }

    /* 左カラム */
    #left-column {
        width: 25% !important;
        min-height: unset !important;
        height: auto !important;
        padding: 16px 8px !important;
    }

    /* 左カラム内の見出しを非表示 */
    #left-column .hero-heading,
    #left-column .hero-sub {
        display: none !important;
    }

    /* 右カラムの高さ */
    #right-column {
        width: 72% !important;
        height: 70vh !important;
        min-height: unset !important;
    }

    /* hero-sectionの高さ */
    #hero-section {
        min-height: 65vh !important;
        max-height: 65vh !important;
        height: 65vh !important;
    }

    /* We areテキスト */
    .we-are-text {
        margin-top: 0 !important;
        padding: 24px 16px !important;
        background: transparent !important;
    }

    /* マーキーのスマホサイズ・角丸 */
    .marquee-wrap,
    .marquee-track,
    .marquee-item {
        height: 250px !important;
        max-width: unset !important;
    }
    .marquee-item {
        width: 90vw !important;
        border-radius: 60px 0 0 0 !important;
    }

    /* サービス画像の高さ */
    #service-image {
        height: 250px !important;
        max-height: 250px !important;
        min-height: 250px !important;
    }

    /* ©テキスト */
    .copyright-text,
    .copyright-text * {
        font-size: 10px !important;
        letter-spacing: 0em !important;
    }

    /* お知らせリストをスマホで縦並びに */
    .news-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        padding: 20px 0 !important;
    }
    .news-date {
        font-size: 13px !important;
        color: #999 !important;
        min-width: unset !important;
    }
    .news-title {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    /* フッターナビを縦並びに */
    .footer-nav ul {
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* パンくず */
        .breadcrumb {
        font-size: 10px !important;
        padding: 6px 16px !important;
        margin-top: 0 !important;
        gap: 5px !important;
    }

    /* ============================================
       Aboutページ スマホレイアウト
       ============================================ */

   /* 親コンテナ：重ね合わせの基準点 */
    .about-hero {
        position: relative !important;
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

/* Aboutページのright-columnの余白をゼロに */
    .about-hero .right-column {
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        min-height: 0 !important;
        height: auto !important;
    }

    /* 画像を右上に絶対配置 */
    .about-image {
        position: absolute !important;
        top: 0px !important;
        right: 0 !important;
        left: auto !important;
        width: 85% !important;
        height: 450vw !important;
        max-height: unset !important;
        min-height: unset !important;
        z-index: 1 !important;
    }

    /* 画像左下の白い角丸切り欠き */
    .about-image::after {
        content: '' !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 80px !important;
        height: 80px !important;
        background: #fff !important;
        border-radius: 0 40px 0 0 !important;
        z-index: 2 !important;
    }

    /* 見出しエリアを画像の下・左に配置 */
    .about-title {
        position: relative !important;
        z-index: 2 !important;
        margin-top: 50vw !important;
        padding: 0 20px !important;
        width: 100% !important;
    }

}

/* PCではハンバーガーを非表示 */
@media (min-width: 769px) {
    .hamburger-btn,
    .hamburger-menu {
        display: none !important;
    }
}


/* Aboutページ見出し下の二重線 */
.about-heading-line .elementor-heading-title {
    border-bottom: 5px double #333 !important;
    padding-bottom: 16px !important;
    display: inline-block !important;
}


/* 点線ボーダー */
.dotted-border {
    border-bottom: 1px dashed #ccc !important;
}