@charset "utf-8";

/* ==========================================================================
   Base Layout & Typography
   ========================================================================== */
body {
    padding-top: 155px;
    font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans", "Meiryo", sans-serif;
    color: #333;
    margin: 0;
    background: #fff;
}

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;
    padding: 0;
}

.under-page img {
    margin: auto;
}

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

/* ==========================================================================
   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
   ========================================================================== */
.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;
    color: #fff;
}

.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;
    padding: 60px 0;
    color: #fff;
    margin-top: -25px;
}

.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: 28px;
    text-align: center;
}

.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: 3.5vw;
    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;
}

/* ==========================================================================
   Page Specific: About
   ========================================================================== */
#about .header-img {
    background-image: url("../../../assets/images/about_sayto_02.jpg");
}

#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 .top-section.company {
    display: flex;
    flex-direction: column;
    margin-bottom: 200px;
    background: #fff;
    padding-bottom: 80px;
    width: 100%;
}

.company_info {
    margin-top: 40px;
    margin-bottom: 60px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.company_info table {
    width: 48%;
    border-collapse: collapse;
    table-layout: fixed;
    border-top: 2px solid #1e6cb6;
    margin-bottom: 30px;
}

.company_info th, .company_info td {
    padding: 20px 10px;
    vertical-align: top;
    text-align: left;
    border-bottom: 1px solid #e0f0ff;
}

.company_info th {
    width: 30%;
    font-weight: bold;
    color: #333;
    font-size: 15px;
    background-color: #f9f9f9;
    text-align: center;
}

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

.company-sub-images {
    margin: 40px 0;
    width: 100%;
}

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

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

#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 .overlay-title {
    position: absolute;
    width: 100%;
    top: 50px;
    z-index: 10;
    color: #fff;
}

#processing .sub-lead {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-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); }
#processing .metal { background-image: url(../images/material-processing_sayto_06.jpg); }
#processing .rubber { background-image: url(../images/material-processing_sayto_07.jpg); }
#processing .ceramic { background-image: url(../images/material-processing_sayto_08.jpg); }

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

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

#processing .right-box {
    right: 5%;
    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 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 .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 .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) {
    /* Base Layout */
    body { padding-top: 0 !important; }
    /*.siteHeader { position: relative !important; }*/
    
    /* 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;
    }
    
    .navbar{
        min-height: 0;
    }

    .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 th, .company_info td { display: block; width: 100% !important; }
    .top-section h2 { font-size: 6vw; }
    
    /* フォーム調整 */
    .form-group-row { flex-direction: column; }
    .form-label-area, .form-input-area { width: 100%; }
}