@charset "utf-8";

/* ==========================================================================
   Base Layout 
   ========================================================================== */
/* 横揺れ（横スクロール）を防止 */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    padding-top: 140px;
    font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", "メイリオ", sans-serif;
    color: #333;
    margin: 0;
    background: #fff;
}

p {
    line-height: 1.8em;
}

img,
.img-full {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-full {
    width: 100%;
}

@media (min-width: 1024px) {
    .container {
        width: 83% !important;
        max-width: none !important;
        margin: 0 auto;
    }
}

.container-fluid {
    padding: 0 !important;
}

.under-page .container {
    max-width: none !important;

}

.under-page img {
    margin: auto;
}

@media (max-width: 767px) {

    
    #about .top-section.tekizai {
        min-height: 50px;
    }

}


.under-page .siteHeader {
    height: auto;
}

.under-page img.img-fixed {
    position: absolute;
    top: -50px;
}

/* ==========================================================================
   Header Components
   ========================================================================== */
.siteHeader {
    background: #fff;
    width: 100%;
    border: none;
    z-index: 1000;
    left: 0;
    right: 0;
}

.header-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    width: 100%;
}

.logo-area a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-area img {
    height: 60px;
    width: auto;
}

.site-name-text {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-left: 15px;
}

.contact-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contact-upper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tel-number {
    font-size: 26px;
    font-weight: bold;
    color: #1e6cb6;
    text-decoration: none;
    line-height: 1;
}

.btn-mail-box {
    background-color: #1e6cb6;
    color: #fff !important;
    padding: 8px 15px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.privacy-link {
    font-size: 11px;
    color: #1e6cb6;
    text-decoration: none;
    margin-top: 5px;
}

/* ==========================================================================
   Global Navigation
   ========================================================================== */

.navbar {
    margin-bottom: 0px;
}

.global-nav {
    border-top: 1px solid #eee;
    border-bottom: 3px solid #1e6cb6;
    background: #fff;
}

.nav-list {
    display: table;
    width: 100%;
    margin: 0;
    padding: 0;
    table-layout: fixed;
}

.nav-list li {
    display: table-cell;
    text-align: center;
}

.nav-list li a {
    display: block;
    padding: 18px 0;
    color: #333;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
}

.nav-list li.active a {
    color: #1e6cb6;
    position: relative;
}

.nav-list li.active a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1e6cb6;
}

/* Hamburger Menu Button (Base) */
.navbar-toggle {
    display: none;
    border-color: #1e6cb6;
    margin-right: 15px;
    padding: 9px 10px;
}

.navbar-toggle .icon-bar {
    background-color: #1e6cb6 !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.siteFooter {
    /*    background: #1e6cb6;*/
    background-image: url(../images/footer.jpg);
    color: #fff;
    border-top: none;
    position: absolute;
    width: 100%;
    background-repeat: no-repeat;
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: calc(100% * 970 / 1920);
    background-size: contain;


}

.upperSection {
    padding: 60px 0;
}

.footer-logo {
    height: 45px;
    margin-bottom: 40px;
    filter: brightness(0) invert(1);
    margin: 0 auto 30px;
}

.footer-nav li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 15px;
}

.copySection {
    background: #15518a;
    padding: 20px 0;
    font-size: 12px;
}

/* ==========================================================================
   Common Components & Utilities
   ========================================================================== */

.page-header-img {
    background-color: #337ab7;
    /* 画像がない場合の予備色 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    margin-top: 60px;
    /* ヘッダー固定分の余白 */
    text-align: center;
    padding: 80px 0 40px;
}



.page-header-img h1 {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
}

.page-header-img h1 span {
    font-size: 16px;
    font-weight: normal;
    text-transform: uppercase;
}

.breadcrumb-wrapper {
    background: #f5f5f5;
    padding: 10px 0;
}

.breadcrumb {
    background: none;
    margin: 0;
    font-size: 13px;
}

.full-width-content {
    width: 100%;
    overflow-x: hidden;
}

.section-title-wrapper {
    padding: 60px 0 40px;
    text-align: center;
}

.section-header {
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
    font-size: 21px;
    text-align: center;
    z-index: 100;
}

.section-header .sub {
    display: block;
    font-size: 13px;
    color: #1e6cb6;
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.section-header:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 60px;
    height: 3px;
    background: #1e6cb6;
    margin-left: -30px;
}

.top-section {
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    margin: 0 auto;
    line-height: 0;
}

