/* 動物専門学校・愛玩動物看護師ポータルサイト - メインスタイルシート */

/* Google Fonts 読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

/* リセットとベーススタイル */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333333;
    line-height: 1.7;
    background-color: #F7F5F2;
}

/* カラーパレット変数 */
:root {
    --primary-color: #5D9C59;      /* ナチュラルグリーン */
    --accent-color: #DF826C;       /* ウォームオレンジ */
    --base-color: #F7F5F2;         /* ソフトベージュ */
    --text-color: #333333;         /* ダークグレー */
    --border-color: #E0E0E0;       /* ライトグレー */
    --footer-bg: #EAE7E2;          /* ダークベージュ */
    --white: #FFFFFF;
    --accent-hover: #C96D58;
}

/* コンテナ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* タイポグラフィ */
h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* ヘッダー */
.header {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* モバイルメニュー */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* メインコンテンツ */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, rgba(93, 156, 89, 0.9), rgba(223, 130, 108, 0.9)), url('../images/professional_golden_retriever_sitting_dog_portrait.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: 10px;
}

.hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* ボタン */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* カード */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 1.5rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* セクション */
.section {
    margin: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* サイドバー */
.sidebar {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-color);
}

/* パンくずリスト */
.breadcrumb {
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: var(--primary-color);
}

/* ニュースリスト */
.news-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.news-date {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
    min-width: 100px;
    text-align: center;
}

/* FAQ */
.faq-item {
    background-color: var(--white);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-question {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px 8px 0 0;
    font-weight: 700;
    font-size: 1.1rem;
}

.faq-answer {
    padding: 1.5rem;
    line-height: 1.8;
}

/* テーブル */
.table-responsive {
    overflow-x: auto;
    margin: 1rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
}

/* フッター */
.footer {
    background-color: var(--footer-bg);
    color: var(--text-color);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #666;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    font-weight: 700;
    text-decoration: underline;
    margin: 0 1rem;
}

/* レスポンシブデザイン */
@media (max-width: 767px) {
    /* モバイル向けタイポグラフィ */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* モバイルヘッダー */
    .main-nav ul {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .main-nav.is-open ul {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav a {
        display: block;
        padding: 1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* モバイルレイアウト */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .news-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .news-date {
        min-width: auto;
        align-self: flex-start;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section {
        margin: 2rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* アクセシビリティ向上 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* フォーカス可視化 */
*:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* 印刷スタイル */
@media print {
    .header, .footer, .menu-toggle {
        display: none;
    }
    
    .main-content {
        padding: 0;
    }
    
    a {
        text-decoration: underline;
        color: inherit;
    }
    
    .hero {
        background: none;
        color: var(--text-color);
    }
}