@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Noto+Serif+JP&display=swap');
/* 全体共通 */
* {
    margin: 0;
    padding: 0;
    font-family: 'Libre Baskerville', 'Noto Serif JP', sans-serif;
    letter-spacing: 0.1em;
}
.wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 4%;
}
a {
    text-decoration: none;
}
ul {
    list-style-type: none;
}
body {
    border-top: 5px solid #2196F3;
}
section:nth-of-type(n+3) {
    padding: 100px 0 150px 0;
}
.fadein {
    opacity: 1;
    animation: fadein-page 2s forwards;
}
@keyframes fadein-page {
    0% {
        opacity: 0.01;
    }
  
    100% {
      opacity: 1;
    }
}

/*----------------------------
scroll_up ｜下から上へ出現
----------------------------*/
.scroll_up {
    transition: 1s ease-in-out;
    transform: translateY(30px);
    opacity: 0;
}
.scroll_up.on {
    transform: translateY(0);
    opacity: 1.0;
}
.timing02 {transition-delay: .2s;}
.timing03 {transition-delay: .4s;}
.timing04 {transition-delay: .6s;}
.timing05 {transition-delay: .8s;}

/* トップページ以外の上部タイトル */
.title-innner {
    padding: 40px;
    color: white;
}
#business-title {
    background: url(./img/bg-2.webp) no-repeat center center / cover;
}
#works-title {
    background: url(./img/bg-1.webp) no-repeat center center / cover;
}
#company-title {
    background: url(./img/bg-4.webp) no-repeat center center / cover;
}
#contact-title {
    background: url(./img/bg-3.webp) no-repeat center center / cover;
}
#qa-title {
    background: url(./img/bg-5.webp) no-repeat center center / cover;
}
#business-section,
#works-section,
#company-section,
#contact-section {
    padding-top: 0;
}
/* [XXX] > [XXX] トップページ以外の左上ナビゲーション */
.breadcrumbs {
    margin: 15px 0 75px 0;
}
.breadcrumbs span {
    display: inline-block;
    list-style: none;
    margin-right: 0.2em;
    font-size: 12px;
    text-transform: uppercase;
}
.breadcrumbs a {
    color: #1976D2;
    font-weight: bold;
}
.breadcrumbs span:nth-child(2n) {
    color: #555;
    font-size: 11px;
    position: relative;
    top: -0.1em;
}

/* コンテンツタイトル */
.main-title,
.sub-title {
    text-transform: uppercase;
    text-align: center;
}
.main-title {
    font-size: 33px;
    font-weight: bold;
    line-height: 1.8;
    letter-spacing: 0.3em;
}
.sub-title {
    color: #1976D2;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.2em;
    margin-bottom: 80px;
}

/* トップのロゴと電話番号 */
.logo-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 125px;
    padding-top: 3px;
}
.logo {
    width: 240px;
}
.tel {
    height: auto;
    width: 300px;
}
.contact-group {
    display: flex;
    align-items: center; /* 縦位置を揃える */
    gap: 10px; /* tel と btn の間の隙間 */
}
.btn-group {
    position: relative;
}
.question-link {
    position: absolute;
    top: -10px;
    left: 2px;
}
.question-link a {
    color: #1976D2;
    font-size: 13px;
}
.question-link a::before {
    content: '>';
    color: #1976D2;
    font-weight: bold;
    font-family: 'Noto Serif JP';
}
.btn button {
    margin-top: 15px;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    color: white;
    font-weight: bold;
    background: linear-gradient(135deg, #64B5F6 13%, #1976D2  100%);
    transition: .4s;
}
.btn button:hover {
    transition: .4s;
    opacity: 0.7;
    cursor: pointer;
}

/* SP時のチェックボックス非表示 */
#menu-btn-check {
    display: none;
}
/* ナビゲーション */
.sticky {
    position: sticky;
    z-index: 999;
    top: 0;
    width: 100%;
    box-shadow: 0 2px 5px #ccc;
    background-color: white;
}
#nav {
    padding: 10px 0 10px 0;
}
.nav {
    display: flex;
    justify-content: center;
}
.nav a {
    display: block;/* li全体をリンクにするため */
    padding: 15px 50px 15px 50px;
    font-weight: bold;
    color: #363636;
    font-size: 18px;
    position: relative;
    display: inline-block;
    transition: .3s;
}

