/* ============================================================
   Chiyoda Nameplate Co., Ltd.
   style_legal.css — Legal pages stylesheet
   Scope: /legal/ (cp, pp, ToU)
   Updated: 2026-05-09
   ============================================================ */


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

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
}

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
}


/* ------------------------------------------------------------
   BASE
   ------------------------------------------------------------ */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 80px; /* fixed header offset */
}


/* ------------------------------------------------------------
   TYPOGRAPHY
   ------------------------------------------------------------ */
h1 {
    scroll-margin-top: 80px;
    font-size: 25px;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

h2 {
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}


/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: lightgreen;
    color: black;
    z-index: 1000;
}

.logo {
    font-size: 24px;
}


/* ------------------------------------------------------------
   NAVIGATION
   ------------------------------------------------------------ */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: black;
    text-decoration: none;
}

/* hamburger toggle (CSS-only) */
.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: black;
    margin: 3px;
    transition: all 0.5s ease;
    border-radius: 3px;
}


/* ------------------------------------------------------------
   MAIN
   ------------------------------------------------------------ */
main {
    flex-grow: 1;
    margin-left: 30px;
    margin-right: 30px;
    font-size: 16px;
}

main ul, main ol {
    list-style: disc;
    padding-left: 1.5em;
    margin-bottom: 1em;
}

main p {
    margin-bottom: 1em;
    line-height: 1.7;
}

main section {
    margin-bottom: 1.5em;
}


/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
footer {
    background-color: #333;
    color: #fff;
    margin-top: auto;
    padding: 20px;
    text-align: center;
}

footer a {
    color: #fff;
    text-decoration: none;
}


/* ------------------------------------------------------------
   GO TO TOP BUTTON
   ------------------------------------------------------------ */
#gtt {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: lightgreen;
    color: yellow;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    text-align: center;
    line-height: 1.2;
}

#gtt:hover {
    background-color: violet;
}


/* ------------------------------------------------------------
   RESPONSIVE — mobile (max 768px)
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background-color: lightblue;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        padding-right: 20px;
        text-align: right;
        border-top: 1px solid #444;
    }

    .menu-toggle:checked + .hamburger + nav ul {
        display: flex;
    }

    .menu-toggle:checked + .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle:checked + .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked + .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hamburger {
        display: flex;
    }
}


/* ------------------------------------------------------------
   RESPONSIVE — desktop (min 769px)
   ------------------------------------------------------------ */
@media (min-width: 769px) {
    nav ul {
        display: flex;
    }

    .hamburger {
        display: none;
    }
}
