/*
Theme Name: 日本びまん性肺疾患学会用WordPressテーマテンプレート
Theme URI: 
Author: Your Name
Author URI: 
Description: 日本びまん性肺疾患学会用WordPressテーマテンプレート
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wp-biman-template
Tags: custom-theme
*/

/* ========================================
   リセット & ベーススタイル
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* アンカーリンクのスクロール位置調整（ヘッダー分のオフセット） */
section[id],
[id] {
    scroll-margin-top: 80px;
}

/* ========================================
   ヘッダーセクション
   ======================================== */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: 120px;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 110px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #1a4a7a;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

.logo-image {
    width: 110px;
    height: 110px;
    object-fit: contain;
    flex-shrink: 0;
}

/* header-container内のロゴサイズを確実に従来通りに */
.header-container .logo-image {
    width: 110px;
    height: 110px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: bold;
    color: #1a4a7a;
    margin: 0;
    white-space: nowrap;
    line-height: 1.4;
}

.logo-en {
    font-size: 0.75rem;
    color: #666;
    margin: 0;
    white-space: nowrap;
    line-height: 1.3;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #1a4a7a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.search-toggle:hover {
    opacity: 0.7;
}

.menu-toggle {
    background: #27a3d4;
    border: none;
    cursor: pointer;
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* メインナビゲーション */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 24px 10px;
    color: #333;
    font-weight: 400;
    font-size: 1rem;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #1a4a7a;
    background-color: transparent;
    opacity: 1;
}

/* サブメニュー */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-top: 1px solid #1a4a7a;
}

.nav-item:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    border-bottom: 1px solid #e0e0e0;
}

.sub-menu li:last-child {
    border-bottom: none;
}

.sub-menu a {
    display: block;
    padding: 15px 20px;
    color: #333;
    font-size: 0.9rem;
}

.sub-menu a:hover {
    background-color: #f5f5f5;
    opacity: 1;
}

.has-submenu {
    position: relative;
}

.sub-sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    border-left: 1px solid #1a4a7a;
}

.has-submenu:hover .sub-sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* ========================================
   ヒーローセクション
   ======================================== */
.hero {
    position: relative;
    padding: 150px 0 150px;
    text-align: center;
    overflow: hidden;
    background-color: #fff;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 50px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 900px;
}

