@charset "UTF-8";

/* ==========================================================================
   1. 各種設定・共通スタイル
   ========================================================================== */
:root {
    --primary-color: #0066cc;   /* メインカラー：誠実なono_seikiブルー */
    --primary-light: #e6f0fa;   /* 薄いブルー */
    --navy-dark: #0a1d33;       /* サブカラー：濃紺 */
    --bg-light: #f8fafc;        /* 背景：非常に薄いグレーブルー */
    --text-dark: #223344;       /* 文字：濃いグレー */
    --text-muted: #667788;      /* 文字：補足 */
    --white: #ffffff;
    --font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-family); color: var(--text-dark); background-color: var(--white); line-height: 1.7; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; vertical-align: middle; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }

/* ボタンデザイン */
.btn-primary {
    display: inline-block;
    padding: 16px 45px;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
    border-radius: 50px;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.2);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--navy-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(10, 29, 51, 0.3);
    color: var(--white);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 700;
    border-radius: 50px;
    background-color: transparent;
    transition: all 0.3s ease;
}
.btn-outline::after { content: '→'; transition: transform 0.3s ease; }
.btn-outline:hover { background-color: var(--primary-color); color: var(--white); }
.btn-outline:hover::after { transform: translateX(5px); }

/* ==========================================================================
   2. ヘッダー (PC版インラインメガメニュー、スマホハンバーガー共通)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 15px rgba(10, 29, 51, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--primary-color);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 90px; }


/* ==========================================================================
   ロゴエリア (画像＋テキスト横並び)
   ========================================================================== */
.logo-area { 
    display: flex; 
    align-items: center; 
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 5px; /* ロゴ画像とテキストの隙間 */
    transition: opacity 0.3s ease;
}
.logo-link:hover {
    opacity: 0.8; /* マウスオーバーで少し薄くする */
}

/* 左側のロゴ画像 */
.logo-img img {
    height: 40px; /* ★画像の大きさに合わせて調整してください (35px〜45px推奨) */
    width: auto;
    display: block;
}

/* 右側のテキスト群 */
.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-main { 
    font-size: 24px; 
    font-weight: 800; 
    color: var(--primary-color); 
    letter-spacing: 0.03em; 
    line-height: 1.1; 
    font-family: 'Arial Black', sans-serif; 
}

.logo-sub { 
    font-size: 11px; 
    font-weight: 700; 
    color: var(--navy-dark); 
    letter-spacing: 0.05em; 
    margin-top: 3px; 
}


.nav-pc { display: flex; align-items: center; height: 100%; }
.nav-item { position: relative; height: 90px; display: flex; align-items: center; }
.nav-item > a { display: flex; flex-direction: column; align-items: center; padding: 0 25px; font-size: 14px; font-weight: 700; color: var(--navy-dark); height: 100%; justify-content: center; position: relative; }
.nav-item > a .nav-en { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 3px; font-weight: 400; }
.nav-item > a::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 4px; background-color: var(--primary-color); transition: width 0.3s ease; }
.nav-item:hover > a { color: var(--primary-color); }
.nav-item:hover > a::after { width: 100%; }

.mega-menu { 
    position: absolute; top: 85px; left: 50%; transform: translateX(-50%) translateY(15px); 
    background-color: var(--white); box-shadow: 0 15px 35px rgba(10, 29, 51, 0.15); 
    border-radius: 8px; opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); 
    padding: 25px 30px; border-top: 3px solid var(--primary-color); display: flex; white-space: nowrap;
}
.nav-item:hover .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-inner { display: flex; gap: 40px; }
.mega-column { display: flex; flex-direction: column; }
.mega-column h5 { font-size: 12px; color: var(--primary-color); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; border-bottom: 2px solid #f0f4f8; padding-bottom: 8px; font-weight: 800; }
.mega-menu a { display: block; padding: 10px 0; font-size: 14px; font-weight: 600; color: var(--text-dark); border-bottom: 1px dashed #e2eaf0; transition: all 0.3s ease; }
.mega-menu a:last-child { border-bottom: none; }
.mega-menu a:hover { color: var(--primary-color); transform: translateX(5px); }

.nav-pc .nav-cta { background-color: var(--primary-color); color: var(--white); border-radius: 50px; margin-left: 20px; padding: 12px 30px; display: flex; flex-direction: column; align-items: center; font-size: 14px; font-weight: 700; }
.nav-pc .nav-cta .nav-en { font-size: 9px; color: rgba(255, 255, 255, 0.8); font-weight: 400; margin-top: 2px; }
.nav-pc .nav-cta:hover { background-color: var(--navy-dark); box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2); }

.menu-btn { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 20px; background: transparent; border: none; cursor: pointer; z-index: 1001; }
.menu-btn span { width: 100%; height: 2px; background-color: var(--navy-dark); transition: all 0.3s ease; }
.nav-sp { display: none; }

/* PCメニューが折り返さないように、992px以下からスマホメニューに切り替える */
@media (max-width: 992px) {
    .nav-pc { display: none; }
    .menu-btn { display: flex; }
    .nav-sp { display: flex; flex-direction: column; position: fixed; top: 0; right: -100%; width: 85%; height: 100vh; background-color: var(--navy-dark); transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); z-index: 1000; padding: 100px 40px 40px; overflow-y: auto; }
    .nav-sp.open { right: 0; }
    .sp-group-title { font-size: 11px; color: var(--primary-color); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 25px; margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 5px; font-weight: 700; }
    .nav-sp a { color: var(--white); font-size: 15px; padding: 10px 0; display: block; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .nav-sp a:hover { color: var(--primary-color); }
    .nav-sp a.nav-cta { background-color: var(--primary-color); color: var(--white); padding: 14px; border-radius: 50px; width: 100%; font-weight: 700; text-align: center; margin-top: 30px; border-bottom: none; }
    .menu-btn.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); background-color: var(--white); }
    .menu-btn.open span:nth-child(2) { opacity: 0; }
    .menu-btn.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background-color: var(--white); }
}

