@charset "UTF-8";


body {
  background: rgba(245, 245, 247, .6);
}

main.column_page #firstview_general,
main.event_page #firstview_general,
main.taxonomy_page #firstview_general {
  max-width: 1440px;
}


/*---------------------------------------------------------------*\
$casestudies
\*---------------------------------------------------------------*/

#casestudies {
  width: calc(100% - 112px);
  margin: 0 auto;
  gap: 80px;
}


@media screen and (max-width: 1080px) {

  #casestudies {
    width: calc(100% - 80px);
  }
}


@media screen and (max-width: 600px) {

  #casestudies {
    width: calc(100% - 56px);
    gap: 40px;
  }
}


/*---------------------------------------------------------------*\
column / event &taxonomy
\*---------------------------------------------------------------*/

#column,
#event,
#articles_section,
#list_archives {
  max-width: 1440px;
  width: calc(100% - 112px);
  margin: 0 auto;
}

#column>.content,
#event>.content,
#articles_section>.content,
#list_archives>.content {
  gap: 56px;
}

/* 左カラムに一覧 + ページャー（サイドメニュー列の下にページャーを出さない） */
main .content.flex.items_start>.wrap_articles {
  flex: 1;
  min-width: 0;
  gap: 48px;
}


@media screen and (max-width: 1080px) {

  #column,
  #event,
  #articles_section,
  #list_archives {
    width: calc(100% - 80px);
  }
}


@media screen and (max-width: 860px) {

  #column>.content,
  #event>.content,
  #articles_section>.content,
  #list_archives>.content {
    flex-direction: column;
  }

  /* 縦並びではイベントカードの幅を親の一覧枠から決める */
  /* utility_exception */
  #articles_section .wrap_articles:has(.event_card) {
    width: 100%;
  }
}


@media screen and (max-width: 600px) {

  #column,
  #event,
  #articles_section,
  #list_archives {
    width: calc(100% - 56px);
    gap: 32px;
  }

  /* 一覧ブロックの左右インセットより広げ、ページャーをビューポート全幅に */
  #column .pagination,
  #event .pagination,
  #articles_section .pagination,
  #list_archives .pagination,
  #news .pagination,
  #casestudies .pagination {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
  }
}


/*---------------------------------------------------------------*\
$sidemenu
\*---------------------------------------------------------------*/

#sidemenu {
  width: 360px;
  flex-shrink: 0;
  gap: 64px;
  position: relative;
}

/* form */
#sidemenu .form {
  height: auto;
  min-height: 0;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background-color: var(--primary-white);
  padding: 28px;
  border-radius: var(--radius-l);
  position: sticky;
  top: 100px;
  /* header 下 20px 程度 */
}

/* contact */
#sidemenu .contact {
  height: 200px;
  gap: 16px;
  background-image: url('../img/common/background_cta.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

#sidemenu .contact .subject {
  font-size: 17px;
  font-weight: 550;
}

#sidemenu .contact .button {
  height: 48px;
  font-size: 14px;
  width: 200px;
  margin: 0 auto;
}


/* tags */
#sidemenu .tags {
  width: 100%;
  position: relative;
  overflow: hidden;
  gap: 24px;
}

#sidemenu .tags .subject {
  font-size: 26px;
}

#sidemenu .tags .content {
  position: relative;
  width: 100%;
  z-index: 2;
  gap: 10px;
}

#sidemenu .tags .each {
  border-radius: 80px;
}

#sidemenu .tags .each>a {
  position: relative;
  padding: 12px;
  gap: 8px;
  width: fit-content;
  border: solid 1px rgba(0, 0, 0, .15);
  border-radius: var(--radius-s);
  font-size: 13px;
}


/* latest */
#sidemenu .latest {
  gap: 12px;
}

#sidemenu .latest .subject {
  font-size: 26px;
}

/* content */
#sidemenu .latest .content {
  width: 100%;
}

#sidemenu .latest .each {
  border-bottom: solid 1px var(--border-light);
}

#sidemenu .latest .click_wrap {
  width: 100%;
  gap: 20px;
  padding: 16px 0;
  cursor: pointer;
}

#sidemenu .thumbnail_small {
  width: 100px;
  aspect-ratio: 1/1;
  flex-shrink: 0;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

#sidemenu .latest .info {
  width: 100%;
  gap: 6px;
}

#sidemenu .latest .date_posted {
  font-size: 10px;
}

