/*
Theme Name: 一般社団法人日本防災操縦士連合会 オリジナルテーマ
Version: 1.2
*/

/* --- デザイン・トークン (CSS変数) --- */
:root {
    /* カラーパレット */
    --color-primary: #003366;    /* ディープブルー：信頼・誠実 */
    --color-secondary: #FF6600;  /* セーフティオレンジ：活動・防災 */
    --color-text-main: #333333;
    --color-text-sub: #666666;
    --color-bg-light: #F8F9FA;
    --color-white: #FFFFFF;
    
    /* フォント */
    --font-main: 'Noto Sans JP', sans-serif;
    
    /* スペース・レイアウト */
    --container-width: 1200px;
    --section-space: 80px;
    --transition-base: 0.3s ease;
}

/* --- リセット・基本スタイル --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* --- 共通コンポーネント --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-secondary);
}

.btn {
    display: inline-block;
    padding: 12px 40px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}

.btn:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
}

/* --- ヘッダー・フッター（基本構造） --- */
header {
    height: 80px;
    display: flex;
    align-items: center;
    background: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    display: flex;
    align-items: center;
}

.logo img,
.custom-logo-link img {
    height: 55px;
    width: auto;
    display: block;
    transition: var(--transition-base);
}

.custom-logo-link img:hover {
    opacity: 0.85;
}

.nav-menu ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-menu a {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-primary);
}

.nav-menu a:hover {
    color: var(--color-secondary);
}

footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0 30px;
}

/* --- フッターレイアウトの最適化 --- */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 40px;
}

.footer-info {
    max-width: 500px;
}

.footer-info h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
    color: var(--color-white);
    font-weight: 700;
}

.footer-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.footer-nav a {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition-base);
}

.footer-nav a:hover {
    color: var(--color-secondary);
}

.copyright {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* スマホ表示時のフッター調整 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
        margin-bottom: 30px;
        padding-bottom: 30px;
    }
    
    .footer-nav ul {
        flex-direction: column;
        gap: 15px;
    }
}


/* --- トップページ：ヒーローセクション --- */
.hero {
    height: 80vh;
    min-height: 500px;
    background: url('images/hero-bg.jpg') no-repeat center center / cover;
    position: relative;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.3); /* 青色のオーバーレイで文字を読みやすく */
}

.hero-inner {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-content {
    max-width: 850px;
    color: var(--color-white);
    text-align: center;
    margin: 0 auto;
}

.hero-caption {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-secondary);
    letter-spacing: 0.15em;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1.25;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.35);
}


/* --- 事業案内ナビゲーション --- */
.business-nav {
    padding: var(--section-space) 0;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.business-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #eee;
}

.business-card:hover {
    border-color: var(--color-secondary);
}

.card-image {
    width: 100%;
    height: 160px;
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    background: #eee;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.business-card:hover .card-image img {
    transform: scale(1.06);
}


.business-card h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.business-card p {
    font-size: 0.95rem;
    color: var(--color-text-sub);
}

/* --- お知らせセクション --- */
.home-news {
    padding: var(--section-space) 0;
}

.bg-light {
    background: var(--color-bg-light);
}

.news-list {
    max-width: 800px;
    margin: 0 auto 40px;
}

.news-item {
    border-bottom: 1px solid #ddd;
}

.news-item a {
    display: flex;
    padding: 20px 0;
    gap: 30px;
}

.news-date {
    font-weight: bold;
    color: var(--color-text-sub);
    min-width: 120px;
}

.news-title {
    font-size: 1.1rem;
}

.news-btn {
    text-align: center;
}

.btn-outline {
    display: inline-block;
    padding: 10px 40px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 4px;
    font-weight: bold;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* sp-menu-cta is only for mobile nav, hidden on desktop */
.sp-menu-cta {
    display: none;
}

/* menu-toggle burger button, hidden on desktop */
.menu-toggle {
    display: none;
    position: relative;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
}

.menu-toggle span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }

/* active state animations */
.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
    .hero {
        height: 60vh;
    }
    
    .hero-caption {
        font-size: 0.95rem;
        letter-spacing: 0.1em;
        margin-bottom: 10px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .header-cta {
        display: none; /* Hide large desktop CTA on mobile */
    }
    
    .menu-toggle {
        display: block; /* Show burger button */
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0, 51, 102, 0.98);
        z-index: 1050;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
        overflow-y: auto;
    }
    
    .nav-menu.is-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .nav-menu ul {
        flex-direction: column;
        padding: 50px 30px;
        align-items: center;
        gap: 25px;
    }
    
    .nav-menu a {
        color: var(--color-white);
        font-size: 1.2rem;
        display: block;
        padding: 5px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a:hover {
        color: var(--color-secondary);
    }
    
    .sp-menu-cta {
        display: block;
        width: 100%;
        margin-top: 15px;
    }
    
    .sp-menu-cta a.btn {
        display: block;
        width: 100%;
        background: var(--color-secondary);
        color: var(--color-white);
        padding: 14px 20px;
        border-radius: 4px;
        font-weight: bold;
        font-size: 1.1rem;
        text-align: center;
        box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    }
    
    /* Lock body scroll when mobile menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    .news-item a {
        flex-direction: column;
        gap: 5px;
    }
}

/* --- 下層ページ共通スタイル --- */
.page-hero {
    height: 35vh;
    min-height: 250px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #001a33 100%);
    display: flex;
    align-items: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(255, 102, 0, 0.15) 0%, transparent 50%);
}

