/* 全体基本 */
html {
    scroll-behavior: smooth;
}
body,
html {
    margin: 0;
    padding: 0;
    font-family: "Noto Serif JP", serif;
    background: #fff;
    color: #333;
}

/* 慣性スクロール用：コンテナ下端の余白防止 */
#momentum-scroll-container {
    padding-bottom: 0;
}
#momentum-scroll-container > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
#momentum-scroll-container > *:last-child::after {
    display: none !important;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* ヘッダー */
.custom-navbar {
    transition: transform 0.3s ease, background 0.3s ease;
    padding: 0 !important;
    height: 64px;
    min-height: 64px;
    background: #ffffff;
    transform: translateY(0);
    display: flex;
    align-items: stretch;
}

.custom-navbar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
}

@media (max-width: 991.98px) {
    .custom-navbar {
        position: relative;
    }
    .custom-navbar .container {
        justify-content: flex-end;
        min-height: 64px;
    }
    /* バーガー／×を常にヘッダー右の同じ位置に固定（メニュー展開で下にずれない） */
    .custom-navbar .navbar-toggler {
        position: absolute;
        right: 12px;
        top: 32px;
        transform: translateY(-50%);
        z-index: 1020;
    }
    .custom-navbar .navbar-collapse {
        margin-top: 0;
        padding-top: 0.5rem;
    }
}

.custom-navbar.hide {
    transform: translateY(-100%);
}

.custom-navbar.active-top {
    background: #ffffff;
}

.navbar-nav .nav-link {
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: #6c757d;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #333;
}

.navbar-nav .nav-link.active, 
.navbar-nav .nav-link.show {
    color: #333;
}

.custom-navbar .navbar-brand.header-logo {
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    flex-shrink: 0;
}

.custom-navbar .navbar-brand.header-logo img {
    height: 100%;
    width: auto;
    max-height: 64px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none;
    box-shadow: none;
}

.navbar-toggler.custom-toggler {
    border-radius: 0;
}

.custom-toggler {
    border: none;
    background: transparent;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    position: relative;
    border-radius: 0;
}

.toggler-icon {
    display: block;
    width: 100%;
    height: 3px;
    background: #6c757d;
    margin: 5px auto;
    border-radius: 0;
    transition: all 0.4s ease;
}

/* 初期ハンバーガー状態 */
.navbar-toggler.collapsed .toggler-icon:nth-child(1) {
    transform: none;
}

.navbar-toggler.collapsed .toggler-icon:nth-child(2) {
    opacity: 1;
}

.navbar-toggler.collapsed .toggler-icon:nth-child(3) {
    transform: none;
}

/* 開いたときのクロス変形（2本が中央20pxで交わる） */
.navbar-toggler:not(.collapsed) .toggler-icon {
    transform-origin: center center;
}
.navbar-toggler:not(.collapsed) .toggler-icon:nth-child(1) {
    transform: translateY(13.5px) rotate(45deg);
}
.navbar-toggler:not(.collapsed) .toggler-icon:nth-child(2) {
    opacity: 0;
}
.navbar-toggler:not(.collapsed) .toggler-icon:nth-child(3) {
    transform: translateY(-2.5px) rotate(-45deg);
}

@media (max-width: 991.98px) {
    .custom-navbar .navbar-toggler:not(.collapsed) {
        transform: translateY(-50%);
    }
}