#sidemenu .latest .title {
  font-size: 13px;
}

#sidemenu .latest .category {
  font-size: 10px;
  padding: 6px;
  gap: 8px;
  width: fit-content;
  border: solid 1px rgba(0, 0, 0, .15);
  border-radius: var(--radius-xs);
}


@media screen and (max-width: 960px) {

  #sidemenu {
    width: 320px;
  }
}


@media screen and (max-width: 860px) {

  #sidemenu {
    width: 100%;
  }
}


@media screen and (max-width: 600px) {

  /* contact */
  #sidemenu .contact {
    height: 180px;
  }

  #sidemenu .contact .subject {
    font-size: 16px;
  }

  /* tags */
  #sidemenu .tags .subject {
    font-size: 22px;
  }

  /* latest */
  #sidemenu .latest .subject {
    font-size: 22px;
  }
}


/*---------------------------------------------------------------*\
$event_closed
\*---------------------------------------------------------------*/

/* 終了イベントの表示だけに使う色 */
#articles .event_card,
#sidemenu .form.is_closed {
  --color_event_overlay: rgb(38 37 51 / 68%);
  --color_event_gradient_end: #ffb681;
  --color_event_note: rgb(245 245 247 / 60%);
}

/* 一覧カード */
#articles .event_card {
  container-type: inline-size;
}

#articles .is_closed .thumbnail {
  position: relative;
}

#articles .is_closed .thumbnail > img {
  filter: blur(6px);
}

#articles .event_closed_label {
  position: absolute;
  inset: 0;
  gap: 12px;
  padding: 16px;
  background-color: var(--color_event_overlay);
  font-size: 17px;
}

#articles .event_closed_label .icon_calendar {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

#articles .event_actions {
  gap: 20px;
  padding: 0 20px 20px;
}

/* utility_exception */
#articles .event_actions .wrap_button {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#articles .event_actions .button {
  width: auto;
  min-width: 0;
  height: 52px;
  gap: 2px;
}

#articles .event_actions .button span {
  font-size: 14px;
}

#articles .event_actions .button_detail {
  box-shadow: inset 0 0 0 1px var(--border-light), var(--shadow);
}

#articles .event_actions .button_detail:hover {
  box-shadow: var(--button-glow);
}

#articles .event_actions .button_detail:only-child {
  grid-column: 1 / -1;
}

#articles .event_actions .button_archive,
#sidemenu .event_closed_overlay .button,
#sidemenu .event_closed_band a.inner_band {
  background: linear-gradient(to right, var(--primary-linear-start), var(--primary-linear-mid), var(--color_event_gradient_end));
}

#articles .event_actions .icon_play,
#sidemenu .event_closed_overlay .icon_play {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

#articles .event_actions .note {
  padding: 10px 4px;
  border-radius: var(--radius-xs);
  background-color: var(--color_event_note);
  font-size: 11px;
}

/* フォーム上の終了案内 */
/* utility_exception */
#sidemenu .form.is_closed {
  display: grid;
  padding: 0;
  overflow: hidden;
}

#sidemenu .form.is_closed .form_body {
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 0;
  padding: 28px;
  overflow: hidden;
}

#sidemenu .event_closed_overlay {
  grid-area: 1 / 1;
  position: relative;
  gap: 24px;
  padding: 28px;
  background-color: var(--color_event_overlay);
  backdrop-filter: blur(6px);
}

#sidemenu .event_closed_message {
  gap: 12px;
}

#sidemenu .event_closed_message .icon_calendar {
  width: 40px;
  height: 40px;
}

#sidemenu .event_closed_overlay .subject {
  font-size: 22px;
}

#sidemenu .event_closed_overlay .button {
  width: min(100%, 480px);
  min-height: 64px;
  padding: 12px 20px;
  gap: 4px;
  flex-shrink: 0;
}

#sidemenu .event_closed_overlay .button span {
  font-size: 17px;
}

#sidemenu .event_closed_overlay .note {
  font-size: 12px;
}

#sidemenu .event_closed_band {
  display: none;
}

