/* 基本スタイル */
:root {
    --primary-color: #611987;
    --secondary-color: #4c0072;
    --accent-color: #e370bd;
    --text-color: #333;
    --light-text-color: #666;
    --bg-color: #f4f4f4;
    --header-height: 80px;
}

.global-nav ul li a {font-size: 18px;}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Noto Sans JP', sans-serif; line-height: 1.8; color: var(--text-color); background-color: transparent; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease, background-color 0.3s ease; }
a:hover { opacity: 0.7; }
img { max-width: 100%; height: auto; vertical-align: middle; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 3px solid var(--primary-color); position: relative; }
.section-title::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 80px; height: 3px; background-color: var(--accent-color); }
.page-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.page-header.scrolled { background-color: rgba(255, 230, 247, 0.95); backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.header-content { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-height); height: auto; padding: 0 20px !important; }
.logo a { display: flex; align-items: center; gap: 15px; }
.logo img { height: 45px; }
.global-nav { flex-grow: 1; display: flex; justify-content: flex-end; }
.global-nav ul { display: flex; list-style: none; gap: 10px; flex-wrap: wrap; justify-content: flex-end; overflow: visible; }
.global-nav a { font-size: 0.9rem; font-weight: 700; padding: 8px 15px; border-radius: 5px; transition: background-color 0.3s, color 0.3s; }
.page-header:not(.scrolled) .global-nav a { color: white; text-shadow: 1px 1px 3px rgba(0,0,0,0.4); }
.page-header.scrolled .global-nav a { color: var(--text-color); }
.global-nav a:hover, .global-nav li.current a { background-color: var(--primary-color); color: white !important; text-shadow: none; opacity: 1; }
.hamburger-menu { display: none; }
.hero-wrapper { height: 100vh; overflow: hidden; position: relative; }
.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; 
    height: 100vh;
    background-image: url('http://www.edu.pref.kagoshima.jp/_files/00038454/top.jpg');
    background-size: cover;
    background-position: center center;
    z-index: -1;
    backface-visibility: hidden;
    perspective: 1000px;
    transform: translateZ(0); 
    animation: heroZoomOut 5s ease-out forwards;
    will-change: transform;
}
.hero-title {
    font-family: 'Shippori Mincho', serif;
    display: inline-block;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.5);
}
.motto-top {
    display: block;
    /* 下の行より圧倒的に大きくする（下の行が1とした場合、こちらは約2.5倍） */
    font-size: 6rem; 
    font-weight: 900;
    line-height: 1.1;
    
    /* ★魔法のプロパティ：文字を親要素の幅いっぱいに広げる */
    text-align: justify;
    text-align-last: justify; /* 1行しかなくても強制的に両端揃え */
    text-justify: inter-character; /* 文字間隔で調整 */
}

.motto-bottom {
    display: block;
    font-size: 2.2rem; /* motto-topに合わせて調整 */
    margin-top: 0.2em;
    white-space: nowrap;
    letter-spacing: 0.1em; /* 少し余裕を持たせる */
}

.hero-content { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; text-align: center; background-color: rgba(0, 0, 0, 0.3); }

.hero-subtitle { font-size: 1.2rem; text-shadow: 1px 1px 5px rgba(0,0,0,0.6); }
.page-content { position: relative; z-index: 5; background-color: transparent; margin-bottom: 100vh; }
.main-content-wrapper { position: relative; background-color: white; z-index: 10; padding-top: 80px; box-shadow: 0 -10px 30px rgba(0,0,0,0.1); }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; padding: 80px 0; }

.sidebar-widget { background-color: #f7f5f9; padding: 20px; border-radius: 8px; margin-bottom: 30px; border: 1px solid #e0d8e6; }
.sidebar-widget .widget-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }

/* ステップスライダーのスタイル */
.photo-gallery-section {
    background-color: #f7f5f9;
    padding: 80px 0;
    border-top: 1px solid #e0d8e6;
}
.step-slider-container {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
    position: relative;
    touch-action: pan-y !important;
}
.step-slider-list {
    display: flex;
    list-style: none;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    cursor: grab;
    touch-action: pan-y !important;
}
.step-slider-list:active {
    cursor: grabbing; /* 掴んでいる時のアイコン */
}

