html,
body,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
p,
div {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN W3', sans-serif;
}

a {
    text-decoration: none;
}

:root {
    --header-height: 65px;
}

header {
    background-color: #2c3e50;
    height: var(--header-height);
    position: fixed;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    width: 100%;
}

.header-list li {
    padding: 33px 20px;
    float: left;
    color: white;
    list-style: none;
    font-size: 18px;
}

.container {
    width: 1170px;
    margin: 0 auto;
}

.top-wrapper {
    background-color: #f7f7f7;
    margin-top: var(--header-height);
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.top-wrapper .container {
    display: flex;
    /* flex-direction: row; */
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.heading {
    flex: 1;
    padding-left: 0px;
    margin-left: 20px;
    font-size: 21px;
    color: rgb(11, 39, 131);
    white-space: nowrap;
}

.heading h1 {
    margin-left: 10px;
    text-align: left;
}

.share {
    flex: 1;
    padding-right: 40px;
    max-width: 400px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.tweet {
    color: blue;
}

.btn-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.btn {
    opacity: 0.8;
    color: white;
    padding: 2px 10px;
    display: inline-block;
    border-radius: 4px;
}

.btn-wrapper p {
    padding-right: 5px;
}

.btn-wrapper span {
    font-size: 20px;
    margin-right: 3px;
}

.number {
    color: red;
}

.twitter {
    background-color: #55acee;
}

.line {
    background-color: #239b76;
}

.btn:hover {
    opacity: 1;
}

.fa {
    margin-right: 2px;
}

.item-wrapper {
    background-color: rgba(88, 80, 80, 0.1);
    padding: 10px 0;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.item-list ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.item-list li {
    list-style: none;
    padding: 10px 20px;
}

.item-list a {
    display: block;
    line-height: 50px;
    padding: 0 25px;
    color: black;
    text-decoration: none;
    font-size: 20px;
}

.click {
    line-height: 50px;
    display: block;
    padding: 0 25px;
    color: black;
}

.click:hover {
    transition: all 0.3s ease;
    background-color: rgb(100, 114, 194);
    color: white;
}

.message-wrapper {
    height: 1000px;
    background-color: #f7f7f7;
}

.heading {
    padding-top: 10px;
    color: #242868;
}

.important {
    padding-top: 30px;
    font-size: 20px;
    color: rgb(36, 119, 139);
}

.insurance {
    padding-top: 30px;
    border-bottom: 2px solid #dee7ec;
    padding-bottom: 80px;
    margin-bottom: 50px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.picture1,
.picture2 {
  max-width: 600px; /* 好みに応じて 500px や 700px に調整可能 */
  width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  box-sizing: border-box;
}

/*サイト分割のやつ*/
#content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

#main {
    flex: 1 1 70%;
    min-width: 300px;
}

nav {
    flex: 1 1 25%;
    min-width: 250px;
}

nav img,
.subpicture {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

.contact-form {
    margin-top: 65px !important;
    padding-left: 40px;
}

/*問い合わせフォーム*/
.title {
    margin-top: 20px;
    margin-bottom: 30px;
    padding-bottom: 15px;
}

.firstsentence {
    margin-bottom: 20px;
}

.lastsentence {
    width: 500px;
    border-bottom: 2px solid #dee7ec;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

input,
textarea {
    height: 50px;
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #dee7ec;
}

.contact-submit {
    background-color: #dee7ec;
    font-size: 22px;
    color: #889eab;
    border-radius: 5px;
}

/*会社紹介のやつ*/
.title {
    border-top: 2px solid #dee7ec;
    margin-top: 20px;
    padding-top: 15px;
}

.specialname {
    margin-top: 20px;
    font-family: "cursive";
    font-size: 20px;
}

.introduce {
    padding: 30px;
    width: 700px;
    border-bottom: 2px solid #dee7ec;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.text-context {
    padding-left: 40px;
}

.conclusion {
    margin-top: 30px;
    margin-bottom: 30px;
}

/*会社紹介の表*/
table {
    border-collapse: collapse;
}

td {
    border: solid 1px;
    padding: 0.5em;
}

.Table {
    padding-left: 50px;
}

/*工業関連参考価格*/
.tax {
    width: 500px;
    margin-top: 2px;
    border-bottom: 2px solid #dee7ec;
}

/*お問い合わせフォーム*/
.contact-form {
    background: #fff;
    max-width: 500px;
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
}

label {
    display: block;
    margin-top: 15px;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

button {
    margin-top: 20px;
    padding: 10px;
    width: 100%;
    background-color: #4caf50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

@media screen and (max-width: 1024px) {
    .container {
        width: 90%;
    }

    .item-list ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .item-list a {
        padding: 10px;
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    header {
        height: auto;
    }

    .header-list li {
        float: none;
        text-align: center;
        padding: 10px;
    }

    .header-list ul {
        flex-direction: column;
        padding: 10px 0;
    }

    .header-list li {
        margin: 5px 0;
        font-size: 16px;
    }

    .top-wrapper {
        height: auto;
        padding: 20px 0;
    }

    .share {
        float: none;
        text-align: center;
        margin-top: 20px;
    }

    .heading {
        float: none;
        text-align: center;
        margin-top: 20px;
    }

    nav {
        float: none;
        width: 100%;
        margin-top: 30px;
    }

    div#main {
        float: none;
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .btn-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 80%;
        margin-bottom: 10px;
    }

    input,
    textarea {
        width: 100%;
    }
}