/* スマホメニュー：展開時は不透明な背景で見やすく */
@media (max-width: 991.98px) {
    .custom-navbar .navbar-collapse {
        background: #1a1a1a;
        padding: 1.5rem 1.5rem 2rem;
        margin-top: 0.5rem;
        margin-left: -12px;
        margin-right: -12px;
        border-radius: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .custom-navbar .navbar-collapse .navbar-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .custom-navbar .navbar-collapse .nav-item {
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .custom-navbar .navbar-collapse .nav-item:last-of-type {
        border-bottom: none;
    }

    .custom-navbar .navbar-collapse .nav-link {
        color: #fff !important;
        font-size: 1.05rem;
        padding: 0.85rem 0 !important;
    }

    .custom-navbar .navbar-collapse .nav-link:hover {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    /* SERVICE：アコーディオン風に開閉（JSで .mobile-accordion-open をトグル） */
    .custom-navbar .navbar-collapse .nav-item.dropdown {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .custom-navbar .navbar-collapse .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        position: relative;
    }
    .custom-navbar .navbar-collapse .dropdown-toggle::after {
        position: absolute;
        right: 0;
        transition: transform 0.3s ease;
    }
    .custom-navbar .navbar-collapse .dropdown.mobile-accordion-open .dropdown-toggle::after {
        transform: rotate(180deg);
    }
    .custom-navbar .navbar-collapse .navbar-dropdown-collapse,
    .custom-navbar .navbar-collapse .dropdown-menu {
        position: static !important;
        float: none;
        display: block !important;
        width: 100%;
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        box-shadow: none;
        text-align: center;
    }
    .custom-navbar .navbar-collapse .dropdown.mobile-accordion-open .navbar-dropdown-collapse,
    .custom-navbar .navbar-collapse .dropdown.mobile-accordion-open .dropdown-menu {
        max-height: 320px;
    }
    .custom-navbar .navbar-collapse .dropdown-item {
        color: rgba(255, 255, 255, 0.9);
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        text-align: center;
    }
    .custom-navbar .navbar-collapse .dropdown-item:last-child {
        border-bottom: none;
    }
    .custom-navbar .navbar-collapse .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

    .custom-navbar .navbar-collapse .contact-btn {
        margin: 1rem 0 0 !important;
        width: 100%;
        justify-content: center;
    }

    .custom-navbar .navbar-collapse .navbar-sbt {
        text-align: center;
    }
    .custom-navbar .navbar-collapse .navbar-sbt-img {
        width: 140px;
        height: auto;
        max-height: 80px;
        object-fit: contain;
    }

    .offcanvas-style {
        background: #000 !important;
        padding: 2rem;
    }

    .offcanvas-style .nav-link {
        color: #fff !important;
        font-size: 1.2rem;
        padding: 0.75rem 0;
    }
}

/* CONTACTボタン */
.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5ba3d0 0%, #0378ad 100%);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease, color 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.contact-btn:hover {
    opacity: 0.9;
    color: #fff;
}

/* SBT画像：画面右下に常時固定（スクロールしても同じ位置・スマホでは非表示） */
.sbt-fixed {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 180px;
    line-height: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: width 0.35s ease, max-height 0.35s ease;
}

.sbt-fixed img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 100px;
    object-fit: contain;
    transition: max-height 0.35s ease;
}

/* PC：ファーストビュー時は約2倍の大きさ */
@media (min-width: 768px) {
    .sbt-fixed.sbt-fixed--fv {
        width: 360px;
    }
    .sbt-fixed.sbt-fixed--fv img {
        max-height: 200px;
    }
}

@media (max-width: 767px) {
    .sbt-fixed {
        display: none;
    }
}

/* ドロップダウンメニュー */
.dropdown-menu {
    background: rgba(0, 0, 0, 0.95);
    border: none;
    border-radius: 8px;
    margin-top: 10px;
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: dropdownFadeIn 0.3s ease;
    overflow: hidden;
}

.dropdown-item {
    color: #fff !important;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    position: relative;
}

.dropdown-item:hover {
    background: rgba(221, 183, 140, 0.1) !important;
    color: #ddb78c !important;
    padding-left: 2rem;
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown.show .dropdown-toggle {
    color: #333 !important;
}

@media (min-width: 992px) {
    .navbar-sbt {
        display: none;
    }
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .contact-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        margin-top: 25px;
        margin-bottom: 25px;
    }
    
    .dropdown-menu {
        background: rgba(0, 0, 0, 0.98);
        margin-top: 5px;
    }
}

/* お問い合わせ誘導（パララックス背景・左タイトル・右文＋ボタン） */
.contact-cta {
    position: relative;
    min-height: 400px;
    padding: 6rem 0;
    overflow: hidden;
}

.contact-cta-bg {
    position: absolute;
    inset: 0;
    background-color: #2a3a45;
    background-image: url(https://thearth.co.jp/images/top/contact-bg.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.contact-cta-inner {
    position: relative;
    z-index: 1;
}

.contact-cta-title-wrap {
    padding-right: 2rem;
}

.contact-cta-en {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #fff;
    margin-bottom: 0.25rem;
}

.contact-cta-ja {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.contact-cta-body {
    padding-left: 1rem;
}

.contact-cta-text {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
}

.contact-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.25s ease, color 0.25s ease;
}

.contact-cta-btn--mail {
    background: linear-gradient(135deg, #5ba3d0 0%, #0378ad 100%);
    color: #fff;
}

.contact-cta-btn--mail:hover {
    opacity: 0.9;
    color: #fff;
}

.contact-cta-btn--tel {
    background: #fff;
    color: #1a1a1a;
    border: 2px solid #fff;
}

.contact-cta-btn--tel:hover {
    background: transparent;
    color: #fff;
}

@media (max-width: 991px) {
    .contact-cta-title-wrap {
        padding-right: 0;
        margin-bottom: 1.5rem;
    }
    .contact-cta-body {
        padding-left: 0;
    }
}

@media (max-width: 767px) {
    .contact-cta {
        padding: 4.5rem 1rem;
        min-height: 360px;
    }
    .contact-cta-buttons {
        flex-direction: column;
    }
    .contact-cta-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-cta-bg {
        background-attachment: scroll;
    }
}

/* フッター上の地図 */
.footer-map-wrap {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.footer-map {
    display: block;
    width: 100%;
    height: 500px;
}

@media (max-width: 576px) {
    .footer-map {
        height: 320px;
    }
}

/* フッター（下端余白を確実にゼロに） */
.footer {
    position: relative;
    background: #ffffff;
    color: #6c757d;
    font-size: 0.9rem;
    border-top: 3px solid #0378ad;
    margin: 0;
    padding-bottom: 0;
}
.footer::after {
    display: none;
}

.footer-overlay {
    padding: 3rem 1rem;
}

.footer a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #333;
}

.footer h6 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #495057;
}

.footer p {
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.footer-links li {
    display: inline-block;
    margin: 0 0.5rem;
}

.footer-links li:not(:last-child)::after {
    content: "|";
    margin-left: 0.5rem;
    color: #adb5bd;
}

.footer-logo-link {
    display: inline-block;
}

.footer-logo {
    height: 40px;
    width: auto;
    display: block;
}

.footer-sbt-banner {
    line-height: 0;
}

.footer-sbt-img {
    width: 140px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    display: block;
    margin: 0.5rem 0 0;
}

/* フッター左：ロゴ下の公式LINEバナー（contactページ用） */
.footer-line-banner-wrap img {
    max-width: 320px;
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    .footer-sbt-banner {
        text-align: center;
    }
    .footer-sbt-banner .footer-sbt-img {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-line-banner-wrap {
        text-align: center;
    }
    .footer-line-banner-wrap img {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .footer h6 {
        font-size: 1.5rem;
        text-align: center;
    }

    .footer-links {
        text-align: left;
        padding-left: 0;
    }
}

/* 汎用改行クラス */
.break-text {
    display: block;
}

/* ========== 共通：セクションタイトル行（左/右から伸びる黒い斜めブロック） ========== */
.section-title-row {
    position: relative;
    width: 100%;
    min-height: 200px;
    overflow: hidden;
    background: #fff;
}

/* 背景（左から） */
.section-title-row--left .section-title-bg,
.section-title-row:not(.section-title-row--right) .section-title-bg {
    left: 0;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
    transform-origin: left center;
}

/* 背景（右から） */
.section-title-row--right .section-title-bg {
    left: auto;
    right: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%);
    transform-origin: right center;
}

.section-title-bg {
    position: absolute;
    top: 3px;
    bottom: 3px;
    width: 80%;
    background: #1a1a1a;
    transform: scaleX(0);
}

/* is-inview アニメーション（会社情報は0.9s、他は1.4s） */
.section-title-row.is-inview .section-title-bg {
    animation: section-title-bg-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#company-content.section-title-row.is-inview .section-title-bg,
#news-content.section-title-row.is-inview .section-title-bg,
#blog-content.section-title-row.is-inview .section-title-bg,
#sitemap-content.section-title-row.is-inview .section-title-bg {
    animation-duration: 0.9s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes section-title-bg-in {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .section-title-bg {
        transform: scaleX(1);
    }
    .section-title-row.is-inview .section-title-bg {
        animation: none;
    }
}

.section-title-inner {
    position: relative;
    z-index: 1;
    padding: 2.5rem 0;
}

.section-title-row--right .section-title-inner {
    text-align: right;
}

.section-title-en {
    display: block;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 0.35rem;
}

.section-title-ja {
    font-size: 1.1rem;
    font-weight: 400;
    color: #fff;
    margin: 0;
}

.recruit-section .section-title-ja {
    margin-bottom: 1.25rem;
}

@media (max-width: 767px) {
    .section-title-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    #sbt-content .section-title-en {
        font-size: clamp(1.35rem, 4.5vw, 1.65rem);
    }
}

/* サブトップ画像＋オーバーレイ＋タイトル */
.subtop-visual {
    position: relative;
    width: 100%;
    height: 500px;
    min-height: 250px;
    max-height: 60vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subtop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.subtop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 1;
}

.subtop-title {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.subtop-title h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
}

.title-border {
    display: block;
    margin: 15px auto 0;
    max-width: 150px;
    height: auto;
    opacity: 0.9;
    filter: brightness(1.2);
}

@media (max-width: 768px) {
    .subtop-visual {
        height: 240px;
    }
    .subtop-title h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .subtop-visual {
        height: 140px;
    }
    .subtop-title h1 {
        font-size: 1.2rem;
    }
}

/* Googleマップの白黒フィルター */
.grayscale-map {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

/* ホバー時にカラーに戻す（オプション） */
.grayscale-map:hover {
    filter: grayscale(0%);
}

/* 常に白黒のままにしたい場合は、上記のホバー効果を削除してください */

/* トップ：お知らせセクション */
.news-section {
    background: linear-gradient(180deg, #f8fafb 0%, #fff 100%);
}

.news-section .container {
    max-width: 75%;
}

/* トップ：お知らせ下・ブログ遷移バナー（1200×500 素材） */
.top-blog-banner {
    background: #fff;
}
.top-blog-banner-link {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.top-blog-banner-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}
.top-blog-banner-img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

/* お知らせセクション：表示アニメーション */
.news-section-header {
    opacity: 0;
    transform: translateY(20px);
}

.news-section.is-inview .news-section-header {
    animation: news-fade-up 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.news-latest {
    opacity: 0;
    transform: translateY(32px);
}

.news-section.is-inview .news-latest {
    animation: news-fade-up 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.35s forwards;
}

.news-list-item {
    opacity: 0;
    transform: translateY(24px);
}

.news-section.is-inview .news-list-item {
    animation: news-fade-up 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.news-section.is-inview .news-list-item:nth-child(1) { animation-delay: 0.5s; }
.news-section.is-inview .news-list-item:nth-child(2) { animation-delay: 0.75s; }
.news-section.is-inview .news-list-item:nth-child(3) { animation-delay: 1s; }
.news-section.is-inview .news-list-item:nth-child(4) { animation-delay: 1.25s; }
.news-section.is-inview .news-list-item:nth-child(5) { animation-delay: 1.5s; }
.news-section.is-inview .news-list-item:nth-child(6) { animation-delay: 1.75s; }

/* お知らせ一覧ページ：スクロール監視なしでもリストを常に表示 */
.news-section-list .news-list-item {
    opacity: 1;
    transform: none;
    animation: none;
}

.news-section-list .news-list-excerpt {
    display: block;
}

/* ブログ一覧：画像・日付カテゴリ・タイトル・文章少し */
.blog-list-wrap {
    background: #fff;
}

.blog-list-item {
    opacity: 1;
    list-style: none;
}

.blog-list-card:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}

.blog-list-card-img-wrap {
    display: block;
}

.blog-list-card-img {
    display: block;
}

.blog-list-card-body {
    display: block;
}

.blog-list-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog-list-card-date {
    font-size: 0.85rem;
    color: #6b6b6b;
}

.blog-list-card-cat {
    font-size: 0.8rem;
    padding: 0.15rem 0.5rem;
    background: #0378ad;
    color: #fff;
    font-weight: 600;
    border-radius: 0;
}

.blog-list-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
    line-height: 1.4;
}

.blog-list-card-excerpt {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* 重要なお知らせ：画像右上のビックリマーク（丸囲み・点滅） */
.news-sidebar-important-img-wrap {
    position: relative;
}

.news-sidebar-important-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #0378ad;
    color: #0378ad;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    animation: news-important-badge-blink 1.2s ease-in-out infinite;
}

@keyframes news-important-badge-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
    .news-sidebar-important-badge {
        animation: none;
    }
}

/* 重要なお知らせ：カテゴリを青い四角タグ（白い太字）に */
.news-sidebar-important-cat {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: #0378ad;
    border-radius: 0;
    margin-bottom: 0.35rem;
}

@keyframes news-fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-section-header,
    .news-latest,
    .news-list-item {
        opacity: 1;
        transform: none;
    }
    .news-section.is-inview .news-section-header,
    .news-section.is-inview .news-latest,
    .news-section.is-inview .news-list-item {
        animation: none;
    }
}

.news-section-en.tracking-wide {
    letter-spacing: 0.2em;
}

.news-section-title {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 700;
    color: #212529;
}

.news-section-line {
    width: 48px;
    height: 3px;
    background: #0378ad;
    margin-top: 0.5rem;
}

.news-section-more {
    font-size: 0.875rem;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.news-section-more:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #5ba3d0 0%, #0378ad 100%) !important;
    border-color: transparent !important;
}

.news-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.5rem rgba(3, 120, 173, 0.12) !important;
}

.news-card-title {
    color: #212529;
    transition: color 0.2s ease;
}

a:hover .news-card-title {
    color: #0378ad;
}

/* トップ：お知らせ縦リスト（日付・カテゴリ・タイトル・文章・矢印） */
.news-list-item {
    border-bottom: 1px solid #e8e8e8;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-link {
    color: #5c5c5c;
    text-decoration: none;
    transition: color 0.2s ease;
    min-width: 0;
}

/* 全画面共通：1行目＝日付・カテゴリ・矢印、2行目＝タイトルのみ */
.news-list-link-grid {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.35rem 0.75rem;
    align-items: start;
}

.news-list-link-grid .news-list-date {
    grid-column: 1;
    grid-row: 1;
}

.news-list-link-grid .news-list-cat {
    grid-column: 2;
    grid-row: 1;
}

.news-list-link-grid .news-list-content {
    grid-column: 1 / 4;
    grid-row: 2;
    min-width: 0;
}

.news-list-link-grid .news-list-arrow {
    grid-column: 4;
    grid-row: 1 / -1;
    align-self: center;
    margin-top: 0;
}

.news-list-link .news-list-arrow {
    flex-shrink: 0;
}

.news-list-link:hover {
    color: #0378ad;
}

.news-list-date {
    font-size: 0.9rem;
    color: #6b6b6b;
    flex-shrink: 0;
}

.news-list-cat {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: #0378ad;
    border-radius: 0;
    flex-shrink: 0;
}

.news-list-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.news-list-excerpt {
    display: none;
}

.news-list-title {
    font-size: 1rem;
    color: inherit;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;
    line-break: strict;
    white-space: normal;
}

.news-list-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #0378ad;
    color: #fff;
    border-radius: 0;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.news-list-link:hover .news-list-arrow {
    background: #02608a;
    transform: translateX(2px);
}

/* お知らせ一覧：スマホでコンテナ幅100%、矢印ボタン非表示 */
@media (max-width: 767.98px) {
    .news-section .container {
        max-width: 100%;
    }

    .news-list-arrow {
        display: none !important;
    }

    .news-list-link-grid .news-list-content {
        grid-column: 1 / -1;
    }
}

/* トップ：左カラム 新着記事 */
.news-latest {
    position: relative;
}

.news-latest-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #5ba3d0 0%, #0378ad 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.news-latest-link:hover .news-latest-title {
    color: #0378ad;
}

.news-latest-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #000;
}

.news-latest-img {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: cover;
}

.news-latest-img-wrap img.news-latest-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-latest-body {
}

.news-latest-date {
    font-size: 0.9rem;
}

.news-latest-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #212529;
    transition: color 0.2s ease;
}

