@charset "UTF-8";

/* =========================================
   ファーストビュー（元のデザイン）
========================================= */
.hero { 
    height: calc(100vh - 60px); 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: flex-start; 
    text-align: left; 
    margin-top: 60px; 
}

.hero-bg {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: url('../images/hero_welding.png') center/cover no-repeat;
    background-color: #2c3e50; 
}

.hero-bg::after {
    display: none; 
}

.hero-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-content { 
    color: #fff; 
    padding-left: 0; 
}

.hero-catch { 
    font-size: clamp(32px, 5vw, 54px); 
    font-weight: 900; 
    margin-bottom: 20px; 
    line-height: 1.4; 
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8); 
    letter-spacing: 0.1em; 
}

.hero-sub { 
    font-size: clamp(16px, 2vw, 22px); 
    font-weight: 700; 
    text-shadow: 1px 1px 6px rgba(0,0,0,0.8); 
    color: #fff; 
}

/* =========================================
   共通セクション設定（モダン・インダストリアル用）
========================================= */
.top-products, .top-access, .top-instagram, .top-news {
    position: relative;
    padding: 120px 0 150px;
    overflow: hidden;
    border-bottom: 2px solid var(--color-main);
}

/* =========================================
   ★修正：巨大な背景透かし文字（全セクション共通：左下配置）
========================================= */
.tp-bg-text,
.ta-bg-text,
.ti-bg-text,
.tn-bg-text {
    position: absolute;
    bottom: -1vw;
    left: -2vw;      /* すべて左下に統一 */
    font-size: 16vw;
    font-weight: 900;
    color: #ebebeb;  /* 色もACCESSに合わせて統一し、白背景でも見えるようにしました */
    z-index: 0;
    line-height: 0.8;
    letter-spacing: 0.05em;
    user-select: none;
}


/* =========================================
   取扱商品（Products）
========================================= */
.tp-container {
    position: relative;
    z-index: 1;
}

.product-grid {
    display: grid;
    /* ★ auto-fit を auto-fill に変更し、最小幅を商品一覧(300px)と合わせました */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

/* 無骨な商品カード */
.top-product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 2px solid var(--color-main);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.top-product-card .img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--color-main);
    border-bottom: 2px solid var(--color-main);
}

.top-product-card .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.3s ease;
}

.card-body {
    padding: 25px 20px;
    background-color: #fff;
    transition: all 0.3s ease;
    flex-grow: 1;
}

.top-product-card .card-title {
    font-size: 20px;
    color: var(--color-main);
    font-weight: 900;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.top-product-card .card-desc {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.6;
    font-weight: 700;
}

/* 矢印アイコン */
.card-arrow {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--color-main);
    position: relative;
    transition: all 0.3s ease;
}

.card-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--color-main);
    border-right: 2px solid var(--color-main);
    transform: rotate(45deg);
}

/* ホバー時の強烈な反転アクション */
.top-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 0 var(--color-accent); /* オレンジのソリッド影 */
}

.top-product-card:hover .img-wrap {
    border-color: var(--color-accent);
}

.top-product-card:hover .card-img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.top-product-card:hover .card-body {
    background-color: var(--color-accent);
}

.top-product-card:hover .card-title,
.top-product-card:hover .card-desc {
    color: #fff;
}

.top-product-card:hover .card-arrow,
.top-product-card:hover .card-arrow::after {
    background-color: #fff;
    border-color: #fff;
}

.top-product-card:hover .card-arrow {
    width: 40px;
}

/* =========================================
   アクセス（Access）
========================================= */
.ta-container {
    position: relative;
    z-index: 1;
}

.access-wrapper {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.access-block {
    flex: 1;
    background: #fff;
    border: 2px solid var(--color-main);
    box-shadow: 10px 10px 0 var(--color-main);
    display: flex;
    flex-direction: column;
}

.access-info {
    padding: 30px;
    border-bottom: 2px solid var(--color-main);
}

.access-name {
    font-size: 22px;
    color: var(--color-main);
    font-weight: 900;
    margin-bottom: 15px;
    border-left: 6px solid var(--color-accent);
    padding-left: 15px;
    line-height: 1.2;
}

.access-address {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
}

.map-area {
    flex-grow: 1;
}

.map-area iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 250px;
}

@media (max-width: 860px) {
    .access-wrapper {
        flex-direction: column;
    }
}

/* =========================================
   Instagram
========================================= */
.ti-container {
    position: relative;
    z-index: 1;
}

.insta-widget-placeholder {
    width: 100%;
    height: 350px;
    background: var(--color-bg-gray);
    border: 2px solid var(--color-main);
    box-shadow: 10px 10px 0 var(--color-main);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 900;
    color: var(--color-main);
    font-size: 18px;
    line-height: 1.8;
}

/* =========================================
   レスポンシブ（スマホ用）
========================================= */
@media (max-width: 768px) {
    /* --- 1. ファーストビューの余白と文字サイズの調整 --- */
    .hero {
        /* スマホ時のヘッダーの高さ（約50px）に合わせて隙間をなくす */
        margin-top: 50px; 
        height: calc(100vh - 50px);
    }

    .hero-catch {
        /* 最小32pxだったものを26px程度に落とし、スマホで収まり良くする */
        font-size: 26px; 
        margin-bottom: 15px;
    }

    .hero-sub {
        font-size: 14px;
    }

    /* --- 2. 各セクションの余白・タイトルの調整 --- */
    .top-products, .top-access, .top-instagram {
        padding: 80px 0 100px; /* PC版より上下の余白を少し圧縮 */
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 40px;
    }

    /* --- 3. 背景の透かし文字をスマホ向けに調整 --- */
    .tp-bg-text,
    .ta-bg-text,
    .ti-bg-text,
    .tn-bg-text {
        font-size: 16vw; /* スマホ画面に合わせて少し大きく */
        bottom: -1vw;
    }

    /* --- 4. 商品一覧のカード間隔を調整 --- */
    .product-grid {
        gap: 20px;
    }
}
/* =========================================
   お知らせ（News）
========================================= */
.tn-container {
    position: relative;
    z-index: 1;
}

.tn-empty {
    text-align: center;
    color: #666;
    padding: 40px 0;
    font-size: 15px;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid #e0e0e0;
}

.news-item {
    border-bottom: 1px solid #e0e0e0;
}

.news-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 10px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
    flex-wrap: wrap;
}

.news-link:hover {
    background-color: #f8f8f8;
}

.news-date {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    color: var(--color-main, #1A365D);
    font-size: 15px;
    min-width: 100px;
    letter-spacing: 0.05em;
}

.news-label {
    display: inline-block;
    padding: 3px 14px;
    background: var(--color-main, #1A365D);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.05em;
    min-width: 90px;
    text-align: center;
}

.news-title {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    min-width: 200px;
}

.news-arrow {
    color: #999;
    font-size: 18px;
    transition: transform 0.2s, color 0.2s;
}

.news-link:hover .news-arrow {
    color: var(--color-main, #1A365D);
    transform: translateX(4px);
}

@media (max-width: 600px) {
    .news-link {
        gap: 10px;
        padding: 16px 6px;
    }
    .news-date { font-size: 13px; min-width: 90px; }
    .news-label { font-size: 11px; min-width: 70px; padding: 2px 10px; }
    .news-title {
        flex-basis: 100%;
        font-size: 14px;
        margin-top: 4px;
    }
    .news-arrow { display: none; }
}