/* 狭いカードでは、ボタンの文言に合わせて列幅を分ける */
@container (max-width: 380px) {
  #articles .event_closed_label {
    font-size: 14px;
    gap: 10px;
  }

  #articles .event_closed_label .icon_calendar {
    width: 32px;
    height: 32px;
  }

  #articles .event_actions {
    gap: 16px;
    padding: 0 16px 12px;
  }

  /* utility_exception */
  #articles .event_actions .wrap_button {
    grid-template-columns: 1fr 1.26fr;
    gap: 10px;
  }

  #articles .event_actions .button {
    height: 44px;
  }

  #articles .event_actions .button span {
    font-size: 12px;
  }

  #articles .event_actions .note {
    font-size: 9px;
  }
}

@container (max-width: 300px) {
  #articles .event_actions .button span {
    font-size: 10px;
  }

  #articles .event_actions .icon_play {
    width: 16px;
    height: 16px;
  }
}

@media screen and (max-width: 860px) {

  /* スマートフォンではフォームの代わりに視聴ボタンを画面下へ固定 */
  #sidemenu .form.is_closed {
    position: fixed;
    inset: auto 0 0;
    z-index: 900;
    max-height: none;
    padding: 10px 12px max(10px, env(safe-area-inset-bottom));
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--primary-white);
  }

  #sidemenu .form.is_closed .form_body,
  #sidemenu .event_closed_overlay {
    display: none;
  }

  /* utility_exception */
  #sidemenu .event_closed_band {
    display: block;
  }

  #sidemenu .event_closed_band .inner_band {
    width: 100%;
    min-height: 60px;
    padding: 8px 12px;
    gap: 8px;
  }

  #sidemenu .event_closed_band .icon_play {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    position: absolute;
    left: 12px;
    z-index: 1;
  }

  #sidemenu .event_closed_band .band_text {
    flex-grow: 1;
    gap: 2px;
    min-width: 0;
  }

  #sidemenu .event_closed_band .label {
    font-size: 17px;
  }

  #sidemenu .event_closed_band .note {
    padding: 1px 6px;
    border-radius: var(--radius-xs);
    background: var(--primary-white-transparent-30);
    font-size: 12px;
  }

  body:has(#sidemenu .form.is_closed) {
    padding: 0 0 calc(80px + env(safe-area-inset-bottom));
  }

  body:has(#sidemenu .form.is_closed) .fv_banner {
    display: none;
  }
}

@media screen and (max-width: 600px) {

  #sidemenu .event_closed_band .inner_band {
    min-height: 52px;
  }

  #sidemenu .event_closed_band .icon_play {
    width: 32px;
    height: 32px;
  }

  #sidemenu .event_closed_band .label {
    font-size: 14px;
  }

  #sidemenu .event_closed_band .note {
    font-size: 10px;
  }
}


/*---------------------------------------------------------------*\
$articles
\*---------------------------------------------------------------*/

#articles {
  gap: 64px;
}

#articles.frx2 {
  grid-template-columns: 1fr 1fr;
}

#articles.frx3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* content */
#articles {
  gap: 40px;
}

#articles .each_post {
  position: relative;
  overflow: hidden;
}

#articles .each_post a {
  flex: 1;
}

#articles .thumbnail {
  aspect-ratio: 2/1.25;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

#articles .info_post {
  gap: 12px;
  width: 100%;
  padding: 20px 20px 24px;
}

#articles .post_types {
  gap: 8px;
}

#articles .post_type {
  position: relative;
  padding: 12px;
  border-bottom: solid 1px var(--border-light);
  gap: 8px;
  width: fit-content;
  border: solid 1px var(--border-light);
  border-radius: var(--radius-s);
  font-size: 14px;
}

#articles .title_each_post {
  font-size: 19px;
  line-height: 1.5;
}

#articles .description {
  font-size: 15px;
  margin: 8px 0 0 0;
}

#articles .date_posted {
  font-size: 12px;
}


@media screen and (min-width: 1600px) {

  #articles .frx3 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}


@media screen and (max-width: 1280px) {

  /* posts */
  #articles .each_post {
    -webkit-transition: inherit;
    -moz-transition: inherit;
    -o-transition: inherit;
    transition: inherit;
  }
}


@media screen and (max-width: 1080px) {

  #articles.frx2 {
    grid-template-columns: 1fr;
  }

  #articles.frx3 {
    grid-template-columns: 1fr 1fr;
  }
}


@media screen and (max-width: 860px) {

  /* posts */
  #articles .info_post {
    width: 100%;
  }

  #articles .title_each_post {
    pointer-events: none;
  }
}


