/* ==========================================================================
   IR sidebar: collapsible groups (v2 design)
   折りたたみグループ用スタイル。<details>/<summary>を利用しJS不要。
   ========================================================================== */

.sidebar__group {
  border-bottom: 1px solid rgba(218, 218, 218, .85);
}

.sidebar__group[open] {
  background-color: transparent;
}

.sidebar__group-toggle {
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.4;
  color: #333;
  display: block;
  position: relative;
  padding: 12px 36px 12px 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
}

@media screen and (min-width: 1200px), print {
  .sidebar__group-toggle {
    padding-block: 19.5px;
  }
}

.sidebar__group-toggle::-webkit-details-marker {
  display: none;
}

.sidebar__group-toggle::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background-color: #fff;
  transition: background-color .3s;
}

.sidebar__group-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 17px;
  transform: translateY(-50%) rotate(90deg);
  width: 11px;
  height: 6px;
  -webkit-mask: url(../images/common/icon-arrow-only.svg) no-repeat center center / contain;
          mask: url(../images/common/icon-arrow-only.svg) no-repeat center center / contain;
  background-color: currentColor;
  transition: transform .3s, background-color .3s;
}

.sidebar__group[open] > .sidebar__group-toggle::after {
  transform: translateY(-50%) rotate(-90deg);
}

.sidebar__sublist {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-bottom: 8px;
}

.sidebar__sub-item {
  position: relative;
}

.sidebar__sub-link {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  display: block;
  position: relative;
  padding: 10px 12px 10px 24px;
  text-decoration: none;
  transition: color .3s, background-color .3s;
}

.sidebar__sub-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  width: 6px;
  height: 1px;
  background-color: currentColor;
}

/* orange theme override */
.sidebar--orange .sidebar__group-toggle {
  color: #333;
}

.sidebar--orange .sidebar__group-toggle::before {
  border-color: #f08300;
}

.sidebar--orange .sidebar__group-toggle::after {
  background-color: #f08300;
}

.sidebar--orange .sidebar__sub-item.is-sidebar-current .sidebar__sub-link {
  color: #f08300;
  background-color: rgba(240, 131, 0, .08);
  font-weight: 700;
}

.sidebar--orange .sidebar__sub-item.is-sidebar-current .sidebar__sub-link::before {
  background-color: #f08300;
}

/* ==========================================================================
   IR: 検索ボックス
   ========================================================================== */

.m-search-box select {
  border: 1px solid rgba(218, 218, 218, .85);
}

/* ==========================================================================
   IR sidebar: CTAボタン（お問い合わせ）
   ========================================================================== */

.sidebar__cta .button-normal-small.cv {
  background-color: #f29206;
  box-shadow: none;
  -webkit-box-shadow: none;
}

/* ==========================================================================
   IR top page: ニュースリスト v2 デザイン
   ========================================================================== */

#xj-mainlist {
  background-color: #fff !important;
  padding: 0 24px !important;
}

#xj-mainlist .p-xjcontents-listItem {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(51, 51, 51, .12) !important;
}

#xj-mainlist .p-xjcontents-listItem:last-child {
  border-bottom: none !important;
}

#xj-mainlist .p-xjcontents-listItem-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-right: 24px;
}

#xj-mainlist .p-xjcontents-listItem-date {
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  letter-spacing: normal;
  width: auto;
  flex: none;
  padding: 0;
  text-align: left;
}

#xj-mainlist .p-xjcontents-listItem-tag {
  font-size: 13px !important;
  font-weight: 700;
  color: #f37f27 !important;
  background-color: #fff !important;
  border: 1px solid #f29206;
  border-radius: 3px;
  padding: 2px 8px;
  white-space: nowrap;
  width: 70px !important;
  text-align: center;
  display: inline-block;
  line-height: 1.5;
  letter-spacing: 0;
}

#xj-mainlist .p-xjcontents-listItem-body {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 48px;
}

#xj-mainlist .p-xjcontents-listItem-link {
  font-size: 16px;
  color: #333 !important;
  line-height: 1.5;
  text-decoration: none;
  display: block;
  word-break: break-word;
  transition: opacity .3s;
}

#xj-mainlist .p-xjcontents-listItem-link:hover {
  opacity: .7;
}

#xj-mainlist .p-xjcontents-listItem-arrow {
  margin-left: 16px;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #f29206;
  position: relative;
  display: block;
  transition: background-color .3s;
}

#xj-mainlist .p-xjcontents-listItem-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  -webkit-mask: url(../images/icon/icon_arrow_s.svg) no-repeat center / contain;
          mask: url(../images/icon/icon_arrow_s.svg) no-repeat center / contain;
  background-color: #f29206;
  transition: background-color .3s;
}

@media (any-hover: hover) {
  #xj-mainlist .p-xjcontents-listItem-arrow:hover {
    background-color: #f29206;
  }
  #xj-mainlist .p-xjcontents-listItem-arrow:hover::after {
    background-color: #fff;
  }
}

@media screen and (max-width: 767px) {
  .p-contents-adobe {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin: -25px 0;
  }
}

@media screen and (max-width: 767px) {
  #xj-mainlist .p-xjcontents-listItem {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  #xj-mainlist .p-xjcontents-listItem-meta {
    width: 100%;
    margin-right: 0;
  }

  #xj-mainlist .p-xjcontents-listItem-body {
    flex: 0 0 calc(100% - 44px);
    min-height: auto;
  }

  #xj-mainlist .p-xjcontents-listItem-arrow {
    margin-left: auto;
    align-self: flex-end;
  }
}

/* ==========================================================================
   IR top page: p-topArea inside col-9 sidebar layout
   ========================================================================== */

.p-topArea {
  flex-direction: column;
  gap: 30px;
  padding: 0;
}

.p-topArea-left {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 974 / 450;
  overflow: hidden;
}

.p-topArea-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.p-topArea-right {
  width: 100% !important;
  padding-left: 0 !important;
  padding-top: 0 !important;
}

/* ==========================================================================
   Hover states
   ========================================================================== */

@media (any-hover: hover) {
  .sidebar__group-toggle:hover {
    opacity: .7;
  }

  .sidebar__sub-link:hover {
    opacity: .7;
  }

  .sidebar--orange .sidebar__group-toggle:hover::before {
    background-color: #f08300;
  }

  .sidebar--orange .sidebar__group-toggle:hover::after {
    background-color: #fff;
  }
}
