:root {
    --primary-color: #002244; /* white */
    --accent-color: #d4af37;  /* Gold */
    --bg-color: #f4f7f9;
    --text-color: #333;
    --white: #ffffff;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    border-bottom: 3px solid var(--accent-color);
}

header h1 {
    font-size: 1.2rem;
    margin: 0;
}

header h1 span {
    font-weight: normal;
    font-size: 0.9rem;
    opacity: 0.8;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,34,68,0.8), rgba(0,34,68,0.8)), url('https://images.unsplash.com/photo-1534447677768-be436bb09401?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.search-bar {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.search-bar input {
    padding: 10px 15px;
    width: 300px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.search-bar button {
    padding: 10px 20px;
    background: var(--accent-color);
    border: none;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: -40px; /* Heroに少し被せる */
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
}

.btn.outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/* News List */
.news-section {
    margin: 40px 0;
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
}

#news-list {
    list-style: none;
    padding: 0;
}

#news-list li {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
}

footer {
    text-align: center;
    padding: 20px 0;
    font-size: 0.8rem;
    color: #777;
}

/* サブページ用の追加スタイル */
.sub-page {
    background-color: #f0f2f5;
}

.page-title {
    margin: 30px 0;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

/* フィルタエリア */
.filter-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.search-box input {
    padding: 12px 20px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 0.9rem;
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* 案件カード */
.tender-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 4px solid #ccc;
    transition: 0.2s;
}

.tender-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tender-card.goods { border-left-color: #2ecc71; }
.tender-card.service { border-left-color: #3498db; }
.tender-card.construction { border-left-color: #e67e22; }

.tender-info {
    flex: 1;
}

.tender-meta {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.tender-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 5px 0;
}

.tender-deadline {
    font-size: 0.85rem;
    color: #e74c3c;
    font-weight: bold;
}

.tender-actions {
    margin-left: 20px;
}

.download-btn {
    background: #eee;
    padding: 10px 15px;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
}

.download-btn:hover {
    background: #ddd;
}

/* ロゴ部分のリンクテキストの色を白に指定 */
.header-logo a {
    color: #ffffff;
    text-decoration: none; /* 下線を消したい場合 */
}

/* ホバー（マウスを乗せた時）も白を維持、または薄いグレーにする設定 */
.header-logo a:hover {
    color: #f0f0f0; 
    opacity: 0.8;
}

/* アイコン（fas fa-anchor）の色も同時に白くなります */
.header-logo i {
    color: #ffffff;
    margin-right: 8px; /* アイコンと文字の間隔調整（任意） */
}


/* 既存の共通設定に加え、以下を追記または調整 */

.doc-category {
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease-out forwards;
}

.doc-category h3 {
    border-left: 5px solid #003366; /* 海自らしい紺色 */
    padding-left: 15px;
    margin-bottom: 20px;
    color: #333;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.doc-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.doc-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.doc-info {
    margin-bottom: 15px;
}

.file-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
}

/* ファイル種別ごとの色分け */
.pdf { background-color: #e74c3c; }
.word { background-color: #2b579a; }
.excel { background-color: #217346; }

.doc-title {
    font-weight: bold;
    color: #333;
    line-height: 1.4;
}

/* ダウンロードボタンのスタイル */
.btn-dl {
    display: block;
    text-align: center;
    background-color: #003366;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-dl:hover {
    background-color: #0055aa;
}

.back-area {
    margin-top: 50px;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}
.btn-group .btn {
    font-size: 0.9rem;
    padding: 12px;
}
}

/* 案内テキストの強調 */
.welcome-text {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.welcome-text a {
    color: #e7bb5e;
    text-decoration: underline;
}

.welcome-text a:hover {
    text-decoration: none;
}

/* ② NEWアイコンの点滅アニメーション */
.badge-new {
    background: #e74c3c;
    color: white;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 3px;
    margin-left: 8px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* ④ 続きを見るボタンの装飾 */
.btn-more {
    background: none;
    border: none;
    color: #004488;
    cursor: pointer;
    font-size: 0.9em;
    padding: 5px 10px;
}
.btn-more:hover { text-decoration: underline; }

/* レイアウト微調整 */
.news-item { margin-bottom: 10px; border-bottom: 1px solid #eee; padding-bottom: 5px; }
.news-title { text-decoration: none; color: #333; }
.news-title:hover { color: #004488; text-decoration: underline; }