:root {
    --primary-bg: #FDF4E0;
    --secondary-bg: #F5E6C8;
    --button-color: #DFAA4F;
    --text-color: #333;
    --footer-bg: #F0E0B8;
    --button-hover-color: #C99A3F;
    --ng-color: #a37c24;
    --back-color: #fff4de;
    --box-bg: #FFFFFF;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-bg);
    margin: 0;
    padding: 0;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

label {
    margin-right: 15px;
    cursor: pointer;
}

a {
    color: var(--ng-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.logo-space {
    background-color: white;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    max-width: 150px;
    height: auto;
}

header {
    background-color: var(--secondary-bg);
    padding: 20px 0;
    text-align: center;
}

h1 {
    color: var(--button-color);
    font-size: 1.5em;
    margin: 0;
}

.content {
    background-color: white;
    padding: 30px;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.toc {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.toc-item {
    background-color: var(--secondary-bg);
    padding: 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    display: flex;
    align-items: center;
}

.toc-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--button-color);
    color: white;
}

.toc-item a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
}

.toc-item i {
    margin-right: 10px;
}

.section {
    background-color: var(--box-bg);
    margin-bottom: 40px;
    padding: 20px 45px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.pagelist {
    background-color: var(--box-bg);
    margin-bottom: 40px;
    padding: 20px 45px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.pagelist ul,
.pagelist li {
    display: inline;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagelist li {
    margin-right: 0px;
}

.pagelist li:not(:last-child)::after {
    content: '/';
    margin: 0px 10px;
}

h2 {
    color: var(--button-color);
    border-bottom: 2px solid var(--secondary-bg);
    padding-bottom: 10px;
}

h3 {
    color: var(--ng-color);
    margin-top: 45px;
}

p {
    margin-bottom: 20px;
}

.notes {
    color: #FF0000;
}

.image-container {
    text-align: center;
    margin: 20px 0;
}

.image-container-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.image-item {
    width: 30%;
    margin-bottom: 20px;
    text-align: center;
}

.image-item strong {
    display: block;
    text-align: center;
    font-size: 1.1em;
}

.image-item p {
    text-align: left;
}

.image-item img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}


.manual-image {
    max-width: 400px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.manual-image02 {
    max-width: 900px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.manual-image03 {
    max-width: 300px;
    height: auto;
}

.manual-image04 {
    max-width: 700px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: var(--footer-bg);
    color: var(--text-color);
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    font-size: 0.8em;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.nav-button {
    background-color: var(--button-color);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background-color: var(--button-hover-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

td {
    border: 1px solid var(--secondary-bg);
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

th {
    width: 20%;
    border: 1px solid var(--secondary-bg);
    background-color: var(--back-color);
    color: var(--text-color);
    padding: 10px;
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

.footer-links {
    margin-top: 20px;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--button-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: background-color 0.3s;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top:hover {
    background-color: var(--button-hover-color);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.menu-toggle {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1001;
    color: #000;
}

.menu-toggle.hidden {
    display: none;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    transition: all 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
}

.mobile-nav.active {
    display: block;
}


.mobile-nav ul {
    list-style-type: none;
    padding: 20px;
    margin: 60px 0 0 0;
}

.mobile-nav ul li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.mobile-nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
}


.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

/* form */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="date"],
select,
textarea {
    margin: 15px 10px;
}

input[type="radio"],
input[type="checkbox"] {
    margin: 15px 5px;
}

/* テキストボックス */
input[type='text'] {
    width: 100%;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    appearance: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* 日付ボックス */
input[type='date'] {
    width: 200px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    appearance: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* 数値ボックス */
input[type='number'] {
    width: 40px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    appearance: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* E-mail */
input[type='email'] {
    width: 100%;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    appearance: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* URLボックス */
input[type='url'] {
    width: 100%;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    appearance: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* パスワード */
input[type='password'] {
    width: 100%;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    appearance: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* テキストエリア */
textarea {
    width: 700px;
    height: 150px;
    display: block;
    box-sizing: border-box;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    resize: none;
}

/* セレクトボックス */
select {
    box-sizing: border-box;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #ccc;
}

.customer .text {
    width: 450px;
}

.customer .shorttext {
    width: 120px;
}

.customer .name1,
.customer .name2,
.customer .furigana1,
.customer .furigana2 {
    width: 120px;
    max-width: 120px;
}

.customer .email {
    width: 450px;
}

.customer .tel {
    width: 70px;
}

.customer .zip1 {
    width: 50px;
}

.customer .zip2 {
    width: 70px;
}

.customer .url {
    width: 450px;
}

.customer .num {
    width: 80px;
}

.announce {
    width: 100%;
    background-color: #efefef;
    padding: 10px;
    box-sizing: border-box;
}

@media (max-width: 768px) {

    input,
    textarea,
    select {
        vertical-align: middle;
    }

    input {
        max-width: 95%;
        margin: 10px 0;
        box-sizing: border-box;
    }

    textarea {
        max-width: 95%;
        margin: 10px 10px;
        box-sizing: border-box;
    }

    table,
    tbody,
    tr,
    th,
    td {
        display: block;
        width: 100% !important;
    }

    th,
    td {
        box-sizing: border-box;
    }

    .container {
        padding: 10px;
    }

    h1 {
        font-size: 1.2em;
    }

    h2 {
        font-size: 1.1em;
    }

    th {
        width: 30%;
        white-space: normal !important;
    }

    .section {
        padding: 5px 5px;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0);
    }

    .pagelist ul,
    .pagelist li {
        display: block;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .pagelist li:not(:last-child)::after {
        content: '';
        margin: 0px 10px;
    }
    
    .toc {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: block;
    }

    .navigation-buttons {
        flex-direction: column;
        align-items: center;
    }

    .nav-button {
        width: 100%;
        box-sizing: border-box;
        margin: 10px 0;
    }

    .manual-image,
    .manual-image02,
    .manual-image03,
    .manual-image04 {
        max-width: 100%;
    }

    .image-item {
        width: 100%;
    }
}