.hero-title-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.hero-title-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-title-ja {
    font-size: clamp(2.6rem, 5vw, 3.2rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.hero-title-en {
    font-size: clamp(0.9rem, 2.2vw, 1.2rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    line-height: 1.5;
    opacity: 0.9;
}

.hero-banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-banner-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.hero-banner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.hero-banner-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.hero-banner-card:hover::before {
    left: 100%;
}

.hero-banner-green {
    background-color: #2e8b57;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-banner-green:hover {
    background-color: #237a47;
}

.hero-banner-blue {
    background-color: #27a3d4;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-banner-blue:hover {
    background-color: #1e8bb8;
}

.hero-banner-purple {
    background-color: #8e44ad;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-banner-purple:hover {
    background-color: #7d3c98;
}

.hero-banner-icon {
    width: 35px;
    height: 35px;
    margin-right: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-banner-card:hover .hero-banner-icon {
    transform: scale(1.1) rotate(5deg);
}

.hero-banner-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    text-align: left;
    color: #fff;
    flex: 1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-banner-card:hover .hero-banner-title {
    transform: translateX(5px);
}

.hero-banner-card::after {
    content: '';
    width: 24px;
    height: 24px;
    margin-left: 15px;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 18l6-6-6-6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-banner-card:hover::after {
    transform: translateX(5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.85rem;
    z-index: 1;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   セクション共通スタイル
   ======================================== */
.section-title {
    font-size: 2rem;
    font-weight: normal;
    color: #1a4a7a;
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 15px;
    border-bottom: 1px solid #1a4a7a;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: #27a3d4;
}

/* ========================================
   新着情報セクション
   ======================================== */
.news-section {
    padding: 70px 0;
    background-color: #f2f6fa;
}

.news-list {
    margin-bottom: 40px;
}

.news-item {
    background-color: #fff;
    border-left: 4px solid #1a4a7a;
    padding: 25px 30px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.news-date {
    color: #666;
    font-weight: 500;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: #ffb400;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
}

.news-title a {
    color: #333;
}

.news-title a:hover {
    color: #1a4a7a;
    opacity: 1;
    text-decoration: underline;
}

.news-more {
    text-align: center;
}

.btn-more {
    display: inline-block;
    padding: 12px 40px;
    background-color: #ffb400;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-more::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-more:hover {
    background-color: #e6a200;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 74, 122, 0.4);
}

.btn-more:hover::before {
    width: 300px;
    height: 300px;
}

/* ========================================
   「日本びまん性肺疾患学会とは」説明セクション
   ======================================== */
.about-section {
    padding: 80px 0;
    background-color: #fff;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 25px;
    color: #555;
}

.about-link {
    text-align: center;
    margin-top: 40px;
}

/* ========================================
   理事長あいさつセクション
   ======================================== */
.greeting-section {
    padding: 80px 0;
    background-color: #f2f6fa;
}

.greeting-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.greeting-image {
    flex-shrink: 0;
    width: 300px;
}

.greeting-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 1px solid #1a4a7a;
}

.greeting-text {
    flex: 1;
}

.greeting-name {
    font-size: 1.5rem;
    font-weight: 500;
    color: #1a4a7a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #1a4a7a;
}

.greeting-message {
    font-size: 1rem;
    line-height: 2;
    color: #555;
}

.greeting-message p {
    margin-bottom: 20px;
}

/* ========================================
   バナーセクション
   ======================================== */
.banner-section {
    padding: 80px 0;
    background-color: #fff;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.banner-card {
    display: block;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #333;
}

.banner-card:hover {
    border-color: #1a4a7a;
    box-shadow: 0 12px 24px rgba(26, 74, 122, 0.25), 0 6px 12px rgba(26, 74, 122, 0.15);
    transform: translateY(-8px) scale(1.02);
    opacity: 1;
}

.banner-card:hover .banner-header-bg {
    transform: scale(1.1);
}

.banner-card:hover .banner-header-bg::after {
    background-color: rgba(26, 74, 122, 0.6);
}

.banner-header {
    position: relative;
    padding: 40px 30px;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.banner-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 0.6s ease;
}

.banner-header-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.4s ease;
}

.banner-card:nth-child(1) .banner-header-bg {
    background-image: url('assets/images/banner-about.jpg');
}

.banner-card:nth-child(2) .banner-header-bg {
    background-image: url('assets/images/banner-conference.jpg');
}

.banner-card:nth-child(3) .banner-header-bg {
    background-image: url('assets/images/banner-membership.jpg');
}

.banner-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.banner-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
    position: relative;
    z-index: 1;
}

.banner-body {
    padding: 30px;
}

.banner-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.banner-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #ffb400;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.banner-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.banner-card:hover .banner-btn {
    background-color: #e6a200;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(26, 74, 122, 0.4);
}

.banner-card:hover .banner-btn::before {
    width: 200px;
    height: 200px;
}

/* ========================================
   フッターセクション
   ======================================== */
.footer {
    background-color: #1a4a7a;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-nav {
    margin-bottom: 30px;
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-menu a {
    color: #fff;
    font-size: 0.9rem;
}

.footer-menu a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ========================================
   フェードインアニメーション
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   PAGETOPボタン
   ======================================== */
.pagetop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #1a4a7a;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pagetop.show {
    opacity: 1;
    visibility: visible;
}

.pagetop:hover {
    background-color: #2a5a8a;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 16px rgba(26, 74, 122, 0.4);
}

.pagetop svg {
    width: 20px;
    height: 20px;
}

.pagetop span {
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1;
}

/* ========================================
   レスポンシブ対応（中サイズ: 1200px以下）
   ======================================== */
@media screen and (max-width: 1200px) {
    .header {
        height: auto;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 5px 20px;
        min-height: auto;
    }

    .logo {
        width: 100%;
        margin-bottom: 0px;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .main-nav {
        flex: 1;
        width: 100%;
    }

    .nav-list {
        flex-wrap: wrap;
        gap: 0;
        margin-top: -20px;
    }

    .nav-link {
        padding: 15px 10px;
        font-size: 0.9rem;
    }
}

/* ========================================
   レスポンシブ対応（タブレット: 1024px以下）
   ======================================== */
@media screen and (max-width: 1024px) {
    .header-container {
        min-height: 65px;
        flex-direction: row;
        align-items: center;
        padding: 10px 20px;
    }

    .logo {
        width: auto;
        margin-bottom: 0;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .header-container .logo-image {
        width: 50px;
        height: auto;
    }

    .header-right {
        width: auto;
        justify-content: flex-end;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .main-nav.active {
        display: block;
        max-height: 1000px;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
    }

    .nav-link {
        padding: 18px 20px;
        width: 100%;
        font-size: 0.9rem;
    }

    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        background-color: #f5f5f5;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-item:hover .sub-menu,
    .sub-menu.active {
        max-height: 500px;
    }

    .sub-sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-left: none;
        background-color: #e8e8e8;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin-left: 20px;
    }

    .has-submenu:hover .sub-sub-menu,
    .sub-sub-menu.active {
        max-height: 300px;
    }

    .hero {
        padding: 100px 0 80px;
        min-height: 500px;
    }

    .hero-title {
        margin-bottom: 35px;
        gap: 10px;
    }

    .hero-title-content {
        gap: 20px;
    }

    .hero-title-logo {
        width: 120px;
        height: 120px;
    }

    .hero-title-ja {
        font-size: 2.6rem;
    }

    .hero-title-en {
        font-size: 1rem;
    }

    .hero-banners {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .hero-banner-card {
        padding: 20px 25px;
        min-height: 100px;
    }

    .hero-banner-icon {
        width: 40px;
        height: 40px;
        margin-right: 15px;
    }

    .hero-banner-title {
        font-size: 1.1rem;
    }

    .hero-banner-card::after {
        width: 20px;
        height: 20px;
        margin-left: 10px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .news-section {
        padding: 0;
    }

    .about-section,
    .greeting-section,
    .banner-section {
        padding: 60px 0;
    }

    .greeting-content {
        gap: 40px;
    }

    .greeting-image {
        width: 250px;
    }

}

/* ========================================
   レスポンシブ対応（小型タブレット/大型スマホ: 768px以下）
   ======================================== */
@media screen and (max-width: 768px) {
    .header-container {
        min-height: 60px;
        padding: 0 15px;
    }

    .logo h1 {
        font-size: 0.95rem;
    }

    .header-container .logo-image {
        width: 45px;
        height: auto;
    }

    .logo-link {
        gap: 10px;
    }

    .nav-link {
        padding: 20px 12px;
        font-size: 0.85rem;
    }

    .search-toggle {
        display: none;
    }

    .hero {
        padding: 80px 0 60px;
        min-height: 450px;
    }

    .hero-title {
        margin-bottom: 30px;
        gap: 10px;
    }

    .hero-title-content {
        flex-direction: column;
        gap: 20px;
    }

    .hero-title-logo {
        width: 100px;
        height: 100px;
    }

    .hero-title-ja {
        font-size: 2.2rem;
    }

    .hero-title-en {
        font-size: 0.95rem;
    }

    .hero-banners {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hero-banner-card {
        padding: 20px;
        min-height: 100px;
    }

    .hero-banner-icon {
        width: 36px;
        height: 36px;
        margin-right: 15px;
    }

    .hero-banner-title {
        font-size: 1rem;
    }

    .hero-banner-card::after {
        width: 18px;
        height: 18px;
        margin-left: 10px;
    }

    .scroll-indicator {
        bottom: 20px;
        font-size: 0.8rem;
    }

    .banner-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .banner-header {
        min-height: 160px;
        padding: 30px 20px;
    }

    .banner-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 15px;
    }

    .banner-title {
        font-size: 1.2rem;
    }

    .banner-body {
        padding: 25px;
    }

    .banner-description {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }

    .banner-btn {
        padding: 9px 22px;
        font-size: 0.85rem;
    }

    .pagetop {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .pagetop svg {
        width: 18px;
        height: 18px;
    }

    .pagetop span {
        font-size: 0.65rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 35px;
    }

    .news-section {
        padding: 0;
    }

    .about-section,
    .greeting-section,
    .banner-section {
        padding: 50px 0;
    }

    .news-item {
        padding: 20px 20px;
    }

    .news-title {
        font-size: 1rem;
    }

    .greeting-content {
        flex-direction: column;
        gap: 30px;
    }

    .greeting-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .greeting-name {
        font-size: 1.3rem;
    }

    .pagetop {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .pagetop svg {
        width: 18px;
        height: 18px;
    }

    .pagetop span {
        font-size: 0.65rem;
    }

    .footer {
        padding: 30px 0 15px;
    }

    .footer-menu {
        flex-direction: column;
        gap: 15px;
    }
}

/* ========================================
   レスポンシブ対応（スマートフォン: 480px以下）
   ======================================== */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header-container {
        padding: 0 15px;
    }

    .logo h1 {
        font-size: 0.85rem;
    }

    .header-container .logo-image {
        width: 35px;
        height: auto;
    }

    .logo-link {
        gap: 8px;
    }

    .nav-link {
        padding: 18px 10px;
        font-size: 0.8rem;
    }

    .hero {
        padding: 50px 0;
    }

    .hero-title {
        margin-bottom: 24px;
        gap: 8px;
    }

    .hero-title-content {
        flex-direction: column;
        gap: 15px;
    }

    .hero-title-logo {
        width: 80px;
        height: 80px;
    }

    .hero-title-ja {
        font-size: 1.8rem;
    }

    .hero-title-en {
        font-size: 0.85rem;
        letter-spacing: 0.1em;
    }

    .hero-banners {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-banner-card {
        padding: 18px 15px;
        min-height: 90px;
    }

    .hero-banner-icon {
        width: 32px;
        height: 32px;
        margin-right: 12px;
    }

    .hero-banner-title {
        font-size: 0.9rem;
    }

    .hero-banner-card::after {
        width: 16px;
        height: 16px;
        margin-left: 8px;
    }

    .scroll-indicator {
        bottom: 15px;
        font-size: 0.75rem;
    }

    .banner-header {
        min-height: 140px;
        padding: 25px 15px;
    }

    .banner-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
    }

    .banner-title {
        font-size: 1.1rem;
    }

    .banner-body {
        padding: 20px;
    }

    .banner-description {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .banner-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .pagetop {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }

    .pagetop svg {
        width: 16px;
        height: 16px;
    }

    .pagetop span {
        font-size: 0.6rem;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }

    .news-section {
        padding: 0;
    }

    .about-section,
    .greeting-section,
    .banner-section {
        padding: 40px 0;
    }

    .news-item {
        padding: 18px 15px;
        border-left-width: 3px;
    }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 10px;
    }

    .news-date {
        font-size: 0.85rem;
    }

    .news-category {
        font-size: 0.8rem;
        padding: 3px 10px;
    }

    .news-title {
        font-size: 0.95rem;
    }

    .about-text {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .btn-more {
        padding: 10px 30px;
        font-size: 0.9rem;
    }

    .greeting-name {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .greeting-message {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .footer {
        padding: 25px 0 15px;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }
}

/* ========================================
   内部ページスタイル
   ======================================== */
.page-header {
    background-color: #1a4a7a;
    color: #fff;
    padding: 60px 0 40px;
    margin-top: 0;
}

.page-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb-list,
.breadcrumb__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item,
.breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item a,
.breadcrumb__item a {
    color: rgba(255, 255, 255, 0.8);
    transition: opacity 0.3s ease;
}

.breadcrumb-item a:hover,
.breadcrumb__item a:hover {
    opacity: 1;
    color: #fff;
}

.breadcrumb-item::after,
.breadcrumb__item::after {
    content: '>';
    color: rgba(255, 255, 255, 0.6);
    margin-left: 8px;
}

.breadcrumb-item:last-child::after,
.breadcrumb__item:last-child::after {
    display: none;
}

.breadcrumb-item:last-child,
.breadcrumb__item:last-child {
    color: #fff;
    font-weight: 500;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.page-title-en {
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 10px;
    opacity: 0.9;
    letter-spacing: 0.1em;
}

.page-content {
    padding: 60px 0;
    background-color: #fff;
}

.page-content-section {
    margin-bottom: 50px;
}

.page-content-section:last-child {
    margin-bottom: 0;
}

.content-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a4a7a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #27a3d4;
    position: relative;
}

.content-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #27a3d4;
}

.content-text {
    font-size: 1rem;
    line-height: 2;
    color: #555;
    margin-bottom: 20px;
}

.content-text:last-child {
    margin-bottom: 0;
}

.content-list {
    margin: 20px 0;
    padding-left: 0;
}

.content-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.content-list li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: #1a4a7a;
    font-weight: bold;
}

.content-table,
.posts table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: #fff;
    border-top: 1px solid #1a4a7a;
}

.content-table th,
.content-table td,
.posts table th,
.posts table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.content-table th,
.posts table th {
    background-color: #f2f6fa;
    color: #1a4a7a;
    font-weight: 600;
    border-bottom: 1px solid #1a4a7a;
}

.content-table tr:hover,
.posts table tr:hover {
    background-color: #f9f9f9;
}

.content-table tr:last-child td,
.posts table tr:last-child td {
    border-bottom: none;
    border-bottom: 1px solid #1a4a7a;
}

.content-image {
    margin: 30px 0;
    text-align: center;
}

.content-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-image-caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.content-box {
    background-color: #f2f6fa;
    border-left: 4px solid #27a3d4;
    padding: 25px 30px;
    margin: 30px 0;
}

.content-box-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a4a7a;
    margin-bottom: 15px;
}

.content-box-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

/* レスポンシブ対応（内部ページ） */
@media screen and (max-width: 1024px) {
    .page-header {
        padding: 50px 0 35px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-title-en {
        font-size: 1rem;
    }

    .page-content {
        padding: 50px 0;
    }

    .content-title {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 768px) {
    .page-header {
        padding: 40px 0 30px;
    }

    .breadcrumb {
        font-size: 0.85rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .page-title-en {
        font-size: 0.95rem;
    }

    .page-content {
        padding: 40px 0;
    }

    .content-title {
        font-size: 1.4rem;
    }

    .content-table,
    .posts table {
        font-size: 0.9rem;
    }

    .content-table th,
    .content-table td,
    .posts table th,
    .posts table td {
        padding: 12px 15px;
    }
}

@media screen and (max-width: 480px) {
    .page-header {
        padding: 30px 0 25px;
    }

    .breadcrumb {
        font-size: 0.8rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-title-en {
        font-size: 0.85rem;
    }

    .page-content {
        padding: 30px 0;
    }

    .content-title {
        font-size: 1.2rem;
    }

    .content-text {
        font-size: 0.95rem;
    }

    .content-table,
    .posts table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
    }

    .content-table th,
    .content-table td,
    .posts table th,
    .posts table td {
        padding: 10px 12px;
    }
}

/* ========================================
   お知らせ一覧ページスタイル
   ======================================== */
.news-filter {
    margin-bottom: 40px;
    padding: 20px 0;
}

.news-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.news-filter-item {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fff;
    border: 2px solid #1a4a7a;
    color: #1a4a7a;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.news-filter-item:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 74, 122, 0.3);
}

/* data属性がない場合のみ固定のホバースタイルを適用 */
.news-filter-item:not([data-term-color]):hover {
    background-color: #1a4a7a;
    color: #fff;
}

/* data属性がある場合はJavaScriptで色を設定するため、CSSの固定色は適用しない */
.news-filter-item[data-term-color]:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.news-filter-item.active {
    background-color: #1a4a7a;
    color: #fff;
}

.news-excerpt {
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
}

.news-pagination {
    margin-top: 50px;
    text-align: center;
}

.news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-pagination .page-numbers li {
    display: inline-block;
}

.news-pagination .page-numbers a,
.news-pagination .page-numbers span {
    display: inline-block;
    padding: 8px 15px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.news-pagination .page-numbers a:hover {
    background-color: #1a4a7a;
    color: #fff;
    border-color: #1a4a7a;
}

.news-pagination .page-numbers .current {
    background-color: #1a4a7a;
    color: #fff;
    border-color: #1a4a7a;
}

.news-pagination .page-numbers .prev,
.news-pagination .page-numbers .next {
    padding: 8px 20px;
}

.news-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1rem;
}

/* ========================================
   お知らせ詳細ページスタイル
   ======================================== */
.news-single {
    max-width: 900px;
    margin: 0 auto;
}

.news-single-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.news-single-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.news-single-date {
    color: #666;
    font-weight: 500;
}

.news-single-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: #ffb400;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
}

.news-single-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1a4a7a;
    line-height: 1.5;
    margin: 0;
}

.news-single-content {
    font-size: 1rem;
    line-height: 2;
    color: #555;
    margin-bottom: 50px;
}

.news-single-content p {
    margin-bottom: 20px;
}

.news-single-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a4a7a;
    margin: 40px 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #27a3d4;
}

.news-single-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a4a7a;
    margin: 30px 0 15px;
}

.news-single-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a4a7a;
    margin: 25px 0 12px;
}

.news-single-content ul,
.news-single-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.news-single-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.news-single-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: #fff;
}

.news-single-content table th,
.news-single-content table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.news-single-content table th {
    background-color: #f2f6fa;
    color: #1a4a7a;
    font-weight: 600;
    border-bottom: 2px solid #1a4a7a;
}

.news-single-content table tr:hover {
    background-color: #f9f9f9;
}

.news-single-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.news-single-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.news-nav-prev,
.news-nav-next {
    padding: 20px;
    background-color: #f2f6fa;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.news-nav-prev:hover,
.news-nav-next:hover {
    background-color: #e8e8e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.news-nav-link {
    display: block;
    text-decoration: none;
    color: #333;
}

.news-nav-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.news-nav-title {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #1a4a7a;
    line-height: 1.5;
}

.news-nav-link:hover .news-nav-title {
    text-decoration: underline;
}

.news-nav-next {
    text-align: right;
}

.news-single-back {
    text-align: center;
}

/* レスポンシブ対応（お知らせページ） */
@media screen and (max-width: 768px) {
    .news-filter-list {
        gap: 8px;
    }

    .news-filter-item {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .news-single-title {
        font-size: 1.6rem;
    }

    .news-single-content h2 {
        font-size: 1.5rem;
    }

    .news-single-content h3 {
        font-size: 1.3rem;
    }

    .news-single-nav {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .news-nav-next {
        text-align: left;
    }
}

@media screen and (max-width: 480px) {
    .news-filter-item {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .news-single-title {
        font-size: 1.4rem;
    }

    .news-single-content {
        font-size: 0.95rem;
    }

    .news-single-content h2 {
        font-size: 1.3rem;
    }

    .news-single-content h3 {
        font-size: 1.2rem;
    }

    .news-single-content ul,
    .news-single-content ol {
        padding-left: 20px;
    }
}

/* ========================================
   見出しクラス（固定ページ・投稿ページ用）
   ======================================== */
.h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1a4a7a;
    margin: 1em 0;
    padding-bottom: 20px;
    border-bottom: 3px solid #1a4a7a;
    position: relative;
    line-height: 1.3;
}

.h1::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #27a3d4;
}

.h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a4a7a;
    margin: 1em 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #27a3d4;
    position: relative;
}

.h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #27a3d4;
}

.h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a4a7a;
    margin: 1em 0;
    padding-left: 15px;
    border-left: 4px solid #27a3d4;
    line-height: 1.6;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* レスポンシブ対応（見出しクラス） */
@media screen and (max-width: 1024px) {
    .h1 {
        font-size: 2rem;
    }

    .h2 {
        font-size: 1.6rem;
    }

    .h3 {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 768px) {
    .h1 {
        font-size: 1.8rem;
    }

    .h2 {
        font-size: 1.4rem;
    }

    .h3 {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .h1 {
        font-size: 1.5rem;
    }

    .h2 {
        font-size: 1.2rem;
    }

    .h3 {
        font-size: 0.95rem;
    }
}

/*pagelist*/
ul.page_navi{
	text-align: center;
}
ul.page_navi li{
	margin: 10px 0 15px 0;
	background: none;
	padding: 0;
	list-style-type: none;
	display: inline-block;
	font-size: 18px;
	font-weight: 600;
}

ul.page_navi li span{
	background: #666565;
	border: 2px solid #666565;
	width: 2.5em;
	height: 2.5em;
	border-radius: 50%;
	color: #fff;
	text-align: center;
	line-height: 2.5;
	margin: 0 5px;
	display: block;
		-webkit-transition: all 0.9s ease-in-out;
		-moz-transition: all 0.9s ease-in-out;
		-o-transition: all 0.9s ease-in-out;
		transition: all 0.9s ease-in-out;
}
ul.page_navi li a{
	background: #c9c9ca;
	border: 2px solid #c9c9ca;
	width: 2.5em;
	height: 2.5em;
	border-radius: 50%;
	color: #fff;
	text-align: center;
	line-height: 2.5;
	margin: 0 5px;
	display: block;
	text-decoration: none;
		-webkit-transition: all 0.9s ease-in-out;
		-moz-transition: all 0.9s ease-in-out;
		-o-transition: all 0.9s ease-in-out;
		transition: all 0.9s ease-in-out;
}

ul.page_navi li:first-child a{
	border: 2px solid #666565;
	background: #FFF url(../img/pagenav_prev.svg) no-repeat center center;
	-moz-background-size: 20px auto;
	background-size: 20px auto;
	display: block;
	text-indent: -9999px;
}
ul.page_navi li:last-child a{
	border: 2px solid #666565;
	background: #FFF url(../img/pagenav_next.svg) no-repeat center center;
	-moz-background-size: 20px auto;
	background-size: 20px auto;
	display: block;
	text-indent: -9999px;
}

ul.page_navi li:hover span,
ul.page_navi li:hover a{
	background: #666565;
}
ul.page_navi li:first-child:hover a{
	border: 2px solid #666565;
	background: #FFF url(../img/common/pagenav_prev.svg) no-repeat center center;
	-moz-background-size: 20px auto;
	background-size: 20px auto;
}
ul.page_navi li:last-child:hover a{
	border: 2px solid #666565;
	background: #FFF url(../img/common/pagenav_next.svg) no-repeat center center;
	-moz-background-size: 20px auto;
	background-size: 20px auto;
}

/*
************************************************************************************/
.posts p{
    margin-bottom: 1em;
}
.posts p:last-child{
    margin-bottom: 0;
}

/*04.form
************************************************************************************/
.cms-posts table.contact_table{
	width: 100%;
	border-collapse:collapse;
	border: 0;
	border-top: 1px solid #000;
	margin: 30px auto 50px;
}
.cms-posts table.contact_table th{
	font-weight: bold;
	padding: 1em;
	border: 0;
	background-color: transparent;
	border-bottom: 1px solid #000;
	text-align: left;
	width: 10em;
	background: none;
	color: #000;
    vertical-align: middle;
}
.cms-posts table.contact_table th p{
    padding: 0 !important;
    margin: 0 !important;
}
.cms-posts table.contact_table td{
	padding: 1em;
	border: 0;
	border-bottom: 1px solid #000;
	position: relative;
	padding-left: 70px;
	background: none;
}
.cms-posts table.contact_table td.required:before{
	content: "必須";
	border-radius: 3px;
	padding: 3px 0;
	background: #FF9100;
	font-size: 0.713em;
	color: var(--color-textLight);
	margin-right: 1.5em;
	width: 60px;
	text-align: center;
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
}

@media screen and (max-width: 768px){
	table.smartphone{
		display: block;
		width: 100%;
	}
	table.smartphone thead{
		display: none;
	}
	table.smartphone tbody{
		display: block;
		width: 100%;
	}
	table.smartphone tr{
		display: block;
		margin-bottom: 1.5em;
		width: 100%;
	}
	table.smartphone th,
	table.smartphone td{
		display: list-item;
		width: 100%;
		padding: 5px 10px !important;
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		-o-box-sizing: border-box;
		-ms-box-sizing: border-box;
		box-sizing: border-box;
		display: block;
		border: 0;
	}
	table.smartphone th{
		list-style-type: none;
		display: block;
		background: #ededed;
		color: var(--color-textNormal);
	}

	table.smartphone td{
		margin-left: 0;
		list-style-type: none;
		border: 0;
		padding-left: 25px;
	}

	.cms-posts table.contact_table td{
		position: static;
		padding-left: 25px;
	}
	.cms-posts table.contact_table td.required:before{
		position: static;
		display: block;
		transform: none;
		margin-bottom: 3px;
	}

	.form input[type=text],
	.form input[type=tel],
	.form input[type=email],
	.form textarea{
		background: #FFF;
		border: 1px solid #ededed;
	}
}
/*form
************************************************************************************/
.error_msg{
	color:#F00;
}
.privacyBox{
	padding: 2em 0;
	text-align: center;
}
.wpcf7-list-item{
	margin: 0 1em 0 0;
}

/*form
----------------------------------------------------------------------*/
.form td li{
	display: inline-block;
	padding: 0 15px 0 0;
}

.form input{
	margin: 2px;
	padding: .5em;
	background: #f6f6f6;
	border: 1px solid #666;
	outline: none;
}
.form input:focus,
.form select:focus,
.form textarea:focus{
	outline: none;
	box-shadow: 0px 0px 15px -5px #7a7a7a;
	background: #f1f1f1;
}


.form input[type=text],
.form input[type=tel],
.form input[type=email],
.form input[type=url]{
	width: 450px;
}

.form input.m[type=text],
.form input.m[type=tel]{
	width: 200px;
}

.form input.s[type=text],
.form input.s[type=tel]{
	width: 100px;
}

.form input.zip{
	width: 100px;
}

.form label{
	padding-right: 1em;
}

.form textarea{
	width: 500px;
	height: 150px;
	padding: 15px;
	background: #f6f6f6;
	border: 1px solid #666;
}

.form select{
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding: .5em 40px .5em .5em;
	background: url("../img/common/ar_dwn.svg") no-repeat right 15px center #f6f6f6;
	-moz-background-size: 10px auto;
	background-size: 10px auto;
	border: 0;
	margin: 5px 0;
}

.btnSend{
	text-align: center;
	padding: 20px 0;
}

.btnSend input[type=submit]{
	padding: 15px 3em;
	background: #1157c0;
	color: #FFF;
	border: 1px;
	cursor: pointer;
	margin: 0 3px;
	border-radius: 3px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	font-size: 16px;
}

.screen-reader-response,
.wpcf7-not-valid-tip,
.wpcf7-response-output{
	color: #F00;
	display: block;
	padding: 0.3em 0;
}


@media screen and (max-width: 979px) {
/*tablet*/
}

@media screen and (max-width: 768px){
.form input{
	padding: 15px 1%;
}

.form input[type=text],
.form input[type=tel],
.form input[type=email],
.form input[type=url]{
	width: 100%;
	font-size: 15px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-o-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
}

.form input.m[type=text],
.form input.m[type=tel]{
	width: 50%;
	font-size: 15px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-o-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
}

.form input.s[type=text],
.form input.s[type=tel]{
	width: 30%;
	font-size: 15px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-o-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
}


.form textarea{
	width: 100%;
	padding: 5px 1%;
	height: 150px;
	font-size: 15px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-o-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
}

.form select{
	padding: 15px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding: 20px 40px 20px 15px;
	background: url("../../common/img/common/ar_black_dwn.svg") no-repeat right 15px center #e6f2f7;
	-moz-background-size: 10px auto;
	background-size: 10px auto;
	border: 0;
}
.btnSend input[type=submit]{
	padding: 15px 0;
	width: 95%;
	background: #1157c0;
	color: #FFF;
	border: 1px;
	cursor: pointer;
	margin: 3px;
	border-radius: 3px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-appearance: none;
	border-radius: 0;
	font-size: 16px;
}
}



/*06.error-page
************************************************************************************/
#error-page{
	width: 100%;
	max-width: 800px;
	margin: auto;
}
#error-page .cover-img{
	text-align: center;
}
#error-page .cover-img img{
	max-width: 100%;
	height: auto;
}
#error-page .title{
	text-align: center;
	font-size: 19px;
	font-weight: bold;
	margin: 1.5em 0;
	color: #5F5F5F;
}
#error-page .error-message{
	text-align: center;
	color: #5F5F5F;
	margin-bottom: 3em;
}

#error-page .btn{
	text-align: center;
    background-color: transparent;
}
#error-page .btn a{
	display: inline-block;
	border-radius: 3px;
	background: #4D4D4D;
	padding: .8em 2em !important;
	color: #FFF;
	text-decoration: none;
}

