/*
Theme Name: Press Release Theme
Description: プレスリリース一覧サイト用のカスタムテーマ
Version: 1.0
Author: Your Name
*/

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ヘッダー */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #000;
    margin: 0;
}

.site-title a {
    color: #000;
    text-decoration: none;
}

.site-title a:hover {
    color: #000;
    text-decoration: none;
}

/* タイトルと国選択の配置 */
.title-and-country {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.country-selector {
    position: relative;
}

/* カスタムドロップダウン */
.custom-dropdown {
    position: relative;
    width: 50px;
    height: 35px;
}

.dropdown-selected {
    width: 100%;
    height: 100%;
    border: 1px solid #333;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 48px 33px;
    position: relative;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.dropdown-arrow {
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #333;
    pointer-events: none;
}

/* ドロップダウンオプション */
.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #333;
    border-top: none;
    z-index: 1000;
    display: none;
}

.dropdown-options.show {
    display: block;
}

.dropdown-option {
    width: 100%;
    height: 45px;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 58px 43px;
    border-bottom: 1px solid #ddd;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background-color: #f5f5f5;
}

/* 国旗の背景画像 */
.flag-us {
    background-image: url('./images/flags/us.svg');
}

.flag-korea {
    background-image: url('./images/flags/korea.svg');
}

.flag-japan {
    background-image: url('./images/flags/jp.svg');
}

.dropdown-selected:hover {
    opacity: 0.8;
}

.country-selector select:focus {
    outline: none;
    opacity: 0.8;
}

/* ナビゲーション */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav .auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-signin {
    padding: 0.75rem 1.5rem;
    border: 2px solid #BA312A;
    background-color: #fff;
    color: #BA312A;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.btn-signin:hover {
    background-color: #BA312A;
    color: #fff;
}

.btn-signup {
    padding: 0.75rem 1.5rem;
    background-color: #BA312A;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    border: 2px solid #BA312A;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    height: 48px;
    box-sizing: border-box;
}

.btn-signup .signup-main {
    font-size: inherit;
    font-weight: bold;
}

.btn-signup .signup-sub {
    font-size: 10px;
    font-weight: 400;
    margin-top: 2px;
}

.btn-signup:hover {
    background-color: #9a2722;
    border-color: #9a2722;
}

/* カテゴリーメニューバー */
.category-menu-bar {
    background-color: #BA312A;
    height: 50px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 80px; /* ヘッダーの高さ分下げる */
    z-index: 99;
}

.category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.category-menu {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-menu::-webkit-scrollbar {
    display: none;
}

.category-item {
    color: #fff;
    text-decoration: none;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.category-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.category-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom-color: #fff;
    font-weight: 600;
}

/* See All Categories ボタンのスタイル */
.category-item.see-all-categories {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 1rem;
    padding-left: 2rem;
}

.category-item.see-all-categories:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.category-item.see-all-categories.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-bottom-color: #fff;
}

/* 現在のカテゴリー表示用スタイル */
.category-item.current-category {
    background-color: rgba(255, 255, 255, 0.2);
    border-bottom: 3px solid #fff;
    font-weight: bold;
    cursor: default;
    pointer-events: none;
}

.category-item.see-all-link {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 1rem;
    padding-left: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.category-item.see-all-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    opacity: 1;
}

/* メインコンテンツ */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    flex: 1;
}

/* 記事詳細ページでは左右paddingを削除 */
body.single .main-content {
    padding: 0;
    max-width: none;
    margin: 0;
}

.page-title {
    color: #BA312A;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: left;
    position: relative;
    padding-left: 25px;
}

.page-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 40px;
    background-color: #BA312A;
    border-radius: 2px;
}