.top-section h2 {
    font-weight: 700;
}

.top-section .text {
    font-size: 3vw;
    line-height: 2;
    color: #ffffff;
}

.card-col {
    margin-bottom: 3.5vw;
}

.rinen-box-full {
    background: #f8f8f8;
    padding: 80px 0;
    width: 100%;
}

.inner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: #ffffff;
}

.row-0 {
    margin-right: 0;
    margin-left: 0;
}

.row-0>[class^="col-"],
.row-0>[class*=" col-"] {
    padding-right: 0;
    padding-left: 0;
}

/* ==========================================================================
   Page Specific: Home / General
   ========================================================================== */
.top-section.flow {
    background-image: url(../images/flow_bg.png);
    padding-bottom: 160px;
    background-size: contain;
}

.top-section.business {
    background-image: url(../images/business_bg.png);
}

.top-section.business h2 {
    padding-top: 50px;
    position: relative;
    top: 0;
    left: 0;
    color: #ffffff;
    text-align: center;
    transform: none;
    font-size: 5vw;
    padding-bottom: 50px;
}

.top-section.business h3 {
    padding-top: 0px;
    color: #ffffff;
    text-align: center;
    transform: none;
}

#about .page-header-img {
    background-image: url("../images/about_sayto_02.jpg");
}

/* ==========================================================================
   Page Specific: Materials
   ========================================================================== */
#materials .page-header-img {
    background-image: url("../images/material-sales_sayto_02.jpg");
}

#materials .material-stock .stock-bg-area {
    position: relative;
    width: 100%;
}

#materials .material-stock .button-overlay {
    position: absolute;
    bottom: 10%;
    left: 0;
    right: 0;
    width: 80%;
    margin: 0 auto;
}

#materials .material-stock .button-overlay img {
    max-width: 400px;
    width: 100%;
    transition: transform 0.3s ease;
}

#materials .material-stock .button-overlay img:hover {
    transform: scale(1.05);
}

#materials .material-gallery-section {
    padding: 80px 0;
    background: #f8f8f8;
}

/* ==========================================================================
   Page Specific: Processing
   ========================================================================== */
#processing .page-header-img {
    background-image: url("../images/material-engineering_sayto_02.jpg");
}

#processing .overlay-title {
    position: absolute;
    width: 100%;
    top: 50px;
    z-index: 10;
    color: #fff;
}

#processing .sub-lead {
    font-size: 15px;
    padding-top: 15px;
}

#processing .processing-row {
    min-height: 550px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

#processing .plastic {
    background-image: url(../images/material-processing_sayto_05.jpg);
    padding: 33% 20%;
}

#processing .metal {
    background-image: url(../images/material-processing_sayto_06.jpg);
    padding: 33% 20% 15% 20%;
}

#processing .rubber {
    background-image: url(../images/material-processing_sayto_07.jpg);
    padding: 35% 20% 10% 20%;
}

#processing .ceramic {
    background-image: url(../images/material-processing_sayto_08.jpg);
    padding: 33% 20% 15% 20%;
}

#processing .info-box {
    width: 45%;
    padding: 50px;
    color: #fff;
    position: absolute;
}

#processing .left-box {
    left: 50%;
    background-color: rgba(4, 136, 204, 0.9);
}

#processing .right-box {
    right: 50%;
    background-color: rgba(3, 89, 133, 0.9);
}

#processing .info-box h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #fff;
    text-align: left;
}

#processing .info-box p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

#processing .info-box hr {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

#processing .top-section h3 {
    position: absolute;
    top: 250px;
    left: 50%;
    font-size: 1.5rem;
    transform: translate(-50%, -50%);
    font-weight: normal;
    text-align: center;
    width: 100%;
}

/* ==========================================================================
   Page Specific: Machine
   ========================================================================== */
#machine .machine-result-section {
    background-image: url(../images/material-engineering_sayto_09.jpg);
    padding: 150px 0;
    background-size: 100%;
    background-color: #fff;
}

#machine .page-header-img {
    background-image: url("../images/material-engineering_sayto_02.jpg");
}

#machine div.machine {
    padding: 25px 40px;
    word-break: keep-all;
    min-height: 250px;
}

#machine .machine-item {
    padding: 40px;
    min-height: 280px;
}

#machine .machine-item.bg-gray {
    background-color: #f5f5f5;
}

