@charset "utf-8";

*, *::before, *::after {
    box-sizing: border-box;
}

/* --- 1. 定義・リセット --- */
:root {
    --color-text: #333333;       /* 濃いグレー（文字色） */
    --color-primary: #2e4e99;    /* 紺（メインカラー） */
    --color-accent: #365bb3;     /* 水色（アクセント） */
    --color-bg: #F5F7FA;         /* 薄い青グレー（背景） */
    --color-white: #FFFFFF;
    --color-border: #DDE2E6;     /* 枠線の色 */
    
    --font-main: 'Zen Maru Gothic', sans-serif;
    
    --radius-l: 24px;   /* 大きな角丸 */
    --radius-m: 16px;   /* 中くらいの角丸 */
    --radius-s: 8px;    /* 小さな角丸 */
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: var(--color-bg); /* 全体の背景色（薄いグレー） */
    padding-top: 70px;
    
    width: 100%;
    overflow-x: hidden; /* 横方向のはみ出しを隠す */
overflow-wrap: break-word; /* 長い単語やURLを画面端で折り返す */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; vertical-align: bottom; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. 共通パーツ --- */
.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-weight: bold;
}
.section-desc {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
    font-size: 0.95rem;
}
.section { padding: 60px 0; }
.bg-white { background-color: var(--color-white); }

/* ボタン */
.btn-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 68, 204, 0.3);
}
.btn-primary:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 68, 204, 0.4);
}

/* --- 3. ヘッダー --- */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    height: 70px;
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.logo { font-size: 1.5rem; font-weight: bold; margin: 0; }
.logo a { color: var(--color-primary); }

/* PCナビ */
.nav-pc { display: flex; gap: 20px; align-items: center; }
.nav-pc a { font-weight: bold; font-size: 0.9rem; color: var(--color-primary); }
.nav-pc a:hover { color: var(--color-accent); }
.btn-contact {
    background-color: var(--color-primary);
    color: white !important;
    padding: 8px 20px;
    border-radius: 30px;
}

/* スマホ用ハンバーガー */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px; height: 40px;
    position: relative;
    z-index: 200;
}
.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--color-primary);
    position: absolute; left: 8px;
    transition: 0.3s;
}
.hamburger span:nth-child(1) { top: 12px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 26px; }
.hamburger.active span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* スマホメニュー本体 */
.nav-sp {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--color-white);
    padding-top: 80px; text-align: center;
    transform: translateY(-100%); transition: 0.3s;
    z-index: 150; opacity: 0; visibility: hidden;
}
.nav-sp.active { transform: translateY(0); opacity: 1; visibility: visible; }
.nav-sp ul li { margin-bottom: 20px; }
.nav-sp a { font-size: 1.2rem; font-weight: bold; color: var(--color-primary); }

/* --- 4. メインビジュアル --- */
.hero {
    background-image: url('img/main/bousai_header_20251104.jpg'); 
    background-size: contain; 
    background-repeat: no-repeat; 
    background-position: center;
    
    height: 460px; 
    max-height: 500px; 
    width: 100%;
    max-width: 1900px; 
    margin: 0 auto; 
    
    display: block; 
    text-align: center; 
    color: white; 
    position: relative;
    background-color: var(--color-white); 
}
.hero::before {
    content: none;
}
.hero-content-overlay {
    background-color: var(--color-white); 
    padding: 20px 0; 
    text-align: center;
}
.hero-content-overlay .hero-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.hero-content-overlay h2 {
    font-size: 2rem; 
    color: var(--color-primary);
    margin-bottom: 20px;
}


/* NEWSセクション */

#news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#news-list li {
  padding: 0.7em 0;        
  border-bottom: 1px dashed var(--color-border); 
  font-size: 0.95rem;
}

#news-list li:last-child {
  border-bottom: none;
}

