/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Yu Gothic', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 共通レイアウト */
.container {
    max-width: 950px;
    margin: 0 auto;
}

.overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #000;
    opacity: 0.82;
}

/* ヘッダー */
header {
    background-color: #000;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10;
}

.navbar {
    position: relative;
}

/* ハンバーガーメニューボタン */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 20px;
    gap: 5px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* バツボタンのアニメーション */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
    width: 760px;
    height: 80px;
    display: flex;
    list-style: none;
}

.nav-menu li {
    width: 100%;
    height: 100%;
    display: flex;
    text-align: center;
    border-right: 1px solid #fff;
}

.nav-menu li:last-child {
    border-right: none;
}

.nav-menu a {
    flex: 1;
    text-decoration: none;
    color: #fff;
    line-height: 80px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #ccc;
}

/* メインコンテンツ */
main {
    min-height: calc(100vh - 200px);
}

/* セクション共通スタイル */
section {
    margin-bottom: 3rem;
}

/* ボタンスタイル */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #2c5aa0;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #1e3f73;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #e67e22;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.cta-button:hover {
    background-color: #d35400;
}

/* グリッドレイアウト */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

/* カード */
.card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* フッター */
footer {
    background-color: #333;
    color: white;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #2c5aa0;
}

.copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #555;
    font-size: 0.9rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        backdrop-filter: blur(5px);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 80%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        margin: 15px 0;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.3s ease forwards;
    }
    
    .nav-menu.active li {
        animation-delay: calc(0.1s * var(--i));
    }
    
    .nav-menu li:nth-child(1) { --i: 1; }
    .nav-menu li:nth-child(2) { --i: 2; }
    .nav-menu li:nth-child(3) { --i: 3; }
    .nav-menu li:nth-child(4) { --i: 4; }
    .nav-menu li:nth-child(5) { --i: 5; }
    
    .nav-menu a {
        line-height: 60px;
        font-size: 18px;
        display: block;
        padding: 10px 20px;
        border-radius: 5px;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ページ固有のスタイル */
.page-hero {
    height: 50vh;
    position: relative;
}

.page-hero-content {
    position: absolute;
    top: 60%;
    left: 40px;
    transform: translateY(-60%);
}

.page-hero h1 {
    font-size: 40px;
    color: #fff;
}

.page-hero p {
    font-size: 18px;
    font-weight: 100;
    color: #fff;
}

/* テーブル */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c5aa0;
}

/* フォーム */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c5aa0;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}
