@charset "UTF-8";

/* =================================================================
# ヘッダー
# ================================================================= */

/* ヘッダー */
header {
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 6rem;
    background: #fff;
}

/* ヘッダー全体のスタイル */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    margin-left:2rem;
}

.header-right {
    display: flex;
    align-items: center;
    height: 100%;
}

/* =================================================================
# ロゴ
# ================================================================= */

.logo a {
    text-decoration: none;
    color: #222;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.logo img {
    max-width: 280px;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .logo img {
        max-width: 230px;
    }

    .logo a {
        font-size: 1.5rem;
    }
}

/* =================================================================
# ヘッダーナビゲーション
# ================================================================= */

.header-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
    line-height: 2;
}

.header-nav > div { 
    width: 100%;
}

.header-nav > div > ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.header-nav > div > ul > li {
    margin-right: 10px;
    font-size: 14px;
}

.header-nav > div > ul > li > a {
    color: #222;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-nav > div > ul > li > a:hover {
    opacity: 0.7;
}

.header-nav > div:nth-of-type(1) ul li {
    font-weight: 700;
}

.header-nav > div:nth-of-type(2) ul li {
    position: relative;
    padding-right: 10px;
    margin-right: 10px;
}

.header-nav > div:nth-of-type(2) ul li:last-child {
    padding-right: 0;
}

.header-nav > div:nth-of-type(2) ul li::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 50%;
    width: 1px;
    background-color: #ccc;
}

.header-nav > div:nth-of-type(2) ul li:last-child::after {
    display: none;
}

/* header-ctaのスタイル */
.header-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0 1rem;
    text-align: center;
    color: #fff;
}

.header-cta a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-decoration: none;
    color: inherit;
    font-weight:bold;
}

.header-cta-tel {
    font-size: 1.5rem;
}

.header-cta-hours {
    font-size: 0.75rem;
}

.header-cta-tel i {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

/* =================================================================
# ハンバーガーメニュー
# ================================================================= */

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1100; /* モバイルメニューより上に表示 */
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 80%;
    max-width: 350px;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 1000;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 4rem 1rem 2rem 1rem;
}

.mobile-nav-menu > div {
    width: 100%;
}

.mobile-nav-menu ul {
    list-style: none;
    padding: 0;
}

.mobile-nav-menu ul li {
    font-size: 16px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.mobile-nav-menu ul li a {
    display: block; /* リンクをブロック要素に */
    width: 100%; /* リンクをliの幅全体に広げる */
    color: #222;
    text-decoration: none;
    padding: .75rem 1.5rem .75rem 0;
    transition: color 0.3s ease;
}

.mobile-nav-menu ul li a:hover {
    color: #007bff;
}

.mobile-nav-menu ul li:after {
    content: "\f054";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.header-cta-m {
    text-align: center;
    margin: 0 1rem 1rem 1rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 700;
    padding: 12px;
    background-color: inherit; /* ボタンの背景色を親の背景色に継承 */
}

.header-cta-m.main-bc {
    background-color: var(--main-color); /* 電話ボタンの背景色 */
}

.header-cta-m.accent-bc {
    background-color: var(--accent-color); /* メールボタンの背景色 */
}

.header-cta-m a {
    display: block; /* a要素をブロック表示に変更 */
    color: #fff;
    text-decoration: none; /* リンクの下線を消す */
}

.header-cta-m i {
    margin-right: 6px; /* アイコンとテキストの間の余白 */
}

.mobile-cta-tel {
    font-size: 1.5rem;
}

.mobile-cta-tel i {
    font-size: 1.25rem;
}

.mobile-cta-hours {
    display: block;
    font-size: 12px;
}

/* ハンバーガーメニューのアニメーション */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}


/* スマホサイズで表示 */
@media (max-width: 768px) {
    .header-right {
        display: none;
    }
    .hamburger-menu {
        display: flex;
        margin-right: 1rem;
    }
}

/* =================================================================
# キービジュアル
# ================================================================= */

/* キービジュアルのスタイル */
.key-visual {
    position: relative;
    width: 100%; /* 画面横幅いっぱい */
    height: 600px; /* 高さを700pxに固定 */
    overflow: hidden; /* 画像のオーバーフローを隠す */
}

/* キービジュアル内の画像 */
.key-visual-img {
    width: 100%; /* 画像の横幅を画面幅いっぱいに */
    height: 100%; /* 画像の高さをキービジュアルの高さにフィット */
    object-fit: cover; /* 画像の縦横比を保ちながら、全体にフィットさせる */
    object-position: center; /* 画像の中央部分を表示 */
}

/* キャッチフレーズのスタイル */
.key-visual .catchphrase {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 中央に配置 */
    color: #fff;
    text-align: center;
    max-width: 1200px;
    width: 100%; /* 幅を100%にして中央揃えを正しく機能させる */
    box-sizing: border-box; /* パディングやボーダーを含めて幅を計算 */
    word-wrap: break-word; /* 長い単語の折り返しを許可 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* 文字に影をつけて見やすく */
}

.catchphrase-sub{
    display: block;
    font-size: 2.5rem;
}

.catchphrase-main{
    font-size: 4rem;
}

/* =================================================================
# 2列で表示するリスト
# ================================================================= */

.list01 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    list-style: none;
    margin-top:2rem;
}