@media screen and (max-width: 780px) {

  #articles.frx2,
  #articles.frx3 {
    grid-template-columns: 1fr 1fr;
  }

  /* content */
  #articles {
    gap: 24px;
  }
}


@media screen and (max-width: 600px) {

  #articles {
    gap: 32px;
  }

  #articles.frx2,
  #articles.frx3 {
    grid-template-columns: 1fr;
  }

  /* posts */
  #articles {
    gap: 32px;
  }

  #articles.frx2 {
    grid-template-columns: 1fr;
  }

  #articles .info_post {
    padding: 16px 16px 20px;
  }

  #articles .title_each_post {
    font-size: 14px;
  }

  #articles .post_type {
    padding: 10px 8px;
    font-size: 11px;
  }

  #articles .date_posted {
    font-size: 10px;
  }

  #articles .description {
    font-size: 12px;
  }
}


/*---------------------------------------------------------------*\
$filter
\*---------------------------------------------------------------*/

.filter {
  padding: 24px;
  gap: 16px;
}

.filter form {
  gap: 16px;
}

.filter .border {
  width: 100%;
  height: 1px;
  background-color: var(--border-lighter);
}

.filter .input-wrapper .input {
  width: 100%;
  gap: 12px;
}

.filter .input-wrapper .title {
  width: 80px;
  flex-shrink: 0;
  font-size: 16px;
  padding: 0 0 0 12px;
}

.filter .input-wrapper label {
  display: flex;
  gap: 8px;
  align-items: center;
  border-radius: 80px;
  padding: 8px 16px 8px 8px;
  cursor: pointer;
  border: solid 2px var(--bg-off-white);
  background-color: var(--bg-off-white);
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

/* アイコン用の白背景丸 */
.filter .input-wrapper label::before,
.filter .input-wrapper label::after {
  content: "";
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  background-color: var(--primary-white);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px;
  transition: var(--transition-default);
}

/* デフォルトアイコン */
.filter .input-wrapper label::before {
  background-image: url('../img/common/icon_tag_black.svg');
  opacity: 1;
}

/* チェック時のアイコン） */
.filter .input-wrapper label::after {
  position: absolute;
  left: 8px;
  /* label の padding に合わせて調整 */
  top: 50%;
  transform: translateY(-50%);
  background-image: url('../img/common/icon_check_white.svg');
  background-color: #23e000;
  opacity: 0;
}

/* チェック時にフェード切り替え */
.filter .input-wrapper input[type="checkbox"]:checked+label::before {
  opacity: 0;
}

.filter .input-wrapper input[type="checkbox"]:checked+label::after {
  opacity: 1;
}

.filter .input-wrapper input[type="checkbox"]:checked+label {
  border: 2px solid #23e000;
  box-shadow: 0px 10px 32px rgba(0, 0, 0, 0.07);
}


.filter .input-wrapper input {
  display: none;
}

.filter button {
  margin: 0 auto;
  position: relative;
  width: 100%;
  background-color: var(--bg-off-white);
  height: 56px;
  font-size: 14px;
}

.filter button:hover {
  background-color: var(--primary-black);
  color: var(--primary-white);
}


@media screen and (max-width: 600px) {

  .filter {
    padding: 20px;
  }

  .filter .input-wrapper {
    flex-direction: column;
    gap: 12px;
  }

  .filter s.input-wrapper .input {
    gap: 10px;
  }

  .filter .input-wrapper .title {
    width: 100%;
    font-size: 13px;
    padding: 0;
  }

  .filter .input-wrapper label {
    padding: 4px 12px 4px 4px;
    font-size: 11px;
  }

  .filter .input-wrapper label::after {
    left: 4px;
  }

  .filter .input-wrapper label::before,
  .filter .input-wrapper label::after {
    width: 28px;
    height: 28px;
    background-size: 16px;
  }

  .filter button {
    height: 44px;
    font-size: 11px;
  }
}


/*---------------------------------------------------------------*\
$result heading
\*---------------------------------------------------------------*/

main.news_page .result_heading {
  padding: 0 0 16px 0;
}


/*---------------------------------------------------------------*\
$news
\*---------------------------------------------------------------*/

#news {
  width: calc(100% - 112px);
  margin: 0 auto;
  gap: 64px;
}

#news .content {
  gap: 64px;
}

#news .wrap {
  width: 100%;
}

/* sortmenu */
#news .sortmenu {
  width: 260px;
  flex-shrink: 0;
}

