@charset "UTF-8";

/* --- 🎨 カラーパレット --- */
:root {
    --primary: #2A3B4F;
    /* ネイビーグレー */
    --accent: #A67C52;
    /* ブロンズゴールド */
    --bg-color: #F8F9FB;
    /* オフホワイト */
    --text: #333A45;
    /* ダークグレー */
    --white: #ffffff;
    --border-color: #E5E7EB;
}

/* --- 基本設定 --- */
body {
    font-family: "Yu Gothic Medium", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    background-color: var(--bg-color);
    color: var(--text);
    margin: 0;
    line-height: 2;
    letter-spacing: 0.06em;
}

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

a:hover {
    color: var(--accent);
}

/* --- ヘッダー --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4%;
    background: rgba(255, 255, 255, 0.98);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* ロゴ画像の調整 */
.logo-img {
    height: 50px;
    /* 高さを固定 */
    width: auto;
    /* 横幅は自動 */
    display: block;
}

/* ナビゲーション */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    background-color: var(--primary);
    transition: 0.3s;
}

/* --- ヒーロー画像（imagesフォルダ対応） --- */
.hero {
    height: 85vh;
    /* ▼ パスを修正しました */
    background: url('images/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(42, 59, 79, 0.3);
    mix-blend-mode: multiply;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.hero h1 {
    font-size: 3.2rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-family: "Yu Mincho", "YuMincho", serif;
}

.hero p {
    font-family: "Yu Gothic Medium", sans-serif;
    letter-spacing: 0.3em;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.4);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

/* --- コンテンツ共通 --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    margin: 0 0 15px 0;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-family: "Yu Mincho", "YuMincho", serif;
}

.section-title span {
    color: var(--accent);
    font-family: sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    display: block;
    font-weight: 700;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--accent);
    margin: 25px auto 0;
}

/* カードグリッド */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.card-img {
    height: 220px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    transition: 0.4s;
}

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

.card-body {
    padding: 35px;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 700;
    font-family: "Yu Mincho", "YuMincho", serif;
}

.card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.9;
}

/* ページヘッダー */
.page-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 100px 0 80px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -10%;
    width: 120%;
    height: 100px;
    background: var(--bg-color);
    transform: rotate(-3deg);
}

.page-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: "Yu Mincho", serif;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-family: sans-serif;
    letter-spacing: 0.2em;
    opacity: 0.7;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* 会社概要テーブル */
.company-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    overflow: hidden;
}

.company-table th,
.company-table td {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.company-table th {
    width: 30%;
    color: var(--primary);
    font-weight: 700;
    background: #F4F6F8;
}

/* --- ニュースリスト --- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.news-item {
    display: flex;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.news-img {
    width: 300px;
    min-height: 200px;
    flex-shrink: 0;
    background: #ddd;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 30px;
    flex: 1;
}

.news-date {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1.4rem;
    margin: 0 0 15px;
    color: var(--primary);
    font-family: "Yu Mincho", serif;
}

.news-content p {
    font-size: 0.95rem;
    color: #666;
}

/* ボタン */
.btn-arrow {
    display: inline-block;
    margin-top: 25px;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 3px;
    letter-spacing: 0.1em;
    transition: 0.3s;
}

.btn-arrow:hover {
    opacity: 1;
    color: var(--primary);
    border-color: var(--primary);
    transform: translateX(5px);
}

/* フッター */
footer {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 70px 0;
    margin-top: 100px;
}

footer p {
    font-size: 0.8rem;
    opacity: 0.6;
    letter-spacing: 0.1em;
}

/* =========================================
   📱 スマホ対応
   ========================================= */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav {
        position: fixed;
        left: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        transition: 0.4s;
        text-align: center;
        padding-top: 100px;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        display: block;
    }

    nav li {
        margin: 30px 0;
    }

    nav a {
        font-size: 1.1rem;
        color: var(--primary);
    }

    .hero {
        height: 60vh;
        background-position: center center;
        background-attachment: scroll;
    }

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

    .news-item {
        flex-direction: column;
    }

    .news-img {
        width: 100%;
        height: 200px;
    }

    .news-content {
        padding: 20px;
    }

    .news-content h3 {
        font-size: 1.2rem;
    }

    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
        padding: 15px 20px;
    }

    .company-table th {
        border-bottom: none;
    }
}

/* --- Modal Styles --- */
.news-item {
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s;
}

.close-btn {
    color: #999;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
}

.close-btn:hover {
    color: var(--accent);
}

.modal-header .modal-date {
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-top: 5px;
    margin-bottom: 25px;
    font-family: "Yu Mincho", serif;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 15px;
    display: inline-block;
}

.modal-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 25px;
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text {
    line-height: 1.8;
    color: #444;
    font-size: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 25px;
        margin-top: 20px;
    }

    .modal-header h2 {
        font-size: 1.4rem;
    }

    .modal-image {
        max-height: 250px;
    }
}