/* ========================================
   ver2.htmlスタイル - ヘッダーセクション
   ======================================== */

/* ヘッダーセクション + ヒーローセクション */
.header-hero-section {
	position: relative;
	background-color: #fff;
	min-height: 450px;
	overflow: visible;
	display: flex;
	flex-direction: column;
	background: url("assets/images/header_bg_leftup.png") no-repeat left top, url("assets/images/header_bg_rightbtm.png") no-repeat right bottom;
	background-size: auto;
}

/* ヘッダーコンテンツ */
.header-content {
	position: relative;
	z-index: 2;
	max-width: 1200px;
	margin: 0 auto;
	padding: 70px 20px 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 40px;
	flex-wrap: wrap;
	flex: 1;
}

/* ロゴエリア */
.logo-area {
	display: flex;
	align-items: center;
	gap: 30px;
	flex-shrink: 0;
}

.logo-image {
	width: 250px;
	height: 250px;
	object-fit: contain;
	flex-shrink: 0;
}

.logo-text-area {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.logo-title-ja {
	font-size: 2.2rem;
	font-weight: bold;
	color: #000;
	line-height: 1.4;
	letter-spacing: 0.05em;
	white-space: nowrap;
}

.logo-title-en {
	font-size: 1.2rem;
	color: #666;
	line-height: 1.5;
	margin-top: 4px;
	font-weight: 400;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {
	.header-hero-section {
		min-height: 400px;
	}
	
	.header-content {
		padding: 60px 20px 40px;
		gap: 30px;
	}
	
	.logo-image {
		width: 140px;
		height: 140px;
	}
	
	.logo-title-ja {
		font-size: 1.5rem;
	}
	
	.logo-title-en {
		font-size: 0.85rem;
	}
}

@media screen and (max-width: 768px) {
	.header-hero-section {
		min-height: 350px;
		justify-content: center;
	}
	
	.header-content {
		flex-direction: column;
		padding: 20px;
		gap: 25px;
		text-align: center;
		justify-content: center;
		align-items: center;
		flex: 1;
		min-height: 0;
	}
	
	.logo-area {
		flex-direction: column;
		gap: 20px;
		justify-content: center;
		align-items: center;
		margin: auto 0;
	}
	
	.logo-image {
		width: 120px;
		height: 120px;
	}
	
	.logo-text-area {
		align-items: center;
	}
	
	.logo-title-ja {
		font-size: 1.3rem;
		text-align: center;
		white-space: normal;
	}
	
	.logo-title-en {
		font-size: 0.8rem;
		text-align: center;
	}
}

@media screen and (max-width: 480px) {
	.logo-title-ja {
		font-size: 1.2rem;
	}
	
	.logo-title-en {
		font-size: 0.75rem;
	}
}

/* ========================================
   ver2.htmlから移植したヒーローナビゲーション
   ======================================== */
.hero-nav-section {
	position: relative;
	z-index: 10;
	background-color: #1a4a7a;
	padding: 0;
	margin-top: 0;
	width: 100%;
	overflow: visible;
}

.hero-nav {
	position: relative;
	overflow: visible;
}

.hero-nav-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.hero-nav-list {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0;
	padding: 0;
	list-style: none;
	margin: 0;
}

.hero-nav-item {
	flex: 1;
	min-width: 0;
	text-align: center;
	position: relative;
}

.hero-nav-link {
	display: block;
	padding: 22px 15px;
	color: #fff;
	font-size: 0.95rem;
	font-weight: 500;
	transition: background-color 0.3s ease;
	white-space: nowrap;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.hero-nav-link:hover {
	background-color: rgba(255, 255, 255, 0.2);
	opacity: 1;
}

/* サブメニュー */
.hero-nav-item.has-submenu {
	position: relative;
}

.hero-nav-section .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background-color: #fff;
	min-width: 220px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	border-top: 2px solid #1a4a7a;
	z-index: 1000;
	list-style: none;
	padding: 0;
	margin: 0;
	pointer-events: none;
}

.hero-nav-item:hover .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.hero-nav-section .sub-menu li {
	border-bottom: 1px solid #e0e0e0;
}

.hero-nav-section .sub-menu li:last-child {
	border-bottom: none;
}

.hero-nav-section .sub-menu a {
	display: block;
	padding: 15px 20px;
	color: #333;
	font-size: 0.9rem;
	transition: background-color 0.3s ease;
	text-decoration: none;
}

.hero-nav-section .sub-menu a:hover {
	background-color: #f5f5f5;
	opacity: 1;
	color: #1a4a7a;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {
	.hero-nav-item {
		min-width: 0;
	}
	
	.hero-nav-link {
		padding: 20px 12px;
		font-size: 0.9rem;
	}
}

@media screen and (max-width: 768px) {
	.hero-nav-list {
		flex-direction: column;
	}
	
	.hero-nav-item {
		width: 100%;
		min-width: 100%;
		border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	}
	
	.hero-nav-item:last-child {
		border-bottom: none;
	}
	
	.hero-nav-link {
		padding: 16px 15px;
		font-size: 0.9rem;
	}
	
	/* モバイルでのサブメニュー */
	.hero-nav-section .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border-top: none;
		background-color: rgba(255, 255, 255, 0.1);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
	}
	
	.hero-nav-item:hover .sub-menu,
	.hero-nav-item.has-submenu.active .sub-menu {
		max-height: 200px;
	}
	
	.hero-nav-section .sub-menu li {
		border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	}
	
	.hero-nav-section .sub-menu a {
		color: #fff;
		padding: 12px 20px 12px 40px;
	}
	
	.hero-nav-section .sub-menu a:hover {
		background-color: rgba(255, 255, 255, 0.2);
		color: #fff;
	}
}

@media screen and (max-width: 480px) {
	.hero-nav-link {
		font-size: 0.8rem;
		padding: 14px 10px;
	}
}
table.contact_table td.required{
	position: relative;
	padding-left: 70px;
}
table.contact_table td.required:before{
	content: "必須";
	border-radius: 3px;
	padding: 3px 0;
	background: #FF9100;
	font-size: 0.713em;
	color: #FFF;
	margin-right: 1.5em;
	width: 60px;
	text-align: center;
	position: absolute;
	left: 3px;
	top: 50%;
	transform: translateY(-50%);
}