/* ==========================================================================
   3. セクション共通スタイル（見出し・余白など）
   ========================================================================== */
.section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}
.section.bg-gray {
    background-color: var(--bg-light);
}
.section-title {
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
    text-align: center;
}
.section-title .en-title {
    display: block;
    font-size: 14px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    font-weight: 700;
}
.section-title h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--navy-dark);
    letter-spacing: 0.05em;
    line-height: 1.2;
}
.section-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    font-weight: 900;
    color: rgba(0, 102, 204, 0.04);
    text-transform: uppercase;
    z-index: -1;
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
    font-family: 'Montserrat', 'Arial Black', Impact, sans-serif;
    letter-spacing: 0.15em;
}
.section-divider {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto 50px;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .section-watermark { font-size: 50px; }
}

/* ==========================================================================
   4. トップページ専用スタイル
   ========================================================================== */

/* ファーストビュー (自動切り替えスライダー版) */
.hero-v6 { 
    position: relative;
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: var(--white); 
    padding: 120px 20px 60px; 
    margin-top: 0; 
    overflow: hidden; 
}

/* スライダー全体の枠組み（一番背面） */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* 重なり順：1 */
}

.hero-slider .slide {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1;
}

/* 表示中の画像：等速(linear)で滑らかにフェードインしながらズーム */
.hero-slider .slide.active {
    z-index: 2;
    animation: zoomAndFadeIn 2s linear forwards, zoomKeep 5s linear forwards;
}

/* 消えていく画像：拡大を維持したまま等速(linear)でスーッと消える */
.hero-slider .slide.leaving {
    z-index: 1;
    animation: fadeOut 2s linear forwards;
    transform: scale(1.08); /* カクつき防止 */
}

