@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

:root {
    --primary-color: #005ab3;
    --secondary-color: #00aaff;
    --text-color: #333;
    --bg-color: #ffffff;
    --light-gray: #f8f9fa;
    --header-height-pc: 135px;
    --header-height-sp: 70px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
}

.wavy-background-section {
    background-image: url('img/wavy-background.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

.wavy-background-section .container {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 50px 60px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* General Styles */
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--secondary-color); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: background-color 0.4s ease, padding 0.3s, box-shadow 0.4s ease;
}
body.home .site-header {
    background-color: transparent;
    box-shadow: none;
}
.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.header-content { display: flex; flex-direction: column; align-items: center; }
.logo { margin-bottom: 10px; }
.logo img { height: 60px; transition: height 0.3s; }
.site-header.scrolled .logo img { height: 50px; }
nav { display: flex; justify-content: center; width: 100%; }
.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 30px; }
.nav-menu a { display: block; padding: 5px 0; font-weight: 700; font-size: 1rem; color: var(--primary-color); position: relative; white-space: nowrap; }
body.home .site-header:not(.scrolled) .nav-menu a {
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.nav-menu a::after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background-color: var(--secondary-color); transition: width 0.3s ease; }
.nav-menu a:hover::after { width: 100%; }
.header-tel-btn { display: none; }

.menu-toggle {
    display: none;
    position: absolute;
    right: 20px; /* さらに左に移動 */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    border: none;
    background: none;
    z-index: 1001;
    padding: 12px; /* クリック領域を拡大 */
}
.menu-toggle .bar { display: block; width: 28px; height: 3px; background-color: var(--primary-color); margin: 6px 0; transition: 0.4s; }
body.home .site-header:not(.scrolled) .menu-toggle .bar {
    background-color: white;
}

/* Main Content Area */
.main-content {
    padding-top: var(--header-height-pc);
}
body.home .main-content {
    padding-top: 0;
}

/* Page Header (for sub-pages) */
.page-header {
    background-color: var(--light-gray);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    box-sizing: border-box;
}
.page-header h1 { font-size: 2.2rem; color: var(--text-color); margin: 0; }

/* Hero Section (for home page) */
.hero { position: relative; height: 100vh; display: flex; justify-content: center; align-items: center; text-align: center; color: white; overflow: hidden; }
#bg-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translateX(-50%) translateY(-50%); z-index: -2; object-fit: cover; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.2)); z-index: -1; }
.hero-content { max-width: 800px; animation: fadeIn 2s ease-in-out; }
.hero h1 { font-size: 3.2rem; margin-bottom: 20px; font-weight: 700; text-shadow: 2px 2px 8px rgba(0,0,0,0.7); }
.hero p { font-size: 1.3rem; text-shadow: 1px 1px 4px rgba(0,0,0,0.7); }

.section { padding: 80px 0; opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.section + .section { margin-top: 60px; }
.section.visible { opacity: 1; transform: translateY(0); }

.section-title {
    font-size: 2.0rem;
    color: var(--primary-color);
    text-align: left;
    margin-bottom: 60px;
    padding-left: 25px;
    border-left: 5px solid var(--primary-color);
    line-height: 1.4;
}
.section-title .section-title-en {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary-color);
    letter-spacing: 0.1em;
    margin-top: 5px;
}
.section-title::after { content: none; }