/* 記事一覧 */
.press-releases {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* PC環境では2カラム表示 */
@media (min-width: 769px) {
    .press-releases {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }
}

.press-release-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

/* モバイル環境でも画像を右側に維持 */
@media (max-width: 768px) {
    .press-release-card {
        gap: 1rem;
        padding: 0.75rem 0;
    }
    
    .card-left {
        flex: 1;
        min-width: 0; /* flexアイテムの最小幅をリセット */
    }
    
    .card-right {
        flex-shrink: 0;
    }
    
    .card-image {
        width: 100px;
        height: 67px;
    }
    
    .card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    .card-meta {
        font-size: 0.8rem;
        gap: 0.3rem;
    }
}

@media (max-width: 480px) {
    .press-release-card {
        gap: 0.75rem;
        padding: 0.5rem 0;
    }
    
    .card-image {
        width: 80px;
        height: 53px;
    }
    
    .card-title {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }
    
    .card-meta {
        font-size: 0.75rem;
    }
}

.press-release-card:last-child {
    border-bottom: none;
}

.card-left {
    flex: 1;
}

.card-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-title a {
    text-decoration: none;
    color: #333;
}

.card-title a:hover {
    color: #BA312A;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.clock-icon {
    font-size: 0.8rem;
}

.card-date {
    color: #666;
}

.card-right {
    flex-shrink: 0;
}

.card-image {
    width: 120px;
    height: 80px;
    overflow: hidden;
}

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

.card-image.placeholder {
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
}

.placeholder-text {
    color: #999;
    font-size: 0.8rem;
}

/* 記事詳細 */
.single-post {
    background: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
}

.post-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.post-company {
    color: #BA312A;
    font-weight: 500;
}

.by-text {
    color: #BA312A;
    font-weight: 500;
}

.company-link {
    color: #BA312A;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.company-link:hover {
    color: #8B2419;
    text-decoration: underline;
}

/* See Company Page ボタンスタイル - 最強セレクター */
body a.see-company-page-btn,
body .company-button-wrapper a.see-company-page-btn,
body .company-button-wrapper .see-company-page-btn,
.company-info a.see-company-page-btn,
.company-details a.see-company-page-btn {
    display: inline-block !important;
    padding: 0.5rem 1.2rem !important;
    background-color: #BA312A !important;
    background: #BA312A !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    border: 2px solid #BA312A !important;
    text-align: center !important;
    margin-top: 10px !important;
    opacity: 1 !important;
    box-sizing: border-box !important;
}

a.see-company-page-btn:hover,
.company-button-wrapper a.see-company-page-btn:hover,
.company-button-wrapper .see-company-page-btn:hover,
a.see-company-page-btn:focus,
a.see-company-page-btn:active {
    background-color: #8B2419 !important;
    background: #8B2419 !important;
    border-color: #8B2419 !important;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    opacity: 1 !important;
}

.company-button-wrapper {
    margin-top: 15px;
}

/* Post meta layout */
.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0;
}

.post-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* SNS Share Buttons */
.sns-share-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 10px;
}

.sns-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    padding: 0;
}

.sns-share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sns-share-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Individual SNS colors on hover */
.sns-share-button.facebook:hover {
    background-color: #1877f2;
    color: white;
}

.sns-share-button.twitter:hover {
    background-color: #1da1f2;
    color: white;
}

.sns-share-button.linkedin:hover {
    background-color: #0077b5;
    color: white;
}

.sns-share-button.copy:hover {
    background-color: #BA312A;
    color: white;
}

.sns-share-button.print:hover {
    background-color: #666;
    color: white;
}

.sns-share-button.pdf:hover {
    background-color: #dc3545;
    color: white;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #BA312A;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive design for SNS buttons */
@media (max-width: 768px) {
    .post-meta-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .sns-share-buttons {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .sns-share-button {
        width: 28px;
        height: 28px;
    }
    
    .sns-share-button svg {
        width: 16px;
        height: 16px;
    }
}

.post-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: #2c3e50;
}

/* Footer Styles */
.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-content {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 30px;
}

.footer-brand {
    flex: 1;
}

.footer-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
}

.footer-menus {
    display: flex;
    gap: 60px;
    margin-top: 20px;
}

.footer-menu-section {
    flex: 1;
    min-width: 200px;
}

.footer-menu-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 5px;
}

.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-list li {
    margin-bottom: 8px;
}

.footer-menu-list a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu-list a:hover {
    color: #BA312A;
}

