/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Remove mobile tap highlight */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #000;
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.h5-hidden{
    display: none;
}

.h5-visible{
    display: block;
}

@media (min-width: 768px) {
    .pc-hidden{
        display: none;
    }

    .pc-visible{
        display: block;
    }
}


/* Header */
.head-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: white;
    height: 60px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.head-header-container {
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
    padding: 0 11px;
}

/* Mobile Header */
.head-header-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.head-logo-mobile {
    flex-shrink: 0;
    padding-left: 7px;
}

.head-logo-svg {
    display: block;
}

.head-mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.head-btn-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.3s ease;
}

.head-btn-primary-mobile {
    width: 78px;
    height: 24px;
    background: #3660FD;
    color: white;
    border-radius: 3px;
}

.head-btn-primary-mobile:hover {
    opacity: 0.8;
}

.head-btn-secondary-mobile {
    width: 78px;
    height: 24px;
    color: #303030;
    border: 1px solid #303030;
    border-radius: 3px;
}

.head-btn-secondary-mobile:hover {
    color: #3660FD;
    border-color: #3660FD;
}

.head-mobile-menu-toggle {
    padding: 4px;
    color: #374151;
    transition: color 0.2s ease;
}

.head-mobile-menu-toggle:hover {
    color: #212121;
}

/* Desktop Header */
.head-header-desktop {
    display: none;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.head-header-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.head-nav-menu {
    position: relative;
    margin: 0 auto;
}

.head-nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.head-nav-item {
    position: relative;
}

.head-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    font-size: 18px;
    font-weight: 500;
    color: #303030;
    transition: color 0.2s ease;
}

.head-nav-link:hover {
    color: #3660FD;
}

.head-dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.head-nav-link:hover .head-dropdown-arrow,
.head-nav-item:hover .head-dropdown-arrow {
    transform: rotate(180deg);
}

.head-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.head-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.3s ease;
}

.head-btn-primary {
    min-width: 119px;
    height: 41px;
    padding: 0 16px;
    background: #3660FD;
    color: white;
    border-radius: 6px;
}

.head-btn-primary:hover {
    opacity: 0.8;
}

.head-btn-secondary {
    width: 119px;
    height: 41px;
    color: #303030;
    border: 1px solid #303030;
    border-radius: 6px;
}

.head-btn-secondary:hover {
    color: #3660FD;
    border-color: #3660FD;
}

/* Language Switcher */
.head-language-switcher {
    position: relative;
}

.flag-icon {
    display: block;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.head-language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: #212121;
    transition: color 0.2s ease;
}

.head-language-btn:hover {
    color: #3660FD;
}

.head-language-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.head-language-switcher.active .head-language-arrow {
    transform: rotate(180deg);
}

.head-language-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 120px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.head-language-switcher.active .head-language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.head-language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    color: #374151;
    text-align: left;
    transition: all 0.2s ease;
}

.head-language-option:hover {
    background: #F3F4F6;
    color: #3660FD;
}

.head-language-option.active {
    background: #EFF6FF;
    color: #3660FD;
}

/* Mega Menu */
.head-mega-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 90;
}

.head-mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.head-mega-menu-content {
    display: flex;
    gap: 100px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 48px 16px 144px;
    padding-left: 10%;
}

.head-mega-menu-showcase {
    flex-shrink: 0;
    width: 280px;
    padding-top: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.head-mega-menu-showcase img {
    width: 138px;
    height: 138px;
    object-fit: contain;
}

.head-mega-menu-showcase p {
    width: 254px;
    font-size: 14px;
    color: rgba(48, 48, 48, 0.6);
    line-height: 1.6;
    text-align: left;
}

.head-mega-menu-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 120px;
}

.head-mega-menu-column h3 {
    font-size: 20px;
    font-weight: 700;
    color: #303030;
    margin-bottom: 36px;
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}

.head-mega-menu-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #3660FD;
}

.head-mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.head-mega-menu-column ul li {
    margin-bottom: 20px;
}

.head-mega-menu-column ul li a {
    font-size: 16px;
    font-weight: 700;
    color: #303030;
    transition: color 0.2s ease;
}

.head-mega-menu-column ul li a:hover {
    color: #3660FD;
}

/* Mobile Menu */
.head-mobile-menu {
    position: fixed;
    top: 60px;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #3660FD;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 91;
    overflow-y: auto;
}

.head-mobile-menu.active {
    transform: translateX(0);
}

.head-mobile-menu-content {
    padding: 24px 23px;
}

.head-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 26px 0;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

.head-mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    padding: 16px 0;
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    transition: color 0.2s ease;
    text-decoration: none;
}

.head-mobile-nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.head-mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    transition: color 0.2s ease;
}

.head-mobile-nav-toggle:hover {
    color: rgba(255, 255, 255, 0.8);
}

.head-mobile-nav-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.head-mobile-nav-item.active .head-mobile-nav-toggle svg {
    transform: rotate(90deg);
}

.head-mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 16px;
}

.head-mobile-nav-item.active .head-mobile-submenu {
    max-height: 500px;
}

.head-mobile-submenu-link {
    display: block;
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.head-mobile-submenu-link:hover {
    color: white;
}

/* Mobile Menu Footer */
.head-mobile-menu-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.head-mobile-menu-footer .head-language-switcher {
    position: relative;
}

.head-mobile-menu-footer .head-language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: white;
    transition: color 0.2s ease;
}

.head-mobile-menu-footer .head-language-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.head-mobile-menu-footer .head-language-btn-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.head-mobile-menu-footer .head-language-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.head-mobile-menu-footer .head-language-switcher.active .head-language-arrow {
    transform: rotate(180deg);
}

.head-mobile-menu-footer .head-language-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 120px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.head-mobile-menu-footer .head-language-switcher.active .head-language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.head-mobile-menu-footer .head-language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    color: #374151;
    text-align: left;
    transition: all 0.2s ease;
}

.head-mobile-menu-footer .head-language-option:hover {
    background: #F3F4F6;
    color: #3660FD;
}

.head-mobile-menu-footer .head-language-option.active {
    background: #EFF6FF;
    color: #3660FD;
}

/* Responsive */
@media (min-width: 768.1px) {
    .head-header {
        height: 64px;
    }
    
    .head-header-desktop {
        display: flex;
    }
    
    .head-header-mobile {
        display: none;
    }
}

@media (max-width: 768px) {
    .head-header-desktop {
        display: none;
    }
    
    .head-header-mobile {
        display: flex;
    }
}
