/* Navbar & Navmenu color */
:root {
    --background-navbar: rgba(55, 55, 55, 0.98);
}

.header {
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: white;
    box-shadow:
        0 1px 3px 0 rgba(0, 0, 0, 0.1),
        0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* メインコンテンツのマージン調整 */
body {
    padding-top: 80px; /* ヘッダーの高さ + 余白 */
}

/* Nav items */
.menu {
    list-style: none;
    position: absolute;
    width: 250px;
    height: auto;
    top: 0;
    right: 1rem;
    margin-top: 52px;
    padding: 0;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 4px 4px;
    transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
    transform: scale(1, 0);
    transform-origin: top;
    z-index: 1000;
}

/* Hamburger menu button */
.menu-btn:checked ~ .menu {
    transform: scale(1, 1);
    transform-origin: top;
    transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

/* Hamburger menu text */
.menu a {
    text-decoration: none;
    font-weight: 550;
    letter-spacing: 2px;
    font-size: 15px;
    text-transform: capitalize;
    color: #4b5563;
    opacity: 0;
    transition: 0.5s;
}

.menu li {
    border-top: 1px solid #e5e7eb;
    padding: 16px 28px;
    margin: 0;
    opacity: 0;
    transition: 0.5s;
}

.menu li:first-child {
    border-top: none;
}

.menu-btn:checked ~ .menu a,
.menu-btn:checked ~ .menu li {
    opacity: 1;
    transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.2s;
}

.menu-btn {
    display: none;
}

.menu-icon {
    display: inline-block;
    position: relative;
    cursor: pointer;
    padding: 12px 14px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.navicon {
    background: #4b5563;
    display: block;
    height: 3px;
    width: 26px;
    position: relative;
    transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

.navicon:before,
.navicon:after {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    background: #4b5563;
    transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

.navicon:before {
    top: 9px;
}

.navicon:after {
    bottom: 9px;
}

/* Hamburger Menu Animation Start */
.menu-btn:checked ~ .menu-icon .navicon:before {
    transform: rotate(-45deg);
}

.menu-btn:checked ~ .menu-icon .navicon:after {
    transform: rotate(45deg);
}

.menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before {
    top: 0;
}
.menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
    bottom: 0;
}

.menu-btn:checked ~ .menu-icon .navicon {
    background: rgba(0, 0, 0, 0);
    transition: 0.2192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}
/* Hamburger Menu Animation End */

/* メニューアイコンを右端中央に配置 */
.menu-icon {
    position: absolute;
    right: 1.5rem; /* Adjust to align with header padding */
    top: 50%;
    transform: translateY(-50%);
}

/* トグルスイッチのスタイル */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    margin-left: 10px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 20px;
}

.toggle-slider:before {
    position: absolute;
    content: '';
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #0069fc;
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* ヘッダーコンテナのスタイル */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0; /* Remove horizontal padding */
    height: 100%;
    position: relative;
}

/* ロゴとタイトルのスタイル */
.header-logo-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon {
    width: 24px;
    height: 24px;
    color: #0069fc;
}

.header-title {
    color: #1f2937;
    font-size: 23px;
    font-weight: 700;
}

/* メニュー文字色の調整 */
.menu a {
    color: #4b5563;
    display: block;
}

/* ホバー効果 */
.menu li:hover {
    background-color: #f3f4f6;
}

.menu a:hover,
.menu span:hover {
    color: #0069fc;
}