#news-list li time {
  display: inline-block;  
  margin-right: 1em;    
  font-variant-numeric: tabular-nums; 
  color: #555;             
}

#news-list li a {
  color: inherit;
  text-decoration: none;
}
#news-list li a:hover {
  text-decoration: underline;
}


/* SNSリンクのスタイル */
.sns-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}
.sns-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    color: var(--color-white);
    background-color: var(--color-primary);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}
.sns-links a:hover {
    background-color: var(--color-accent);
}


/* --- トップバナーセクション (banner-top) --- */
.section-banner {
    padding: 30px 0; 
    background-color: var(--color-bg);
}
.banner-wrapper {
    max-width: 800px; 
    margin: 0 auto; 
    border-radius: 0; 
    overflow: visible; 
}
.banner-wrapper img {
    display: block;
    width: 100%; 
    height: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-s);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* 軽い影で立体感を出す */
}

@media (max-width: 768px) {
    .section-banner {
        padding: 15px 0; 
    }
    .banner-wrapper {
        max-width: 100%;
        padding: 0 15px; 
    }
}



/* --- 5. 商品ラインナップ--- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    grid-auto-rows: auto;
}
.product-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-m);
    padding: 20px 15px;
    text-align: center;
    transition: 0.3s;
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start;
}
.product-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.product-card img {
    width: 100px; 
    height: auto;
    margin-bottom: 15px;
}
.product-card h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-text);
    line-height: 1.4;
    line-break: strict; 
    word-wrap: break-word; 
}
.product-card h4 span {
    white-space: nowrap; 
}

/* --- ライン区切り--- */
.product-info {
    border-bottom: 1px solid #365bb3;
    padding-bottom: 40px; 
    margin-bottom: 40px;  
}

/* --- 6. 横スクロールエリア (既存の活用法セクション) --- */
.scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding-bottom: 20px;
    scrollbar-width: none;
}
.scroll-container::-webkit-scrollbar { display: none; }

.usage-item {
    flex: 0 0 300px; 
    background: var(--color-white); 
    border-radius: var(--radius-m);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
#usage .usage-item img {
    width: 100%; 
    height: 220px; 
    object-fit: contain; 
    background-color: #f9f9f9; 
    cursor: zoom-in; 
    transition: opacity 0.3s;
}
#usage .usage-item img:hover { opacity: 0.8; }
#usage .usage-caption {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    color: var(--color-primary);
    font-size: 0.95rem;
    background: var(--color-white);
}

.works-item {
    flex: 0 0 320px;
    background: var(--color-white);
    border-radius: var(--radius-m);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #eee;
}
.works-item img { width: 100%; height: 200px; object-fit: cover; }
.works-info { padding: 15px; }
.works-client { display: block; color: var(--color-primary); font-weight: bold; margin-bottom: 5px; }
.works-desc { font-size: 0.9rem; color: #666; }

/* --- 7. そのほか --- */
#page-top {
    position: fixed; bottom: 20px; right: 20px;
    opacity: 0; visibility: hidden; transition: 0.3s; z-index: 90;
}
#page-top.show { opacity: 1; visibility: visible; }
#page-top a {
    display: flex; justify-content: center; align-items: center;
    width: 50px; height: 50px; background: var(--color-primary);
    color: white; border-radius: 50%; font-size: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/*注意事項セクションのスタイル */
#disclaimer {
    padding: 20px 0;
    background-color: #f7f7f7; 
    border-top: 1px solid var(--color-border);
}
.disclaimer-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 10px;
    text-align: left;
    padding-left: 20px;
}
#disclaimer ul {
    list-style: disc; 
    padding-left: 40px;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #666;
}
#disclaimer ul li {
    margin-bottom: 5px;
}