.list01-item {
    position: relative;
    display: flex;
    width: 48%;
    margin-bottom: 2rem;
    background: #fff;
    border: 1px solid #f7f7f7;
    box-sizing: border-box;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    align-items: center;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.list01-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    padding: 1rem;
    box-sizing: border-box;
}

.list01-img {
    margin-right: 1rem;
    width: 75px;
    height: 75px;
    object-fit: cover;
}

.list01-text {
    display: flex;
    flex-direction: column;
}

.list01-title {
    margin: 0;
    font-size: 1.125rem;
}

.list01-description {
    margin: 4px 0 0 0;
    font-size: 14px;
    line-height: 1.3;
    color:#666;
}

/* マウスオーバー時に<li>全体の色を変更 */
.list01-item:hover {
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* =================================================================
# ボタン
# ================================================================= */

/* ボタン01　大きいボタン */
.btn01 {
    display: inline-block;
    background: var(--main-color);
    border: 2px solid var(--main-color);
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1rem 8rem;
    text-decoration: none;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 影を追加 */
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; /* スムーズな変化を追加 */
}

.btn01 i {
    position: absolute;
    right: 1rem; /* アイコンをボタンの右端に配置 */
    top: 50%;
    transform: translateY(-50%); /* 縦中央に配置 */
}

.btn01:hover {
    background: #fff;
    color: var(--main-color);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* マウスオーバー時の影を強調 */
    text-decoration: none;
}

/* =================================================================
# トップページの会社案内
# ================================================================= */

.guidance-links{
    margin-top:2rem;
}

.guidance-links ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
    width: 100%;
    gap: .5rem;
    margin: 0 auto;
}

.guidance-links li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    justify-content: space-between;
    min-height: 250px;
}

.guidance-links a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: 100%;
    width: 100%;
}

.img-wrapper {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guidance-links h3 {
    margin: 10px 0 4px 0;
    font-size: 1rem;
    text-align: left;
}

.guidance-links p {
    font-size: 0.85rem;
    color: #666;
    text-align: left;
    padding-right: 5%;
    margin-top: 0;
}

.guidance-links a img {
    transition: transform 0.5s ease;
    filter: brightness(0.9);
}

.guidance-links a:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

@media (max-width: 1024px) {
    .guidance-links ul{  
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =================================================================
# 2カラムレイアウト
# ================================================================= */

.post {
    display: flex;
    max-width: 1200px; /* コンテナの最大幅を指定 */
    margin: 0 auto; /* 中央寄せ */
    padding-bottom:3rem;
}

.main-content {
    flex: 1; /* メインコンテンツがサイドバーよりも広くなるように設定 */
    box-sizing: border-box; /* パディングを含めて幅を計算 */
    margin-right: 40px; 
    max-width: calc(100% - 340px);
    padding-bottom: 3rem;
    min-height: 500px;
}

.sidebar {
    width: 300px; /* サイドバーの固定幅を指定 */
    box-sizing: border-box; /* パディングを含めて幅を計算 */
}

/* =================================================================
# パンくずリスト
# ================================================================= */

.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 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;
    }
}

/* =================================================================
# サイドバー
# ================================================================= */

.sidebar h2,.sidebar h3{
    padding: .75rem ;
    text-align: center;
    font-size:14px;
    background: var(--base-color);
}

.sidebar ul{
    list-style: none; 
}

.sidebar ul li {
    border-bottom:1px solid #eee;
}

.sidebar ul li a{
    display: block;
    color: #222;
    text-decoration: none;
    position: relative;
    font-size:14px;
    padding:20px 28px 20px 4px
}

.sidebar ul li a:after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%); /* 縦方向の中央揃え */
    border: solid #ccc; /* 矢印の色を指定 */
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 5px;
    transform: translateY(-50%) rotate(-45deg); /* 右向きの矢印を作成 */
    margin-right:12px;
}

.sidebar ul li a:hover{
    color:var(--main-color);
}

.sidebar ul li a:hover:after {
    border-color: var(--main-color); /* マウスオーバー時の矢印の色を赤に変更 */
}

.sidebar .widget{
    margin-bottom:3rem;
}

/* =================================================================
# ページネーション
# ================================================================= */

.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;
}

/* =================================================================
# 関連記事
# ================================================================= */

.relation-title {
    font-size: 1.25rem;
    border-bottom: 3px solid #222;
    padding-bottom: 0.75rem;
    margin: 48px 0 28px 0;
}

.related-posts ul {
    list-style: none;
    margin-top: -16px;
}

.related-posts ul li {
    padding: 0;
}

.related-posts ul li a {
    display: block; /* <li>全体にリンクを適用 */
    padding: 1rem 0;
    text-decoration: none;
    color: #222;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 1px solid #eee;
}

.related-posts ul li a:hover {
    background-color: #f2f2f2; /* 薄いグレー */
    color: #333;
}

.related-posts time {
    margin-right: 0.5rem;
    padding-right: 0.5rem;
    border-right: 1px solid #eee;
    color: #666;
}

.related-posts p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

@media (max-width: 768px) {
    .related-posts time {
        display: block;
        border-right: none;
        margin-bottom:4px;
    }
}

/* =================================================================
# コンタクトフォーム7
# ================================================================= */

/* フォーム全体のスタイル */
.wpcf7-form {
    max-width: 90%;
    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;
    }
}