/* Reset & Basic Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --font-primary: 'Noto Sans JP', sans-serif;
    --color-text: #333;
    --color-primary: #005792; /* 深い青 */
    --color-secondary: #1D2D50; /* より濃い青 */
    --color-accent: #D62839; /* 彩度を抑えた赤 */
    --color-background: #ffffff;
    --color-light-gray: #f8f9fa;
    --color-border: #e9ecef;
    --container-width: 1140px;
    --header-height: 70px;
    --border-radius: 8px; /* 角丸を少し大きく */
}

html {
    scroll-behavior: smooth; /* スムーズスクロール */
    font-size: 16px; /* ベースフォントサイズ */
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* 横スクロール防止 */
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
    text-decoration: none; /* ホバー時も下線なし */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* 画像のアスペクト比維持 */
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 25px;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.9); /* 少し透明度を持たせる */
    backdrop-filter: blur(10px); /* 背景ぼかし効果 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* スクロール時のヘッダースタイル (JSでクラス付与) */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}


.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-secondary);
    letter-spacing: 0.5px;
}
.logo:hover {
    color: var(--color-primary);
}

.global-nav ul {
    display: flex;
    align-items: center;
    gap: 30px; /* ナビ項目間のスペース */
}

.global-nav a {
    font-size: 0.95rem;
    color: var(--color-secondary);
    font-weight: 400;
    position: relative;
    padding: 5px 0;
}

/* ナビ下線アニメーション */
.global-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.global-nav a:hover::after,
.global-nav a.active::after,
.global-nav li.current-menu-item a::after,
.global-nav li.current_page_item a::after { /* WordPress current menu classes */
    width: 100%;
}

.nav-button {
    background-color: var(--color-primary);
    color: #fff !important; /* Importantで他のスタイルを上書き */
    padding: 8px 18px !important; /* Importantで他のスタイルを上書き */
    border-radius: var(--border-radius);
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.nav-button:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    color: #fff !important; /* ホバー時も白文字維持 */
}
.nav-button::after { /* ボタンには下線不要 */
    display: none;
}

/* モバイルナビゲーション用 */
.mobile-nav-toggle { display: none; } /* デフォルト非表示 */
.global-nav.active { /* モバイル表示時のスタイル */ }


/* Hero Section */
.hero {
    position: relative;
    height: calc(100vh - var(--header-height)); /* ヘッダー高さを引く */
    min-height: 500px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: var(--header-height);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%; /* Ensure video covers the container */
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)); /* グラデーションオーバーレイ */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* レスポンシブなフォントサイズ */
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

/* ヒーローテキストアニメーション */
.animate-hero-text {
    opacity: 0;
    transform: translateY(20px);
    animation: heroTextFadeIn 0.8s ease-out forwards;
}
.hero h1.animate-hero-text { animation-delay: 0.2s; }
.hero p.animate-hero-text { animation-delay: 0.4s; }
.hero .btn.animate-hero-text { animation-delay: 0.6s; }

@keyframes heroTextFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-decoration: none;
    margin: 5px;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(214, 40, 57, 0.3);
}

.btn-primary:hover {
    background-color: #c02131; /* 少し濃い赤 */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(214, 40, 57, 0.4);
    color: #fff;
}

/* Sections */
.section {
    padding: 80px 0; /* 余白を増やす */
    overflow: hidden; /* アニメーション要素のはみ出し防止 */
}
.section:nth-child(even) {
    background-color: var(--color-light-gray);
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.8rem); /* レスポンシブ */
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
}

.section-description {
    text-align: center;
    margin-bottom: 50px;
    color: #555;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.subsection-title {
    text-align: center;
    font-size: 1.6rem;
    margin-top: 60px;
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--color-primary);
}

.section-more {
    text-align: center;
    margin-top: 50px;
}

.section-more .btn {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 87, 146, 0.2);
}
.section-more .btn:hover {
    background-color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 87, 146, 0.3);
    color: #fff;
}

/* Scroll Animation Base */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px); /* 初期位置を少し下に */
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); /* イージング調整 */
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add delay for staggered effect in grids */
.achievement-grid .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.achievement-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.achievement-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.achievement-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }

.flow-steps .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.flow-steps .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.flow-steps .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.flow-steps .animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }

.news-list .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.news-list .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.news-list .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }

.staff-grid .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.staff-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }


/* About Section / Achievement */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.achievement-item {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden; /* 画像の角丸のため */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}
.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.achievement-item img {
    width: 100%;
    height: 180px; /* 高さを固定 */
    object-fit: cover;
    margin-bottom: 0;
}
.achievement-item p {
    padding: 15px;
    font-weight: 700;
    color: var(--color-secondary);
}