.news-latest-excerpt {
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 会社紹介（左：画像・右：ロゴとは／タイトル／文章／会社概要ボタン） */
.company-intro {
    background: #fff;
}

.company-intro .row {
    min-height: 400px;
}

/* 会社紹介：画像は左から、右側は見出し→タイトル→本文→ボタンの順に表示 */
.company-intro .company-intro-img-wrap {
    opacity: 0;
    transform: translateX(-48px);
}

.company-intro.is-inview .company-intro-img-wrap {
    animation: company-intro-left-in 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.company-intro .company-intro-body {
    opacity: 1;
}

.company-intro .company-intro-heading,
.company-intro .company-intro-title,
.company-intro .company-intro-text,
.company-intro .company-intro-btn {
    opacity: 0;
    transform: translateY(20px);
}

.company-intro.is-inview .company-intro-heading {
    animation: company-intro-item-in 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}
.company-intro.is-inview .company-intro-title {
    animation: company-intro-item-in 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.45s forwards;
}
.company-intro.is-inview .company-intro-text {
    animation: company-intro-item-in 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards;
}
.company-intro.is-inview .company-intro-btn {
    animation: company-intro-item-in 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s forwards;
}

@keyframes company-intro-left-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes company-intro-item-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .company-intro .company-intro-img-wrap {
        opacity: 1;
        transform: none;
    }
    .company-intro .company-intro-heading,
    .company-intro .company-intro-title,
    .company-intro .company-intro-text,
    .company-intro .company-intro-btn {
        opacity: 1;
        transform: none;
    }
    .company-intro.is-inview .company-intro-img-wrap,
    .company-intro.is-inview .company-intro-heading,
    .company-intro.is-inview .company-intro-title,
    .company-intro.is-inview .company-intro-text,
    .company-intro.is-inview .company-intro-btn {
        animation: none;
    }
}

.company-intro-img-wrap {
    padding: 0;
    overflow: hidden;
}

/* キラン光るホバー（会社紹介画像） */
.company-intro-img-wrap.kiran {
    position: relative;
    cursor: pointer;
}

.company-intro-img-wrap.kiran::before {
    content: "";
    display: block;
    position: absolute;
    top: -100px;
    left: 0;
    width: 30px;
    height: 100%;
    background-color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0s;
}

.company-intro-img-wrap.kiran:hover::before {
    animation: company-intro-kiran 0.5s linear;
}

@keyframes company-intro-kiran {
    0% {
        transform: scale(2) rotate(45deg);
        opacity: 0;
    }
    20% {
        transform: scale(20) rotate(45deg);
        opacity: 0.6;
    }
    40% {
        transform: scale(30) rotate(45deg);
        opacity: 0.4;
    }
    80% {
        transform: scale(45) rotate(45deg);
        opacity: 0.2;
    }
    100% {
        transform: scale(55) rotate(45deg);
        opacity: 0;
    }
}

.company-intro-img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    display: block;
}

