/**
 * ベーススタイル
 * 基本的なリセット、フォント、レイアウトの定義
 */

/* 最小文字サイズの定義 */
:root {
    --min-font-size: 1.125rem; /* 18px - 全ページで使用する最小文字サイズ */
}

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

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'LocalFont', sans-serif;
    font-size: 1.125rem; /* 18px (デフォルト16pxの1.125倍) */
    line-height: 1.6;
    color: #333333;
    background-color: rgb(248, 248, 248);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: unset;
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
header {
    background-color: rgb(184, 217, 224);
    border-bottom: 5px solid #DDCDBF;
    padding: 20px 0;
    color: #ffffff;
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-title {
    font-family: 'Comfortaa', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    color: rgb(113, 175, 182);
    text-decoration: underline;
    text-decoration-color: rgb(113, 175, 182);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    text-decoration-skip-ink: auto;
    transition: color 0.3s ease;
}

.site-title:hover {
    color: rgb(95, 155, 162);
}

.site-subtitle {
    font-family: 'Comfortaa', sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    color: #ffffff;
    margin: 0;
    margin-top: -2px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

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

.main-nav li {
    border-right: 1px solid #ffffff;
}

.main-nav li:last-child {
    border-right: none;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
    padding: 12px 20px;
    display: block;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(152, 195, 198, 0.3);
}

/* ハンバーガーメニューボタン */
.hamburger-menu {
    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-line {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* メインコンテンツ */
main {
    padding: 40px 0;
    flex: 1;
}

.page-content {
    background-color: #ffffff;
    padding: 2rem;
    border: 1px solid #DDCDBF;
}

.page-content h1 {
    margin-bottom: 1.5rem;
    color: #333;
}

.page-memo {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-left: 4px solid rgb(113, 175, 182);
}

.page-memo h2 {
    margin-bottom: 1rem;
    color: rgb(113, 175, 182);
    font-size: 1.2rem;
}

.page-memo ul {
    list-style-position: inside;
    line-height: 2;
}

.page-memo li {
    margin-bottom: 0.5rem;
    font-size: var(--min-font-size);
}

/* フッター */
footer {
    background-color: rgb(184, 217, 224);
    color: #ffffff;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 5px solid #DDCDBF;
    position: relative;
    z-index: 10;
}

footer p {
    margin: 0.5rem 0;
    font-size: var(--min-font-size);
    font-weight: 300;
    opacity: 0.8;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .header-content {
        position: relative;
    }

    .hamburger-menu {
        display: flex;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgb(184, 217, 224);
        z-index: 1000;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-width: 300px;
    }

    .main-nav li {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        width: 100%;
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .nav-link {
        text-align: center;
        padding: 20px;
        font-size: var(--min-font-size, 1.125rem);
    }

    .page-content {
        padding: 1rem;
    }
}
