/* ==========================================
   1. 全ページ共通・基本設定
   ========================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; line-height: 1.8; color: #333; background: #fff; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 40px; }

/* ヘッダー */
header { 
    background: #1a365d; 
    color: #fff; padding: 15px 0; position: sticky; 
    top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo-area { display: flex; align-items: center; text-decoration: none; color: #fff; }
.logo-img { height: 45px; width: auto; vertical-align: middle; display: block; }  
.logo-text { font-size: 22px; font-weight: bold; letter-spacing: 0.15em; margin-left: 10px; line-height: 1; }
nav ul { display: flex; list-style: none; gap: 25px; }
nav ul li a { color: #fff; text-decoration: none; font-size: 13px; letter-spacing: 0.05em; transition: opacity 0.3s; }
nav ul li a:hover { opacity: 0.7; }

/* ページ共通：背景画像エリア（パララックス） */
.hero, .page-header { 
    width: 100%; background-repeat: no-repeat; background-attachment: fixed;    
    background-position: center top; background-size: 100% auto; border-bottom: 1px solid #eee;
}
.hero { aspect-ratio: 2.5 / 1; background-image: url('hero-visual.jpg'); display: flex; align-items: center; overflow: hidden; border-bottom: 5px solid #fff; }
.hero-overlay { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.2); }
.hero h1 { font-size: clamp(18px, 4.5vw, 42px); color: #1a365d; font-weight: bold; letter-spacing: 0.15em; text-shadow: 2px 2px 10px rgba(255,255,255,0.9); text-align: center; }

.page-header { padding: 80px 0; background-image: url('hero-visual-2.jpg'); color: #1a365d; background-color: #f0f0f0; }
.page-header h1 { font-size: 28px; letter-spacing: 0.1em; text-align: left; }

/* セクション共通 */
.section { padding: 80px 0; border-bottom: 1px solid #eee; scroll-margin-top: 80px; }
.section-title { font-size: 20px; font-weight: bold; margin-bottom: 10px; border-left: 4px solid #1a365d; padding-left: 15px; }
.section-subtitle { font-size: 14px; color: #666; margin-bottom: 40px; padding-left: 15px; display: block; }

/* ==========================================
   2. ページ別専用スタイル
   ========================================== */

/* TOP：サービスカード */
.service-grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 50px; }
.service-card { border: 1px solid #eee; padding: 40px; border-radius: 4px; transition: all 0.3s; text-decoration: none; color: inherit; display: block; }
.service-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-color: #1a365d; }
.service-card.main { background: #1a365d; color: #fff; }
.service-card h3 { margin-bottom: 15px; font-size: 22px; }
.service-card .tag { display: inline-block; background: #eee; color: #333; padding: 2px 10px; font-size: 11px; margin-bottom: 10px; border-radius: 2px; }
.service-card.main .tag { background: rgba(255,255,255,0.2); color: #fff; }

/* ABOUT：プロフィール・沿革 */
.profile-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.profile-table th { width: 220px; text-align: left; padding: 20px 0; border-bottom: 1px solid #eee; vertical-align: top; font-weight: bold; }
.profile-table td { padding: 20px 0; border-bottom: 1px solid #eee; vertical-align: top; }
.history-item { display: flex; padding-bottom: 35px; }
.history-year { width: 150px; font-weight: bold; color: #1a365d; flex-shrink: 0; }

/* CONTACT：フォームと赤い必須ラベル */
.contact-form { max-width: 700px; margin: 0 auto; }
.form-group { margin-bottom: 25px; }
.form-label { display: block; font-weight: bold; margin-bottom: 8px; font-size: 15px; }
/* ★必須ラベルを赤くするコード */
.form-label span { color: #e63946; font-size: 12px; margin-left: 8px; vertical-align: middle; font-weight: normal; }
.form-control { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; font-size: 16px; }
.form-control:focus { outline: none; border-color: #1a365d; box-shadow: 0 0 5px rgba(26,54,93,0.1); }
textarea.form-control { height: 180px; resize: vertical; }
.btn-submit { display: block; width: 250px; margin: 30px auto 0; padding: 18px; background: #1a365d; color: #fff; border: none; font-weight: bold; cursor: pointer; transition: 0.3s; letter-spacing: 0.1em; }
.btn-submit:hover { background: #2c4a7c; transform: translateY(-2px); }

/* ==========================================
   3. フッター
   ========================================== */
footer { padding: 60px 0; text-align: center; font-size: 12px; color: #999; background: #fafafa; border-top: 1px solid #eee; }
.footer-nav { margin-bottom: 20px; }
.footer-nav a { color: #666; text-decoration: none; margin: 0 10px; }
.footer-nav a:hover { text-decoration: underline; }

/* ==========================================
   4. モバイル対応 (768px以下)
   ========================================== */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .header-inner { flex-direction: column; gap: 10px; }
    nav ul { gap: 12px; }
    
    .hero, .page-header { 
        background-attachment: scroll !important; 
        background-size: cover !important; 
        background-position: center center !important;
        padding: 50px 0; aspect-ratio: auto; 
    }
    .hero h1 { font-size: 24px; }
    .service-grid div { grid-template-columns: 1fr !important; }
    
    .profile-table th, .profile-table td { display: block; width: 100%; border-bottom: none; }
    .profile-table th { padding-top: 20px; color: #1a365d; }
    .history-item { flex-direction: column; }
    .history-year { margin-bottom: 5px; }
    .btn-submit { width: 100%; }
}