.footer {
    background: var(--color-white); padding: 50px 0 20px;
    text-align: center; border-top: 5px solid var(--color-primary);
}
.footer-nav { margin-bottom: 30px; }
.footer-nav a { 
    margin: 0 10px; 
    font-weight: bold; 
    font-size: 0.9rem; 
    display: inline-block; 
    color: var(--color-text); 
}
.footer-nav a:hover {
    color: var(--color-accent);
}
.copyright { color: #999; font-size: 0.8rem; }


/* --- 7. 画像拡大モーダル --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    opacity: 0; visibility: hidden; transition: 0.3s;
    padding: 20px;
    box-sizing: border-box;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { max-width: 90%; max-height: 90vh; position: relative; }
.modal-content img {
    max-width: 100%; max-...
}


/* スマホ調整 */
@media (max-width: 768px) {
    .nav-pc { display: none; }
    .hamburger { display: block; }
    
    .hero { 
        height: 250px; 
        background-size: cover; 
        background-position: 50% 50%; 
    } 
    
    .hero-content-overlay h2 { font-size: 1.5rem; }

    #main-responsive-image {
        padding: 20px 0;
        max-height: 250px; 
    }
    
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    
    .usage-item, .works-item { flex: 0 0 260px; }
    .footer-nav a { display: block; margin: 15px 0; }

    /* 注意事項セクションの調整 */
    #disclaimer .container {
        padding: 0 10px;
    }
    .disclaimer-title {
        text-align: center;
        padding-left: 0;
    }
    #disclaimer ul {
        padding-left: 30px;
    }
}

/* SNSアイコン */
svg {
	width: 20px;
	height: 20px;
	fill: #fff;
	margin: 0;
	&:hover {
		fill: #111;
	}
}
/* --- 8. メインプロダクト紹介セクション --- */
#main-product-intro {
    padding: 80px 0;
    background-color: var(--color-white); /* 背景を白にして目立たせる */
}
.product-intro-flex {
    display: flex;
    align-items: center;
    gap: 40px;
}
.product-intro-image, .product-intro-text {
    flex: 1;
    min-width: 0;
}
.product-intro-image img {
    border-radius: var(--radius-m);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.product-intro-text h2 {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--color-accent);
    padding-bottom: 10px;
}
.product-intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}
.intro-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}
.intro-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--color-text);
}
.intro-features li i {
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    margin-left: 10px;
    background: var(--color-bg);
    color: var(--color-text);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-s);
    font-weight: bold;
    text-align: center;
}
.btn-secondary:hover {
    background: var(--color-border);
    opacity: 0.8;
}

/* (税込)のテキストを小さくするスタイル */
.tax-note {
    font-size: 0.6em; 
    margin-left: 3px; 
}

/* スマホ対応 */
@media (max-width: 768px) {
    #main-product-intro {
        padding: 40px 0;
    }
    .product-intro-flex {
        flex-direction: column;
        gap: 20px;
    }
    .product-intro-text h2 {
        font-size: 1.8rem;
    }
    .product-intro-text p {
        font-size: 1rem;
    }
    .product-intro-image, .product-intro-text {
        max-width: 100%;
    }
    /* ボタンを縦に並べ、幅を100%にする */
    .btn-primary, .btn-secondary {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
        box-sizing: border-box;
    }
}

/* --- 9.お取扱店リストセクション --- */
#shop-list {
    padding: 60px 0;
    background-color: var(--color-white);
}

