@charset "utf-8";
body {
  background-color: #fff !important;
}

img {
  max-width: 100%;
	height: auto;
  vertical-align: top;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
	object-fit: cover;
}

.top {
  margin-top: 78px;
}

.top a {
  color: #333;
}

.inner {
  max-width: 1127px;
  margin: 0 auto;
}

.ttl-h2-line {
  position: relative;
  color: #1a5eac;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.ttl-h2-line::before {
  background-color: #1a5eac; /* 線の色 */
  border-radius: 5px; /* 線の両端を丸く */
  bottom: -4px; /* 線の位置 */
  content: "";
  height: 2px; /* 線の高さ */
  left: 0; /* 線の中央寄せ */
  position: absolute;
  /* transform: translateX(-50%);  */
  width: 100px; /* 線の長さ */
}

.ttl-h2 {
  max-width: 1127px;
  margin: 0 auto;
  padding: 0 16px;
  color: #fff;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.metadata {
  padding: 14px 12px;
}

.metadata .title {
  margin: 0;
  height: 4.2em;
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.metadata .time {
  margin: 6px 0;
  font-size: 14px;
  line-height: 1em;
  color: #33333361;
}

.cat-right {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  padding: 1px 8px;
  background-color: #001d38;
  font-size: 14px;
  color: #fff;
}

.cat-right:hover {
  text-decoration: underline;
}

.cat-left {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 1px 8px;
  background-color: #001d38;
  opacity: 0.9;
  font-size: 14px;
  color: #fff;
}

.cat-left:hover {
  text-decoration: underline;
}

.cat-right a,
.cat-left a {
  color: #fff;
}

@media (min-width: 1030px) {
  #content-in {
    display: block !important;
  }

  #main.main_hb {
    margin: 108px auto 80px !important;
  }

  #sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .top {
    margin-top: 60px;
  }

  #main {
    margin-top: 80px;
  }

  .ttl-h2-line::before {
    bottom: -1px;
  }

  .ttl-h2-line {
    margin: 0 0 16px;
    font-size: 20px;
  }

  .ttl-h2 {
    margin: 0 auto;
    padding: 4px 16px;
    font-size: 20px;
  }

  .cat-right,
  .cat-left {
    padding: 1px 8px;
    font-size: 13px;
  }

  .metadata {
    padding: 10px;
  }

  .metadata .title {
    font-size: 14px;
  }

  .metadata .time {
    margin: 3px 0 6px;
  }

  .wp-block-flexible-table-block-table {
    font-size: 14px;
  }
}

/* fv 
**********************************************************
******************************************************************/
.fv-img-sp {
  display: none;
}

@media (max-width: 768px) {
  .fv-img-pc {
    display: none;
  }

  .fv-img-sp {
    display: block;
  }
}

/* pickup
**********************************************************
******************************************************************/
.top .pickup {
  padding: 50px 16px 78px;
}

.pickup-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  column-gap: 14px;
  row-gap: 14px;
  padding: 0;
  letter-spacing: 0.05em;
}

.pickup-list .item {
  position: relative;
  list-style-type: none;
  background-color: #fff;
  box-shadow: 8px 8px 8px -6px rgba(0, 0, 0, 0.3);
}

.pickup-list .item .thumbnail {
  margin-bottom: 0;
}

.pickup-list .item .thumbnail img {
  height: auto;
}

@media (max-width: 768px) {
  .top .pickup {
    padding: 20px 16px;
  }

  .pickup-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
    row-gap: 12px;
    letter-spacing: 0.05em;
  }
}

/* ranking
**********************************************************
******************************************************************/
.ranking {
  margin: 60px auto 80px;
  padding: 0 16px;
}

.ranking-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 24px;
  row-gap: 26px;
  padding: 0;
  letter-spacing: 0.05em;
}

.ranking-list .item {
  margin: 0;
  box-shadow: 8px 8px 8px -6px rgba(0, 0, 0, 0.3);
}

.ranking-list .ttl {
  margin: 0;
  height: 2.6em;
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.ranking-list .ttl-area {
  margin: 0;
  padding: 10px 12px 16px;
  background-color: #fff;
}

.ranking-list article {
  position: relative;
}

.ranking-list .number {
  position: absolute;
  left: 0;
  top: 10px;
  margin: 0;
  padding: 1px 14px 1px 8px;
  border-radius: 0 20px 20px 0;
  box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.3);
}

