/* ------------------------------------------------
電話ボタン右寄せ
-------------------------------------------------- */
.TEL {
  margin-left: auto;
}

/* ------------------------------------------------
ドロワーボタン
-------------------------------------------------- */
.nav-drawer-toggle {
  text-align: right;
  position: relative;
  z-index: 1010;
  background-color: #fff;
  margin: 0 0 0 5px;
}

.nav-drawer-toggle .label {
  font-size: 9px;
  padding-top: 26px;
  padding-right: 7px;
  font-weight: 700;
  border: 1px solid #000;
  border-radius: 4px;
  display: block;
  width: 45px;
  height: 45px;
  cursor: pointer;
  position: relative;
}

/* ハンバーガーアイコン */
.nav-drawer-toggle .label::before {
  content: "\f0c9"; /* ハンバーガー */
  font-family: "Line Awesome Free", "Line Awesome Brands";
  font-weight: 900;
  color: #000;
  font-size: 30px;
  line-height: 45px;

  position: absolute;
  right: 0;
  top: -5px;
  width: 100%;
  text-align: center;
}

/* active → × に変更 */
.nav-drawer-toggle.active .label::before {
  content: "\f00d";
}

/* ------------------------------------------------
ドロワーメニュー
-------------------------------------------------- */
@media only screen and (max-width: 767px) {
  .nav-drawer {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding-top: 160px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    transition: all 0.3s ease;
    z-index: 1000;
  }

  /* 開いた状態 */
  .is-open--nav .nav-drawer {
    opacity: 1;
    visibility: visible;
  }

  /* JS と連動：背景スクロール禁止 */
  body.is-open--nav {
    overflow: hidden;
  }
}

@media only screen and (min-width: 768px) {
  .TEL {
    margin-left: auto;
  }

  .nav-drawer {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding-top: 85px;
    overflow-y: auto;
    background: #fff;
    transition: all 0.3s ease;
    z-index: 1000;
  }

  .is-open--nav .nav-drawer {
    opacity: 1;
    visibility: visible;
  }
}

/* ------------------------------------------------
アコーディオン
-------------------------------------------------- */
.accordion {
  display: block;
  width: 767px;
  max-width: 100%;
  margin: 0 auto;
}

.accordion .acc-link {
  display: block;
  padding: 14px 30px 14px 28px;
  border-bottom: 1px solid #ddd;
  color: #333;
  font-size: 15px;
  position: relative;
  text-decoration: none;
}

.accordion .acc-link.acc-link--home {
  padding-bottom: 2.5em;
}

.accordion .acc-link::after {
  content: "›";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #888;
}

.accordion .acc-link.acc-link--home::after {
  top: calc((100% - 2.5em - 14px) / 2 + 14px);
}

.accordion .acc-link:hover {
  background: #f5f5f5;
}

.accordion .acc-item {
  border-bottom: 1px solid #ddd;
}

.accordion .acc-item.acc-blue .acc-btn {
  background: rgba(0, 120, 255, 0.06);
}

.accordion .acc-item.acc-blue .acc-content {
  background: rgba(0, 120, 255, 0.1);
}

.accordion .acc-item.acc-red .acc-btn {
  background: rgba(255, 0, 0, 0.05);
}

.accordion .acc-item.acc-red .acc-content {
  background: rgba(255, 0, 0, 0.085);
}

.accordion .acc-link.acc-green {
  background: rgba(0, 160, 80, 0.06);
}

.accordion .acc-btn {
  width: 100%;
  text-align: left;
  padding: 14px 30px 14px 28px;
  background: #f7f7f7;
  border: none;
  font-size: 15px;
  cursor: pointer;
  position: relative;
}

.accordion .acc-btn::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #666;
  transition: 0.2s;
}

.accordion .acc-item.open .acc-btn::after {
  content: "−";
}

.accordion .acc-btn:hover {
  background: #eee;
}

.accordion .acc-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 14px;
  background: #fff;
  transition:
    max-height 0.35s ease,
    padding 0.35s ease;
}

.accordion .acc-content a {
  display: block;
  padding: 6px 0 6px 20px;
  color: #000;
  text-decoration: none;
  position: relative;
}

.accordion .acc-content a::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #000;
}

.accordion .acc-content a:hover {
  text-decoration: underline;
}

/* 開いた時 */
.accordion .acc-item.open .acc-content {
  max-height: 500px;
  padding: 10px 14px;
}
/* ------------------------------------------------
小画面時表示調整
-------------------------------------------------- */
@media only screen and (max-width: 500px) {
  header .header_inner h1 a {
    font-size: 4.5vw;
  }
  .header_inner .CONTACT.tel {
    right: 0;
  }
}