/* PC用テーブルスタイル (3列均等幅、枠線なし) */
.shop-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    font-size: 0.9rem;
    table-layout: fixed;
}
.shop-table td {
    border: none;
    padding: 12px 20px;
    text-align: left;
    width: 33.333%;
    box-sizing: border-box;
}
.shop-table tr {
    border-bottom: 1px solid var(--color-border);
}
.shop-table tr:last-child { 
    border-bottom: none;
}
.shop-table tr:nth-child(even) {
    background-color: var(--color-bg);
}
.shop-table a {
    color: var(--color-accent);
    text-decoration: underline;
}
.shop-table a:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .shop-table {
        
        display: block; 
        width: 100%;
        margin-top: 10px; 
    }
    .shop-table thead {
        display: none; 
    }
    

    .shop-table tr {
        display: block;
        margin-bottom: 10px; 
        border: none;
        border-radius: 0;
        box-shadow: none; 
        background-color: var(--color-white); 
        padding: 0;
    }
    .shop-table tr:nth-child(even) {
        background-color: var(--color-white); 
    }
    .shop-table tr.online-shop {
        background-color: #fff8e1; 
    }

    .shop-table td {
        display: block;
        width: 100%; 
        padding: 8px 15px; 
        border-bottom: none; 
        font-size: 0.9rem;
    }
    
    .shop-table tr td:last-child {
        border-bottom: none;
        padding-bottom: 8px;
    }
    .shop-table tr:first-child td:first-child {
        padding-top: 8px;
    }

    .shop-table td br {
        content: "";
        display: block; 
        line-height: 0.8; 
    }
    
    .shop-table td:first-child {
        font-weight: normal;
    }
}
/* --- 9. 会社情報セクション --- */
.box-info {
    margin: 40px auto 30px; /* 上下のマージンを調整 */
    padding: 20px;
    background-color: var(--color-bg); /* 背景色を薄いグレーに */
    border-radius: var(--radius-m); /* 角丸を適用 */
    max-width: 100%; /* 最大幅を設定して中央寄せ */
    text-align: left; /* テキストを左寄せに */
}

.box-info h4 {
    font-size: 1.1rem;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 5px;
    margin-top: 0;
    margin-bottom: 15px;
}

.box-info p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 0;
}

.box-info strong {
    font-size: 1rem;
    display: block;
    margin-bottom: 5px;
}

/* お問い合わせセクション */
#contact p:nth-of-type(1) {
    text-align: left;
}

/* スマホ調整（768px以下） */
@media (max-width: 768px) {
    .box-info {
        max-width: 100%; /* スマホでは幅を最大に */
        padding: 15px;
        margin: 30px 0 20px;
    }
    .box-info h4 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    .box-info p {
        font-size: 0.85rem;
    }
}
/* --- 10. 404 Not Foundページ専用スタイル --- */

.not-found-main {
    text-align: center;
    padding: 100px 20px;
    background-color: var(--color-white); 
    min-height: calc(100vh - 70px - 250px); 
    display: flex;
    align-items: center; 
    justify-content: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--color-primary); 
    margin-bottom: 0.5rem;
    line-height: 1;
}

.error-message {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
}

.error-detail {
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* スマホ調整 */
@media (max-width: 768px) {
    .not-found-main {
        padding: 80px 15px;
        min-height: calc(100vh - 70px - 300px); /* スマホでのフッターの高さに合わせて調整 */
    }
    .error-code {
        font-size: 6rem;
    }
    .error-message {
        font-size: 1.4rem;
    }
    .error-detail {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .product-card h4 span {
        white-space: normal;
    }
}

/* === スマホ表示のはみ出し防止修正用 === */
@media (max-width: 768px) {
    /* 1. 商品名の折り返しを許可 */
    .product-card h4 span {
        white-space: normal;
    }

    /* 2. ラインナップ詳細を縦積みに強制 */
    .product-item-detail {
        display: block !important;
    }
    .product-item-detail .product-image,
    .product-item-detail .product-info {
        width: 100% !important;
        margin-bottom: 20px;
    }
    
    /* 3. テーブルやコンテンツ内の長い文字を強制的に折り返す */
    body, p, a, td, th, h1, h2, h3, h4, h5, h6, span {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

/* PCでは改行タグを非表示にする（改行しない） */
.sp-only {
    display: none;
}

/* スマホ調整（768px以下） */
@media (max-width: 768px) {
    /* スマホでは改行タグを再表示する（改行する） */
    .sp-only {
        display: inline; /* または block */
    }
}