/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #556B2F 0%, #6B8E23 100%);
    min-height: 100vh;
}

/* ヘッダー & ナビゲーション */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: row-reverse;
}

.logo {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #556B2F 0%, #6B8E23 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin: 0;
}

nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    gap: 0;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
}

nav.active {
    left: 0;
}

nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 1.5rem 2rem;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

nav a:hover {
    background: rgba(85, 107, 47, 0.1);
    color: #556B2F;
}

/* ハンバーガーメニューボタン */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

/* モバイルメニュー用のオーバーレイ */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* メインコンテンツ */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* ページタイトル */
.page-title {
    color: white;
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* カードセクション */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #556B2F 0%, #6B8E23 100%);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 0;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #556B2F 0%, #6B8E23 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

/* セクション */
section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

section h2 {
    color: #556B2F;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

section p {
    color: #666;
    line-height: 1.8;
}

/* ブログ記事 */
article {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #556B2F 0%, #6B8E23 100%);
}

article:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

article h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

article h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

article h2 a:hover {
    color: #556B2F;
}

article img {
    border-radius: 10px;
    margin: 1rem 0;
}

/* フォーム */
form {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

form div {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: #556B2F;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

button[type="submit"] {
    background: linear-gradient(135deg, #556B2F 0%, #6B8E23 100%);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(85, 107, 47, 0.4);
}

button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(85, 107, 47, 0.6);
}

/* フッター */
footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin-top: 4rem;
    padding: 2rem 0;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    color: #666;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease;
}
/* ============================================
   レスポンシブデザイン（モバイル対応）
   ============================================ */

/* タブレット（768px以下） */
@media (max-width: 768px) {
    main {
        padding: 2rem 1rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    form {
        padding: 1.5rem;
    }

    button[type="submit"] {
        width: 100%;
    }
}

/* スマホ（480px以下） */
@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    main {
        padding: 1.5rem 1rem;
    }

    .card,
    section,
    article,
    form {
        padding: 1.5rem;
    }

    .page-title {
        font-size: 1.8rem;
    }
}

/* 画像のレスポンシブ対応 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}