.company-intro-body {
    display: flex;
    align-items: flex-start;
    padding: 2.5rem 2rem 2.5rem 2.5rem;
}

.company-intro-inner {
    max-width: 100%;
}

.company-intro-heading {
    font-size: 1.85rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

@media (max-width: 767px) {
    .company-intro-heading {
        font-size: 1.2rem;
    }
}

.company-intro-logo {
    height: 2.5rem;
    width: auto;
    display: block;
}

.company-intro-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
}

.company-intro-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.company-intro-text p {
    margin-bottom: 1rem;
}

.company-intro-text p:last-child {
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .br-sp-only {
        display: none;
    }
}

/* SERVICE：3事業の案内 */
.service-section {
    color: #fff;
    padding-top: 3rem;
}

/* タイトル行：左から伸びる黒い斜めブロック＋アニメーション */
.service-title-row {
    position: relative;
    width: 100%;
    min-height: 200px;
    overflow: hidden;
    background: #fff;
}

.service-title-bg {
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 80%;
    background: #1a1a1a;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
    transform-origin: left center;
    transform: scaleX(0);
}

.service-title-row.is-inview .service-title-bg {
    animation: service-title-bg-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes service-title-bg-in {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-title-bg {
        transform: scaleX(1);
    }
    .service-title-row.is-inview .service-title-bg {
        animation: none;
    }
}

.service-title-inner {
    position: relative;
    z-index: 1;
    padding: 2.5rem 0;
}

@media (max-width: 767px) {
    .service-title-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.service-section-en {
    display: block;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #fff;
    margin-bottom: 0.35rem;
}

.service-section-ja {
    font-size: 1.1rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 1.25rem;
}

.service-breadcrumb {
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
}

.service-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.service-breadcrumb a:hover {
    text-decoration: underline;
}

/* 採用関連スタイルは thearth/recruit/recruit.css に集約 */

/* 事業ブロック：背景画像＋下部グラデ＋白文字＋矢印（画像のようなデザイン） */
.service-cards-wrap {
    background: #fff;
}

.service-block {
    display: block;
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    opacity: 0;
    transform: translateY(56px);
}

.service-cards-wrap.is-inview .service-block {
    animation: service-block-in 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.service-cards-wrap.is-inview .row > *:nth-child(1) .service-block { animation-delay: 0s; }
.service-cards-wrap.is-inview .row > *:nth-child(2) .service-block { animation-delay: 0.4s; }
.service-cards-wrap.is-inview .row > *:nth-child(3) .service-block { animation-delay: 0.8s; }

@keyframes service-block-in {
    from {
        opacity: 0;
        transform: translateY(56px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-block {
        opacity: 1;
        transform: none;
    }
    .service-cards-wrap.is-inview .service-block {
        animation: none;
    }
}

.service-block-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.service-block-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-block:hover .service-block-bg img {
    transform: scale(1.08);
}

.service-block-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.2) 40%, transparent);
    transition: background 0.4s ease;
}

.service-block:hover .service-block-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.35) 40%, transparent);
}