/* Flow Section */
.section-flow {
    background-color: var(--color-light-gray);
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 30px;
    position: relative; /* 矢印のため */
    margin-bottom: 60px;
}

/* 矢印を疑似要素で表現 */
.flow-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -18px; /* gap/2 + α */
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: var(--color-primary);
    opacity: 0.5;
}

.flow-step {
    background-color: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex; /* 中央揃えのため */
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 87, 146, 0.3);
}

.flow-step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-secondary);
    font-weight: 700;
}
.flow-step p {
    font-size: 0.95rem;
    color: #555;
}

/* Documents Section (Flow sectionに統合) */
.documents-info {
    margin-top: 80px;
}

.documents-list-container {
    max-width: 650px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px 40px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.documents-list-container ul {
    columns: 2; /* 2カラム表示 */
    column-gap: 40px;
    margin-bottom: 20px;
    padding-left: 20px;
}

.documents-list-container li {
    margin-bottom: 12px;
    font-size: 1rem;
    list-style-type: "✓ "; /* チェックマーク */
    padding-left: 5px;
}

.documents-note {
    text-align: center;
    color: var(--color-accent);
    font-weight: 700;
    margin-top: 20px;
    font-size: 0.9rem;
}


/* News Section */
.news-list {
    margin-top: 30px;
    border-top: 1px solid var(--color-border); /* 上に区切り線 */
}

.news-item {
    padding: 25px 0;
    border-bottom: 1px solid var(--color-border); /* 各アイテムの下に区切り線 */
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: background-color 0.3s ease;
}
.news-item:hover {
    background-color: rgba(0, 87, 146, 0.03); /* 薄い青背景 */
}


.news-meta {
    flex-shrink: 0; /* 縮まないように */
    width: 120px;
    font-size: 0.9rem;
    color: #666;
}

.news-meta time {
    display: block;
    margin-bottom: 5px;
}

.news-category {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 4px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.news-cat-info { background-color: var(--color-primary); }
.news-cat-event { background-color: #5cb85c; } /* 緑系 */


.news-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    flex-grow: 1; /* 残りのスペースを埋める */
}

.news-title a {
    color: var(--color-secondary);
}
.news-title a:hover {
    color: var(--color-accent);
}

.news-more {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 700;
    white-space: nowrap; /* 折り返さない */
    margin-left: auto; /* 右端に配置 */
}

/* Staff Section */
.section-staff {
    background-color: var(--color-light-gray);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.staff-member {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.staff-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}


.staff-member img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid #fff; /* 白い縁取り */
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.staff-member h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--color-secondary);
}

.staff-member p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
}

.staff-more {
     display: inline-block;
     font-size: 0.9rem;
     color: var(--color-primary);
     font-weight: 700;
     padding: 8px 15px;
     border: 1px solid var(--color-primary);
     border-radius: 20px; /* 丸みを帯びたボタン */
     transition: background-color 0.3s ease, color 0.3s ease;
}
.staff-more:hover {
    background-color: var(--color-primary);
    color: #fff;
}


/* Contact Section */
.section-contact {
   /* background: linear-gradient(to bottom, #ffffff, var(--color-light-gray)); */ /* グラデーション背景 */
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}


.form-group {
    margin-bottom: 20px; /* form-gridがあるので、ここのマージンは少し減らす */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--color-secondary);
    font-size: 0.9rem;
}

.form-group .required {
    color: var(--color-accent);
    font-size: 0.8em;
    margin-left: 5px;
    font-weight: normal;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px; /* パディング調整 */
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-sizing: border-box;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--color-light-gray); /* 入力欄の背景 */
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
    opacity: 1;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 87, 146, 0.1);
    background-color: #fff;
}


.form-group select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2212%22%20height%3D%228%22%20viewBox%3D%220%200%2012%208%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1.41%200.58L6%205.17L10.59%200.58L12%202L6%208L0%202L1.41%200.58Z%22%20fill%3D%22%236c757d%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.privacy-policy-consent {
    display: flex;
    align-items: center;
    margin-top: 30px;
    font-size: 0.9rem;
}

.privacy-policy-consent input[type="checkbox"] {
    width: 1.2em;
    height: 1.2em;
    margin-right: 10px;
    accent-color: var(--color-primary); /* チェックボックスの色 */
    cursor: pointer;
}

.privacy-policy-consent label {
    margin-bottom: 0;
    font-weight: normal;
    color: var(--color-text);
    cursor: pointer;
}
.privacy-policy-consent .required { font-size: 1em; }

.privacy-link {
    margin-left: 10px;
    font-size: 0.85rem;
    text-decoration: underline;
}