#machine .machine-item h3 {
    display: inline-block;
    border: 1px solid #1e6cb6;
    color: #1e6cb6;
    padding: 5px 15px;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

#machine .machine-item p {
    font-size: 15px;
    line-height: 1.8;
}

#machine .maintenance-section {
    background-color: #fff;
    border-top: 1px solid #eee;
}

#machine .maintenance-txt-box {
    padding: 60px 80px;
}

#machine .maintenance-txt-box ul {
    padding: 0;
    list-style: none;
}

#machine .maintenance-txt-box li {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 10px;
    padding-left: 1.5em;
    text-indent: -1.5em;
}

#machine .maintenance-txt-box li::before {
    content: "●";
    color: #1e6cb6;
    margin-right: 0.5em;
}

#machine .p-80 {
    padding: 80px 0;
}

/* ==========================================================================
   Page Specific: FDP
   ========================================================================== */

#fdp .page-header-img {
    background-image: url("../images/material-fdr_sayto_01.png");
}

#fdp .num {
    font-size: 48px;
    color: #ef5050;
    font-weight: bold;
    line-height: 1;
}

#fdp .py-40 {
    padding: 40px 0;
}

#fdp .fdp-main {
    background-color: #fff;
    position: relative;
}

/* ==========================================================================
   Page Specific: Contact & Contact-Send
   ========================================================================== */
#contact .page-header-img {
    background-image: url("../images/contact_sayto_02.jpg");
}

#contact .py-60,
#contact-send .py-80 {
    padding: 60px 0;
}

#contact .py-80,
#contact-send .py-80 {
    padding: 80px 0;
}

#contact .section-title-simple {
    font-size: 24px;
    font-weight: bold;
    color: #1e6cb6;
    margin-bottom: 30px;
    border-bottom: 2px solid #1e6cb6;
    padding-bottom: 10px;
    display: inline-block;
}

.info-box-light {
    background: #f0f9fe;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #cce9f8;
}

.blue-link {
    color: #1e6cb6;
    text-decoration: underline;
}

.form-container-box {
    border: 1px solid #ddd;
    background: #fff;
}

.form-group-row {
    border-bottom: 1px solid #eee;
    display: flex;
}

.form-group-row:last-child {
    border-bottom: none;
}

.form-label-area {
    width: 30%;
    background: #f9f9f9;
    padding: 25px;
    font-weight: bold;
    vertical-align: middle;
    border-right: 1px solid #eee;
    display: flex;
    align-items: center;
}

.form-input-area {
    width: 70%;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.label-msg {
    align-items: flex-start;
}

.label-required {
    background: #ff7887;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 3px;
    margin-right: 10px;
}

#contact .form-control {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 2px;
    box-shadow: none;
}

#contact .form-control:focus {
    border-color: #1e6cb6;
    background-color: #fff;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(30, 108, 182, .3);
}

.btn-submit {
    width: 300px;
    padding: 15px;
    font-size: 20px;
    font-weight: bold;
    background-color: #1e6cb6;
    border: none;
    border-radius: 30px;
    transition: 0.3s;
}

.btn-submit:hover {
    background-color: #15518a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#contact-send .message-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
}

#contact-send .thanks-icon {
    font-size: 64px;
    color: #1e6cb6;
    margin-bottom: 30px;
}

#contact-send h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

#contact-send .lead-txt {
    font-size: 18px;
    color: #666;
}

#contact-send .caution-box {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    border: 1px solid #eee;
    line-height: 1.8;
}

#contact-send .mail-addr {
    font-size: 20px;
    color: #1e6cb6;
    margin-bottom: 10px;
}

#contact-send .tel-addr {
    font-size: 20px;
}

#contact-send .btn-back-home {
    padding: 12px 50px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #1e6cb6;
    color: #1e6cb6;
    border-radius: 30px;
    transition: 0.3s;
}

#contact-send .btn-back-home:hover {
    background: #1e6cb6;
    color: #fff;
}

/* ==========================================================================
   Mobile Adjustments (Max Width 767px)
   ========================================================================== */
