/* リセットCSS: ブラウザ間の表示の差異を減らす */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* フォント設定は任意で変更 */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    height: 100%;
}

/* 🌟 【変更2】ナビゲーションバーを上部に固定 */
.navbar {
    position: fixed; 
    top: 0; /* 上端に配置 */
    left: 0;
    width: 100%;
    /* 背景を完全に白にし、画像のデザインに合わせる */
    background-color: #fff; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* わずかな影 */
    padding: 15px 0;
    z-index: 100;
}

/* ナビゲーションバーの高さ分のスペースを空けるための要素 */
.navbar-spacer {
    height: 60px; /* ナビゲーションバーの高さに合わせて調整 */
}

.navbar-content {
    max-width: 1400px; /* 画像に合わせて幅を広げる */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px; /* 左右のパディングを広げる */
}

/* ロゴエリアのデザイン（画像3に合わせて、ロゴと文字を左寄せ） */
.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.logo-img {
    height: 18px;
    margin-right: 5px;
}

/* ナビゲーションリンクのデザイン */
.nav-links ul {
    list-style: none;
    display: flex;
    gap: 40px; /* リンク間のスペースを広げる */
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.3s;
    padding: 5px 0;
    display: block;
}

.nav-links a:hover {
    color: #000;
}

/* 「仕業用」ボタンのデザイン（変更なし） */
.action-btn {
    background-color: #000;
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
}

.action-btn:hover {
    background-color: #333;
}

/* ヒーローセクションの共通デザイン */
.hero-section {
    width: 100%;
    background-size: cover;
    background-position: center center;
    min-height: 80vh; /* 画面高さいっぱいに近いサイズ */
    margin-bottom: 20px;
}

/* 1つ目のヒーローセクション（リビングシーン/製品） */
.hero-main {
    /* 画像1の背景画像に置き換えてください */
    background-image: url('otya.png'); 
}

/* 2つ目のヒーローセクション（製品の背景、画像3の上部） */
.hero-product {
    /* 画像3の背景画像に置き換えてください */
    background-image: url('product_mirror_scene.jpg'); 
    min-height: 40vh; /* 画面の半分程度の高さ */
}


/* ===== 【新規追加】左右分割コンテンツセクション（画像2）のデザイン ===== */

.story-content-split {
    display: flex;
    max-width: 1400px; /* ナビゲーションバーと幅を合わせる */
    margin: 40px auto;
    min-height: 600px;
}

/* 左側のテキストエリア */
.content-left {
    flex: 1; /* 均等な幅を確保 */
    padding: 80px 40px 80px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直方向の中央揃え */
    align-items: flex-start; /* 左寄せ */
}

.subtitle {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
    color: #555;
    /* 画像に合わせたスタイル */
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
    margin-bottom: 30px;
}

.content-left h1 {
    font-size: 48px;
    font-weight: 300; /* 細めのフォント */
    line-height: 1.2;
    margin-bottom: 40px;
    color: #000;
}

.group-name {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 60px;
    color: #333;
}

/* View Detail リンクのデザイン */
.view-detail {
    text-decoration: none;
    color: #000;
    font-size: 14px;
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.view-detail:hover {
    color: #555;
}

.arrow-line {
    width: 80px; /* 線の長さ */
    height: 1px;
    background-color: #000;
    margin-left: 10px;
    position: relative;
    top: 0;
}

.arrow-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 6px;
    border-color: transparent transparent transparent #000;
}


/* 右側の画像エリア */
.content-right {
    flex: 1;
    overflow: hidden; /* 画像をはみ出さないように */
}

.side-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 縦横比を保ちつつ、エリア全体を覆う */
    display: block;
}

/* ===== 【新規追加】ここまで ===== */

/* スマートフォンでの表示調整 */
@media (max-width: 768px) {
    /* ナビゲーションバーは、レスポンシブ対応のため中央寄せの縦並びを維持 */
    .navbar-content {
        flex-direction: column;
        gap: 10px;
        padding: 0 10px;
    }
    
    .nav-links ul {
        gap: 15px;
    }

    /* 左右分割セクションを縦並びにする */
    .story-content-split {
        flex-direction: column;
        margin: 20px auto;
    }

    .content-left {
        padding: 40px 20px;
        text-align: center; /* モバイルでは中央揃えにする */
        align-items: center;
    }
    
    .content-left h1 {
        font-size: 36px;
    }
    
    .view-detail {
        margin: 0 auto; /* 中央揃え */
    }

    .hero-section {
        min-height: 50vh;
    }
}