/* アニメーション定義（2秒間でじわ〜っと透過させる） */
@keyframes zoomAndFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes zoomKeep {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* 黒透過グラデーション（画像の上、文字の下に配置） */
.hero-overlay {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: linear-gradient(rgba(10, 29, 51, 0.7), rgba(10, 29, 51, 0.5));
    z-index: 2; /* スライダー（z-index: 1）の上にかぶせる */
}

/* 中央のテキストエリア（一番前面） */
.hero-content { 
    max-width: 800px; 
    position: relative; 
    z-index: 3; /* 一番上に表示 */
}

.hero-tag { font-size: 14px; color: rgba(255,255,255,0.7); font-weight: 700; text-transform: uppercase; letter-spacing: 0.3em; margin-bottom: 25px; display: inline-block; }
.hero-v6 h1 { font-size: 44px; font-weight: 700; line-height: 1.4; letter-spacing: 0.05em; margin-bottom: 30px; color: var(--white); text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-v6 h1 span { color: var(--primary-color); }
.hero-v6 p { font-size: 16px; color: rgba(255,255,255,0.9); margin-bottom: 50px; text-shadow: 0 1px 5px rgba(0,0,0,0.2); }
@media (max-width: 768px) { .hero-v6 h1 { font-size: 28px; } }


/* 新着情報（WordPress対応構造） */
.news-wrap { max-width: 900px; margin: 0 auto; }
.news-list { list-style: none; border-top: 2px solid #e2eaf0; margin-bottom: 40px; }
.news-item { border-bottom: 1px solid #e2eaf0; }
.news-link { display: flex; align-items: center; padding: 25px 20px; transition: background-color 0.3s ease; }
.news-link:hover { background-color: var(--bg-light); }
.news-meta { display: flex; align-items: center; gap: 15px; width: 220px; flex-shrink: 0; }
.news-date { font-size: 14px; color: var(--text-muted); font-family: Arial, sans-serif; }
.news-cat { font-size: 11px; padding: 5px 12px; border-radius: 4px; font-weight: 700; }
.cat-info { background-color: rgba(0, 102, 204, 0.1); color: var(--primary-color); }
.cat-event { background-color: rgba(243, 156, 18, 0.15); color: #d68200; }
.cat-tech { background-color: rgba(46, 204, 113, 0.15); color: #1a9c51; }
.news-title { font-size: 16px; font-weight: 600; color: var(--text-dark); transition: color 0.3s ease; }
.news-link:hover .news-title { color: var(--primary-color); }
.news-btn-wrap { text-align: center; }
@media (max-width: 768px) {
    .news-link { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 10px; }
    .news-meta { width: 100%; margin-bottom: 5px; }
    .news-title { line-height: 1.5; }
}


/* ==========================================================================
   ピックアップ設備 (600tプレス用)
   ========================================================================== */
.pickup-machine {
    background-color: var(--white);
    padding: 100px 0;
    /* 背景に薄い斜めのアクセントを入れる */
    background-image: linear-gradient(135deg, #ffffff 50%, var(--bg-light) 50%);
}

.pickup-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* 画像エリア */
.pickup-image-wrap {
    flex: 1.2; /* 写真を少し大きめに扱う */
    position: relative;
}
.pickup-image {
    position: relative;
    z-index: 2;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(10, 29, 51, 0.15);
}
.pickup-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}
.pickup-image:hover img {
    transform: scale(1.03); /* ホバーで少し拡大 */
}
/* 画像の裏側に配置する装飾の四角形 */
.pickup-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 1;
    border-radius: 8px;
}

/* テキストエリア */
.pickup-content {
    flex: 1;
    padding: 20px 0;
}
.pickup-badge {
    display: inline-block;
    background-color: var(--navy-dark);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 6px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.pickup-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 25px;
    letter-spacing: 0.05em;
}
.pickup-desc {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* スマホ対応 */
@media (max-width: 992px) {
    .pickup-layout {
        flex-direction: column;
        gap: 40px;
    }
    .pickup-image-wrap {
        width: 100%;
    }
    .pickup-content {
        padding: 0;
    }
    .pickup-content h2 {
        font-size: 26px;
    }
}


/* 社長挨拶・会社理念レイアウト */
.philosophy-layout { display: flex; align-items: center; gap: 60px; }
.philosophy-image-wrap { flex: 1; position: relative; }
.philosophy-image-wrap::before { content: ''; position: absolute; top: -20px; left: -20px; width: 100%; height: 100%; background-color: var(--primary-light); border-radius: 20px; z-index: 0; }
.philosophy-image { position: relative; z-index: 1; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.1); height: 450px; }
.philosophy-image img { width: 100%; height: 100%; object-fit: cover; }
.philosophy-content { flex: 1; text-align: left;} 
.philosophy-lead { font-size: 16px; color: var(--navy-dark); font-weight: 700; margin-bottom: 20px; line-height: 1.8; }
.philosophy-text { font-size: 15px; color: var(--text-muted); margin-bottom: 30px; }
.philosophy-list-box { background-color: var(--white); padding: 30px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); margin-bottom: 30px; border-left: 5px solid var(--primary-color); }
.philosophy-list-box h4 { font-size: 16px; color: var(--primary-color); margin-bottom: 15px; }
.philosophy-list { list-style: none; }
.philosophy-list li { font-size: 14px; color: var(--text-dark); margin-bottom: 12px; padding-left: 20px; position: relative; }
.philosophy-list li:last-child { margin-bottom: 0; }
.philosophy-list li::before { content: '■'; position: absolute; left: 0; color: var(--primary-color); font-size: 10px; top: 2px; }
@media (max-width: 768px) { .philosophy-layout { flex-direction: column; } .philosophy-image { height: 300px; } }

/* 技術案内（ジグザグ・レイアウト） */
.tech-zigzag { display: flex; align-items: center; gap: 80px; margin-bottom: 100px; }
.tech-zigzag:nth-child(even) { flex-direction: row-reverse; }
.tech-zigzag-img { flex: 1; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(10,29,51,0.1); height: 380px; position: relative; }
.tech-zigzag-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.tech-zigzag:hover .tech-zigzag-img img { transform: scale(1.05); }
.tech-zigzag-content { flex: 1; text-align: left; } 
.tech-num { font-size: 60px; font-weight: 900; color: var(--primary-light); line-height: 1; margin-bottom: -20px; position: relative; z-index: 0; }
.tech-zigzag-content h3 { font-size: 26px; color: var(--navy-dark); margin-bottom: 20px; position: relative; z-index: 1; }
.tech-zigzag-content p { font-size: 15px; color: var(--text-muted); margin-bottom: 30px; line-height: 1.8; }
@media (max-width: 768px) { .tech-zigzag, .tech-zigzag:nth-child(even) { flex-direction: column; gap: 30px; margin-bottom: 60px; } .tech-zigzag-img { width: 100%; height: 250px; } }

/* 設備紹介・品質管理体制（ダークテーマ） */
.section-dark { background-color: var(--navy-dark); color: var(--white); }
.section-dark .section-title h2 { color: var(--white); }
.section-dark .section-watermark { color: rgba(255,255,255,0.03); }
.facility-flex { display: flex; gap: 30px; }
.facility-block { flex: 1; background-color: rgba(255,255,255,0.05); padding: 50px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; backdrop-filter: blur(5px); }
.facility-block h3 { font-size: 22px; color: var(--white); margin-bottom: 20px; display: flex; align-items: center; gap: 15px; }
.facility-block h3::before { content: ''; width: 8px; height: 24px; background-color: var(--primary-color); display: inline-block; border-radius: 4px; }
.facility-desc { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 30px; line-height: 1.7; }
.facility-list { list-style: none; margin-bottom: 40px; border-top: 1px solid rgba(255,255,255,0.1); }
.facility-list li { font-size: 15px; color: var(--white); padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; }
.facility-list span { color: #66b3ff; font-weight: 700; background: rgba(0, 102, 204, 0.2); padding: 4px 12px; border-radius: 20px; font-size: 13px; }
.section-dark .btn-outline { border-color: rgba(255,255,255,0.3); color: var(--white); align-self: flex-start; margin-top: auto; }
.section-dark .btn-outline:hover { background-color: var(--white); color: var(--navy-dark); border-color: var(--white); }
@media (max-width: 768px) { .facility-flex { flex-direction: column; } .facility-block { padding: 30px; } }

/* 会社概要・沿革 ＆ アクセスマップ (トップ用レイアウト) */
.company-layout { display: flex; gap: 60px; background-color: var(--white); padding: 50px; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.04); text-align: left; }
.company-info { flex: 1; }
.profile-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 30px; }
.profile-table th, .profile-table td { padding: 20px 0; border-bottom: 1px solid #f0f4f8; text-align: left; vertical-align: top; }
.profile-table th { width: 120px; color: var(--navy-dark); font-weight: 700; }
.profile-table td { color: var(--text-muted); }

/* ==========================================================================
   マップエリアのスタイル調整
   ========================================================================== */
.map-wrapper { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
}

/* iframeを綺麗に収めるための親要素の設定 */
.map-box { 
    background-color: #e5e9f0; 
    border-radius: 12px; 
    flex-grow: 1; 
    min-height: 300px; 
    margin-bottom: 20px;
    overflow: hidden; /* iframeの四隅の角を綺麗に丸く切り取るおまじない */
    position: relative;
}

/* 埋め込んだGoogle Map（iframe）の設定 */
.map-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 992px) { 
    .company-layout { flex-direction: column; gap: 40px; padding: 30px; } 
    .map-box { min-height: 400px; } 
}


/* ==========================================================================
   航空動画エリア
   ========================================================================== */
.movie-wrap {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background-color: var(--navy-dark); /* 動画読み込み前の背景色 */
}

.company-movie {
    width: 100%;
    height: auto;
    display: block;
    outline: none;
}



/* ==========================================================================
   5. 下層ページ専用スタイル（会社概要・沿革など）
   ========================================================================== */
/* ヒーローエリア（下層共通ヘッダー） */
.page-hero {
    margin-top: 90px;
    height: 35vh;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* 背景画像は各HTMLでインライン指定するか、別途上書きしてください */
    background-image: linear-gradient(rgba(10, 29, 51, 0.6), rgba(10, 29, 51, 0.5)), url('../images/_DSC1897.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
}
.page-hero-subtitle { 
    font-size: 13px; 
    color: var(--white);
    background-color: var(--primary-color);
    padding: 6px 20px;
    border-radius: 50px;
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.15em; 
    margin-bottom: 15px; 
    display: inline-block; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.page-hero h1 { 
    font-size: 36px; 
    font-weight: 800; 
    letter-spacing: 0.1em; 
    text-shadow: 0 2px 15px rgba(0,0,0,0.6); 
}


/*****************************/
/* 会社概要・沿革（outline） */
/*****************************/

/* ヒーローエリア（下層共通ヘッダー） */
.page-hero-outline {
    background-image: linear-gradient(rgba(10, 29, 51, 0.6), rgba(10, 29, 51, 0.5)), url('../outline/img/page-hero-outline.jpg');
}

/* 会社概要テーブル (下層ページ用詳細版) */
.profile-wrap { max-width: 900px; margin: 0 auto; background-color: var(--white); padding: 40px 50px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid #eef2f6; }
.profile-wrap .profile-table th, .profile-wrap .profile-table td { padding: 25px 20px; border-bottom: 1px solid #eef2f6; text-align: left; vertical-align: middle; }
.profile-wrap .profile-table tr:last-child th, .profile-wrap .profile-table tr:last-child td { border-bottom: none; }
.profile-wrap .profile-table th { width: 25%; color: var(--navy-dark); font-weight: 700; background-color: #fafbfc; }
.profile-wrap .profile-table td { width: 75%; color: var(--text-dark); }
.profile-inner-list { list-style: none; padding: 0; margin: 0; }
.profile-inner-list li { margin-bottom: 15px; }
.profile-inner-list li:last-child { margin-bottom: 0; }
.profile-inner-title { font-weight: 700; color: var(--primary-color); display: block; margin-bottom: 3px; }

@media (max-width: 768px) {
    .profile-wrap { padding: 20px; }
    .profile-wrap .profile-table th, .profile-wrap .profile-table td { display: block; width: 100%; padding: 15px 10px; }
    .profile-wrap .profile-table th { padding-bottom: 5px; background-color: transparent; border-bottom: none; color: var(--primary-color); }
}

/* 沿革（タイムライン） */
.history-wrap { 
    max-width: 800px; 
    margin: 0 auto 80px; 
    border-left: 3px solid var(--primary-light); 
    padding-left: 40px; 
    position: relative; 
}
.history-item { position: relative; margin-bottom: 40px; }
.history-item:last-child { margin-bottom: 0; }
.history-item::before { 
    content: ''; position: absolute; left: -49px; top: 0px; width: 16px; height: 16px; 
    background-color: var(--white); border: 4px solid var(--primary-color); border-radius: 50%; z-index: 2; 
}
.history-date { font-size: 20px; font-weight: 800; color: var(--primary-color); margin-bottom: 10px; font-family: Arial, sans-serif; letter-spacing: 0.05em; display: flex; align-items: baseline; gap: 10px; }
.history-date span { font-size: 14px; color: var(--text-muted); font-weight: normal; }
.history-desc { background-color: var(--white); padding: 20px 25px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); border: 1px solid #eef2f6; font-size: 15px; }

@media (max-width: 768px) { .history-wrap { padding-left: 25px; } .history-item::before { left: -33px; } }



/**********************************/
/* 社長挨拶・会社理念（greeting） */
/**********************************/

/* ヒーローエリア */
.page-hero-greeting {
    background-image: linear-gradient(rgba(10, 29, 51, 0.6), rgba(10, 29, 51, 0.5)), url('../greeting/img/page-hero-greeting.jpg');
}

/* 社長挨拶レイアウト */
.greeting-wrap {
    max-width: 900px;
    margin: 0 auto;
}
.greeting-layout {
    /* ★flexbox（横並び）を解除し、中央寄せの1カラムに変更 */
    display: block;
    max-width: 800px; /* 読みやすい幅に制限 */
    margin: 0 auto;
}
/* 写真エリアはHTMLから削除しましたが、念のため非表示設定 */
.greeting-image {
    display: none; 
}
.greeting-text {
    width: 100%; /* 全幅に広げる */
}
.greeting-lead {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.8;
}
.greeting-text p {
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.8;
}
.president-name {
    text-align: right;
    font-size: 16px;
    margin-top: 40px;
    font-weight: 600;
}
.president-name span {
    font-size: 24px;
    font-weight: 800;
    margin-left: 15px;
}

@media (max-width: 768px) {
    .greeting-layout {
        display: block;
    }
}

/* 会社理念・社訓ボックス */
.philosophy-page-wrap {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.philosophy-box, .shakun-box {
    background-color: var(--white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border-top: 5px solid var(--primary-color);
}
.shakun-box {
    border-top-color: #d68200; 
}
.philosophy-box-title {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
}
.philosophy-main-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--navy-dark);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.5;
}

/* ★社訓（サブ）のベースフォントサイズを縮小 */
.shakun-main-text p {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy-dark);
    text-align: center;
    line-height: 1.8;
    margin-bottom: 30px;
}
.philosophy-page-list {
    list-style: none;
    padding: 0;
}

/* ★会社理念（メイン）を大きく強調 */
.philosophy-page-list li {
    font-size: 20px; /* 16pxから20pxに拡大 */
    font-weight: 800; /* 太字に変更して強調 */
    color: var(--navy-dark); /* より濃い色に変更 */
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}
.philosophy-page-list li:last-child {
    margin-bottom: 0;
}
.philosophy-box .philosophy-page-list li::before {
    content: '■';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 14px;
    top: 5px;
}
.shakun-box .philosophy-page-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: #d68200;
    font-size: 12px;
    top: 4px;
}

@media (max-width: 768px) {
    .philosophy-box, .shakun-box {
        padding: 30px 20px;
    }
    .philosophy-main-text, .shakun-main-text p {
        font-size: 15px;
    }
    .philosophy-page-list li {
        font-size: 16px; /* スマホでも少し大きめに */
        padding-left: 25px;
    }
}



/*****************************/
/* 設備紹介（equipment） */
/*****************************/

/* ヒーローエリア（背景画像は必要に応じて equipment フォルダ内のものに調整してください） */
.page-hero-facility,
.page-hero-equipment {
    background-image: linear-gradient(rgba(10, 29, 51, 0.6), rgba(10, 29, 51, 0.5)), url('../equipment/img/page-hero-equipment.jpg');
}

/* 設備一覧の全体レイアウト */
.facility-page-wrap {
    max-width: 1000px;
    margin: 0 auto;
}

/* 工場設備（概要）ボックス */
.factory-info-box {
    background-color: var(--primary-light);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 60px;
    display: flex;
    gap: 40px;
    align-items: center;
}
.factory-info-text {
    flex: 1;
}
.factory-info-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}
.factory-info-list {
    list-style: none;
    font-size: 15px;
    color: var(--text-dark);
}
.factory-info-list li {
    margin-bottom: 15px;
    display: flex;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
    padding-bottom: 10px;
}
.factory-info-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.factory-info-list span {
    font-weight: 700;
    width: 120px;
    color: var(--primary-color);
}
.factory-info-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .factory-info-box {
        flex-direction: column;
        padding: 25px;
    }
    .factory-info-list span {
        width: 100px;
    }
}

/* 設備カテゴリーごとのカード（グリッドレイアウト） */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.equip-card {
    background-color: var(--white);
    border: 1px solid #e2eaf0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.equip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
    border-color: var(--primary-light);
}
.equip-card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.equip-card-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 18px;
    background-color: var(--primary-color);
    border-radius: 3px;
}
.equip-list {
    list-style: none;
    padding-left: 0;
}
.equip-list li {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
    line-height: 1.5;
}
.equip-list li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .equipment-grid {
        grid-template-columns: 1fr;
    }
}



/*****************************/
/* 品質管理体制（quality） */
/*****************************/

/* ヒーローエリア（背景画像は必要に応じて quality フォルダ内のものに調整してください） */
.page-hero-quality {
    background-image: linear-gradient(rgba(10, 29, 51, 0.6), rgba(10, 29, 51, 0.5)), url('../quality/img/page-hero-quality.jpg');
}

/* ページ全体の余白調整 */
.quality-page-wrap {
    max-width: 900px;
    margin: 0 auto;
}

/* コンテンツブロック共通 */
.quality-block {
    margin-bottom: 80px;
}
.quality-block:last-child {
    margin-bottom: 0;
}

/* 見出しスタイル */
.quality-heading {
    font-size: 24px;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 5px solid var(--primary-color);
    line-height: 1.4;
}

/* レイアウト（画像＋テキスト） */
.quality-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}
.quality-layout.reverse {
    flex-direction: row-reverse;
}

.quality-text {
    flex: 1.2;
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.8;
}
.quality-text p {
    margin-bottom: 20px;
}
.quality-text p:last-child {
    margin-bottom: 0;
}

/* ★追加：画像とキャプションをまとめる枠 */
.quality-image-wrap {
    flex: 1;
    width: 100%;
}

/* 画像の枠（どんな画像でも一定の比率にする設定） */
.quality-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    width: 100%;
    aspect-ratio: 4 / 3; /* ★ここで一定のサイズ（比率）に固定します */
    position: relative;
}

