@charset "UTF-8";

/* --- リセット & ベーススタイル --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #1f2937;
    background-color: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

ul {
    list-style: none;
}

/* --- ユーティリティ --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.text-red {
    color: #dc2626;
}

.font-bold {
    font-weight: 700;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* --- ボタン --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: #E53935;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #C62828;
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-nav {
    background-color: #dc2626;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-nav:hover {
    background-color: #b91c1c;
}

/* --- ヘッダー --- */
header {
    background-image: linear-gradient(#1f2937, #597092);
    color: white;
    padding: 0.5rem 0;
    /* position: sticky; */
    position: static;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    height: 64px;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: -0.05em;
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.nav-menu a:not(.btn-nav):hover {
    color: #d1d5db;
}

.menu-toggle-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: block;
    /* スマホで表示 */
}

/* --- ヒーローセクション --- */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(../img/main_visual.webp);
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-btn {
    font-size: 1.125rem;
    padding: 0.75rem 2rem;
}

.hero-btn span {
    display: block;
    font-size: 0.75rem;
    font-weight: normal;
    margin-top: 0.25rem;
}

/* --- セクション共通 --- */
.section {
    padding: 4rem 0;
}

.bg-gray {
    background-color: #f9fafb;
    /* gray-50 */
}

.section-header {
    text-align: left;
    margin-bottom: 3rem;
    border-bottom: 2px solid #ef4444;
    display: inline-block;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    padding-bottom: 0.5rem;
}

/* --- 製品ラインナップ --- */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.product-card {
    background: white;
    padding: 15px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card > .product-image-wrap {
    order: -1; 
}

.product-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #dc2626;
    margin-bottom: 1rem;
}

.product-title span {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: normal;
}

.product-desc {
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.product-btn {
    width: 100%;
}


/* --- 導入事例 --- */
.case-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.case-item {
    cursor: pointer;
    background-color: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.case-img-wrap {
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.75rem;
}

.case-img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
    transition: transform 0.5s;
}

.case-item:hover .case-img {
    transform: scale(1.05);
}

.case-caption {
    padding: 0.75rem;
    text-align: center;
    font-weight: bold;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

/* --- お問い合わせ --- */
.contact-section {
    background-color: #334155;
    color: white;
    padding: 4rem 0;
}

/* 修正: サブテキストのスタイルを画像に合わせる */
.contact-desc {
    text-align: center;
    color: #c0c0c0;
    margin-bottom: 3rem;
    font-size: 13px;
    text-align: center;
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1024px;
    margin: 0 auto;
}

/* 左カラム（電話） */
.contact-info {
    background: white;
    color: #1f2937;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tel-number {
    font-size: 1.875rem;
    font-weight: bold;
    color: #dc2626;
    margin: 0.5rem 0;
    display: block;
}

/* 右カラム（フォーム） */
.contact-form-box {
    background: white;
    color: #1f2937;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.form-title {
    font-weight: bold;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.25rem;
}

/* フォーム要素 */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: #6b7280;
}

.badge-required {
    color: #ef4444;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.form-input,
.form-textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    color: #1f2937;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #ef4444;
}

.form-textarea {
    height: 8rem;
    resize: none;
}

/* ラジオボタン/チェックボックスのグループ */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-item {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: #1f2937;
    cursor: pointer;
    background-color: #f9fafb;
    padding: 10px;
    border: #c0c0c0 1px solid;
    border-radius: 5px;
}

.radio-item input[type="radio"],
.radio-item input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: #4b5563;
    transform: scale(1.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.btn-submit {
    background-color: #db2627;
    color: white;
    font-weight: bold;
    padding: 0.75rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    font-size: 1.1rem;
}

.btn-submit:hover {
    background-color: #b95544;
}

.form-subtext {
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* --- フッター --- */
footer {
    background-color: black;
    color: #9ca3af;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.875rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-logo img {
    margin: 0 auto;
}

/* --- thnksセクション --- */
.thinks {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(../img/main_visual.webp);
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.thinks h1 {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.thinks p {
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 500;
}


/* --- PC用メディアクエリ (768px以上) --- */
@media (min-width: 768px) {

    /* ヘッダー */
    .nav-menu {
        display: flex;
    }

    .menu-toggle-button {
        display: none;
    }

    .hero {
        height: 600px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero h1 br {
        display: none;
    }

    /* PCでは改行しない */
    .hero p {
        font-size: 1.25rem;
    }

    /* 製品ラインナップ */
    .product-card {
        flex-direction: row;
    }

    .product-card.reversed {
        flex-direction: row-reverse;
    }

    /* 偶数番目の反転 */
    .product-content {
        width: 50%;
    }

    .product-image-wrap {
        width: 50%;
    }

    .product-image {
        height: 100%;
    }

    /* 導入事例 */
    .case-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* お問い合わせ */
    .contact-wrapper {
        flex-direction: row;
    }

    .contact-info {
        width: 33.333%;
    }

    .contact-form-box {
        width: 66.666%;
    }

    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-content {
        width: 50%;
    }
    
    .product-image-wrap {
        width: 50%;
    }

    .thinks p {
        font-size: 1.125rem;
    }

}

/* --- モバイルメニュー (JavaScript制御) --- */

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
    z-index: 90;
    visibility: hidden; 
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-nav-menu {
    width: 75%;
    height: 100%;
    background-color: #f9fafb; 
    padding: 2rem;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%); 
    transition: transform 0.3s ease-out;
}

/* メニュー項目 */
.mobile-nav-link, .mobile-nav-button {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb; 
    color: #1f2937;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
}
.mobile-nav-button {
    text-align: center;
    background-color: #dc2626; 
    color: white;
    border-radius: 0.25rem;
    margin-top: 1.5rem;
    border: none;
    padding: 0.75rem;
}

/* メニューオープン時のクラス (JSが追加/削除する) */
.mobile-nav-overlay.is-open {
    visibility: visible;
    opacity: 1;
}

.mobile-nav-overlay.is-open .mobile-nav-menu {
    transform: translateX(0); 
}

/* --- body スクロールロック (CSS) --- */
.no-scroll {
    overflow: hidden;
}