@media (max-width: 767px) {


    .page-header-img {
        margin-top:30px;
        padding: 20px 0 20px;
    }

.page-header-img h1{
    font-size:28px;
}

    
    /* Header & Nav */
    .header-main-row {
        flex-direction: column;
        gap: 10px;
    }

    .contact-area {
        display: none;
    }

    .navbar-toggle {
        display: block !important;
        position: absolute;
        right: 10px;
        top: 8px;
        z-index: 1100;
    }

    .nav-list {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .nav-list li {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        border-bottom: 1px solid #eee;
    }

    .nav-list li a {
        padding: 15px 20px !important;
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    .nav-list li.active a::after {
        display: none !important;
    }

    .navbar-collapse {
        background-color: #fff;
        padding: 0 !important;
        max-height: none !important;
        border-top: 1px solid #eee;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    /* General Utils */
    .mb-mobile-20 {
        margin-bottom: 20px;
    }

    .top-section h2 {
        width: 100%;
        font-size: 5vw;
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin-bottom: 1rem;
    }


    .top-section.flow {
        background-image: none;
    }

    /* Tables & Company Info */
    /*
    .company_info { display: block; margin-top: 20px; }
    .company_info table { width: 100%; margin-bottom: 30px; }
    .company_info th, .company_info td { display: block; width: 100% !important; text-align: left; }
    .company_info th { background-color: #f0faff; border-bottom: none; }
    .company_info td { padding: 15px 15px 25px; border-bottom: 1px solid #eee; }
    .company_info td strong { display: inline-block; margin-bottom: 5px; color: #1e6cb6; }
    */

    /* Processing Mobile */
    #processing .p-lead {
        font-weight: bold;
        color: #1e6cb6;
        margin-bottom: 30px;
    }

    #processing .mobile-process-card {
        padding: 40px 20px;
        margin-bottom: 20px;
        color: #fff;
    }

    #processing .mobile-process-card h2 {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 10px;
        color: #fff;
    }

    #processing .plastic-bg {
        background-color: #0488cc;
    }

    #processing .metal-bg {
        background-color: #035985;
    }

    #processing .rubber-bg {
        background-color: #0488cc;
    }

    #processing .ceramic-bg {
        background-color: #035985;
    }

    /* Machine Mobile */
    #machine .machine-item {
        padding: 30px 20px;
        min-height: auto;
    }

    #machine .maintenance-txt-box {
        padding: 40px 20px;
    }

    #machine .mobile-coop-list p {
        font-size: 16px;
        line-height: 2.5;
        border-bottom: 1px solid #eee;
    }

    /* FDP Mobile */
    #fdp .p-20 {
        padding: 40px 20px;
    }

    #fdp .p-5 {
        padding: 5px;
    }

    #fdp .mb-10 {
        margin-bottom: 10px;
    }

    #fdp .py-20 {
        padding: 20px 0;
    }

    #fdp .mobile-fdp-list {
        background: #fff;
        padding: 20px;
        border-radius: 5px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        margin-bottom: 30px;
    }

    #fdp .custom-bullet li {
        font-size: 14px;
        line-height: 2;
        border-bottom: 1px solid #f0f0f0;
        padding: 5px 0;
    }

    #fdp .custom-bullet li:last-child {
        border-bottom: none;
    }

    /* Contact Mobile */
    .form-group-row {
        flex-direction: column;
    }

    .form-label-area {
        width: 100%;
        border-right: none;
        padding: 15px;
        border-bottom: 1px solid #eee;
    }

    .form-input-area {
        width: 100%;
        padding: 15px;
    }

    .btn-submit {
        width: 100%;
    }

    /* Contact Send Mobile */
    #contact-send .message-box {
        padding: 20px;
    }

    #contact-send h2 {
        font-size: 20px;
    }

    #contact-send .lead-txt {
        font-size: 16px;
    }

    #contact-send .mail-addr,
    #contact-send .tel-addr {
        font-size: 18px;
    }
}

/* ==========================================================================
   PC Width Control (768px+)
   ========================================================================== */
@media (min-width: 768px) {
    .navbar-collapse.collapse {
        display: block !important;
        height: auto !important;
        padding-bottom: 0;
        overflow: visible !important;
    }

    .navbar-toggle {
        display: none !important;
    }
}


/* ==========================================================================
   Mobile Adjustments (Max Width 767px) - 左上メニュー固定版
   ========================================================================== */
