/* 共通 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif JP', serif;
    background: transparent;
    overflow-x: hidden;
}

.container {
    display: flex;
    justify-content: center;
    width: 100%;
    background: transparent;
}

.background-wrapper {

}

.page-wrapper {
    width: 100%;
    min-height: 100vh;
    background: #f8f9fa;
}

/* ヘッダー */

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 88px;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #eeeeee;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1000;
}

.page-wrapper .header {
    position: fixed;
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.logo {
    width: 98px;
    height: 56px;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

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

.hamburger span {
    width: 100%;
    height: 3px;
    background: #19211f;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.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);
}

.navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    text-decoration: none;
    color: #19211f;
    font-weight: 500;
    font-size: 14px;
    line-height: 21px;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.external-icon,
.mail-icon {
    width: 16px;
    height: 16px;
    margin-left: 4px;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #19211f;
    font-size: 14px;
    font-weight: 400;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}



/* Responsive Design */
@media (max-width: 1920px) {
    .background-wrapper {
        width: 100%;
        min-height: 100vh;
    }
}

@media (max-width: 1280px) {
    .header-content {
        padding: 0 40px;
    }
    
    .main-content {
        padding: 0 32px;
    }
    
    .page-content {
        padding-left: 40px;
        padding-right: 40px;
    }
    
}

@media (max-width: 860px) {
    .hamburger {
        display: flex;
    }
    
    .navigation {
        position: fixed;
        top: 88px;
        left: 0;
        width: 100%;
        height: calc(100vh - 88px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 999;
        justify-content: flex-start;
    }
    
    .navigation.active {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 0;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #e5e5e5;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 16px 0;
        font-size: 16px;
        border-radius: 0;
    }

    .nav-link-nolink {
        pointer-events: none
    }
    
    .nav-link:hover {
        background-color: transparent;
        color: #007bff;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: #f8f9fa;
        min-width: auto;
    }
    
    .dropdown-item {
        padding: 12px 20px;
        font-size: 14px;
        border-bottom: 1px solid #e5e5e5;
    }
    
    .dropdown-item:hover {
        background-color: #e9ecef;
    }
    
    .header-content {
        padding: 0 20px;
    }
    
    .catch-image {
        top: 150px;
        width: 50%;
        height: auto;
    }
    
    .lead-image {
        top: 400px;
        width: 95%;
    }
    
    .page-content {
        padding-top: 140px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .content-wrapper {
        padding: 24px;
    }
    
    .content-wrapper h1 {
        font-size: 24px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.nav-link:focus,
.dropdown-item:focus,
.hamburger:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* 第二階層など、focusのアウトラインを消したい対象 */
.no-focus:focus {
  outline: none !important;
  cursor: pointer;
}

/* メニューが開いているときのbody固定 */
body.menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }
}



/* 共通 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif JP', serif;
    background: transparent;
    overflow-x: hidden;
}

.container {
    display: flex;
    justify-content: center;
    width: 100%;
    background: transparent;
}

.background-wrapper {

}

.page-wrapper {
    width: 100%;
    min-height: 100vh;
    background: #f8f9fa;
}