.page-hero-inner {
    position: relative;
    z-index: 10;
    width: 100%;
}

.page-hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.breadcrumbs {
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumbs a {
    color: var(--color-white);
}

.breadcrumbs a:hover {
    color: var(--color-secondary);
}

.page-content {
    padding: var(--section-space) 0;
}

.subpage-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

@media (max-width: 992px) {
    .subpage-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* 下層ページ内の装飾用要素 */
.lead-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-primary);
    line-height: 1.8;
    margin-bottom: 40px;
    border-left: 4px solid var(--color-secondary);
    padding-left: 20px;
}

.feature-box {
    background: var(--color-bg-light);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 40px;
}

.feature-title {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.feature-list {
    margin: 20px 0;
}

.feature-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
}

.step-list {
    margin-top: 30px;
}

.step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.step-number {
    background: var(--color-secondary);
    color: var(--color-white);
    font-weight: bold;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* サイドバー */
.sidebar {
    background: var(--color-white);
}

.sidebar-widget {
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-secondary);
}

.widget-menu li {
    border-bottom: 1px solid #eee;
}

.widget-menu li:last-child {
    border-bottom: none;
}

.widget-menu a {
    display: block;
    padding: 12px 0;
    font-weight: bold;
    color: var(--color-text-main);
}

.widget-menu a:hover, .widget-menu .current-menu-item a {
    color: var(--color-secondary);
    padding-left: 5px;
}

/* --- 下層ページデザイン強化（プラン・料金・課題解決） --- */
.problem-card {
    background: #FFF3EB;
    border-left: 4px solid var(--color-secondary);
    padding: 25px;
    border-radius: 6px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.problem-card h4 {
    color: #C43C00;
    font-size: 1.15rem;
    margin-bottom: 12px;
    font-weight: bold;
}

.problem-card p {
    font-size: 0.95rem;
    color: var(--color-text-main);
    margin: 0;
    line-height: 1.7;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 6px;
    overflow: hidden;
}

.pricing-table th, .pricing-table td {
    padding: 18px 20px;
    border: 1px solid #eee;
    text-align: left;
}

.pricing-table th {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: bold;
    font-size: 1rem;
}

.pricing-table tr:nth-child(even) {
    background: var(--color-bg-light);
}

.price-tag {
    font-size: 1.65rem;
    font-weight: bold;
    color: var(--color-secondary);
}

.price-unit {
    font-size: 0.85rem;
    font-weight: normal;
    color: var(--color-text-sub);
}

.cta-box-page {
    background: linear-gradient(135deg, var(--color-primary) 0%, #001a33 100%);
    color: var(--color-white);
    padding: 50px 40px;
    border-radius: 8px;
    text-align: center;
    margin-top: 60px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.15);
}

.cta-box-page h3 {
    font-size: 1.85rem;
    margin-bottom: 15px;
    color: var(--color-white);
    font-weight: bold;
}

.cta-box-page p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.7;
}

.cta-box-page .btn {
    background: var(--color-secondary);
    font-size: 1.1rem;
    padding: 15px 50px;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.cta-box-page .btn:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.highlight-num {
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--color-secondary);
    line-height: 1;
}

.highlight-unit {
    font-size: 1rem;
    font-weight: normal;
    color: var(--color-text-sub);
}

.highlight-label {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 5px;
}

/* --- ロードマップ・タイムラインスタイル --- */
.timeline {
    position: relative;
    padding-left: 30px;
    margin: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: #eee;
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-secondary);
    border: 3px solid var(--color-white);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.2);
}

.timeline-phase {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--color-secondary);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 1.15rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: bold;
}

.timeline-content {
    font-size: 0.95rem;
    color: var(--color-text-main);
    line-height: 1.7;
}

/* ビジョンカード */
.vision-grid {
    display: flex;
    gap: 25px;
    margin: 35px 0;
}

.vision-card {
    flex: 1;
    background: var(--color-white);
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    text-align: center;
}

.vision-image {
    width: 100%;
    height: 180px;
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    background: #eee;
}

.vision-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.vision-card h4 {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.vision-card p {
    font-size: 0.95rem;
    color: var(--color-text-main);
    line-height: 1.7;
    margin: 0;
}

/* パートナーシップグリッド */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.partner-item {
    background: var(--color-bg-light);
    padding: 25px;
    border-radius: 6px;
    border-top: 3px solid var(--color-primary);
}

.partner-item h4 {
    color: var(--color-primary);
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.partner-item p {
    font-size: 0.9rem;
    color: var(--color-text-main);
    margin: 0;
    line-height: 1.6;
}

/* モバイルレスポンシブ調整 */
@media (max-width: 768px) {
    .vision-grid {
        flex-direction: column;
    }
    .partner-grid {
        grid-template-columns: 1fr;
    }
}

/* --- お問い合わせフォーム（Contact Form 7） --- */
.contact-form-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.08);
    border-top: 4px solid var(--color-primary);
    margin-top: 30px;
}