/* 枠の中で画像を綺麗に埋める設定 */
.quality-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* ★はみ出た部分を自動でカットして綺麗に収めます */
    display: block;
}

/* 画像キャプション */
.quality-caption {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .quality-layout,
    .quality-layout.reverse {
        flex-direction: column;
        gap: 30px;
    }
    /* スマホ時はテキストの潰れを防ぐために幅をリセット */
    .quality-text, .quality-image-wrap {
        flex: none; 
        width: 100%;
    }
    .quality-heading {
        font-size: 20px;
        padding-left: 15px;
    }
}



/*****************************/
/* プレス金型技術（model） */
/*****************************/

/* ヒーローエリア（背景画像は適宜 model フォルダ内のものに調整してください） */
.page-hero-model {
    background-image: linear-gradient(rgba(10, 29, 51, 0.6), rgba(10, 29, 51, 0.5)), url('../model/img/page-hero-model.jpg');
}

/* ページ全体の余白調整 */
.model-page-wrap {
    max-width: 900px;
    margin: 0 auto;
}

/* リード文 */
.model-lead {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* テキストボックス */
.model-text-box {
    background-color: var(--white);
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border-top: 5px solid var(--primary-color);
    margin-bottom: 50px;
}
.model-text-box p {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 20px;
}
.model-text-box p:last-child {
    margin-bottom: 0;
}

/* 写真ギャラリー（横並び） */
.model-gallery {
    display: flex;
    gap: 30px;
}
.model-gallery-item {
    flex: 1;
}

/* 画像の枠（4:3の比率で自動トリミング） */
.model-image-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    aspect-ratio: 4 / 3;
    position: relative;
    margin-bottom: 10px;
}
.model-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.model-caption {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 700;
}

