@charset "UTF-8";

/* =================================================================
# パンくずリスト
# ================================================================= */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
    margin: 0 auto;
    max-width:1200px;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb a {
    text-decoration: none;
    transition: color 0.3s;
    color: #007bff;
}

.breadcrumb li:after {
    content: '>';
    margin: 0 5px;
    color: #666;
}

.breadcrumb li:last-child:after {
    content: '';
}

.breadcrumb li:last-child {
    color: #333;
}

@media (max-width: 1024px) {
    .breadcrumb {
        overflow: auto;
        word-break: keep-all;
        white-space: nowrap;
    }

    .breadcrumb ol {
        flex-wrap: nowrap;
    }

    .breadcrumb::-webkit-scrollbar {
        display: none;
    }
}

/* =================================================================
# ページネーション
# ================================================================= */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0 0 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #3C8AFF;
    transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover,
.pagination span.current {
    background-color: #3C8AFF;
    color: #fff;
    border-color: #3C8AFF;
}

.pagination span.dots {
    border: none;
    background: none;
}

.pagination .prev,
.pagination .next {
    font-weight: bold;
}

/* =================================================================
# ヘッダー（フレックス横並び）
# ================================================================= */

header {
    width: 100%;
    padding: 0.25rem 5%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-nav {
    margin-right: 1rem;
}

@media (max-width: 1024px) {
    .header-nav{  
        margin-right: 0;
    }
}

/* ロゴ */
.logo a {
    text-decoration: none;
    color: #000;
    font-size: 1.75rem;
    font-weight: 700;
}

.logo img {
    max-width: 320px;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo img {
        max-width: 250px;
    }

    .logo a {
        font-size: 1.5rem;
    }
}

/* グローバルメニュー */

.header-nav ul {
    list-style: none;
}

.header-nav ul li {
    display: inline-block;
    margin-right: 1rem;
    font-weight: 500;
}

.header-nav li a{
    text-decoration: none;
    color:#000;
    font-weight: 500;
    font-size:14px;
}

.header-nav ul li:last-child a {
    background-color: var(--main-color);
    padding: .5rem 1.75rem;
    color: #fff;
    display: inline-block;
    font-size: 90%;
}

.header-nav a:hover {
    opacity: 0.7;
}


/* ハンバーガーメニュー */
.hamburger-menu {
    display: none;
    font-size: 1.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    z-index: 1001;
}

.hamburger-menu.active i {
    content: '\f00d';
}

@media (max-width: 1024px) {
    .hamburger-menu {
        display: block;
    }

    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        height: 60px;
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 80%;
        max-width: 400px;
        background-color: rgba(200, 200, 200, 0.95);
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden; /* 初期状態で見えないようにする */
        transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
        z-index: 1000;
        padding-top: 60px;
    }

    .header-nav.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible; /* 表示時に見えるようにする */
    }

    .header-nav ul {
        list-style: none;
        padding: .5rem;
    }

    .header-nav ul li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        border-bottom: 1px solid #999;
        margin-right: 0;
    }

    .header-nav ul li:last-child {
        border-bottom: none;
        text-align: center;
        margin-top: 2rem;
    }

    .header-nav ul li a {
        padding: 12px 20px;
        text-decoration: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-grow: 1;
    }

    .header-nav ul li a::after {
        font-family: 'Font Awesome 5 Free';
        content: '\f0a9';
        font-weight: 900;
        margin-left: auto;
        display: inline-block;
        color: var(--main-color);
    }

    .header-nav ul li:last-child a {
        width: 100%;
        padding: 1rem 0;
    }

    .header-nav ul li:last-child a::after {
        display: none;
    }
}

/* =================================================================
# キービジュアル
# ================================================================= */

.key-visual {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: auto;
    max-height: 500px;
}

.key-visual-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.key-visual-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.key-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomOut 7s ease-out forwards;
}

@keyframes zoomOut {
    0% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.catchphrase {
    position: absolute;
    font-size: 4rem;
    color: #fff;
    padding: 20px;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .catchphrase {
        width: 100%;
        font-size: 3.25rem;
    }
}

@media (max-width: 768px) {
    .catchphrase {
        width: 100%;
        font-size: 1.75rem;
        padding:12px;
    }
}

/* =================================================================
# タグ
# ================================================================= */

.tag-btn{
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    text-align: center;
    background:var(--sub-color);
    padding: 4px 12px;
}

.tag-btn-newslist{
    width:100px;
    margin-right:10px;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    text-align: center;
    background:var(--sub-color);
    padding: 4px 4px;
}

.tag-btn-link a{
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    text-align: center;
    padding: 4px 12px;
    text-decoration: none;
    margin-right:8px;
}

.tag-btn-link a:hover,.tag-btn-taglink a:hover{
    opacity: 0.7;
}

.tag-btn-catlink a{
    background:var(--sub-color);
}

.tag-btn-taglink{
    text-align: right;
}

.tag-btn-taglink a{
    background: var(--accent-color);
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    text-align: center;
    padding: 4px 12px;
    text-decoration: none;
}

/* =================================================================
# ボタン
# ================================================================= */

.button-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.black-button {
    background-color: var(--main-color);
    color: #fff;
    text-decoration: none;
    padding: 12px 60px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: bold;
    border:3px solid var(--main-color);
}

.black-button i {
    margin-left: 10px;
}

.black-button:hover {
    background-color: #fff;
    color:var(--main-color);
}

/* =================================================================
# コンタクトフォーム7
# ================================================================= */

/* フォーム全体のスタイル */
.wpcf7-form {
    max-width: 80%;
    margin: 0 auto;
    font-size: 14px;
}

/* フォームフィールドのスタイル */
.wpcf7-form p {
    margin-bottom: 20px;
    font-size: 14px;
}

/* ラベルのスタイル */
.wpcf7-form label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

/* 入力フィールドのスタイル */
.wpcf7-form .wpcf7-form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: #fafdff;
    margin-top: 5px;
}

/* テキストエリアのスタイル */
.wpcf7-form .wpcf7-textarea {
    resize: vertical;
}

/* 送信ボタンのスタイル */
.wpcf7-form .wpcf7-submit {
    background-color: #224C9A;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

/* ボタンのホバー時のスタイル */
.wpcf7-form .wpcf7-submit:hover {
    background-color: #1b3a7a;
}

/* エラーメッセージのスタイル */
.wpcf7-response-output {
    margin-top: 10px;
    font-size: 14px;
    color: #d9534f;
}

/* フォーカス時のスタイル */
.wpcf7-form .wpcf7-form-control:focus {
    border-color: #224C9A;
    outline: none;
    box-shadow: 0 0 5px rgba(34, 76, 154, 0.5);
}

/* チェックボックスの背景とボーダーを消す */
.wpcf7-form .wpcf7-checkbox {
    background-color: transparent;
    /* 背景を透明に */
    border: none;
    /* ボーダーを削除 */
    padding: 0;
    /* パディングをリセット */
}

.wpcf7-list-item {
    margin: 0 1rem 0 0 !important;
}

.wpcf7-form p.query-type {
    margin-bottom: 30px;
    /* 例: 下に10pxのスペースを追加 */
}

.wpcf7-list-item.first {
    margin-top: 8px !important;
}

/* モバイル用のスタイル */
@media (max-width: 1024px) {
    .wpcf7-form {
        max-width: 100%;
    }

    .wpcf7-checkbox .wpcf7-list-item {
        display: block;
        margin-bottom: 10px;
    }

    .wpcf7-list-item.first {
        margin-top: 12px !important;
    }
}