.topics-section {
    padding: 100px 40px;
    background-color: #f8f8f8; /* 背景にわずかに色をつけ、セクションを区切る */
}

.topics-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.topics-section h2 {
    font-size: 32px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    letter-spacing: 0.1em;
}

.topics-list {
    border-top: 1px solid #ccc;
}

.topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ccc;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}

.topic-item:hover {
    background-color: #eee;
}

.topic-date {
    font-size: 14px;
    color: #777;
    flex-shrink: 0; /* 縮小しない */
    margin-right: 30px;
    width: 100px; /* 日付の幅を固定 */
}

.topic-title {
    font-size: 16px;
    line-height: 1.5;
    flex-grow: 1; /* 残りのスペースを使用 */
    text-align: left;
}

/* View All リンクの調整 */
.topics-list .view-all {
    display: inline-flex; /* リンクをインラインフレキシブルにし、中央揃えを解除 */
    justify-content: flex-start;
    border-bottom: none;
    font-weight: bold;
    color: #000;
    margin-top: 30px;
}

/* モバイルでの調整 */
@media (max-width: 768px) {
    .topics-section {
        padding: 50px 20px;
    }
    
    .topic-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .topic-date {
        margin-right: 0;
        margin-bottom: 5px;
    }
}

/* ===== 【新規追加】フッターセクションのデザイン ===== */

.site-footer {
    padding: 40px 20px;
    background-color: #000; /* 黒背景でスタイリッシュに */
    color: #fff;
    text-align: center;
}

.footer-links ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    text-decoration: none;
    color: #ccc;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    font-size: 12px;
    color: #777;
}

@media (max-width: 768px) {
    .footer-links ul {
        flex-direction: column;
        gap: 10px;
    }
}


/* ===== 【新規追加】プレスリリース詳細ページのデザイン ===== */

.release-detail-main {
    padding: 80px 40px 120px;
}

/* コンテンツ幅を制御し、読みやすくする */
.release-detail-main .container {
    max-width: 800px; /* 記事本文として読みやすい幅 */
    margin: 0 auto;
}

/* ヘッダー部分 */
.release-header {
    text-align: center;
    margin-bottom: 40px;
}

.release-category {
    font-size: 14px;
    font-weight: bold;
    color: #888;
    margin-bottom: 10px;
}

.release-title {
    font-size: 38px;
    font-weight: 500; /* 中くらいの太さ */
    line-height: 1.3;
    margin-bottom: 15px;
    color: #333;
}

.release-date {
    font-size: 16px;
    color: #666;
}

.separator {
    border: none;
    border-top: 1px solid #ccc;
    margin: 40px 0;
}

/* 画像 */
.release-visual {
    margin-bottom: 40px;
}