@media (max-width: 768px) {
    .model-gallery {
        flex-direction: column;
    }
    .model-text-box {
        padding: 30px 20px;
    }
    .model-lead {
        font-size: 18px;
    }
}


/*****************************/
/* プレス加工技術（press） */
/*****************************/

/* ヒーローエリア（背景画像は適宜 press フォルダ内のものに調整してください） */
.page-hero-press {
    background-image: linear-gradient(rgba(10, 29, 51, 0.6), rgba(10, 29, 51, 0.5)), url('../press/img/page-hero-press.jpg');
}

/* ページ全体の余白調整 */
.press-page-wrap {
    max-width: 900px;
    margin: 0 auto;
}

/* メインタイトル */
.press-main-title {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 50px;
    line-height: 1.4;
}

/* コンテンツブロック共通 */
.press-block {
    margin-bottom: 80px;
}
.press-block:last-child {
    margin-bottom: 0;
}

/* 見出しスタイル */
.press-heading {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 5px solid var(--primary-color);
}

/* レイアウト（画像＋テキスト） */
.press-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}
.press-layout.reverse {
    flex-direction: row-reverse;
}

.press-text {
    flex: 1.2;
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.8;
}
.press-text p {
    margin-bottom: 20px;
}
.press-text p:last-child {
    margin-bottom: 0;
}