.nav a:hover {
    transition: .3s;
    opacity: 0.7;
    cursor: pointer;
    color: #1976D2;
}
.nav span {
    display: block;
    text-transform: uppercase;
    font-size: 0.5rem;
    opacity: 0.6;
    letter-spacing: 0.2em;
    line-height: 2.2;
}
.nav li {
    position: relative;
    text-align: center;
}
.nav li:last-child {
    display: none;
}
.nav li:before {
    content: url(./img/nav-line.png);
    left: 0;
    top: 20px;
    position: absolute;
}
.nav li:nth-child(5)::after {
    content: url(./img/nav-line.png);
    right: 0;
    top: 20px;
    position: absolute;
}

/* スライドビュー */
.main-visual-box {
    position: relative;
}
.main-visual-box img {
    /* 幅をウィンドウいっぱいに */
    width: 100%;
    /* 高さをウィンドウ幅に応じて設定 */
    height: 35vw;
    /* 最小・最大の高さを設定してレスポンシブ対応 */
    min-height: 400px;
    max-height: 750px;
    object-fit: cover;
}

/* 画像上のタイトル */
.title-box {
    position: absolute;/*絶対配置*/
    color: white;/*文字は白に*/
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    width: 90%;
}
.title-box .main-title, 
.title-box .sub-title {
    text-align: center;
    color: #fff;
    font-size: clamp(1rem, 0.227rem + 3.86vw, 3.125rem);
    font-weight: bold;
}

.title-box .main-title {
    opacity: 0;
    animation: slideIn 2s forwards;
}
.title-box .sub-title {
    margin-top: 20px;
    opacity: 0;
    animation: slideIn 2s forwards;
    animation-delay: .9s;
}
@keyframes slideIn {
    from {
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
}

/* 事業概要 */
.card-box .wrapper {
    max-width: 1300px;
}
.card-list {
    display: grid;
    column-gap: 50px;
    row-gap: 60px;
    grid-template-columns: repeat(3, 1fr);
}

.card-img {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
}

.card-content {
    padding: 25px 0 25px 0;
    letter-spacing: 0.15em;
    text-align: center;
}

.card-title {
    font-size: 20px;
    margin-bottom: 5px;
}
.card-text {
    font-size: 14px;
    margin-bottom: 10px;
    
}
.card .btn {
    text-align: center;
}
.card button {
    padding: 15px;
}

.card button::after {
    content: '＞';
    font-size: 14px;
    padding-left: 10px;
}
#business .description {
    text-align: center;
    font-size: 17px;
    padding-bottom: 30px;
}

/* 施工事例 */
#works .btn {
    text-align: center;
}
#works button::after {
    content: '＞';
    font-size: 14px;
    padding-left: 10px;
}
.works-name {
    padding: 15px 0 15px 0;
    margin-bottom: 45px;
    border-top: 3px solid #1976D2;
    border-bottom: 3px solid #1976D2;;
}

