/* --- グローバル設定 --- */
:root {
    --font-family: 'Montserrat', sans-serif;
    --primary-color: #111111;
    --secondary-color: #888888;
    --bg-color: #ffffff;
    --bg-color-alt: #f7f7f7;
    --border-color: #eeeeee;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--primary-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--secondary-color);
}

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

.container {
    padding-top: 10px;
    max-width: 1100px;
    margin: 0 auto;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(10px);
    background-color: #fff;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 20px;
}

.header__logo img {
    height: 32px;
    width: auto;
    display: block;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
}

.header__nav a {
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    color: inherit;
    transition: font-size 0.3s ease, text-decoration 0.3s ease, color 0.3s ease, transform 0.3s ease;
    position: relative;
    padding: 5px;
}

.header__nav a:hover {
    font-size: 18px;
    text-decoration: underline;
    text-underline-offset: 5px;
    color: #007bff;
    transform: scale(1.05);
}


/* --- ドロップダウンメニュー --- */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: "\25BC";
    font-size: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px 0;
    min-width: 150px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    animation: fadeIn 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #000;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f0f0f0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- ハンバーガーメニュー --- */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 150;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 6px 0;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- モバイルナビゲーション --- */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-color);
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    z-index: 99;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}
.mobile-nav.active {
    display: flex;
    transform: translateX(0);
}

.mobile-nav a {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* --- フッター --- */
.footer {
    padding: 50px 20px 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background-color: #f7f7f7;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.social-icons a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-5px);
}

.social-icons img {
  width: 48px;
  height: 48px;
  vertical-align: middle;
}

.footer .container {
    max-width: 1200px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.footer .container p {
    font-size: 12px;
    color: #888;
    margin: 0;
}


/* --- フェードインアニメーション --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- レスポンシブ対応 (768px以下) --- */
@media (max-width: 768px) {

    .header__nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: #fff;
        gap: 0;
    }

    .header__nav.active {
        display: flex;
    }
    
    .dropdown-menu {
        position: static;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .dropdown-menu a {
        padding: 10px 20px;
        background-color: #f8f8f8;
    }

    .hamburger-menu {
        display: block;
    }

    .header__logo img{
        width: 80%;
    }

    .footer {
        padding: 30px 15px 15px;
    }

    .social-icons {
        gap: 15px;
    }

    .social-icons img {
        width: 36px;
        height: 36px;
    }

    .footer .container {
        padding-top: 15px;
    }
}