/* 全体基本 */
body,
html {
    margin: 0;
    padding: 0;
    font-family: "Noto Serif JP", serif;
    background: #fff;
    color: #333;
}

/* ヘッダー */
.custom-navbar {
    transition: transform 0.3s ease, background 0.3s ease;
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(0);
}

.custom-navbar.hide {
    transform: translateY(-100%);
}

.custom-navbar.active-top {
    background: transparent;
}

.navbar-nav .nav-link {
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: #ffffff;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ddb78c;
}

.navbar-nav .nav-link.active, 
.navbar-nav .nav-link.show {
    color: #ddb78c;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.05em;
}

.navbar-brand img {
    height: 32px;
    width: auto;
    display: block;
}

.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none;
    box-shadow: none;
}

.custom-toggler {
    border: none;
    background: transparent;
    width: 40px;
    height: 40px;
    position: relative;
}

.toggler-icon {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    margin: 7px auto;
    border-radius: 2px;
    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;
}

/* 開いたときのクロス変形 */
.navbar-toggler:not(.collapsed) .toggler-icon:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.navbar-toggler:not(.collapsed) .toggler-icon:nth-child(2) {
    opacity: 0;
}

.navbar-toggler:not(.collapsed) .toggler-icon:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* スマホメニュー黒背景 */
@media (max-width: 991.98px) {
    .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: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #ccff00;
    color: #000;
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.contact-btn:hover {
    background-color: #b8e600;
    color: #000;
}

/* ドロップダウンメニュー */
.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: #ffffff !important;
}

@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;
    }
}

/* フッター */
.footer {
    position: relative;
    background: url('../../images/common/footer-bg.jpg') no-repeat center center/cover;
    color: #fff;
    font-size: 0.9rem;
}

.footer::before {
    content: "";
    display: block;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        #7a6228 0%,
        #b8942f 22%,
        #e8cf6a 50%,
        #b8942f 78%,
        #7a6228 100%
    );
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.footer-overlay {
    background: rgba(0, 0, 0, 0.8);
    padding: 3rem 1rem;
}

.footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #4a6e79;
}

.footer h6 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-links li {
    display: inline-block;
    margin: 0 0.5rem;
}

.footer-links li:not(:last-child)::after {
    content: "|";
    margin-left: 0.5rem;
    color: #fff;
}

@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;
}

/* サブトップ画像＋オーバーレイ＋タイトル */
.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: #fff;
    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: #87ceeb;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    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: 5px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #ddb78c;
    border-color: #ddb78c;
    color: #fff;
}

.page-item.active .page-link {
    background: #ddb78c;
    border-color: #ddb78c;
    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: 500px;
    overflow-y: auto;
}

.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;
}

/* 記事がない場合 */
.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: #1976d2;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.attachment-btn:hover {
    background: #1565c0;
}

.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;
}

/* レスポンシブ対応 */
@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;
    }
}