/*
Theme Name:   兵庫労働局 就職支援セミナー
Theme URI:    https://hyogo-job.mhlw.go.jp/
Description:  兵庫労働局就職支援セミナー専用テーマ。青系・レスポンシブ・アクセシビリティ対応。
Author:       兵庫労働局
Version:      1.0.0
License:      GNU General Public License v2 or later
Text Domain:  hyogo-seminar-theme
*/

/* ==========================================
   CSS カスタムプロパティ
   ========================================== */
:root {
    --color-primary:      #0066CC;
    --color-primary-dark: #004999;
    --color-primary-light:#E8F1FA;
    --color-accent:       #F0A500;
    --color-white:        #FFFFFF;
    --color-bg:           #F5F7FA;
    --color-text:         #1A1A2E;
    --color-text-muted:   #6B7280;
    --color-border:       #D1D9E0;
    --color-header-bg:    #003D7A;
    --color-footer-bg:    #002856;
    --font-main:          "游ゴシック", "Yu Gothic", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    --radius:             8px;
    --shadow:             0 2px 8px rgba(0,0,0,.12);
    --container:          1140px;
    --header-height:      64px;
}

/* ==========================================
   リセット & ベース
   ========================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
    margin: 0;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: underline;
}
a:hover { color: var(--color-primary-dark); }

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

h1, h2, h3, h4, h5, h6 {
    line-height: 1.4;
    font-weight: 700;
    margin-top: 0;
}

p { margin-top: 0; }
.flex {
    display: flex;
}
ul {
    list-style: none;
}
.sp {
    display: none;
}
/* ==========================================
   レイアウト
   ========================================== */
.site-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.site-content {
    flex: 1;
    padding: 40px 0 60px;
}
.alignright {
    float: right;
    margin-bottom: 30px;
    margin-left: 30px;

}
.howtoonline article figure {
    clear: both;
}
.howtoonline article figure img {
    max-width: 450px;
}
.howtoonline article ul.download li {
    list-style: none;
}
.howtoonline article ul.download li a  {
    text-decoration: none;
    display: block;
    background-color: #366CAC;
    padding: 10px;
    text-align: center;
    width: 80%;
    border-radius: 10px;
    color: #fff;
    margin: 20px auto;
}
div.howto {
    border: solid 1px #f00;
    margin: 10px;
    padding: 10px;
    border-radius: 10px;
    width: 50%;
}
div.howto em {
    color: #f00;
    font-style: normal;
}


.venue .venues {
    border: solid 1px #ccc;
    margin: 20px 0;
    padding: 20px;
    justify-content: space-between;
}
.home .page-hero {
    padding: 0;
}
.home .page-hero .container {
    padding: 0;
}
.home .summary strong {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 10px;
    color: var(--color-primary-dark);
}
.qanda {
    margin: 30px 0 10px;
}
.qanda dl dd {
    margin-left: 0;
}
/* ==========================================
   ヘッダー
   ========================================== */
.site-header {
    background: var(--color-header-bg);
    color: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-white);
}
.site-branding:hover { color: #ccdfff; text-decoration: none; }

.site-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}
.site-subtitle {
    font-size: 11px;
    color: #AAC8F0;
    display: block;
}

/* ナビゲーション */
.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    align-items: center;
}
.site-nav a {
    display: block;
    padding: 8px 16px;
    color: var(--color-white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background .2s;
}
.site-nav a:hover,
.site-nav .current-menu-item > a {
    background: rgba(255,255,255,.15);
    color: #fff;
}

/* ログイン状態 */
.site-nav .hs-login-btn {
    background: var(--color-accent);
    color: #fff;
    border-radius: 20px;
    padding: 6px 18px;
    font-weight: 700;
}
.site-nav .hs-login-btn:hover { background: #d4900a; }

/* ハンバーガーメニュー（スマホ） */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-white);
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    margin: 5px 0;
    transition: .3s;
}

/* ==========================================
   パンくず
   ========================================== */
.breadcrumb {
    background: var(--color-primary-light);
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--color-border);
}
.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: var(--color-text-muted);
}
.breadcrumb a { color: var(--color-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--color-border); }

/* ==========================================
   ページタイトル
   ========================================== */
.page-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-header-bg) 100%);
    color: var(--color-white);
    padding: 36px 0;
    margin-bottom: 40px;
}
.page-hero h1 {
    margin: 0;
    font-size: 28px;
    color: var(--color-white);
}
.page-hero .page-description {
    margin: 8px 0 0;
    color: #AAC8F0;
    font-size: 15px;
}

/* ==========================================
   コンテンツエリア
   ========================================== */
.entry-content {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 36px 40px;
    box-shadow: var(--shadow);
}

.entry-content h2 {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary-light);
    padding-bottom: 8px;
    font-size: 22px;
}

.entry-content h3 {
    font-size: 18px;
    color: var(--color-primary-dark);
}

/* ==========================================
   フッター
   ========================================== */
.site-footer {
    background: var(--color-footer-bg);
    color: #B0C8E8;
    padding: 36px 0 20px;
    margin-top: auto;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}

.footer-title {
    color: var(--color-white);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}
.footer-desc {
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}

.footer-links h3 {
    color: var(--color-white);
    font-size: 14px;
    margin-bottom: 10px;
}
.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-links li { margin-bottom: 6px; }
.footer-links a {
    color: #B0C8E8;
    text-decoration: none;
    font-size: 13px;
    transition: color .2s;
}
.footer-links a:hover { color: var(--color-white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #7A9EC8;
    flex-wrap: wrap;
    gap: 8px;
}

/* ==========================================
   ウィジェット・サイドバー（将来用）
   ========================================== */
.widget-area { margin-top: 32px; }
.widget { margin-bottom: 24px; }
.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    border-left: 4px solid var(--color-primary);
    padding-left: 10px;
    margin-bottom: 12px;
}

/* ==========================================
   404 ページ
   ========================================== */
.error-404 { text-align: center; padding: 60px 20px; }
.error-404 .error-code { font-size: 80px; color: var(--color-primary); margin: 0; }
.error-404 h2 { color: var(--color-text-muted); margin-bottom: 24px; }

/* ==========================================
   アクセシビリティ
   ========================================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 8px 16px;
    z-index: 1000;
    transition: top .2s;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}
.skip-link:focus { top: 0; }

*:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* ==========================================
   レスポンシブ
   ========================================== */
@media (max-width: 1024px) {
    .container { padding: 0 16px; }
}

@media (max-width: 768px) {
    :root { --header-height: 56px; }

    .site-title { font-size: 15px; }

    .nav-toggle { display: block; }

    .site-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-header-bg);
        box-shadow: 0 4px 16px rgba(0,0,0,.3);
        display: none;
        z-index: 99;
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; gap: 0; padding: 8px; }
    .site-nav a { padding: 12px 16px; }

    .page-hero { padding: 24px 0; }
    .page-hero h1 { font-size: 22px; }

    .entry-content { padding: 24px 16px; }

    .footer-inner { grid-template-columns: 1fr; gap: 20px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    
}

@media screen and (max-width: 480px) {
    .site-content { padding: 24px 0 40px; }
    .flex { display: block;}
    iframe {
        width: 100%;
    }
    .howtoonline article figure img {
    max-width: 100%;
}
    ul.download {
        padding-left: 0;
    }
    .howtoonline article ul.download li a { 
    width: 90%;
    }
    div.howto {
        width: auto;
    }
    .sp {
        display: block;
    }
    .pc {
        display: none;
    }
}
