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

html {
    font-size: 16px;
}

body {
    font-family: 'Noto Serif JP', serif;
    color: #2c1810;
    line-height: 1.8;
    min-height: 100vh;
    background-image: url(images/AdobeStock_1375678645のコピー.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/*コンテナ*/
#container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/*ヘッダー*/
header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(
        to bottom,
        rgba(253, 246, 227, 0.95),
        rgba(253, 246, 227, 0.9)
    );
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/*タイトル*/
h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c1810;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #c9a227;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #c9a227;
    transform: translateX(-50%) rotate(45deg);
}

/*ナビゲーション*/
nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

nav li {
    animation: fadeInUp 0.5s ease-out backwards;
}

nav li:nth-child(1) { animation-delay: 0.05s; }
nav li:nth-child(2) { animation-delay: 0.1s; }
nav li:nth-child(3) { animation-delay: 0.15s; }
nav li:nth-child(4) { animation-delay: 0.2s; }
nav li:nth-child(5) { animation-delay: 0.25s; }
nav li:nth-child(6) { animation-delay: 0.3s; }
nav li:nth-child(7) { animation-delay: 0.35s; }
nav li:nth-child(8) { animation-delay: 0.4s; }
nav li:nth-child(9) { animation-delay: 0.45s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*リンク */
nav a {
    display: block;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    text-decoration: none;
    color: #2c1810;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
    border-left: 4px solid transparent;
}

nav a::before {
    content: '→';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    opacity: 0;
    color: #c9a227;
    transition: all 0.3s ease;
}

nav a:hover,
nav a:focus {
    background: rgba(255, 255, 255, 0.95);
    border-left-color: #c9a227;
    padding-left: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

nav a:hover::before,
nav a:focus::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

nav a:focus {
    outline: 2px solid #c9a227;
    outline-offset: 2px;
}

/* ===================================
タブレット (768px以上)
=================================== */
@media screen and (min-width: 768px) {
    #container {
        padding: 40px;
    }

    header {
        padding: 50px 40px;
        border-radius: 12px;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    nav ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    nav li.featured {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }

    nav a {
        padding: 20px 24px;
        font-size: 1.05rem;
    }
}

/* ===================================
PC(1024px以上)
=================================== */
@media screen and (min-width: 1024px) {
    #container {
        max-width: 1000px;
        padding: 60px;
    }

    header {
        padding: 60px 50px;
    }

    h1 {
        font-size: 2.25rem;
    }

    nav ul {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    nav li.featured {
        grid-column: 2 / 3;
        max-width: none;
    }

    nav a {
        padding: 22px 26px;
    }
}
