/* ===================================
   合同会社ハイカ - 共通スタイル
   カラースキーム：白ベース + 黄色アクセント
   レスポンシブ対応
   =================================== */

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

/* CSS変数定義 */
:root {
    /* カラースキーム */
    --color-primary: #E8B44A;        /* メインの黄色（まぶしくない） */
    --color-primary-light: #F5D88A;  /* 明るい黄色 */
    --color-primary-dark: #D4A036;   /* 濃い黄色 */
    --color-white: #FFFFFF;
    --color-bg-light: #FEFDFB;       /* わずかにクリーム系の背景 */
    --color-bg-gray: #F5F3F0;        /* ベージュ系の背景 */
    --color-text-main: #3E2723;      /* 焦げ茶系のテキスト（黒避け） */
    --color-text-light: #5D4037;     /* ライトブラウン */
    --color-border: #E0DCD8;         /* ボーダー */

    /* フォント */
    --font-base: "Noto Sans JP", "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
    --font-heading: "Noto Sans JP", "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;

    /* サイズ */
    --container-width: 1200px;
    --section-padding: 80px 20px;
    --gap-small: 0.5em;
    --gap-medium: 1em;
    --gap-large: 2em;

    /* トランジション */
    --transition-base: all 0.3s ease;
}

/* 基本設定 */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

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

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

ul, ol {
    list-style: none;
}

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

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(62, 39, 35, 0.05);
    z-index: 1000;
    transition: var(--transition-base);
}

.header.is-scrolled {
    box-shadow: 0 2px 20px rgba(62, 39, 35, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.header-logo:hover {
    opacity: 0.8;
}

/* ナビゲーション */
.nav-list {
    display: flex;
    gap: var(--gap-large);
    align-items: center;
}

.nav-item a {
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-item a:hover::after,
.nav-item a.active::after {
    width: 100%;
}

.nav-item a:hover,
.nav-item a.active {
    color: var(--color-primary);
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--color-text-main);
    border-radius: 3px;
    transition: var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* メインビジュアル */
.main-visual {
    margin-top: 80px;
    height: 500px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.main-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M1200 120L0 16.48 0 0 1200 0 1200 120z" fill="%23FFFFFF" fill-opacity="0.1"/></svg>') bottom repeat-x;
    background-size: 100% 100px;
}

.main-visual-content {
    text-align: center;
    color: var(--color-white);
    position: relative;
    z-index: 1;
}

.main-visual h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(62, 39, 35, 0.2);
}

.main-visual p {
    font-size: 1.2rem;
    font-weight: 400;
}

/* セクション */
.section {
    padding: var(--section-padding);
}

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

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

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

.section-title p {
    color: var(--color-text-light);
    font-size: 1rem;
}

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

/* ボタン */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    text-align: center;
}

.btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 180, 74, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

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

/* カード */
.card {
    background-color: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(62, 39, 35, 0.08);
    transition: var(--transition-base);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(62, 39, 35, 0.12);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--color-bg-gray);
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text-main);
}

.card-text {
    color: var(--color-text-light);
    line-height: 1.8;
}

/* フッター */
.footer {
    background-color: var(--color-bg-gray);
    padding: 50px 20px 20px;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--color-text-main);
    font-weight: 600;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-section a:hover {
    color: var(--color-primary);
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 0.8rem;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    :root {
        --section-padding: 60px 20px;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--color-white);
        box-shadow: -5px 0 15px rgba(62, 39, 35, 0.1);
        transition: right 0.3s ease;
        padding-top: 80px;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-item a {
        display: block;
        padding: 20px 30px;
    }

    .main-visual {
        height: 350px;
    }

    .main-visual h1 {
        font-size: 2rem;
    }

    .main-visual p {
        font-size: 1rem;
    }

    :root {
        --section-padding: 50px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .header-logo {
        font-size: 1.2rem;
    }

    .header-logo img {
        width: 40px;
        height: 40px;
    }

    .main-visual {
        height: 300px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 30px;
    }
}

/* ユーティリティクラス */
.text-center {
    text-align: center;
}

.text-yellow {
    color: var(--color-primary);
}

.mt-small {
    margin-top: 20px;
}

.mt-medium {
    margin-top: 40px;
}

.mt-large {
    margin-top: 60px;
}

.mb-small {
    margin-bottom: 20px;
}

.mb-medium {
    margin-bottom: 40px;
}

.mb-large {
    margin-bottom: 60px;
}