/* 代表挨拶 */
.message-box {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.message-img img {
    width: 365px;
}
.message-text {
    margin-top: 10px;
    margin-left: 30px;
}
.message-text p {
    font-family: 'Libre Baskerville';
    margin-bottom: 30px;
}
.message-text p:last-child {
    text-align: right;
}

/* 会社情報 */
.info-table {
    border-collapse: collapse;
    table-layout: fixed;
    margin: 0 auto;
    width: 100%;
}
.info-table th,
.info-table td {
    font-family: 'Noto Serif JP';
    border: 1px solid rgba(0, 0, 0, .1);
    padding: 5px 10px;
    text-align: left;
}
.info-table th {
    padding: 20px;
    width: 200px;
}
.info-table td {
    padding: 20px;
    background-color: white;
}
.info-table tr:nth-child(even) th {
    background: #e6f3fb;
}
.info-table tr:nth-child(odd) th {
    background: #ebfafd;
}


/* アクセス */
.map-innner {
    display: flex;
    justify-content: center;
    gap: 100px;
}
.access-logo img {
    border-bottom: solid 1px rgba(112, 112, 112, 0.3);
    margin-bottom: 5px;
}
.access-logo p {
    font-family: 'Noto Serif JP';
    font-size: 14px;
    line-height: 1.5;
}
.access-logo button {
    display: block;
    margin-top: 20px;
    padding: 10px 15px;
    width: 240px;
    height: 50px;
    font-family: 'Noto Serif JP';
    font-size: 16px;
    color: white;
    font-weight: bold;
    background-color: #1976D2;
    border: 1px solid #1976D2;;
    cursor: pointer;
    transition: .4s;
}
.access-logo button:hover {
    transition: .4s;
    opacity: 0.7;
}
.map {
    width: 476px;
}
.gmap {
    border: 1px solid #1976D2;
}
.gmap iframe {
    width: 100%;
}

/* お問い合わせ */
.contact-img {
    text-align: center;
    margin-bottom: 80px;
}
.contact-img img {
    max-width: 380px;
    height: auto;
}
.contact-table {
    width: 100%;
}
.essential {
    background: #c10811;
    color: #fafafa;
    font-size: 12px;
    padding: 0 10px;
    font-weight: normal;
    margin-right: 10px;
}
.table-list {
    display: flex;
    justify-content: space-between;
    font-family: 'Noto Sans JP';
    letter-spacing: 0.05em;
    width: 100%;
    margin-bottom: 40px;
}

.table-list th {
    font-size: 13px;
    font-weight: bold;
    width: 250px;
    text-align: left;
}

.table-list-address {
    flex-wrap: wrap;
}

.table-list-address .input-area {
    margin-bottom: 10px;
}

.input-area {
    font-family: 'Noto Sans JP';
    letter-spacing: 0.05em;
    padding: 0 10px;
    border: none;
    width: 550px;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid #c4c4c4;
}

.table-list td {
    font-size: 13px;
    width: calc(100% - 250px);
}

input::placeholder {
    color: #bfbfbf;
    font-size: 12px;
    font-weight: bold;
}

textarea {
    border: none;
    width: 550px;
    height: 200px;
    padding: 0;
    border: 1px solid #c4c4c4;
    resize: vertical; /* 横方向のみサイズを固定する */
}

textarea::placeholder {
    color: #bfbfbf;
    font-size: 12px;
}

input[type="text"] {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.submit-button {
    display: block;
    margin: 30px auto 0;
    background: linear-gradient(135deg, #64B5F6 13%, #1976D2  100%);
    border-radius: 5px;
    cursor: pointer;
    border: none;
    color: white;
    line-height: 1.5;
    outline: none;
    transition: all .5s;
    padding: 20px 100px;
    font-size: 16px;
    transition: .4s;
}

.submit-button:hover {
    transition: .4s;
    opacity: 0.7;
}

/* お知らせ */
.news_list {
    margin: 0 5%;
    list-style-type: none;
}
.news_list_item {
    border-bottom: 1px solid #1976D2;
}
.news_list a {
   position: relative;
   display: flex;
   padding: 25px 0;
   color: black;
}
.news_list_item time {
    font-size: 14px;
    font-family: 'Noto Serif JP';
    display: flex;
    margin: 3px 20px 0 0;
}
.arrow {
    width: 25px;
    height: 1px;
    background: #1976D2;
    position: absolute;
    top: 50%;
    right: 0;
}
.arrow::after {
    content: "";
    display: block;
    width: 6px;
    height: 1px;
    background: #1976D2;
    transform: rotate(45deg);
    position: absolute;
    right: 0px;
    bottom: 2px;
}

/* 投稿画面 */
#article-section {
    background-color: #f7f7f7;
    padding: 100px 0 100px 0;
}
#article-section p {
    font-family: 'Noto Serif JP';
    line-height: 35px;
}
#article-section h1 {
    line-height: 35px;
    color: #1976D2;
    margin: 10px 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #1976D2;
}
#article-section h2 {
    line-height: 35px;
    font-size: 18px;
    margin: 10px 0 10px 0;
}
#article-section h2::before {
    content: "";
    background-color: #1976D2;
    border-radius: 5px;
    display: inline-block;
    height: 33px;
    margin-right: 10px;
    vertical-align: middle;
    width: 5px;
}
.article-inner {
    background-color: white;
    padding: 60px;
    border-radius: 20px;
}
.article-time {
    color: #1976D2;
    font-weight: bold;
}
.article-title {
    font-size: 30px;
    font-weight: bold;
    padding: 50px 0 50px 0;
}
.article-inner .btn {
    margin-top: 60px;
    text-align: center;
}