.service-block-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.75rem 1.5rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-block:hover .service-block-content {
    transform: translateY(-6px);
}

.service-block-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.service-block-text {
    font-size: 0.85rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

@media (max-width: 767.98px) {
    .service-block {
        aspect-ratio: 3 / 4; /* スマホでも縦長を維持 */
    }
}

.company-intro-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #5ba3d0 0%, #0378ad 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.company-intro-btn:hover {
    opacity: 0.9;
    color: #fff;
}

@media (max-width: 767.98px) {
    .company-intro-body {
        padding: 2rem 1.25rem;
    }

    .company-intro .row {
        min-height: 0;
    }

    .company-intro-img-wrap {
        min-height: 280px;
    }

    .company-intro-img {
        min-height: 280px;
    }
}

/* お知らせ記事一覧スタイル */
.news-section .news-section-title {
    background: transparent;
}

.news-section.min-height-60 {
    min-height: 60vh;
}

.news-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    text-align: left;
    margin-bottom: 2rem;
    position: relative;
}

.news-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #ddb78c;
    margin: 10px 0 0 0;
}

.news-list {
    background: #fff;
}

.news-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 1.2rem 0;
    position: relative;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #ddb78c;
    transition: width 0.3s ease;
}

.news-item:hover::before {
    width: calc(100% - 50px);
}