.step-slider-list li {
    flex-shrink: 0;
    width: calc(100% / 3);
    padding: 0 10px;
    cursor: pointer;
    position: relative; 
}
.step-slider-list img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.3s ease;
    pointer-events: none; 
    -webkit-user-drag: none;
}
.step-slider-list li:hover img {
    opacity: 0.8;
}
.slide-title {
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: center;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    line-height: 1;
}
.slider-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 1;
}
.slider-prev { left: 25px; }
.slider-next { right: 25px; }


.visitor-counter-banner { background-color: #fff; padding: 50px 0; border-top: 1px solid #e0d8e6; }
.visitor-counter-banner .widget-title { text-align: center; margin-bottom: 20px; }
.visitor-counter-grid { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.counter-item { display: flex; align-items: center; gap: 5px; }
.counter-label, .counter-value { border: none !important; vertical-align: middle; }

/* ブログフィードセクションのスタイル */
.blog-feed-section {
    background-color: #f7f5f9;
    padding: 80px 0;
    border-top: 1px solid #e0d8e6;
}
.blog-feed-section .news-list {
    max-width: 800px;
    margin: 0 auto;
    list-style: none;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}
.blog-feed-section .news-list li {
    border-bottom: 1px solid #f0f0f0;
}
.blog-feed-section .news-list li:last-child {
    border-bottom: none;
}
.blog-feed-section .news-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    gap: 20px;
}
.blog-feed-section .news-list a:hover {
    background-color: #fcfaff;
}
.blog-feed-section .news-text-content {
    flex-grow: 1;
    min-width: 0;
}
.blog-feed-section .news-date {
    background-color: var(--accent-color);
    margin-bottom: 5px;
    display: inline-block;
    font-size: 0.9rem;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    white-space: nowrap;
}
.blog-feed-section .news-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
}
.blog-feed-section .news-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #eee;
}
.blog-feed-section .news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.blog-feed-section .news-list a:hover .news-thumbnail img {
    transform: scale(1.1);
}
.blog-feed-section .news-list .feed-message {
    padding: 40px 20px;
    text-align: center;
    color: var(--light-text-color);
    font-size: 1rem;
}
.blog-feed-section .more-link {
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--secondary-color);
    color: #fff;
    font-weight: 700;
    border-radius: 5px;
}
.blog-feed-section .more-link:hover {
    color: #fff;
    opacity: 0.8;
}

.page-footer { background-color: var(--secondary-color); color: rgba(255,255,255,0.8); padding: 40px 0; }
.footer-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-address, .footer-copyright { text-align: left; }
.footer-copyright { margin-top: 10px; font-size: 0.9em; color: rgba(255,255,255,0.6); }
.footer-links { display: flex; gap: 15px; flex-wrap: wrap; }
.footer-btn { display: inline-block; padding: 8px 18px; border: 1px solid rgba(255, 255, 255, 0.5); color: white; border-radius: 5px; text-decoration: none; transition: background-color 0.3s ease; white-space: nowrap; }
.footer-btn:hover { background-color: rgba(255, 255, 255, 0.1); opacity: 1.0; color: white; }
@media (max-width: 768px) { 
　.hero-title { width: 85% }
   .motto-top { font-size: 18vw; }
   .motto-bottom { font-size: 6.5vw; }

    .footer-container { 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
    } 
    .footer-address, .footer-copyright { 
        text-align: center; 
    }
    .hero-title {
        white-space: nowrap;
	font-size: 7vw !important; 
        padding: 0 10px;
    }
 }