/* よくある質問 */
#faq .btn {
    text-align: center;
    padding-top: 50px;
}
#faq button::after {
    content: '＞';
    font-size: 14px;
    padding-left: 10px;
}
.faq-title {
    padding: 0 0 10px 5px;
}
.faq-title:not(:first-child) {
    padding: 80px 0 10px 5px;
}
.question {
    background-color: white;
    margin-top: 10px;
    padding: 30px;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.6;
    border: 1px solid rgb(25, 118, 210, 0.3);
    border-radius: 10px;
}
.question p {
    text-indent: -1.7em;
    padding-left: 1.7em;
}
.open-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
}
.question:hover {
    cursor: pointer;
}
.question p::before {
    content: "Q. ";
    font-size: 18px;
    color: #1976D2;
}
.answer {
    display: none;
    padding: 30px;
    background-color: white;
    margin-bottom: 40px;
    border: 1px solid rgb(25, 118, 210, 0.3);
    border-radius: 10px;
}
.open-answer {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.answer p::before {
    content: "　";
    font-size: 14px;
}
.answer p {
    line-height: 1.6;
    text-indent: -1.3em;
    padding-left: 1.3em;
}

/* トップに戻る */
#home-top {
    position: fixed;
    bottom: 28px;
    right: 10px;
    z-index: 1;
    display: none;
}

#home-top .box {
    height: 50px;
    width: 50px;
    border: 1px solid #1976D2;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 6px rgb(0 0 0 / 20%);
    display: flex;
    justify-content: center;
    align-items: center;
}

#home-top img {
    width: 27px;
}

/* フッター */
.footer-area {
    background: url(./img/footer-background.webp) no-repeat center center / cover;
    padding: 50px 0 50px 0;
}
.footer-area .wrapper {
    display: flex;
    justify-content: center;
    gap: 100px;
}
.footer-nav {
    padding-top: 10px;
}
.footer-nav li {
    padding: 8px 0 8px 0;
}
.footer-nav a {
    color: white;
    font-size: 14px;
}
.footer-logo img {
    border-bottom: solid 1px rgba(255, 255, 255, .3);
    margin-bottom: 5px;
}
.footer-logo p {
    font-family: 'Noto Serif JP';
    color: white;
    font-size: 14px;
    line-height: 1.5;
}
.footer-nav a::before {
    content: '> ';
    color: #1976D2;
    font-weight: bold;
    font-family: 'Noto Serif JP';
}
.copylight-inner {
    font-size: 14px;
    padding: 20px 0 20px 0;
}
.copylight {
    display: flex;
    justify-content: space-between;
}
.copylight a:visited {
    color: #1976D2;
}
.copylight p:nth-of-type(2) {
    color: #1976D2;
}