.footer-countries-list {
    margin: 0;
}

.footer-countries-list .country-item {
    color: #BA312A;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
}

.footer-bottom {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
    text-align: center;
}

.footer-copyright {
    color: #333;
    font-size: 14px;
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-menus {
        flex-direction: column;
        gap: 30px;
        justify-content: flex-start;
    }
    
    .footer-menu-section {
        min-width: auto;
    }
}

/* Card Company Styles */
.card-company {
    margin-top: 8px;
    font-size: 14px;
}

.card-company .company-by {
    color: #666;
    font-weight: bold;
}

.card-company .company-link {
    color: #666;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.card-company .company-link:hover {
    color: #BA312A;
    text-decoration: underline;
}

.post-content h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem 0;
    color: #34495e;
}

.post-content p {
    margin-bottom: 1.5rem;
}

/* 会社概要ページ */
.company-info {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* 会社ロゴと社名のスタイル */
.company-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    padding: 0;
    outline: none !important;
}

.company-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex-shrink: 0;
    border: 2px solid #ccc !important;
    border-radius: 8px;
    padding: 10px;
    background-color: #fff;
    box-shadow: none !important;
    outline: none !important;
}

.company-info {
    flex: 1;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    outline: none !important;
}

/* 会社名のスタイル - より強力なセレクター */
.company-info h1.company-name,
h1.company-name {
    margin: 0 0 10px 0 !important;
    font-size: 2.5em !important;
    color: #333 !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    outline: none !important;
}

/* 会社説明文のスタイル */
.company-description {
    margin: 0;
    font-size: 1em;
    color: #666;
    line-height: 1.5;
    max-width: 600px;
}