/* Grid Styles */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.grid-item { background: #fff; padding: 40px 30px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s; text-align: center; }
.grid-item:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.grid-item .icon { font-size: 3.5rem; color: var(--primary-color); margin-bottom: 20px; transition: transform 0.3s; }
.grid-item:hover .icon { transform: scale(1.1); }
.grid-item h3 { font-size: 1.5rem; color: var(--primary-color); margin-top: 0; margin-bottom: 15px; }

/* Specific Page Styles */
.permit-grid { display: grid; gap: 30px; }
.permit-grid.columns-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.permit-grid.columns-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.permit-card { background-color: #fff; border: 1px solid #e9ecef; border-radius: 10px; padding: 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.permit-card h3 { border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; margin-bottom: 15px; }
.permit-card ul { list-style: none; padding: 0; }
.company-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.company-table th, .company-table td { border: 1px solid #ddd; padding: 15px; text-align: left; }
.company-table th { background-color: #f8f9fa; width: 25%; font-weight: bold; }
.pdf-link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.btn-pdf { display: flex; align-items: center; justify-content: center; padding: 15px; background-color: #d9534f; color: white; border-radius: 5px; text-decoration: none; transition: background-color 0.3s; }
.btn-pdf:hover { background-color: #c9302c; }
.btn-pdf i { margin-right: 10px; }

/* Footer */
.site-footer { background-color: #f8f9fa; color: #6c757d; padding-top: 0; }
.footer-info-block { background-color: var(--primary-color); color: white; padding: 50px 20px; text-align: center; }
.footer-info-block p { margin: 5px 0; font-size: 1.1rem; }
.footer-info-block .footer-buttons { margin-top: 25px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.footer-btn { background-color: white; color: var(--primary-color) !important; padding: 12px 30px; border-radius: 5px; font-weight: bold; font-size: 1rem; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: transform 0.2s, box-shadow 0.2s; }
.footer-btn:hover { color: var(--primary-color); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.footer-btn i { margin-right: 8px; }
.footer-map { width: 100%; height: 450px; border: 0; }
.footer-bottom { background-color: #e9ecef; padding: 20px 0; text-align: center; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Responsive */
@media (max-width: 1080px) {
    .site-header { height: var(--header-height-sp); }
    .header-content { flex-direction: row; justify-content: space-between; align-items: center; width: 100%; height: 100%; padding: 0 20px; position: relative; }
    .logo { margin-bottom: 0; }
    .logo img { height: 45px; }
    nav { display: contents; }
    .nav-menu { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background-color: white; flex-direction: column; align-items: flex-start; padding: 80px 40px 40px; /* 上の余白を少し縮小 */ gap: 25px; transition: right 0.5s ease-in-out; box-shadow: -5px 0 15px rgba(0,0,0,0.1); overflow-y: auto; /* メニューが画面より長い場合にスクロールを許可 */ }
    .nav-menu.active { right: 0; }
    .nav-menu a { font-size: 0.9rem; color: var(--primary-color); text-shadow: none; }
    .menu-toggle { display: block; right: 40px; } /* ハンバーガーメニューをさらに左に移動 */
    .main-content { padding-top: var(--header-height-sp); }
    .page-header { margin-top: 0; } /* スマホではmain-contentのpaddingで調整 */
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.2rem; }
    .permit-grid.columns-2, .permit-grid.columns-3 { grid-template-columns: 1fr; }
}

/* News Section */
#news { background-color: transparent; }
#news-container {
    background-color: white;
    border-radius: 15px;
    border: 1px solid #ddd;
    padding: 30px 40px;
}
#news-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: none;
}
#news-container li {
    padding: 20px 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}
#news-container li:last-child {
    border-bottom: none;
}
#news-container .news-date {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-right: 20px;
}
#news-container .news-title {
    font-weight: bold;
}

/* General Button Style */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white !important; /* aタグのcolorを上書き */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.footer-btn.btn-email {
    background-color: #28a745; /* 緑系 */
    color: white !important;
}

.footer-btn.btn-email:hover {
    background-color: #218838;
}
/* 点滅するNEWバッジのスタイル */
#news-container .new-badge {
    background-color: red;
    color: white;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 10px;
    animation: blink 1s linear infinite;
    display: inline-block; /* 確実に表示されるように */
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* �t�b�^�[�̃v���C�o�V�[�|���V�[�{�^�� */
.footer-privacy-btn {
    display: inline-block;
    background-color: #ffffff;
    color: var(--primary-color) !important;
    padding: 5px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}
.footer-privacy-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