@media screen and (max-width: 780px) {
	/* [XXX] > [XXX] */
	.breadcrumbs {
        margin: 35px 0;
	}
    .breadcrumbs span {
        font-size: 11px;
    }
    /* ロゴ */
    #logo-content {
        position: sticky;
        z-index: 1;
        top: 0;
        box-shadow: 0 2px 5px #ccc;
        background-color: white;
    }
    .logo-content {
        display: flex;
        justify-content: center; 
        height: 90px;
        padding: 10px 0 10px 0;
    }
    .logo-content .logo {
        margin-top: 10px;
    }
    .contact-group {
        display: none;
    }
    /* バーガーメニュー */
    .menu-btn {
        position: fixed;
        top: 0px;
        right: 5px;
        display: flex;
        height: 80px;
        width: 80px;
        justify-content: center;
        align-items: center;
        z-index: 90;
    }
    .menu-btn:hover {
        cursor: pointer;
    }
    .menu-btn span,
    .menu-btn span:before,
    .menu-btn span:after {
        content: '';
        display: block;
        height: 2px;
        width: 30px;
        border-radius: 3px;
        background-color: #d1d1d1;;
        position: absolute;
    }
    .menu-btn span:before {
        bottom: 8px;
    }
    .menu-btn span:after {
        top: 8px;
    }
    #menu-btn-check:checked~.menu-btn span {
        background-color: rgba(255, 255, 255, 0);
    }
    #menu-btn-check:checked~.menu-btn span::before {
        bottom: 0;
        transform: rotate(45deg);
    }
    #menu-btn-check:checked~.menu-btn span::after {
        top: 0;
        transform: rotate(-45deg);
    }
    #menu-btn-check:checked~.nav {
        left: 55%;
        box-shadow: -10px 0 35px -20px rgba(0, 0, 0, .25);
    }
    /* 高さ調整 */
    .menu-btn {
        padding-top: 15px;
    }

    /* ナビゲーション */
    #nav {
        padding: 0;
    }
    #nav .nav-content {
        height: 80px;
    }
    #nav .nav-content .logo {
        width: 80px;
        margin-right: 15px;
    }
    #nav .nav-content .logo-sub-title {
        margin-bottom: 0;
    }
    #nav .nav {
        width: 100%;
        height: 100%;
        position: fixed;
        display: block;
        top: 0;
        left: 100%;
        z-index: 80;
        background-color: white;
        transition: all 0.5s;
    }
    #nav .nav ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    #nav ul {
        padding-top: 90px;
    }
    #nav li {
        text-align: start;
        border-bottom: solid 1px rgba(112, 112, 112, 0.3);
    }
    #nav li:first-child {
        margin-top: 10px;
        border-top: solid 1px rgba(112, 112, 112, 0.3);
    }
    #nav li span {
        text-align: center;
    }
    #nav li::before {
        content: '';
    }
    #nav .nav a {
        font-size: 14px;
    }
    #nav .nav li:last-child {
        display: block;
    }
    
    /* 会社概要、施工事例 */
    .card-list {
        column-gap: 15px;
        row-gap: 10px;
        grid-template-columns: repeat(1, 1fr);
    }

    .card-content {
        padding: 15px 0 25px 3px;
    }

    .card-text {
        font-size: 12px;
    }
    .card .btn {
        margin-bottom: 50px;
    }

    /* 代表挨拶 */
    .message-box {
        display: block;
        justify-content: center;
        align-items: flex-start;
    }
    .message-img img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }
    .message-text {
        margin-left: 0;
    }

    /* 会社概要 */
    #works-section .card-list {
        grid-template-columns: repeat(2, 1fr);
    }
    table th,
    .info-table td {
        display: block;
    }
    .info-table table,
    .info-table th,
    .info-table td {
        border: none;
    }
    .info-table th {
        width: auto;
    }

    /* アクセス */
    .access-logo {
        text-align: center;
    }
    .access-logo img {
        width: 60%;
    }
    .map-innner {
        display: block;
    }
    .map-innner button {
        width: 100%;
    }
    .map {
        margin-top: 20px;
        width: 100%;
    }

    /* お問い合わせ */
    .contact-bg {
        margin: 50px auto 0;
        padding: 50px 0;
    }
 
    .contact-area {
        margin: 50px auto;
        padding: 50px 20px;
    }
 
    .check-box label {
        width: 100%;
    }
 
    .input-area {
        width: 100%;
    }
 
    textarea {
        width: 100%;
    }
 
    .table-list {
        flex-wrap: wrap;
        margin-bottom: 20px;
    }
 
    .table-list th {
        font-size: 12px;
        width: 100%;
        margin-bottom: 10px;
    }
 
    .table-list td {
        font-size: 10Zpx;
    }
 
    .table-list td {
        width: 100%;
    }
 
    .contact-message {
        font-size: 13px;
    }
 
    .contact-area .text {
        font-size: 13px;
    }
    .submit-button {
        width: 100%;
    }

    /* お知らせ */
    .news_list_item a {
        display: block;
        font-size: 14px;
        padding: 10px 0;
    }
    .news_list_item p {
        padding-top: 3px;
    }
    .arrow {
        display: none;
    }

    /* 投稿画面 */
    #article-section {
        padding: 30px 0 80px 0;
    }
    .article-title {
        font-size: 23px;
        font-weight: bold;
        padding: 10px 0 30px 0;
    }
    .article-inner {
        background-color: transparent;
        padding: 0;
        border-radius: 20px;
    }

    /* フッター */
    .footer-area .wrapper {
        display: block;
    }
    .footer-logo img {
        width: 60%;
    }
    .footer-nav {
        display: flex;
    }
    .footer-area ul {
        display: flex;
        gap: 20px;
    }

    /* コピーライト */
    .copylight {
        display: block;
        text-align: center;
    }
    .copylight p:nth-of-type(2) {
        margin-top: 10px;
    }
}