html {
    height: 100%;
}

body {
    font-family: "Avenir Next";
    padding-top: 80px;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 80px;
    box-sizing: border-box;
}

ul {
    list-style: none;
}
a {
    text-decoration: none;
}

p {
    margin: 0;
}

.btn-container {
    width: 100%;
    max-width: 1303px;
    margin: 0 auto;
    box-sizing: border-box;
    text-align: center;
}

.btn {
    width: 200px;
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    display: inline-block;
}

.btn:hover {
    opacity: 0.8;
}

.facebook {
    background-color: rgb(0,0,255);
}

.twitter {
    background-color: rgb(34,139,34);
    margin-left: 30px;
}

.fa {
    margin-right: 10px;
}

header {
    height: 80px;
    position: fixed;
    Z-index: 10;
    background-color: rgba(30, 144, 255, 0.8);
    width: 100%;
    top: 0;
    left: 0;
}

.header-container {
    width: 100%;
    max-width: 1303px;
    margin: 0 auto;
    box-sizing: border-box;
    color: white;
    display: flex;
    /*justify-content: space-between;*/
    justify-content: flex-start;
    align-items: center;
    height: 80px;
}

.header-logo {
    font-size: 32px;
    font-weight: bold;
    float: none;
    margin: 0 30px;
}

.header-logo a {
    color: white;
}

.header-list ul {
    display: flex;
    padding: 0;
}

.header-list li {
    font-size: 16px;
    float: left;
    margin: 0 50px;
    display: flex;
    align-items: center;
}

.header-list li a {
    color: white;
    padding: 2px;
}
.header-list li a:hover {
    background-color: rgba(0, 0, 205, 0.2);
}

main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1303px;
    margin: 0 auto;
    box-sizing: border-box;
}