@media (max-width: 767px) {

    /* --- Base Layout --- */
    body {
        padding-top: 70px !important;
    }

    /* ヘッダーの高さ分、コンテンツを下げる */

    .siteHeader {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: #fff;
        height: 70px;
        /* ヘッダーの高さを固定 */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        overflow: visible;
    }

    /* --- Header Components --- */
    .header-main-row {
        flex-direction: row;
        /* 横並びに戻す */
        align-items: center;
        padding: 5px 0;
        height: 100%;
    }

    .contact-area {
        display: none;
    }

    /* ロゴエリアの調整：左にボタン分のスペースを空ける */
    .logo-area {
        padding-left: 60px;
        /* ハンバーガーボタンの幅分を確保 */
        width: 100%;
        display: flex;
        align-items: center;
    }

    .logo-area img {
        height: 40px;
        /* スマホ用にロゴサイズを少し調整 */
        width: auto;
    }

    .site-name-text {
        font-size: 14px;
        /* スマホ用に文字サイズ調整 */
        margin-left: 10px;
    }

    /* --- Hamburger Menu Button (左上に固定) --- */
    .navbar-toggle {
        display: block !important;
        position: fixed;
        /* 画面に対して固定 */
        top: 10px;
        /* 上からの位置 */
        left: 10px;
        /* 左からの位置 */
        right: auto;
        /* 右指定を解除 */
        margin: 0;
        z-index: 2000;
        /* 最前面に表示 */
        background-color: transparent;
        /* 背景色 */
        border: 1px solid #1e6cb6;
        /* 枠線で見やすく */
        border-radius: 4px;
        width: 44px;
        height: 40px;
    }

    /* --- Navigation Menu (展開時) --- */
    .global-nav {
        border: none;
        background: transparent;
        position: static;
        /* ヘッダー内の配置に影響させない */
    }

    .navbar-header {
        float: none;
    }

    /* メニューが開いた時のスタイル */
    .navbar-collapse {
        position: fixed;
        top: 70px;
        /* ヘッダーの高さ分ずらす */
        left: 0;
        right: 0;
        background-color: #fff;
        padding: 0 !important;
        max-height: calc(100vh - 70px) !important;
        /* 画面いっぱいに表示 */
        overflow-y: auto;
        border-top: 1px solid #eee;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }

    .nav-list {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .nav-list li {
        display: block !important;
        text-align: left !important;
        border-bottom: 1px solid #eee;
    }

    .nav-list li a {
        padding: 15px 20px !important;
        font-size: 16px !important;
    }

    .nav-list li.active a::after {
        display: none !important;
    }

    /* --- Other Mobile Adjustments --- */
    .company_info {
        flex-direction: column;
    }
}

.company_info th,
.company_info td {
    display: block;
    width: 100% !important;
}


/* フォーム調整 */
.form-group-row {
    flex-direction: column;
}

.form-label-area,
.form-input-area {
    width: 100%;
}

/* --- 事業領域（カード）の段ズレ防止 --- */

/* スマホ表示 (2列) の時は、奇数番目(3,5...)の左側をクリア */
@media (max-width: 767px) {
    .card-col:nth-child(2n+1) {
        clear: both;
    }
}

/* PC・タブレット表示 (3列) の時は、4,7...番目の左側をクリア */
@media (min-width: 768px) {
    .card-col:nth-child(3n+1) {
        clear: both;
    }
}

/* --- 事業領域（カード）のズレをFlexboxで完全修正 --- */

/* PC・タブレットサイズ（768px以上）で適用 */
@media (min-width: 768px) {

    /* 事業領域の枠（row）をFlexbox化して高さを揃える */
    .gray-bg .row {
        display: flex;
        flex-wrap: wrap;
    }

    /* 中身のカードのフロートを解除 */
    .gray-bg .card-col {
        float: none;
    }
}

/* スマホサイズ（767px以下）用のズレ防止（念のため） */
@media (max-width: 767px) {
    .gray-bg .row {
        display: flex;
        flex-wrap: wrap;
    }

    .gray-bg .card-col {
        float: none;
    }
}


/* ==========================================================================
   Page Specific: About
   ========================================================================== */



#about .top-section .text {
    text-align: center;
}

#about .top-section.rinen {
    background-image: url(../images/about_sayto_05.jpg);
    display: flex;
    align-items: center;
    padding: 5vw 0;
}

#about .top-section.tekizai {
    background-image: url("../images/about_sayto_17.png");
    min-height: 550px;
    color: #ffffff;
    background-size: cover;
    display: flex;
    align-items: center;
}

#about .top-section h3 {
    text-align: center;
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 60px;
    letter-spacing: 5px;
    font-family: 'Noto Serif', 'Sawarabi Mincho', serif;
    font-weight: 100;
    color: #ffffff;
}