.form-submit {
    text-align: center;
    margin-top: 40px;
}
.form-submit .btn {
    padding: 15px 45px;
    font-size: 1.1rem;
}


/* Footer */
.footer {
    background-color: var(--color-secondary);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 60px;
}

.footer-container {
    display: grid; /* Gridレイアウトに変更 */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}

.footer-info .logo {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: block;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
}
.footer-info a {
    color: rgba(255, 255, 255, 0.8);
}
.footer-info a:hover {
    color: #fff;
}

.footer-sns {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}
.footer-sns a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.3rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-sns a:hover {
    color: #fff;
    transform: scale(1.1);
}

.footer-nav-section h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}
/* フッター小見出し下線 */
.footer-nav-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-nav ul li {
    margin-bottom: 12px;
}

.footer-nav ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-nav ul li a:hover {
    color: #fff;
    padding-left: 5px; /* ホバー時に少し右にずらす */
}

.footer-bottom {
    background-color: #13203a; /* さらに濃い青 */
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}
.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Styles */
@media (max-width: 992px) {
    :root { --header-height: 60px; }
    .container { padding: 0 20px; }
    .section { padding: 60px 0; }
    .section-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
    .section-description { font-size: 1rem; margin-bottom: 40px;}
    .hero { height: calc(80vh - var(--header-height)); }

    /* モバイルナビ表示 */
    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
        padding: 10px;
        margin-right: -10px; /* 位置調整 */
    }
    .mobile-nav-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--color-secondary);
        margin: 5px 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .mobile-nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-nav-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .global-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(5px);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        padding-top: 30px;
        overflow-y: auto;
    }
    .global-nav.active {
        transform: translateX(0);
    }
    .global-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding-bottom: 30px;
    }
    .global-nav li { width: 100%; text-align: center; }
    .global-nav a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
        font-weight: 700;
    }
    .global-nav a::after { display: none; } /* モバイルでは下線不要 */
    .nav-button {
        margin-top: 20px;
        padding: 12px 30px !important;
        width: calc(100% - 40px);
        max-width: 300px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .flow-step:not(:last-child)::after { display: none; } /* スマホでは矢印非表示 */
    .documents-list-container ul { columns: 1; }
    .news-item { flex-direction: column; gap: 10px; align-items: stretch; }
    .news-meta { width: auto; margin-bottom: 5px; }
    .news-more { margin-left: 0; margin-top: 5px; }
    .form-grid { grid-template-columns: 1fr; } /* フォームは1カラムに */
}

@media (max-width: 576px) {
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .achievement-grid { grid-template-columns: 1fr 1fr; gap: 15px; } /* スマホでは2カラム */
    .achievement-item img { height: 120px; }
    .contact-form { padding: 30px 20px; }
    .footer-container { grid-template-columns: 1fr; text-align: center;}
    .footer-nav-section h4::after { left: 50%; transform: translateX(-50%); }
    .footer-sns { justify-content: center; }
}

/* Form Validation Style */
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
   border-color: var(--color-accent) !important; /* Use !important carefully */
   box-shadow: 0 0 0 3px rgba(214, 40, 57, 0.1) !important;
}
.privacy-policy-consent input.invalid + label {
   color: var(--color-accent);
   font-weight: bold;
}

/* --- Existing styles --- */

/* Add helper for SP line break */
.sp-only { display: none; }
@media (max-width: 768px) {
    .sp-only { display: block; }
}


/* --- Section Achievements (New Styles) --- */
.section-achievements {
    background-color: #fff; /* 背景色調整 */
}

.achievement-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.achievement-card {
    background-color: var(--color-light-gray); /* カード背景 */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* 画像とテキストを分ける場合 */
    flex-direction: column;
}
.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.achievement-card img {
    width: 100%;
    height: 220px; /* 画像高さを設定 */
    object-fit: cover;
}

.achievement-card .card-content {
    padding: 25px;
    flex-grow: 1; /* 残りの高さを埋める */
    display: flex;
    flex-direction: column;
}

.achievement-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.achievement-card .car-details {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
}

.achievement-card .buy-price {
    margin-top: auto; /* 価格を下部に配置 */
    padding-top: 15px; /* 上の要素とのスペース */
    border-top: 1px dashed var(--color-border); /* 区切り線 */
    text-align: right; /* 右寄せ */
}

.achievement-card .buy-price span {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-bottom: 2px;
}

.achievement-card .buy-price strong {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent); /* アクセントカラー */
    line-height: 1;
}
.achievement-card .buy-price strong::after { /* 単位を追加 */
    content: '万円';
    font-size: 1rem;
    font-weight: normal;
    margin-left: 5px;
    color: var(--color-text);
}