/* 画像とキャプションをまとめる枠 */
.press-image-wrap {
    flex: 1;
    width: 100%;
}

/* 画像の枠（4:3の比率で自動トリミング） */
.press-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
}
.press-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 画像キャプション */
.press-caption {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .press-main-title {
        font-size: 22px;
    }
    .press-layout,
    .press-layout.reverse {
        flex-direction: column;
        gap: 30px;
    }
    .press-text, .press-image-wrap {
        flex: none; 
        width: 100%;
    }
}



/************************************/
/* お問い合わせ・完了画面 (inquiry) */
/************************************/

/* ヒーローエリア */
.page-hero-inquiry {
    background-image: linear-gradient(rgba(10, 29, 51, 0.6), rgba(10, 29, 51, 0.5)), url('../img/index/hero-slider01.jpg'); /* 背景画像は適宜変更してください */
}

/* フォーム全体の枠（カードデザイン） */
.inquiry-page-wrap {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 50px 60px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border-top: 5px solid var(--primary-color);
}

/* テーブルデザイン */
.inquiry-table {
    width: 100%;
    border-collapse: collapse;
}
.inquiry-table th, 
.inquiry-table td {
    padding: 25px 20px;
    border-bottom: 1px solid #eef2f6;
    vertical-align: middle;
}
.inquiry-table tr:last-child th, 
.inquiry-table tr:last-child td {
    border-bottom: none;
}
.inquiry-table th {
    width: 32%;
    background-color: #fafbfc;
    color: var(--navy-dark);
    font-weight: 700;
    text-align: left;
    font-size: 15px;
}