#news .sortmenu .subject {
  margin: 0 0 16px 0;
}

#news .sortmenu .each {
  margin: 0 0 40px 0;
}

#news .sortmenu .each:last-of-type {
  margin: 0;
}

#news .sortmenu .wrap_block {
  border-radius: var(--radius-l);
  overflow: hidden;
}

#news .sortmenu .select {
  height: 64px;
  font-size: 14px;
  cursor: pointer;
}

#news .sortmenu .menu {
  overflow: hidden;
  height: 0;
  transition: var(--transition-default);
}

#news .sortmenu .item {
  opacity: 0;
  font-size: 14px;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  padding: 20px;
  background: var(--primary-white);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#news .sortmenu .menu.open .item {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

#news .sortmenu .item a {
  font-size: 14px;
}

#news .sortmenu .count {
  font-size: 12px;
  border-radius: var(--radius-xs);
  width: 20px;
  aspect-ratio: 1/1;
}

/* posts */
#news .posts {
  width: 100%;
}

#news .each_post {
  position: relative;
}

#news .each_post:after {
  display: block;
  content: '';
  border-bottom: solid 1px var(--border-lighter);
  margin: 0 auto;
}

#news .each_post:hover {
  background-color: var(--primary-black);
}

#news .each_post:hover .each_post:after {
  border: none;
}

#news .inner {
  width: 100%;
  gap: 5%;
  padding: 32px;
}

#news .info_post {
  width: 100%;
  gap: 12px;
}

#news .category {
  font-size: 14px;
  padding: 7px 14px;
  width: fit-content;
  background-color: var(--primary-dark-gray);
  border-radius: var(--radius-xs);
}

#news .date_posted {
  font-size: 14px;
}

#news .title_each_post {
  font-size: 21px;
  line-height: 1.3;
}

#news .each_post:hover .title_each_post {
  color: var(--primary-white);
}

#news .thumbnail {
  width: 160px;
  aspect-ratio: 1/1;
  flex-shrink: 0;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}


@media screen and (min-width: 1440px) {

  /* posts */
  #news .each_post:nth-of-type(2n) {
    padding: 0 24px 0 0;
  }
}


@media screen and (min-width: 1280px) {

  /* posts */
  #news .posts {
    grid-template-columns: 1fr 1fr;
  }

  #news .thumbnail {
    width: 180px;
  }
}


@media screen and (max-width: 1080px) {

  #news {
    width: calc(100% - 80px);
  }
}


@media screen and (max-width: 960px) {

  /* sortmenu */
  #news .sortmenu {
    width: 200px;
  }

  /* posts */
  #news .each_post {
    pointer-events: initial;
  }

  #news .inner {
    width: 100%;
    gap: 5%;
  }

  #news .title_each_post {
    pointer-events: none;
  }
}


@media screen and (max-width: 780px) {

  #news .content {
    flex-direction: column;
  }

  /* sortmenu */
  #news .sortmenu {
    width: 100%;
    margin: 0 auto;
    background-color: var(--primary-white);
    border-radius: var(--radius-l);
    padding: 24px;
  }

  #news .sortmenu .subject {
    font-size: 16px;
  }

  #news .sortmenu .each {
    margin: 0 0 20px 0;
  }

  #news .sortmenu .select {
    height: 44px;
    background-color: var(--bg-off-white);
  }

  #news .sortmenu .item {
    background-color: var(--bg-off-white);
  }
}


@media screen and (max-width: 600px) {

  /* hover を無効化 */
  #news .each_post:hover {
    background-color: inherit;
  }

  #news .each_post:hover .title_each_post {
    color: inherit;
  }

  #news {
    width: calc(100% - 56px);
    gap: 32px;
  }

  #news .content {
    gap: 32px;
  }

  /* sortmenu */
  #news .sortmenu {
    padding: 20px;
  }

  #news .sortmenu .subject,
  #news .sortmenu .select {
    font-size: 13px;
  }

  #news .sortmenu .subject {
    margin: 0 0 12px 0;
  }

  #news .sortmenu .item {
    padding: 16px;
    font-size: 11px;
  }


  /* posts */
  #news .inner {
    padding: 24px 0;
  }

  #news .date_posted {
    font-size: 10px;
  }

  #news .title_each_post {
    font-size: 15px;
  }

  #news .category {
    font-size: 10px;
  }

  #news .thumbnail {
    width: 110px;
  }
}