/* ------------------------------------------------
メインビジュアル
-------------------------------------------------- */
.mv img {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  height: auto;
  display: block;
}

/* ------------------------------------------------
ニュースティッカー
-------------------------------------------------- */
.news-ticker {
  display: flex;
  align-items: center;
}
.news-ticker__viewport {
  overflow: hidden;
  height: 100px; /* ← 1件分の高さに合わせる */
  flex: 1;
}
.news-ticker__header {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 25%;
  height: 100px;
  background-color: #3f3f3f;
}
.news-ticker__title {
  color: #fff;
}
#contents h2.news-ticker__title::after {
  display: none;
  margin: 0;
}
.news-ticker__list {
  margin: 0;
  padding: 0;
  list-style: none;
  background-color: rgba(0, 0, 0, 0.2);
}
.news-ticker__item {
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline: 5%;
  opacity: 0.4;
  transition: opacity 0.4s ease;
}
.news-ticker__item.is-active {
  opacity: 1;
}
.news-ticker__item:before {
  display: none;
}
.news-ticker__item a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.news-ticker__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.4;
}
.news-ticker__date {
  transform: translateY(0.075em);
}
.news-ticker__category {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  padding: 1px 10px;
}
.news-ticker__category--seminar {
  background: #95a857;
}
.news-ticker__category--info {
  background: #475c91;
}
.news-ticker__category--other {
  background: #3c8558;
}
.news-ticker__category--consult {
  background: #69add7;
}
.news-ticker__category--kankou {
  background: #e1768e;
}
.news-ticker__category--sangyo {
  background: #3db3c3;
}
.news-ticker__category--joho {
  background: #a3c760;
}
.news-ticker__category--kokusai {
  background: #c279a8;
}
.news-ticker__category--keizai {
  background: #f0b923;
}
.news-ticker__category--tokurei {
  background: #6067c7;
}
.news-ticker__item-title {
  margin-top: 5px;
  font-size: clamp(15px, 1.3vw, 17px);
  color: #0066cc;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media only screen and (max-width: 1100px) {
  .news-ticker {
    max-width: 100%;
    margin: 0px auto 100px;
  }
  #contents .news-ticker__title {
        margin: 0;
        font-size: min(1.3em, 5vw);
    }
}

/* ------------------------------------------------
動画で分かる税制活用
-------------------------------------------------- */
.video-list {
  margin-top: 80px;
}

.video-list__header {
  text-align: center;
  margin-bottom: 40px;
}

.video-list__main-title {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.4;
}

.video-list__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: min(2.5vw, 30px);
  list-style: none;
  padding: 0;
  margin: 0 auto 30px;
}

.video-list__item {
  padding-left: 0;
}

.video-list__item::before {
  display: none;
}

.video-list__link {
  display: block;
}

.video-list__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  transition: opacity 0.25s ease;
}

.video-list__link:hover .video-list__img {
  opacity: 0.8;
}

/* SP */
@media (width <= 767px) {
  .video-list {
    margin-top: 50px;
  }

  .video-list__header {
    margin-bottom: 24px;
  }

  .video-list__list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ------------------------------------------------
トピックス
-------------------------------------------------- */
.topics {
  padding: 80px 0;
}

.topics__title {
  text-align: center;
  font-size: clamp(22px, 2vw, 28px);
  margin-bottom: 50px;
}

.topics__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: min(4vw, 50px);
  list-style: none;
  padding: 0;
  margin: 0;
}

.topics__item {
  padding-left: 0;
}

.topics__item::before {
  display: none;
}

.topics__link {
  display: block;
  text-decoration: none;
  color: #3f3f3f;
  height: 100%;
}

.topics__img-box {
  aspect-ratio: 240/180;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.topics__item:nth-child(2) .topics__img-box {
  background-color: #dff1fb;
}

.topics__img {
  max-width: 100%;
  width: auto;
  height: auto;
  transition: opacity .25s ease;
}

.topics__body {
  max-width: 185px;
  margin-inline: auto;
  text-align: left;
}

.topics__item-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.topics__text {
  font-size: 14px;
  line-height: 1.6;
}

.topics__link {
  display: block;
  text-decoration: none;
  color: #3f3f3f;
  height: 100%;
  opacity: 1;
  transition: transform .25s ease, opacity .25s ease;
}

.topics__link:visited {
  color: transparent;
}

.topics__link:hover {
  transform: translateY(-4px);
  opacity: .85;
}

/* responsive */

@media (width <= 767px){

  .topics__list {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .topics__title {
    margin-bottom: 30px;
  }

}

/* ------------------------------------------------
資料
-------------------------------------------------- */
.docs__title {
  text-align: center;
  font-size: clamp(22px, 2vw, 28px);
  margin-bottom: 50px;
}