.main-container {
    height: 500px;
    background-image: url(../images/syaoku_monokuro_1.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 0 -150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-item {
    width: 100%;
    max-width: 1303px;
    /*display: inline-block;*/
    background-color: rgba(255, 255, 255, 0.8);
    margin: 0 auto;
}

.main-container img {
    display: block;
    margin: 0 auto;
    padding: 10px 0;
}

.mainsub {
    display: flex;
    margin-top: 50px;
}

.subframe {
    width: 300px;
    height: 300px;
    text-align: center;
}

.mainsub-itemleft {
    margin: 70px 0 70px 121.5px;
    background: linear-gradient(to bottom, rgb(33, 97, 255) 40%, #fff 100%);    
}

.mainsub-itemcenter {
    margin: 70px 80px;
    background: linear-gradient(to bottom, rgb(0, 100, 0) 40%, #fff 100%);
}

.mainsub-itemright {
    margin: 70px 121.5px 70px 0;
    background: linear-gradient(to bottom, rgb(255, 124, 0) 40%, #fff 100%);
}

.mainsub h1 {
    color: white;
    font-family: 'MS Mincho';
    font-size: 36px;
}

.mainsub p {
    color: white;
}

.content {
    margin-bottom: 160px;
}

.all-content {
    display: flex;
}

.contents-item {
    margin: 20px 12px;
}

.contents-item img {
    width: 280px;
    height: 280px;
    vertical-align: top;
    border: solid 10px rgb(169, 169, 169);
}

.btn-detail {
    width: 400px;
    padding: 15px;
    display: inline-block;
    text-align: right;
    transform: skewX(-45deg);
    background: linear-gradient(to left, rgb(0, 100, 0) 65%, #fff 100%);
    margin: 20px 0 0 800px;
}

.btn-detail span {
    display: inline-block;
    color: white;
    transform: skewX(45deg);
}

.btn-detail:hover {
    background: linear-gradient(to left, rgba(0, 100, 0, 0.6) 60%, #fff 100%);
    transition: 1s ease-out;
}

.access {
    margin: 40px 0 80px 0;
    height: 720px;
    display: flex;
}

.access-container {
    width: 700px;
}

.access-inquiry {
    width: 500px;
    background-color:rgb(255, 124, 0);
    text-align: center;
    margin: 80px 70px 140px 70px;
    border-radius: 30px;
}

.access-container h3 {
    padding: 20px 0 10px;
    margin: 0;
    font-size: 24px;
}

.access-text {
    justify-content: center;
    font-size: 18px;
    padding: 5px 0 15px 0;
}

.access-text span {
    font-weight: bold;
    font-size: 16px;
}

.access-gg {
    width: 650px;
    margin: 0 auto;
    border: solid 5px rgb(169, 169, 169);
}

.address {
    vertical-align: bottom;
}

.access-map-txt {
    margin: 20px 0 0 20px;
}

.access-map-txt h3 {
    width: 200px;
    border-bottom: solid 3px rgb(255, 124, 0);
}

.access-map-txt ul {
    line-height: 2.5em;
}

.access-detail {
    width: 530px;
    height: 300px;
    margin: 30px 0 0 5px;
    padding-left: 50px;
    border-top: solid 3px transparent;
    border-right: solid 6px transparent;
    border-bottom: solid 3px transparent;
    border-left: solid 6px rgba(255, 124, 0, 0.8);
}

.access-detail h3 {
    text-align: center;
    font-size: 20px;
}

.access-detail ul {
    list-style: disc;
    line-height: 2.5em;
    font-size: 17px;
    margin: 0;
}

.access-detail span {
    border-bottom: dotted 3px red;
}

.anchor {
    display: block;
    padding-top: 80px;
    margin-top: -80px;
}

.section-title {
    border-bottom: 2px solid #1e90ff;
    color: #f5f5f5;
    margin-top: 40px;
}

.section-title span {
    background-color: #1e90ff;
    padding: 5px 100px 0 100px;
    letter-spacing: 0.1em;
}

.news {
    width: 1003px;
    height:300px;
    overflow: scroll;
    margin: 20px 150px 100px 150px;
    border-top: solid 1px rgba(169, 169, 169, 0.5);
    border-left: solid 5px rgba(169, 169, 169, 0.5);
}

.news p {
    display: flex;
    line-height: 1.8em;
    padding: 20px 0 0 20px;
}

.news span {
    margin-right: 5px;
}

.news .colona {
    color: #000;
    text-decoration: underline red 1px;
    text-underline-offset: 4px;
    /*border-bottom: solid 1px red;*/
    align-self: flex-start;
}

.assignment {
    color: red;
    text-decoration: underline red 1px;
    text-underline-offset: 4px;
    /*border-bottom: solid 1px red;*/
}

footer {
    background-color: #191970;
    color: white;
    height: 120px;
    width: 100%;
    margin: 30px 0 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.footer-logo {
    font-size: 32px;
    float: left;
    text-align: center;
    margin: 0;
}

.footer-logo p {
    font-size: 16px;
    margin: 5px 0 0 0;
}

.footer-list {
    float: none;
    margin: 25px 20px 0 0;
}

.footer-list ul {
    margin: 0;
}

.footer-list li {
    padding-bottom: 20px;
}

.footer-list li a {
    color: white;
}

/*----------------------------- profile.html ----------------------------------*/

.profile {
    display: flex;
    margin: 30px 0 80px 0;
}

.profile-txt {
    width: 636px;
    height: 420px;
    font-size: 18px;
    line-height: 2.5em;
    font-family: 'MS Mincho';
    font-weight: bold;
    letter-spacing: 0.1em;
    padding-left: 15.5px;
}

.profile-frame {
    background: url(../images/image21000.jpg) center no-repeat;
    background-size: 560px 300px;
    height: 240px;
    width: 500px;
    margin: 10px 0 0 10px;
    display: inline-block;
    border: solid 30px rgba(0, 0, 0, 0.5);
    box-shadow: 5px 5px 8px #999;
}

.profile-overview {
    width: 611.5px;
    height: 720px;
    padding-left: 30px;
    line-height: 3.45em;
    border-left: double 3px #000;
}

.profile-overview p {
    box-shadow: 2px 2px 5px rgb(169, 169, 169);
    margin-bottom: 5px;
}

.profile-overview p span {
    display: inline-block;
    width: 110px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    margin: 5px 10px 5px;
    background-color: rgb(32, 178, 170);
    color: white;
}

.history {
    height: 850px;
    margin: 30px 0 0 0;
    padding: 0 30px;
}

.history-line {
    width: 970px;
    border-top: solid 5px #000;
    transform: rotate(48deg);
    transform-origin: 0% 0%;
    position: relative;
}

.history-line:after {
    position: absolute;
    content: "";
    top: -11px;
    left: 950px;
    border-top: solid 20px #000;
    border-left: solid 20px transparent;
    border-right: solid 20px transparent;
    transform: rotate(-90deg);
}

.history-txt {
    display: flex;
    padding: 15px 0;
    line-height: 1.8em;
}

.his-subline {
    width: 40px;
    border-top: solid 3px #000;
    margin: 12.5px 5px 0 0;
}

.history span {
    font-family: 'HG正楷書体-PRO';
    font-size: 26px;
    font-weight: bold;
}

.history p {
    font-family: 'HG正楷書体-PRO';
    font-size: 22px;
    font-weight: bold;
    margin-left: 5px;
}

.history-a {
    padding-left: 25px;
}

.history-b {
    padding-left: 80px;
}

.history-c {
    padding-left: 159px;
}

.history-d {
    padding-left: 210px;
}

.history-e {
    padding-left: 288px;
}

.history-f {
    padding-left: 370px;
}

.history-g {
    padding-left: 422px;
}

.history-h {
    padding-left: 475px;
}

.history-i {
    padding-left: 555px;
}

.history-j {
    padding-left: 607px;
}

/*----------------------------- info-corona.html ----------------------------------*/

.corona h2 {
    margin: 50px 0 20px 50px;
}

.corona ul {
    margin-left: 100px;
    padding: 0;
}

.corona li {
    list-style-type: square;
    padding: 10px;
    font-size: 18px;
}

.corona-1 {
    margin: 50px 0 0 0;
}

.corona-1 p {
    padding-left: 80px;
}

.corona-1 h1 {
    width: 90%;
    max-width:500px;
    margin: 0 auto 40px;
    /*padding: 5px;
    margin-bottom: 40px;
    width: 500px;
    text-align: center;*/
}

.corona-3 p {
    padding: 10px 10px 10px 80px;
}

.corona .corona-warning {
    margin: 40px 0 0 60px;
    font-size: 22px;
    font-weight: bold;
}

.corona-footer {
    display: none;
}

/*----------------------------- assignment.html ----------------------------------*/

.assignment-container {
    margin: 0 10px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.assignment-container h1{
    text-align: center;
}

.date {
    display: block;
    width: 100%;
    text-align: right;
}

.customers {
    margin-bottom: 10px;
}

.greeting {
    margin-bottom: 40px;
}

.assignment-container .content {
    margin-bottom: 40px;
}
.assignment-container .content p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.signature {
    line-height: 1.8;
}
/*----------------------------- rules.html ----------------------------------*/

.rules-footer {
    display: none;
}

.rules h1,h2 {
    font-size: 26px;
}

.rules-1 {
    height: 350px;
    border-top: solid 6px transparent;
    border-right: solid 6px rgba(30, 144, 255, 0.5);
    border-bottom: solid 3px rgba(30, 144, 255, 0.5);
    border-left: solid 3px transparent;
    font-size: 18px;
    line-height: 2.4em;
}

.rules-1 ul li {
    list-style-type: square;
}

.rules-2 {
    height: 250px;
    border-top: solid 6px transparent;
    border-right: solid 6px rgba(30, 144, 255, 0.5);
    border-bottom: solid 3px rgba(30, 144, 255, 0.5);
    border-left: solid 3px transparent;
    font-size: 19px;
    line-height: 3.5em;
    padding-left: 30px;
}

/*----------------------------- list.html ----------------------------------*/

.print {
    height: 720px;
    margin: 40px 0 100px 0;
}

.print p {
    width: 450px;
    font-size: 20px;
    text-align: center;
    border-right: solid 5px #1e90ff;
    border-left: solid 5px #1e90ff;
}

.print-container {
    display: flex;
}

.print-content {
    margin: 40px 35px;
}

.print-txt {
    width: 550px;
    height: 180px;
    font-size: 18px;
    position: relative;
    z-index: 1;
    margin: -20px 0 0 10px;
    padding: 50px 0 0 15px;
    border: solid 1px rgba(0, 0, 0, 0.5);
    box-shadow: 5px 5px rgba(0, 0, 0, 0.5);
}

.print-title {
    width: 200px;
    height: 50px;
    position: relative;
    z-index: 2;
    background-color: #f4f4f4;
    border-left: solid 6px rgba(0, 100, 0, 0.6);
    font-size: 20px;
    text-align: center;
    box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.33);
    line-height: 50px;
    font-weight: bold;
}

.material {
    height: 720px;
    margin: 40px 0 100px 0;
}

.material p {
    width: 1250px;
    font-size: 19px;
    text-align: center;
    border-right: solid 5px #1e90ff;
    border-left: solid 5px #1e90ff;
    margin: 10px 0 25px 0;
}

.material-content {
    display: flex;
    height: 90px;
    margin: 7px 0 7px 100px;;
}

.material-title {
    width: 130px;
    height: 60px;
    font-size: 17px;
    text-align: center;
    line-height: 60px;
    color: white;
    background-color:rgba(0, 100, 0, 0.6);
    position: relative;
    margin-top: 15px;
}

.material-title:before {
    position: absolute;
    content: "";
    width: 110px;
    left: 0;
    border-bottom: solid 10px rgba(0, 100, 0, 0.6);
    border-right: solid 20px transparent;
    bottom: 100%;
}

.material-title:after {
    position: absolute;
    content: "";
    width: 110px;
    left: 0;
    border-top: solid 10px rgba(0, 100, 0, 0.6);
    border-left: solid 20px transparent;
    top: 100%;
}

.material-txt {
    display: flex;
    width: 900px;
    font-size: 15px;
    margin-left: 20px;
    align-items: center;
}

.metal {
    background-color:rgb(128, 128, 128);
}

.metal:before {
    position: absolute;
    content: "";
    width: 110px;
    left: 0;
    border-bottom: solid 10px rgb(128, 128, 128);
    border-right: solid 20px transparent;
    bottom: 100%;
}

.metal:after {
    position: absolute;
    content: "";
    width: 110px;
    left: 0;
    border-top: solid 10px rgb(128, 128, 128);
    border-left: solid 20px transparent;
    top: 100%;
}

.process {
    height: 720px;
    margin: 40px 0 100px 0;
}

.process p {
    width: 750px;
    font-size: 20px;
    text-align: center;
    border-right: solid 5px #1e90ff;
    border-left: solid 5px #1e90ff;
}

.process-content {
    display: flex;
    margin: 7px 0 7px 100px;
}

.process-title {
    width: 130px;
    height: 60px;
    font-size: 18px;
    text-align: center;
    line-height: 60px;
    background-color: rgb(255, 124, 0);
    color: white;
    margin-top: 30px;
    box-shadow: -7px -7px rgb(169, 169, 169);
}

.process-txt {
    display: flex;
    font-size: 16px;
    margin: 30px 0 0 20px;
    align-items: center;
}

/*--------------------------------------- スマートフォン向けCSS --------------------------------------------*/
/* -----------------------------------------------------------
   スマートフォン向け設定 (iPhone等 768px以下)
----------------------------------------------------------- */
@media screen and (max-width: 768px) {
    body {
        padding-top: 110px; /* ヘッダーの高さに合わせて調整 */
    }

    html,body {
        overflow-x: hidden;
    }
    /* ヘッダー */
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        z-index: 100%;
        padding: 10px 0;
    }
    .header-container {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        height: auto;
    }
    .header-logo {
        font-size: 24px;
        margin-bottom: 5px;
    }
    .header-list li {
        margin: 0 10px;
        font-size: 13px;
    }

    /* メインビジュアル */
    main {
        width: 100%;
        overflow: hidden;
    }
    .main-container {
        height: 300px;
        background-position: center center;
    }
    .main-item img {
        width: 80%; /* ロゴを画面に収める */
    }

    /* 3つのコンセプト（融合・創造・保全） */
    .mainsub {
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }
    .subframe {
        margin: 10px 0 !important; /* PC用の余白をリセット */
        width: 90%;
        height: auto;
        padding: 20px 0;
    }

    /* ニュース・Pick Up */
    .news {
        width: 90% !important;
        margin: 20px auto ;
        height: 230px;
        padding:5px 5px 0 5px;
    }

    .news p {
        padding: 0;
    }

    /* ギャラリー */
    .content {
        margin-bottom: 0;
    }

    .all-content {
        flex-wrap: wrap;
        justify-content: center;
    }
    .contents-item {
        margin: 10px;
    }
    .contents-item img {
        width: 40vw; /* 画面幅の約4割（横に2つ並ぶ計算） */
        height: 40vw;
    }
    .btn-detail {
        width: 90%;
        margin: 20px auto;
        display: block;
        text-align: center;
        transform: none; /* 斜めを解除したほうがスマホでは見やすい */
    }
    .btn-detail span {
        transform: none;
    }

    /* アクセス・地図 */
    .access {
        flex-direction: column;
        height: auto;
    }
    .access-map, .access-container {
        width: 100%;
    }
    .access-gg iframe {
        width: 100%;
        height: 250px;
    }
    .access-inquiry, .access-detail {
        width: 90%;
        margin: 20px auto;
        height: auto;
        padding-bottom: 20px;
    }
    .access-detail {
        border-left: none;
        border-top: solid 6px rgba(255, 124, 0, 0.8);
        padding-left: 0;
    }
    
    /* SNSボタン */
    .btn {
        width: 80%;
        margin: 10px auto !important;
        display: block;
    }

    /* フッター */
    footer {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }
    .footer-list {
        margin: 20px 0 0 0;
        text-align: center;
    }
    .footer-list ul {
        padding: 0 0 10px 0;
    }
    
    /* 会社概要 (profile.html) */
    .profile {
        flex-direction: column;
    }
    .profile-txt, .profile-overview {
        width: 90%;
        margin: 0 auto;
        padding: 0;
        height: auto;
        border: none;
    }
    .profile-frame {
        width: 90%;
        margin: 20px auto;
        box-sizing: border-box;
    }
    
    /* 沿革 (history) */
    .history-line {
        display: none; /* スマホでは斜め線は崩れるため非表示推奨 */
    }
    .his-subline {
        display: none;
    }
    [class^="history-"] {
        padding-left: 10px !important; /* 横のズレを解消 */
    }

    /* 素材・加工一覧 (list.html) */
    .print, .material, .process {
        height: auto;
    }
    .print p, .material p, .process p {
        width: 90%;
        margin: 10px auto;
        font-size: 16px;
    }
    .print-container {
        flex-direction: column;
    }
    .print-txt, .material-txt {
        width: 90%;
        height: auto;
        padding: 20px;
        margin: 10px auto;
    }
    .material-content {
        flex-direction: column;
        height: auto;
        margin-left: 0;
        align-items: center;
    }
    .process-content {
        flex-direction: column;
        margin-left: 0;
        align-items: center;
    }

    /* コロナ */
    .corona-1 p {
        padding: 0 5px;
    }
    .corona-2 ul, .corona-3 ul {
        padding-left: 10px;
    }
    .corona-warning {
        margin: 10px;
    }

    /* 事業譲渡 */
    .br-none {
        display: none;
    }
}