/* 「必須」マークのデザイン */
.inquiry-table sup.need {
    background-color: #e74c3c;
    color: var(--white);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: normal;
    text-decoration: none;
    vertical-align: text-top;
}

/* 入力欄（テキストボックス・エリア）のデザイン */
.inquiry-table input[type="text"],
.inquiry-table input[type="email"],
.inquiry-table input[type="tel"],
.inquiry-table textarea {
    width: 100%; 
    padding: 12px 15px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    background-color: #f8fafc;
    font-size: 15px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-family: inherit;
}
.inquiry-table input:focus,
.inquiry-table textarea:focus {
    border-color: var(--primary-color);
    background-color: var(--white);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}
.inquiry-table textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

/* 送信ボタン周辺（システム側で出力されるボタン用） */
.inquiry-waku .formFoot {
    text-align: center;
    margin-top: 30px;
}
.inquiry-waku input[type="submit"],
.inquiry-waku input[type="button"] {
    display: inline-block;
    padding: 15px 50px;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.2);
    transition: all 0.3s ease;
}
.inquiry-waku input[type="submit"]:hover,
.inquiry-waku input[type="button"]:hover {
    background-color: var(--navy-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(10, 29, 51, 0.3);
}

/* サンクスページ用 */
.thanks-wrap {
    text-align: center;
    padding: 40px 20px;
}
.thanks-wrap h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 25px;
}
.thanks-wrap p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}
.thanks-wrap .btn-outline {
    margin-top: 30px;
}