.rank1 .number {
  background: linear-gradient(to left, #ffeb00, #fffcd5, #ffeb00);
}

.rank2 .number {
  background: linear-gradient(to left, #afafaf, #f7f7f7, #afafaf);
}

.rank3 .number {
  background: linear-gradient(to left, #ffc033, #ffecc1, #ffc033);
}

.rank1 .number a,
.rank2 .number a,
.rank3 .number a {
  text-decoration: none;
}

.rank4 .number,
.rank5 .number,
.rank6 .number {
  background: linear-gradient(to left, #000000, #6f6f6f, #000000);
}

.rank4 .number,
.rank5 .number,
.rank6 .number {
  color: #fff;
  text-decoration: none;
}

.ranking-list img {
  height: auto;
}
@media (max-width: 768px) {
  .ranking-list {
    grid-template-columns: 1fr;
    row-gap: 26px;
    letter-spacing: 0.05em;
  }

  .ranking {
    margin: 30px auto 46px;
  }

  .ranking-list .ttl {
    font-size: 14px;
  }
}

/* new-article
**********************************************************
******************************************************************/
.new-article {
  margin-bottom: 80px;
}

.ttl-h2-container {
  background: linear-gradient(to right, #1a54a5, #0599d9);
}

.new-article-inner {
  margin: 56px auto 60px;
  padding: 0 16px;
}

.new-article-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 14px;
  row-gap: 14px;
  padding: 0;
  letter-spacing: 0.05em;
}

.new-article .metadata {
  margin: 0;
}

.new-article-list .item {
  position: relative;
}

.new-article-list .item .item-inner {
  display: grid;
  grid-template-columns: 40% 60%;
  box-shadow: 8px 8px 8px -6px rgba(0, 0, 0, 0.3);
}

.new-article-list img {
  height: 100%;
}

.new-article .new-article-list .ttl {
  margin: 0;
  height: 4em;
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.new-article .time {
  margin-bottom: 0;
}

.btn {
  border: 2px solid #1a5eac;
  color: #1a5eac;
  border-radius: 20px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.btn:hover {
  opacity: 0.6;
}

.top .btn-rink {
  display: block;
  margin: 40px auto;
  padding: 3px auto;
  max-width: 800px;
  text-decoration: none;
}

@media (max-width: 768px) {
  .new-article {
    margin-bottom: 60px;
  }

  .new-article-list {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  .new-article-inner {
    margin: 32px auto 60px;
  }

  .new-article .new-article-list .ttl {
    font-size: 14px;
  }

  .btn {
    font-size: 18px;
  }
}

/* 記事一覧
**********************************************************
******************************************************************/
.main-h2.kiji-list-heading-mark2,
.main-h2.kiji-list-heading-mark1 {
  padding: 8px;
  font-weight: 600;
  color: #fff;
  background-color: #1a5eac;
  border-radius: 10px;
  border: none;
}

.def-mode article {
  box-shadow: 8px 8px 8px -6px rgba(0, 0, 0, 0.3);
}

.def-mode .main-kiji .linkarea {
  padding-bottom: 16px;
}

.def-mode .main-kiji .kiji-cat {
  padding: 1px 8px;
  border-radius: 0;
  left: 0;
  background-color: #001d38;
}

.def-mode .main-kiji .kiji-date {
  margin: 10px 0 4px;
  padding-left: 8px;
  text-align: left;
  line-height: 1em;
}

.def-mode .main-kiji .kiji-text {
  padding: 0 8px 4px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
}

/* 投稿
**********************************************************
******************************************************************/
.entry-header .entry-title {
  padding: 10px 0 6px;
  font-size: 1.48em;
  line-height: 1.4;
  font-weight: 600;
}

.entry-header .breadcrumb {
  padding: 0;
}

.entry-header .entry-header-item {
  padding: 4px 0;
}

.single .entry-content {
  padding: 16px 0;
}

/* 目次 */
/* .mkj.mkj-style2 {
  border: none;
  max-width: 100%;
} */

/* .mkj .mkj-title {
  border-top: 1px solid #001d38;
  border-bottom: 1px solid #001d38;
} */

.mkj .mkj-list-child-3 {
  padding-left: 10px;
  /* 	line-height: 1.4; */
}

.mkj .mkj-content:after {
  display: none;
}

.mkj .mkj-list-child-3 li {
   margin-bottom: 8px;
  font-weight: 500;
}

/* .mkj.mkj.mkj-style2 .mkj-list li ol a {
  font-weight: 400;
} */

@media (max-width: 768px) {
  .mkj .mkj-list-child-3 {
    padding-left: 8px;
  }
  .entry-header .entry-title {
    font-size: 1.14em;
  }

  .entry-content .entry-letterbody h3 {
    margin: 40px 0 10px;
    font-size: 1.14em;
    line-height: 1.4;
  }

  .entry-letterbody p {
    font-size: 14px;
  }

  .wp-block-table {
    font-size: 14px;
  }

  .mkj .mkj-title {
    font-size: 17px;
  }
  /*   .mkj.mkj.mkj-style2 .mkj-list-nonum {
    font-size: 15px;
  } */
}

/* お問い合わせフォーム
**********************************************************
******************************************************************/
.wpcf7 .form {
  display: block;
}

.wpcf7 .wpcf7-submit {
  background-color: #1a5eac;
}

.wpcf7 form.sent .wpcf7-response-output {
  border: none;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  border: none;
  color: #dc3232;
}

.popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        display: flex; /* flexは常時有効に */
        justify-content: center;
        align-items: center;
        z-index: 1000;

        /* 表示・非表示をopacityとvisibilityで管理 */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s ease, visibility 0s 0.5s;
    }

    /* 表示されたときのスタイル */
    .popup-overlay.is-visible {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.5s ease;
    }

    .popup-inner {
        position: relative;
        max-width: 500px;
        width: 90%;
        text-align: center;
        font-family: 'Helvetica Neue', Arial, sans-serif;

        /* アニメーションのための初期位置設定 */
        transform: translateY(20px);
        transition: transform 0.5s ease;
    }

    .popup-overlay.is-visible .popup-inner {
        transform: translateY(0); /* 表示時に元の位置へ */
    }


    /* 閉じるボタン */
    .popup-close {
        position: absolute;
        top: -50px;
        right: -10px;
        width: 30px;
        height: 30px;
        background-color: #333;
        color: #fff;
        border-radius: 50%;
        line-height: 30px;
        text-align: center;
        cursor: pointer;
        font-size: 18px;
    }

    /* h3, ul, li, aボタンなどのスタイルは前回同様のため省略 */
    .popup-inner h3{color:#2c3e50;margin-top:0;margin-bottom:20px;font-size:22px}.popup-inner ul{list-style:none;padding:0;margin:0 0 30px 0;text-align:left}.popup-inner li{background:url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="%23e74c3c"><path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"/></svg>') no-repeat left center;background-size:20px;padding-left:30px;color:#34495e;font-size:16px;line-height:1.6;margin-bottom:12px}.popup-button a{display:inline-block;background:linear-gradient(45deg, #f39c12, #e67e22);color:#fff;padding:12px 30px;text-decoration:none;border-radius:50px;font-weight:bold;font-size:18px;transition:transform .2s ease-in-out,box-shadow .2s;box-shadow:0 4px 6px rgba(0,0,0,.1)}.popup-button a:hover{transform:translateY(-2px);box-shadow:0 6px 12px rgba(0,0,0,.15)}

@media screen and (max-width: 768px) {
	.popup-inner {
		width: 90%;
	}
}

/* --- フローティングバナーのスタイル --- */

/* ▼▼▼ PC用のスタイル（デフォルト） ▼▼▼ */
.floating-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 280px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    transform: translateY(100%);
    opacity: 0; /* 初期状態は透明 */
    animation: slide-in-desktop 0.5s ease-out 0.5s forwards;
}

/* PC用アニメーション */
@keyframes slide-in-desktop {
    to {
        transform: translateY(0);
        opacity: 1; /* 不透明にする */
    }
}

/* 上部のタグ部分 */
.floating-banner .banner-tag {
    margin: 0;
    padding: 8px 12px;
    background-color: #ffc107;
    color: #212529;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}

/* ボタンを囲む内側エリア */
.floating-banner .banner-inner {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ボタン共通スタイル */
.floating-banner .banner-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* ボタン内のアイコン */
.floating-banner .banner-button .icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* ボタンホバー時 */
.floating-banner .banner-button:hover {
    transform: translateY(-2px);
}

/* メールボタンの配色 */
.floating-banner .banner-button.mail {
    background-color: #007bff;
}
.floating-banner .banner-button.mail:hover {
    background-color: #0069d9;
}

/* 電話ボタンの配色 */
.floating-banner .banner-button.tel {
    background-color: #28a745;
}
.floating-banner .banner-button.tel:hover {
    background-color: #218838;
}


/* ▼▼▼ スマートフォン用のスタイル (横幅768px以下の場合に適用) ▼▼▼ */
@media (max-width: 768px) {
    .floating-banner {
        width: 100%;
        bottom: 0;
        right: 0;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        animation-name: slide-in-mobile; /* アニメーションをスマホ用に変更 */
    }

    /* 【修正済み】スマホ用アニメーション */
    @keyframes slide-in-mobile {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
            opacity: 1; /* ★透明を解除する設定を追加 */
        }
    }

    .floating-banner .banner-inner {
        padding: 12px;
        flex-direction: row;
    }
	
	.floating-banner .banner-tag {
		border-radius: 0;
		background: #fff;
	}

    .floating-banner .banner-button {
        flex: 1;
        padding: 14px 10px;
        font-size: 14px;
    }

    .floating-banner .banner-button:hover {
        transform: none;
    }
    
    .floating-banner .banner-button:active {
        filter: brightness(0.9);
    }

    .floating-banner .banner-button .icon {
        margin-right: 8px;
    }
}