/* プレスリリース一覧のタイトルスタイル */
.press-release-title {
    color: #BA312A;
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .company-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        border: none !important;
        box-shadow: none !important;
        background: none !important;
        outline: none !important;
    }
    
    .company-info h1.company-name,
    h1.company-name {
        font-size: 1.8em !important;
        line-height: 1.2 !important;
        border: none !important;
        box-shadow: none !important;
        background: none !important;
        outline: none !important;
    }
    
    .company-description {
        font-size: 0.9em;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .company-logo {
        max-width: 60px;
        max-height: 40px;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
    }
    
    .company-name {
        font-size: 1.8em;
        border: none !important;
        box-shadow: none !important;
        background: none !important;
        outline: none !important;
    }
    
    .company-description {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .company-logo {
        max-width: 50px;
        max-height: 35px;
    }
    
    .company-name {
        font-size: 1.25rem;
    }
    
    .press-release-title {
        font-size: 1.1rem;
    }
}

/* フッター */
.site-footer {
    background-color: #F0F0F0;
    color: #333;
    height: 500px;
    margin-top: auto;
    padding: 40px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex: 1;
}

.footer-brand {
    text-align: left;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    margin: 0;
}

.footer-menus {
    display: flex;
    gap: 60px;
}

.footer-menu-section {
    text-align: left;
}

.footer-menu-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-list li {
    margin-bottom: 8px;
}

.footer-menu-list a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu-list a:hover {
    color: #BA312A;
}

.footer-menu-list.countries {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.country-item {
    color: #666;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    text-align: center;
}

.footer-copyright {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* 企業一覧 */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.company-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.company-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.company-card-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.company-card-name a {
    text-decoration: none;
    color: #2c3e50;
}

.company-card-name a:hover {
    color: #3498db;
}

.company-card-count {
    color: #666;
    font-size: 0.9rem;
}

/* ナビゲーション */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-links a {
    display: block;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background: #e9ecef;
}

/* 戻るボタン */
.back-to-list {
    margin-top: 2rem;
    text-align: center;
}

.btn-back {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-back:hover {
    background: #2980b9;
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

.pagination a:hover {
    background: #f8f9fa;
}

.pagination .current {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* カテゴリーメニューのレスポンシブ - サイズを維持 */
@media (max-width: 768px) {
    .category-container {
        padding: 0 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-item {
        padding: 0 1.5rem;
        font-size: 1rem;
        white-space: nowrap;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .category-container {
        padding: 0 5px;
    }
    
    .category-item {
        padding: 0 1.5rem;
        font-size: 1rem;
        white-space: nowrap;
    }
}

/* レスポンシブ - ヘッダーを横並び維持 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }
    
    .logo {
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    
    .custom-dropdown {
        width: 40px;
        height: 30px;
        flex-shrink: 0;
    }
    
    .dropdown-selected {
        background-size: 38px 28px;
    }
    
    .main-nav .auth-buttons {
        flex-direction: row;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    .btn-signin,
    .btn-signup {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        height: 36px;
        min-width: 60px;
        text-align: center;
    }
    
    .btn-signup {
        min-width: 70px;
    }
    
    .btn-signup .signup-main {
        font-size: 0.85rem;
    }
    
    .btn-signup .signup-sub {
        font-size: 8px;
    }
    
    .press-releases {
        grid-template-columns: 1fr;
        gap: 2rem 0;
    }
    
    .press-release-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 0;
    }
    
    .card-image {
        width: 100%;
        height: 200px;
        order: -1;
    }
    
    .companies-grid {
        grid-template-columns: 1fr;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .single-post {
        padding: 1.5rem;
    }
    
    .nav-links {
        flex-direction: column;
    }
}

/* トップページ用スタイル */
body.home .main-content,
body.blog .main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 詳細ページ用スタイル */
body.single .main-content {
    padding: 0;
    margin: 0;
    width: 100%;
}

.single-post {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
}

.post-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding: 2rem 2rem 1.5rem 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.post-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #666;
}

.post-meta span {
    display: flex;
    align-items: center;
}

.post-meta strong {
    margin-right: 0.5rem;
    color: #333;
}

.post-company a {
    color: #BA312A;
    text-decoration: none;
    font-weight: 500;
}

.post-company a:hover {
    text-decoration: underline;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h1, 
.post-content h2, 
.post-content h3, 
.post-content h4, 
.post-content h5, 
.post-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 4px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .single-post {
        padding: 0;
    }
    
    .post-header {
        padding: 1rem 1rem 1rem 1rem;
    }
    
    .post-content {
        padding: 1rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    /* モバイル時の記事カードレイアウト - アイキャッチ画像を右に配置 */
    .press-release-card {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .card-left {
        flex: 1;
        min-width: 0; /* テキストの折り返しを確実にする */
    }
    
    .card-right {
        flex-shrink: 0;
        order: 2; /* 右側に配置 */
    }
    
    .card-image {
        width: 80px;
        height: 60px;
    }
    
    .card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .card-meta {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .card-company {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 10px;
    }
    
    .title-and-country {
        gap: 0.75rem;
    }
    
    .custom-dropdown {
        width: 50px;
        height: 35px;
    }
    
    .dropdown-selected {
        background-size: 48px 33px;
        background-position: center;
    }
    
    .dropdown-option {
        height: 35px;
        background-size: 48px 33px;
        background-position: center;
    }
    
    .dropdown-arrow {
        border-left: 3px solid transparent;
        border-right: 3px solid transparent;
        border-top: 4px solid #333;
        right: -10px;
    }
    
    .auth-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    /* カテゴリーメニューバーのモバイル対応 - 高さを維持 */
    .category-menu-bar {
        height: 50px !important;
        top: 60px; /* モバイル時のヘッダー高さに合わせて調整 */
    }
    
    .category-container {
        height: 100% !important;
        padding: 0 15px;
    }
    
    .category-menu {
        height: 100% !important;
    }
    
    .category-item {
        height: 100% !important;
        padding: 0 1rem;
        font-size: 0.9rem;
    }
    
    .category-item.see-all-categories {
        padding-left: 1.5rem;
        margin-left: 0.5rem;
    }

    /* フッターのレスポンシブ対応 */
    .footer-menus {
        flex-direction: column;
        gap: 25px;
        margin-top: 15px;
    }
    
    .footer-menu-section {
        min-width: auto;
    }
}