#about .company_info {
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}

#about .group_company {
    margin-bottom: 40px;
}

#about .company_info table {
    width: 30%;
    font-size: 1.5rem;
}

#about .group_company table {
    margin: 40px 0;
    width: 100%;
}


#about .company_info th,
#about .company_info td,
.group_company table th,
.group_company table td {
    padding: 20px 10px;
    text-align: left;
    /*    border-bottom: 1px solid #a7d0fd; */
    vertical-align: top;
}

#about .company_info th,
.group_company table th {
    font-weight: bold;
    padding-left: 0;
    width: 20%;
}

#about .company_info td,
.group_company table td {
    line-height: 1.8;
    padding-right: 0;
}

.group_company table td,
.group_company table th {
    border-bottom: none;
}

.company_info td {
    width: 70%;
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}




.gmap-link a {
    background: #1e6cb6;
    color: #fff;
    padding: 10px 30px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
}


#about table.company_addr th {
    border-bottom: none;
    vertical-align: top;
}

#about table.company_addr td {
    border-bottom: none;
}



#about .group_company img {
    width: 100%;
}

#about .gmap {
    position: absolute;
    bottom: 5%;
    z-index: 100;
    left: 30%;
}

#about .gmap a {
    color: #f5d808;
    font-weight: 700;
}

/* テーブル（セル）の上線を消す */

.company_info table {
    border-top: none !important;
}

/* --- About Comapany --- */

@media (max-width: 767px) {
    #about .company_info {
        display: block;
        /* flexを解除 */
        width: 100%;
    }


    #about .company_info table,
    #about .group_company table {
        width: 100%;
        display: block;
        margin-bottom: 40px;
    }


    #about .company_info tbody,
    #about .company_info tr,
    #about .group_company tbody,
    #about .group_company tr {
        display: block;
        width: 100%;
    }


    #about .company_info th,
    #about .company_info td,
    #about .group_company th,
    #about .group_company td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 15px 10px;
        border: none;
    }


    #about .company_info th,
    #about .group_company th {
        background-color: #f0f9ff;
        border-bottom: 1px dotted #a7d0fd;
        margin-top: 10px;
    }


    #about .company_info table.company_addr th {
        margin-top: 20px;
        padding-top: 15px;
    }
}





@media (min-width: 768px) {
    .under-page .section-header+.row {
        margin-top: -150px;
        position: relative;
        z-index: 1;
    }

    #processing .section-header+.row {
        margin-top: -180px;
    }

    .under-page .section-header {
        position: relative;
        z-index: 2;
        margin-bottom: 0;
    }
}


/* ===== Footer Hero ===== */
.siteFooterHero {
    /* 背景 */
    background-color: #1e6cb6;
    background-image: url(../images/footer.jpg);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    /* 画像全体より“見た目重視”なら cover が近い */

    color: #fff;
    border-top: none;
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* 画像比率（1920x970）を保つ：モダン */
.siteFooterHero {
    aspect-ratio: 1920 / 970;
    min-height: 420px;
    /* 画面が狭い時の保険 */
}

/* フォールバック（aspect-ratio未対応用） */
@supports not (aspect-ratio: 1 / 1) {
    .siteFooterHero {
        height: 0;
        padding-bottom: calc(100% * 970 / 1920);
    }
}

/* 中身をフッター領域にフィットさせる */
.siteFooterHero__inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
}

/* 上部キャッチ（画像上に白文字） */
.siteFooterHero__catch {
    margin: 0;
    padding: 48px 16px 0;
    text-align: center;
    font-size: clamp(18px, 2vw, 28px);
    letter-spacing: .12em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}

/* 下部の黒帯 */
.siteFooterHero__bar {
    margin-top: auto;
    padding: 18px 16px 14px;
    position: relative;

    /* 黒帯の雰囲気（画像に近い） */
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.10),
            rgba(0, 0, 0, 0.70));
}

/* 中央ロゴ */
.siteFooterHero__brand {
    text-align: center;
    font-size: clamp(26px, 3.2vw, 42px);
    font-weight: 700;
    letter-spacing: .18em;
    margin: 6px 0 10px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
}

/* メニュー行 */
.siteFooterHero__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    font-size: 14px;
}

.siteFooterHero__nav a {
    color: #fff;
    text-decoration: none;
    opacity: .95;
    position: relative;
    padding-left: 16px;
}