.contact-form-group {
    margin-bottom: 25px;
}

.contact-form-group label {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-form-group label .required-badge {
    background: #e74c3c;
    color: #ffffff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 10px;
    font-weight: normal;
}

.contact-form-group label .optional-badge {
    background: #95a5a6;
    color: #ffffff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 10px;
    font-weight: normal;
}

/* フォーム部品の基本スタイル */
.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container input[type="tel"],
.contact-form-container select,
.contact-form-container textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ccd1d9;
    border-radius: 4px;
    font-size: 1rem;
    color: var(--color-text-main);
    background: #fafbfc;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: var(--font-main);
}

.contact-form-container input[type="text"]:focus,
.contact-form-container input[type="email"]:focus,
.contact-form-container input[type="tel"]:focus,
.contact-form-container select:focus,
.contact-form-container textarea:focus {
    border-color: var(--color-primary);
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.08);
}

.contact-form-container textarea {
    height: 180px;
    resize: vertical;
}

/* プルダウン（セレクトボックス）のスタイル調整 */
.contact-form-container select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 40px;
}

/* 送信ボタンのプレミアムスタイル */
.contact-form-container input[type="submit"] {
    display: block;
    width: 280px;
    margin: 40px auto 0;
    padding: 16px 20px;
    background: var(--color-secondary);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.25);
    transition: all 0.3s ease;
    text-align: center;
}

.contact-form-container input[type="submit"]:hover {
    background: #e05500;
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.35);
    transform: translateY(-2px);
}

.contact-form-container input[type="submit"]:active {
    transform: translateY(0);
}

/* エラーメッセージ・バリデーションスタイル */
.wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 6px;
    display: block;
}

.wpcf7-response-output {
    margin: 30px 0 0 !important;
    padding: 15px 20px !important;
    border-radius: 4px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-align: center !important;
}

/* 送信成功時 */
.wpcf7 form.sent .wpcf7-response-output {
    border: 2px solid #2ecc71 !important;
    background: #eafaf1 !important;
    color: #27ae60 !important;
}

/* エラー・送信失敗時 */
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output {
    border: 2px solid #e74c3c !important;
    background: #fdedec !important;
    color: #c0392b !important;
}

/* スマホ用調整 */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 25px 20px;
    }
    .contact-form-container input[type="submit"] {
        width: 100%;
    }
}

/* --- 投稿詳細ページ (single.php) 用スタイル --- */
.page-hero-category {
    display: block;
    font-size: 0.9rem;
    color: var(--color-secondary);
    margin-bottom: 5px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.single .page-hero-title {
    font-size: 1.8rem;
    margin: 0;
    line-height: 1.4;
}

.single .breadcrumbs {
    margin-top: 15px;
}

.single-post-inner {
    max-width: 800px;
    margin: 40px auto 60px;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.05);
}

.post-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 20px;
}

.post-date {
    font-size: 0.95rem;
    color: var(--color-text-sub);
    font-weight: bold;
    display: block;
}

.post-content {
    line-height: 1.8;
    color: var(--color-text-main);
    font-size: 1.05rem;
}

.post-content p {
    margin-bottom: 1.5em;
}

.post-content h2 {
    font-size: 1.6rem;
    color: var(--color-primary);
    border-left: 5px solid var(--color-secondary);
    padding: 5px 0 5px 15px;
    margin: 40px 0 20px;
    font-weight: 700;
}

.post-content h3 {
    font-size: 1.3rem;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 8px;
    margin: 30px 0 15px;
    font-weight: 700;
}

.post-content h4 {
    font-size: 1.15rem;
    color: var(--color-text-main);
    margin: 25px 0 15px;
    font-weight: 700;
    position: relative;
    padding-left: 15px;
}

.post-content h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-secondary);
    border-radius: 50%;
}

.post-content ul, 
.post-content ol {
    margin: 0 0 20px 20px;
    padding: 0;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.post-content li {
    margin-bottom: 0.5em;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

.post-footer {
    margin-top: 50px;
    border-top: 1px solid #eeeeee;
    padding-top: 30px;
    text-align: center;
}

/* 投稿詳細ページスマホ対応 */
@media (max-width: 768px) {
    .single-post-inner {
        padding: 25px 20px;
        margin: 20px 15px 40px;
    }
    
    .post-content {
        font-size: 0.95rem;
    }
    
    .post-content h2 {
        font-size: 1.35rem;
        margin: 30px 0 15px;
    }
    
    .post-content h3 {
        font-size: 1.15rem;
        margin: 25px 0 12px;
    }
}