.release-visual .main-image {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* リード文 */
.release-lead {
    font-size: 18px;
    line-height: 1.7;
    font-weight: 500;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ddd; /* リード文を区切る */
    color: #333;
}

/* 本文 */
.release-body {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.release-body h3 {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 15px;
    border-left: 4px solid #333; /* アクセント */
    padding-left: 10px;
    color: #333;
}

.release-body p, .release-body ul {
    margin-bottom: 20px;
}

.release-body ul {
    list-style: disc;
    margin-left: 20px;
}

.release-body li {
    margin-bottom: 8px;
}

.contact-info {
    margin-top: 50px;
    padding: 20px;
    border: 1px solid #eee;
    background-color: #f9f9f9;
    font-size: 14px;
    line-height: 1.6;
}

/* 戻るリンク */
.back-link {
    text-align: center;
    margin-top: 60px;
}

/* View Detail リンクのスタイルを流用 */
.back-link .view-detail {
    display: inline-flex;
    align-items: center;
    /* 線の色を黒で維持 */
}

/* 矢印の方向を反転させるための修正 */
.arrow-line.reverse {
    order: -1; /* リンクの前に線を配置 */
    margin-right: 10px;
    margin-left: 0;
}

.arrow-line.reverse::after {
    /* 矢印を左向きに */
    content: '';
    right: auto;
    left: 0;
    border-width: 4px 6px 4px 0;
    border-color: transparent #000 transparent transparent;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .release-detail-main {
        padding: 30px 20px 80px;
    }

    .release-title {
        font-size: 28px;
    }
}


/* ===== 【新規追加】IR情報詳細ページのデザイン ===== */

.ir-detail-main {
    padding: 80px 40px 120px;
}

/* コンテンツ幅を制御し、読みやすくする */
.ir-detail-main .container {
    max-width: 900px; /* 表があるため、少し幅を広げる */
    margin: 0 auto;
}

/* ヘッダー部分 */
.ir-header {
    text-align: center;
    margin-bottom: 40px;
}

.ir-category {
    font-size: 14px;
    font-weight: bold;
    color: #007bff; /* IR情報なので青系で強調 */
    margin-bottom: 10px;
}

.ir-title {
    font-size: 38px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #333;
}

.ir-date {
    font-size: 16px;
    color: #666;
}

/* PDFダウンロードセクション */
.download-section {
    text-align: center;
    margin-bottom: 60px;
}

.download-section h2, .financial-highlight h2 {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 30px;
    color: #333;
}

.download-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 20px 40px;
    border: 2px solid #007bff;
    border-radius: 5px;
    max-width: 600px;
    margin: 0 auto;
}

.file-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.download-btn {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #0056b3;
}

.download-icon {
    font-size: 1.2em;
    margin-left: 10px;
}

/* 財務ハイライトセクション */
.financial-highlight {
    margin-bottom: 60px;
}

.financial-highlight .note {
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

.financial-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    text-align: left;
}

.financial-table th, .financial-table td {
    border: 1px solid #ddd;
    padding: 15px;
    font-size: 16px;
}

.financial-table th {
    background-color: #f2f2f2;
    font-weight: 500;
}

.financial-table td {
    font-weight: 400;
}

.financial-table td:nth-child(2) {
    font-weight: bold;
    color: #000;
}

.financial-table .positive {
    color: #28a745; /* プラス成長は緑色 */
    font-weight: bold;
}

.disclaimer {
    text-align: right;
    font-size: 12px;
    color: #999;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .ir-detail-main {
        padding: 30px 20px 80px;
    }

    .ir-title {
        font-size: 28px;
    }

    .download-box {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .financial-table th, .financial-table td {
        padding: 10px;
        font-size: 14px;
    }
}


/* ===== 【新規追加】採用情報詳細ページのデザイン（release-detailと共通構造） ===== */

.recruit-detail-main {
    padding: 80px 40px 120px;
}

.recruit-detail-main .container {
    max-width: 800px;
    margin: 0 auto;
}

/* ヘッダー部分 */
.recruit-header {
    text-align: center;
    margin-bottom: 40px;
}

.recruit-category {
    font-size: 14px;
    font-weight: bold;
    color: #cc0000; /* 採用情報なので赤系で強調 */
    margin-bottom: 10px;
}

.recruit-title {
    font-size: 38px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #333;
}

.recruit-date {
    font-size: 16px;
    color: #666;
}

.recruit-visual {
    margin-bottom: 40px;
}

.recruit-visual .main-image {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.recruit-lead {
    font-size: 18px;
    line-height: 1.7;
    font-weight: 500;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ddd;
    color: #333;
}

.recruit-body {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.recruit-body h3 {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 15px;
    border-left: 4px solid #cc0000; /* 採用情報の強調色 */
    padding-left: 10px;
    color: #cc0000;
}

.recruit-body p, .recruit-body ul {
    margin-bottom: 20px;
}

.recruit-body ul {
    list-style: disc;
    margin-left: 20px;
}

.recruit-body li {
    margin-bottom: 8px;
}

/* キャリア採用ページへの誘導ボタン */
.call-to-action {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.career-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background-color: #cc0000; /* 強調色 */
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.career-btn:hover {
    background-color: #a30000;
}

.career-icon {
    font-size: 1.2em;
    margin-left: 10px;
    line-height: 1;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .recruit-detail-main {
        padding: 30px 20px 80px;
    }

    .recruit-title {
        font-size: 28px;
    }

    .career-btn {
        padding: 12px 25px;
        font-size: 16px;
    }
}