/* 先頭の “>” っぽい青い矢印 */
.siteFooterHero__nav a::before {
    content: "›";
    position: absolute;
    left: 0;
    top: -1px;
    color: #38a7ff;
    font-size: 18px;
    line-height: 1;
}

.siteFooterHero__nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 最下段コピー */
.siteFooterHero__copy {
    text-align: center;
    font-size: 12px;
    padding: 8px 16px 10px;
    background: rgba(0, 0, 0, .78);
    border-top: 1px solid rgba(255, 255, 255, .12);
}

/* スマホ */
@media (max-width:768px) {
    .siteFooterHero__catch {
        padding-top: 28px;
    }

    .siteFooterHero__nav {
        gap: 8px 14px;
        font-size: 13px;
    }
}


@media (max-width: 480px) {
    p {
        font-size: 3vw;
    }
}

.cols {
    column-count: 2;
}

.mt-20 {
    margin: 20px;

}

/* モバイル専用ギャラリーの外枠 */
.material-gallery-mobile {
    position: relative;
    padding: 30px 10px;
    /* 背景画像の設定（適宜URLを差し替えてください） */
    background-image: url('../images/gallery_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    /* モバイルではscrollの方が挙動が安定します */
    overflow: hidden;
}

/* 背景を暗くして中身を浮かび上がらせる（オーバーレイ） */
.material-gallery-mobile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* 黒の50%透過 */
    z-index: 1;
}

/* タイトルを中央に、白文字で */
.material-gallery-mobile h3 {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-align: center;
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* BootstrapのRowとColの調整 */
.material-gallery-mobile .row {
    position: relative;
    z-index: 2;
    margin: 0 -5px;
    /* 親のpaddingとの相殺 */
    display: flex;
    flex-wrap: wrap;
}

/* 各画像パネル（カード）の装飾 */
.material-gallery-mobile .p-5 {
    padding: 5px !important;
    /* カード同士の隙間 */
}

.material-gallery-mobile .img-full {
    width: 100%;
    height: auto;
    display: block;
    /* カード風の装飾 */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

/* col-xs-6 の場合、横並びだと文字が小さくなるため、
   特定の画面幅以下では1カラムに強制する設定（任意） */
@media (max-width: 480px) {
    .material-gallery-mobile .col-xs-6 {

        margin-bottom: 10px;
    }
}

/* style.css に追加 */

/* ヘッダーの高さ分、コンテンツを下に押し下げておく */
body {
    padding-top: 80px;
    /* 実際のヘッダーの高さに合わせて調整してください */
}

/* ヘッダーの変化を滑らかにする（揺れを視覚的に抑える） */
#global-header {
    transition: all 0.3s ease;
    /* ヘッダーが浮かないようにする */
    backface-visibility: hidden;
}

/* スクロール後に付与されるクラス（例：.scrolled）がある場合 */
#global-header.scrolled {
    height: 60px;
    /* 小さくなった時の高さ */
}

/* ==========================================================================
   FIX (PC): ABOUT overlap keeps -150px effect, but prevents covering .page-header-img
   --------------------------------------------------------------------------
   Goal:
     - Keep ABOUT's existing overlap effect:
         .under-page .section-header + .row { margin-top: -150px; ... }
     - But do NOT let that negative margin escape upward into .page-header-img.
     - Do NOT create extra visible gap between .page-header-img and the ABOUT section.

   Technique (ABOUT only):
     - Give main.siteContent a top padding "buffer" of 150px so the negative margin
       is absorbed inside the padding instead of escaping into the header image.
     - Pull the whole siteContent up by the same amount (-150px) so the visible
       position stays the same (no extra gap).
   ========================================================================== */

/* --- Previous attempt (kept for reference, now disabled) -------------------
@media (min-width: 768px) {
  #about .section-header + .row { margin-top: 0; }
  #about { margin-top: -150px; position: relative; z-index: 2; }
  .page-header-img { position: relative; z-index: 1; }
}
-------------------------------------------------------------------------- */

@media (min-width: 768px) {

    /* ABOUT only: create an internal buffer and offset it back to avoid extra gap */
    #about main.siteContent {
        margin-top: -150px;
        padding-top: 150px;
        position: relative;
        z-index: 2;
    }

    /* Ensure header image stays behind the ABOUT content overlay */
    #about .page-header-img {
        position: relative;
        z-index: 1;
    }

    .page-header-img {

        min-height: 280px;
    }
}