/* 地図モーダル */
.map-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.map-modal-overlay.active { opacity: 1; visibility: visible; }
.map-modal-content { background-color: white; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.2); width: 90%; max-width: 800px; height: 80vh; max-height: 600px; position: relative; padding: 0; display: flex; flex-direction: column; transform: scale(0.9); transition: transform 0.3s ease; overflow: hidden; }
.map-modal-overlay.active .map-modal-content { transform: scale(1); }
.map-modal-close { position: absolute; top: 10px; right: 10px; background-color: #333; border: none; width: 35px; height: 35px; border-radius: 50%; font-size: 24px; line-height: 35px; text-align: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.2); color: white; z-index: 10; transition: transform 0.2s, background-color 0.2s; }
.map-modal-close:hover { transform: rotate(90deg); background-color: #555; }
.map-container { width: 100%; height: 100%; }
.map-container iframe { width: 100%; height: 100%; border: none; }

/* 画像モーダル */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.image-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-modal-overlay.active .image-modal-content {
    transform: scale(1);
}
.image-modal-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.image-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    color: #333;
    z-index: 10;
    transition: transform 0.2s, background-color 0.2s;
}
.image-modal-close:hover {
    transform: rotate(90deg);
    background-color: #f0f0f0;
}
@media (max-width: 768px) {
    .image-modal-close {
        top: 5px;
        right: 5px;
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 24px;
    }
}

/* --- Mega Menu Styles --- */
.global-nav > ul > li { position: relative; }
.mega-menu { position: absolute; left: 50%; top: calc(100% + 5px); transform: translateX(-50%); white-space: nowrap; background-color: rgba(30, 30, 30, 0.95); backdrop-filter: blur(5px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); padding: 30px 40px; z-index: -1; border-radius: 8px; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path 0.4s ease, visibility 0s 0.4s; }
@media (min-width: 1025px) { .global-nav li.has-submenu:hover > .mega-menu { visibility: visible; z-index: 1100; clip-path: inset(0 0 0 0); transition-delay: 0s; } }
.mega-menu-content { display: flex; gap: 50px; }
.submenu-column h4 { color:  rgb(255, 255, 130); font-size: 1rem; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.2); }
.submenu-column ul { list-style: none; flex-direction: column; gap: 5px; }
.submenu-column a { color: white !important; font-weight: normal; font-size: 0.95rem; padding: 8px 0; text-shadow: none; background-color: transparent !important; border-bottom: 1px solid transparent; transition: border-color 0.3s ease, color 0.3s ease !important; }
.submenu-column a:hover { color: white !important; opacity: 0.8; border-bottom-color: rgba(255,255,255,0.5); }
.submenu-toggle { display: none; }