.achievement-card .customer-comment {
    font-size: 0.9rem;
    color: var(--color-primary);
    margin-top: 15px;
    padding-left: 1.5em; /* アイコン用スペース */
    position: relative;
    font-style: italic;
}
.achievement-card .customer-comment::before { /* 引用符アイコン */
    content: '\f10d'; /* Font Awesome quote-left */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1em;
    color: var(--color-primary);
    opacity: 0.7;
}


/* --- Staff Section (Modified Styles) --- */
.section-staff {
    /* background-color: var(--color-light-gray); */ /* 必要に応じて調整 */
}

.staff-member {
    /* padding: 30px; */ /* 既存スタイル */
    /* ... other styles ... */
}

.staff-member .staff-title { /* 役職/経歴用クラス */
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px; /* コメントとの間隔 */
}

/* staff-more のスタイルは削除またはコメントアウト */
/*
.staff-more { ... }
.staff-more:hover { ... }
*/

.staff-comment {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-secondary);
    margin-top: 20px;
    padding: 15px 20px;
    background-color: #fff; /* コメント背景 */
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-primary); /* 左のアクセントライン */
    font-style: normal; /* blockquoteのデフォルトitalicを解除 */
    position: relative;
}

.staff-comment p { /* blockquote内のpタグ */
    margin: 0;
}

/* --- News Section (Link colors) --- */
.news-title a {
    /* color: var(--color-secondary); */ /* 既存 */
    /* ... */
}
.news-more {
    /* color: var(--color-primary); */ /* 既存 */
     /* ... */
}

/* --- Contact Form (Year input) --- */
/* スタイルは既存のinput[type="text"]が適用されるため、特別な追加は不要 */
/* 必要であれば個別にスタイル調整 */
/* #car-year { ... } */


/* --- News List/Detail Page Styles (Basic placeholders) --- */
.page-header { /* For news.html, news-detail.html */
    padding: 100px 0 40px; /* ヘッダー分考慮 */
    background-color: var(--color-light-gray);
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 60px; /* コンテンツとのスペース */
}
.page-header h1 {
    font-size: 2.5rem;
    color: var(--color-secondary);
    font-weight: 700;
}

.news-list-page .news-item { /* news.html specific list item style */
    /* Adjust styling for the list page if needed */
}

.pagination { /* news.html */
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-primary);
    background-color: #fff;
}
.pagination a:hover { background-color: var(--color-light-gray); }
.pagination .current {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    font-weight: bold;
}
.pagination .dots { border: none; background: none; }


.news-detail-content { /* news-detail.html */
    max-width: 800px;
    margin: 0 auto 60px;
}
.news-detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}
.news-detail-header .news-meta {
    /* Reuse styles from main page or customize */
    margin-bottom: 10px;
}
.news-detail-header h1 { /* Article title */
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1.4;
}
.news-detail-body {
    line-height: 1.8;
    font-size: 1.05rem;
}
.news-detail-body h2 { font-size: 1.8rem; margin: 40px 0 20px; font-weight: 700; color: var(--color-secondary);}
.news-detail-body h3 { font-size: 1.5rem; margin: 30px 0 15px; font-weight: 700; color: var(--color-secondary);}
.news-detail-body p { margin-bottom: 1.5em; }
.news-detail-body img { margin: 30px auto; border-radius: var(--border-radius); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.news-detail-body ul, .news-detail-body ol { margin: 0 0 1.5em 1.5em; }
.news-detail-body li { margin-bottom: 0.5em; }

.back-to-list {
    display: block;
    text-align: center;
    margin-top: 40px;
}
.back-to-list a {
    /* Use .btn style or custom style */
}

/* WordPress Specific Styles */
.wp-post-image {
    margin-bottom: 20px;
}

/* Make sure WordPress admin bar doesn't overlap with fixed header */
.admin-bar .header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar .header {
        top: 46px;
    }
}

/* WordPress default classes */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
    border-radius: var(--border-radius);
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Screen reader text */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #eee;
	clip: auto !important;
	clip-path: none;
	color: #444;
	display: block;
	font-size: 1em;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Page not found (404) */
.error-404 {
    text-align: center;
    padding: 100px 0;
}

.error-404 h1 {
    font-size: 8rem;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.error-404 h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--color-secondary);
}

.error-404 p {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Comments styling */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--color-light-gray);
    border-radius: var(--border-radius);
}

.comment-meta {
    margin-bottom: 10px;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.comment-author .avatar {
    margin-right: 10px;
    border-radius: 50%;
}

.comment-metadata {
    font-size: 0.8rem;
    color: #666;
}

.comment-content {
    margin-top: 10px;
}

.comment-respond {
    margin-top: 40px;
}

.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--color-secondary);
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

/* End of CSS additions/modifications */