/* =========================================================
   システム出力メッセージ（エラー・注意事項など）のデザイン
   ========================================================= */

/* 「お名前が未入力です」などの個別エラーメッセージ */
.sysCaution,
.inquiry-waku span.sysCaution,
.inquiry-table span.sysCaution {
    color: #e74c3c !important; /* 目立つ赤色 */
    font-weight: bold !important; /* 太字 */
    display: inline-block;
    margin-bottom: 8px; /* 入力欄との間に少し隙間をあける */
}

/* フォーム上部の「必ず、必須項目は入力して下さい！」 */
.inquiry-waku .formHead {
    text-align: center;
    color: #e74c3c;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 30px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .inquiry-page-wrap {
        padding: 30px 20px;
    }
    .inquiry-table th, 
    .inquiry-table td {
        display: block;
        width: 100%;
        padding: 15px;
    }
    .inquiry-table th {
        background-color: #fafbfc;
        border-bottom: none;
        padding-bottom: 5px;
    }
    .inquiry-table td {
        padding-top: 5px;
        border-bottom: 1px solid #eef2f6;
    }
}


/* =========================================================
   新着情報・お知らせ カテゴリーラベルの色分け
   ========================================================= */

/* ▼ 共通のベーススタイル（未分類や、個別設定していないカテゴリー用） */
.news-cat {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    min-width: 80px;
    text-align: center;
    /* デフォルトの色（グレー） */
    background-color: #eef2f6;
    color: var(--text-muted);
}

/* ▼ 「未分類」用（スラッグが uncategorized の場合） */
.news-cat.cat-uncategorized {
    background-color: #eef2f6;
    color: var(--text-muted);
}

/* ▼ 「お知らせ」用（スラッグが info の場合） */
.news-cat.cat-info {
    background-color: var(--primary-light); /* 薄い青 */
    color: var(--primary-color);            /* 濃い青 */
}

/* ▼ 「新着情報」用（スラッグが news の場合） */
.news-cat.cat-news {
    background-color: #fff5e6; /* 薄いオレンジ */
    color: #ff8c00;            /* 濃いオレンジ */
}

/* （おまけ）今後、別のカテゴリーが増えた場合の書き方例 */
/*
.news-cat.cat-event {
    background-color: #e6f9e6;
    color: #2e8b57;
}
*/



/* ==========================================================================
   6. 共通フッター・CTA
   ========================================================================== */
.cta-section { background: linear-gradient(135deg, var(--primary-color) 0%, var(--navy-dark) 100%); color: var(--white); text-align: center; padding: 100px 0; }
.cta-content { max-width: 700px; margin: 0 auto; }
.cta-section h2 { font-size: 36px; font-weight: 800; margin-bottom: 20px; }
.cta-section p { color: rgba(255,255,255,0.9); font-size: 16px; margin-bottom: 40px; }

.footer { background-color: #051220; color: rgba(255,255,255,0.5); padding: 50px 0; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-logo { color: var(--white); font-weight: 800; font-size: 20px; letter-spacing: 0.05em; }





/* ==========================================================================
   スマホ表示時の改行制御
   ========================================================================== */
@media (max-width: 768px) {
    .pc-br {
        display: none;
    }
}