@media (min-width: 1025px) {
    .mega-menu.mega-menu-single-column {
        white-space: normal;
        width: auto;
        min-width: 280px;
        padding: 20px 30px;
    }
    .mega-menu.mega-menu-single-column .mega-menu-content {
        flex-direction: column;
        gap: 0;
    }
    .mega-menu.mega-menu-single-column .submenu-column h4 {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 10px;
    }
    .mega-menu.mega-menu-single-column .submenu-column {
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    .mega-menu.mega-menu-single-column .submenu-column:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

/* --- Responsive Design & Mobile Menu --- */
@media (max-width: 1024px) {
    .global-nav { flex-grow: 0; }
    .hamburger-menu { display: block; cursor: pointer; width: 30px; height: 22px; position: relative; z-index: 1001; }
    .hamburger-menu span { display: block; position: absolute; height: 3px; width: 100%; border-radius: 3px; left: 0; transform: rotate(0deg); transition: .25s ease-in-out; }
    .hamburger-menu span:nth-child(1) { top: 0; }
    .hamburger-menu span:nth-child(2) { top: 9px; }
    .hamburger-menu span:nth-child(3) { top: 18px; }
    .page-header:not(.scrolled) .hamburger-menu span { background: white; }
    .page-header.scrolled .hamburger-menu span { background: var(--text-color); }
    .hamburger-menu.active span:nth-child(1) { top: 9px; transform: rotate(135deg); }
    .hamburger-menu.active span:nth-child(2) { opacity: 0; left: -60px; }
    .hamburger-menu.active span:nth-child(3) { top: 9px; transform: rotate(-135deg); }

    .global-nav { display: block; position: fixed; top: var(--header-height); left: 0; width: 100%; max-height: calc(100vh - var(--header-height)); background-color: rgba(255, 255, 255, 0.98); padding: 0; overflow-y: auto; box-shadow: 0 5px 15px rgba(0,0,0,0.08); visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path 0.5s ease, visibility 0s 0.5s; }
    .global-nav.active { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path 0.5s ease, visibility 0s; }
    .global-nav ul { flex-direction: column; gap: 0; }
    .global-nav li { width: 100%; text-align: left; border-bottom: 1px solid #eee; }
    .global-nav li:last-child { border-bottom: none; }
    
    .global-nav a { display: block; padding: 18px 20px; color: var(--text-color) !important; border-radius: 0; text-shadow: none; width: auto; font-weight: 700; transition: background-color 0.2s; }
    .global-nav a:hover { background-color: #f0f0f0; }

    .global-nav li.has-submenu { display: flex; flex-wrap: wrap; align-items: stretch; }
    .global-nav li.has-submenu > a { flex-grow: 1; }

    .submenu-toggle { display: block; width: 60px; background-color: transparent; border: none; cursor: pointer; position: relative; border-left: 1px solid #eee; flex-shrink: 0; transition: background-color 0.2s; }
    .submenu-toggle::before { content: ''; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border-style: solid; border-color: var(--text-color); border-width: 0 2px 2px 0; transform: translate(-50%, -75%) rotate(45deg); transition: transform 0.3s ease; }
    .submenu-toggle[aria-expanded="true"]::before { transform: translate(-50%, -25%) rotate(225deg); }
    
    .global-nav .mega-menu { display: block; position: static; transform: none; width: 100%; background-color: #f7f5f9; backdrop-filter: none; padding: 0; box-shadow: inset 0 5px 10px -5px rgba(0,0,0,0.08); opacity: 1; visibility: visible; z-index: auto; border-radius: 0; white-space: normal; clip-path: none; max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease-out; }
    .global-nav .mega-menu.active { max-height: 500px; padding-bottom: 10px; }
    
    .global-nav .mega-menu-content { flex-direction: column; gap: 0; padding: 10px 0 0; }
    .global-nav .submenu-column { padding: 0; }
    .global-nav .submenu-column h4 { display: none; }
    .global-nav .submenu-column ul { gap: 0; }

    /* スマホメニュー見やすさ改善 */
    .global-nav li.has-submenu.is-open > a,
    .global-nav li.has-submenu.is-open .submenu-toggle {
        background-color: #e9e5ed;
    }
    .global-nav .submenu-column a { color: var(--light-text-color) !important; padding: 12px 20px 12px 45px; font-size: 0.9rem; font-weight: 400; position: relative; }
    .global-nav .submenu-column a:hover { background-color: #e9e5ed !important; }
    .global-nav .submenu-column a::before { content: '—'; position: absolute; left: 25px; top: 50%; transform: translateY(-50%); color: #bbb; }
}
@media (max-width: 768px) {
    .content-grid { grid-template-columns: 1fr; }
    .sidebar { margin-top: 50px; }
    .hero-title { font-size: 2.0rem; }
    #relationBanner .ad_banner a { margin-left: auto; margin-right: auto; width: 90%; max-width: 400px; }
    .photo-gallery-section, .blog-feed-section { padding: 50px 0; }
    .blog-feed-section .news-thumbnail { width: 90px; height: 60px; }
    .step-slider-container { padding: 0 10px; }
    .step-slider-list li { width: 50%; padding: 0 5px; }
    .step-slider-list img { height: 300px; }
    .slider-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    .slider-prev { left: 15px; }
    .slider-next { right: 15px; }
    .slide-title {
        left: 5px;
        right: 5px;
        padding: 8px;
        font-size: 0.8rem;
    }
}

#back-to-top {
    position: fixed; bottom: 25px; right: 25px; width: 50px; height: 50px; background-color: #333; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.2); text-decoration: none; z-index: 999; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.3s;
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background-color: #555; opacity: 1; }
#back-to-top svg { width: 24px; height: 24px; }

/* =============================================== */
/*  CMS生成コンテンツのためのスタイル                */
/* =============================================== */

/* 新着情報のレスポンシブ対応 */
#recentDocsTab { margin-top: -10px; }
#recentDocsTab .tabs, #recentDocsTab .content > ul:not(.tab1), #recentDocsTab .links > div:not(.tab1), #recentDocsTab .links .feed { display: none !important; }
#recentDocsTab .pieceBody, #recentDocsTab .pieceContainer { padding: 0; }
#recentDocsTab .wrapper { margin-top: 0; }
#recentDocsTab .content > ul.tab1 { list-style: none; background-color: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); overflow: hidden; padding-left: 0 !important; margin: 0; }
#recentDocsTab .content > ul.tab1 li { border-bottom: 1px solid #f0f0f0; transition: background-color 0.3s ease; }
#recentDocsTab .content > ul.tab1 li:last-child { border-bottom: none; }
#recentDocsTab .content > ul.tab1 li:hover { background-color: #fcfaff; }

/* JSでのDOM操作後の構造に合わせたスタイル */
#recentDocsTab .content > ul.tab1 li a {
    display: flex;
    flex-direction: column; /* モバイルデフォルト: 縦並び */
    align-items: flex-start;
    gap: 5px;
    padding: 15px 20px;
    width: 100%;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    line-height: 1.5;
}
#recentDocsTab .content > ul.tab1 li a:hover {
    opacity: 1;
}
#recentDocsTab .content > ul.tab1 li a span {
     font-size: 1rem; /* タイトルテキストのフォントサイズ */
}
#recentDocsTab .content > ul.tab1 li .publish_date {
    font-size: 0.9rem;
    color: #fff;
    background-color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    white-space: nowrap;
}

#recentDocsTab .links .more {
    margin-top: 30px;
    text-align: center; /* ボタンを中央に配置 */
}
#recentDocsTab .links .more a {
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--secondary-color);
    color: #fff;
    font-weight: 700;
    border-radius: 5px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
#recentDocsTab .links .more a:hover {
    color: #fff;
    opacity: 0.8;
}

/* --- 関連ブログ (relationBanner) --- */
#relationBanner .pieceContainer, #relationBanner .pieceBody { padding: 0; }
#relationBanner .ad_banner { list-style: none; padding: 0; margin: 0; }
#relationBanner .ad_banner a { display: block; margin-bottom: 15px; border-radius: 8px; overflow: hidden; transition: transform 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
#relationBanner .ad_banner a:hover { transform: translateY(-3px); opacity: 1; }
#relationBanner .ad_banner li:last-child a { margin-bottom: 0; }

/* --- 関連リンク (linkList) --- */
#linkList.piece { background-color: #f7f5f9; padding: 20px; border-radius: 8px; margin-bottom: 30px; border: 1px solid #e0d8e6; }
#linkList .pieceHeader { padding: 0; margin: 0; }
#linkList .pieceHeader h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; padding: 0; border: none; background: none; color: var(--text-color); }
#linkList .pieceBody { padding: 0; }
#linkList .pieceBody ul { list-style: none; padding: 0; margin: 0; }
#linkList .pieceBody li { border-bottom: 1px solid #e0d8e6; }
#linkList .pieceBody li:last-child { border-bottom: none; }
#linkList .pieceBody a { display: block; padding: 12px 0; font-weight: 700; color: var(--primary-color); }
#linkList .pieceBody a:hover { color: var(--accent-color); opacity: 1; }

/* デスクトップ表示用のメディアクエリ (769px以上) */
@media (min-width: 769px) {
    /* 新着情報の横並びスタイル */
    #recentDocsTab .content > ul.tab1 li a {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

    /* 公式ブログ最新記事の横並びスタイル */
.blog-feed-section .news-text-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.blog-feed-section .news-date {
    margin-bottom: 0; /* 横並びではマージンをなくす */
}


/*フッターの電話番号リンクの色を白に固定 */
.footer-address a[href^="tel"], 
.footer-address a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.logo a:hover {
    opacity: 1 !important;
    background-color: transparent !important;
}
}
/* 1. 最初は透明で、少し下に下げておく */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.0s ease-out, transform 1.0s ease-out;
    will-change: opacity, transform; /* ブラウザのアニメーション最適化 */
}

/* 2. このクラスがついたら元に戻る */
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* アニメーションも少し最適化する */
@keyframes heroZoomOut {
    0% {
        /* scale だけでなく translateZ(0) を混ぜて GPU レイヤーを固定する */
        transform: scale(1.1) translateZ(0); 
    }
    100% {
        /* 1.0 ではなく 1.01 など微細に残すと、アニメーション終了時の「ガタッ」という戻りを防げる */
        transform: scale(1.001) translateZ(0);
    }
}




.hero-title {
    font-family: 'Shippori Mincho', serif;
    filter: blur(10px); /* 最初はぼかす */
    opacity: 0;
    letter-spacing: -0.2em; /* 最初は文字を詰めておく */
    animation: focusIn 2.5s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeInOnly 2s ease 2s forwards;
}

@keyframes focusIn {
    0% {
        filter: blur(10px);
        opacity: 0;
        letter-spacing: -0.2em;
        transform: scale(0.95);
    }
    100% {
        filter: blur(0);
        opacity: 1;
        letter-spacing: 0.1em;
        transform: scale(1);
    }
}

@keyframes fadeInOnly {
    to { opacity: 1; }
}