.news-item-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.news-date {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    min-width: 80px;
    flex-shrink: 0;
}

.news-category {
    flex-shrink: 0;
}

.category-tag {
    background: #0378ad;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.news-text {
    flex: 1;
    min-width: 200px;
}

.news-link {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: #ddb78c;
    text-decoration: none;
}

.news-arrow {
    flex-shrink: 0;
}

.arrow-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #1976d2;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.arrow-link::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    width: 1px;
    height: 20px;
    background: #e0e0e0;
    transform: translateY(-50%);
}

.arrow-link:hover {
    background: #1565c0;
    color: #fff;
    transform: translateX(3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.arrow-link i {
    font-size: 0.6rem;
}

/* ページネーション */
.pagination-nav {
    margin-top: 3rem;
}

.pagination {
    margin: 0;
}

.page-link {
    color: #333;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #0378ad;
    border-color: #0378ad;
    color: #fff;
}

.page-item.active .page-link {
    background: #0378ad;
    border-color: #0378ad;
    color: #fff;
}

/* サイドバー */
.news-sidebar {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ddb78c;
}

.sidebar-articles {
    max-height: 1200px;
    overflow-y: auto;
    padding-right: 0.75rem; /* スクロールバーとコンテンツの間を空ける */
}

.sidebar-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-date {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    min-width: 70px;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.sidebar-text {
    flex: 1;
}

.sidebar-link {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.sidebar-link:hover {
    color: #ddb78c;
    text-decoration: none;
}

/* ブログサイドバー：よく見られている記事（画像＋日付＋タイトル） */
.blog-sidebar-item {
    flex-direction: column;
    gap: 0.25rem;
}

.blog-sidebar-item-img-wrap {
    position: relative;
    min-height: 100px;
}

.blog-sidebar-item-img-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 詳細ページ（news-detail-section）内のサイドバーでも画像を確実に表示 */
.news-detail-section .blog-sidebar-item-img-wrap {
    flex-shrink: 0;
    height: auto;
}

.news-detail-section .blog-sidebar-item-img-wrap img {
    vertical-align: middle;
}

.blog-hot-mark {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: #e74c3c;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    letter-spacing: 0.05em;
    animation: blog-hot-mark-blink 1.2s ease-in-out infinite;
}

@keyframes blog-hot-mark-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
    .blog-hot-mark {
        animation: none;
    }
}

/* 記事がない場合 */
.no-articles,
.no-sidebar-articles {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

/* レスポンシブ対応 */
@media (max-width: 991.98px) {
    .news-item-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .news-date,
    .news-category,
    .news-text,
    .news-arrow {
        width: 100%;
    }
    
    .news-arrow {
        align-self: flex-end;
    }
    
    .news-sidebar {
        margin-top: 3rem;
        padding: 1.5rem;
    }
    
    .sidebar-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .sidebar-date {
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .news-title {
        font-size: 1.5rem;
    }
    
    .news-item {
        padding: 1rem 0;
    }
    
    .news-sidebar {
        padding: 1rem;
    }
    
    .sidebar-title {
        font-size: 1.1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* お知らせ詳細ページスタイル */
.news-detail-section {
    background: #fff;
    min-height: 60vh;
}

.news-detail-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.news-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-detail-date {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.news-detail-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.attachment-btn {
    background: #b8541f;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.attachment-btn:hover {
    background: #9a461a;
}

.attachments-area {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.attachments-area h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.attachment-files {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.attachment-item {
    padding: 0.5rem 0;
}

.attachment-link {
    color: #1976d2;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.attachment-link:hover {
    color: #1565c0;
    text-decoration: none;
}

.attachment-link .fa-file-pdf {
    color: #dc3545;
}

.attachment-link .fa-file-image {
    color: #28a745;
}

.attachment-files .attachment-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
    min-height: 40px;
    justify-content: center;
}

.attachment-files .attachment-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #333;
    text-decoration: none;
}

.attachment-files .attachment-btn i {
    font-size: 1rem;
}

.attachment-files .attachment-btn .fa-external-link-alt {
    color: #6c757d;
    font-size: 0.8rem;
}

.news-detail-content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 3rem;
}

.news-detail-back {
    text-align: left;
}

.back-to-list-btn {
    display: inline-block;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.back-to-list-btn:hover {
    background: #f8f9fa;
    border-color: #ccc;
    color: #333;
    text-decoration: none;
}

/* お知らせ詳細：一覧へ戻る下の重要なお知らせ（3個並び） */
.news-detail-important {
    border-top: 1px solid #eee;
}

.news-detail-important-title {
    font-weight: 700;
    color: #333;
}

.news-detail-important-card:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}

/* サイトマップページ */
.sitemap-link:hover {
    color: #0378ad !important;
}
.sitemap-link .sitemap-arrow {
    opacity: 0.7;
}
.sitemap-item ul a:hover {
    color: #0378ad !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .news-detail-title {
        font-size: 2rem;
    }
    
    .news-detail-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-detail-content {
        padding: 1rem 0;
    }
    
    .news-detail-content-text {
        font-size: 1rem;
    }
}

/* サブトップ内パンくずリスト */
.subtop-breadcrumb {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 10;
    color: #fff;
    font-size: 0.9rem;
}

.subtop-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.subtop-breadcrumb a:hover {
    text-decoration: underline;
}

/* サブトップ内パンくずリスト レスポンシブ対応 */
@media (max-width: 768px) {
    .subtop-breadcrumb {
        bottom: 15px;
        font-size: 0.8rem;
    }
}

/* ブログ一覧ページ */
.blog-section {
    background: #f8f9fa;
}

.blog-article {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.blog-article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.blog-category {
    background: #333;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-date {
    color: #666;
    font-size: 0.9rem;
}

.blog-article-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-article-title a:hover {
    color: #007bff;
    text-decoration: none;
}

.blog-article-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ブログサイドバー */
.blog-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
}

.sidebar-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.25rem;
}

.sidebar-text {
    margin-bottom: 0;
}

.sidebar-link {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.sidebar-link:hover {
    color: #007bff;
    text-decoration: none;
}

.no-sidebar-articles {
    color: #666;
    font-style: italic;
    text-align: center;
    margin: 0;
}

/* ブログ一覧ページ レスポンシブ対応 */
@media (max-width: 768px) {
    .blog-article {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .blog-article-image img {
        height: 150px;
    }
    
    .blog-article-title {
        font-size: 1.1rem;
    }
    
    .blog-article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
}