@charset "UTF-8";

/*--------------------------------------------------------
POSSWEBテーマの主要スタイル

【ブレイクポイント】
PC 1024以上
@media screen and (min-width: 1024px) {

タブレット 1023以下
@media screen and (max-width: 1023px) {

カラム変化ポイント 781以下
@media screen and (max-width: 781px) {

スマホ標準 639以下
@media screen and (max-width: 639px) {

スマホ最小基準（独自の認識） 480以下
@media screen and (max-width: 480px) {

--------------------------------------------------------*/

/* =======================================
　ヘッダー 
======================================= */

/*----- グローバルヘッダー -----*/
header #global-header {
  background: var(--color-accent01);
  padding: 16px;
  box-sizing: border-box;
}

@media screen and (max-width: 1023px) {
  header #global-header {
    padding: 0;
  }

  .stellarnav.mobile a.menu-toggle.full {
    background: transparent
  }
}

/*----- ナビゲーションエリア -----*/
#nav-area {
  gap: 16px;
}

/*----- トップサブナビゲーション -----*/
#top-sub-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 0 16px;
}

nav#top-nav ul li.sp-only,
nav#top-nav ul li.lang-item {
  display: none;
}

@media screen and (max-width: 1023px) {
  #top-sub-nav {
    display: none;
  }

  nav#top-nav ul li.sp-only,
  nav#top-nav ul li.lang-item {
    display: block;
  }

  nav#top-nav ul li.lang-item a {
    background: var(--color-primary);
    color: var(--color-wh);
  }
}


/*----- 言語切替スイッチ -----*/
.lang-sw ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.lang-sw ul li {
  line-height: 1;
}

.lang-sw ul li a {
  font-size: 12px;
  line-height: 1;
  color: var(--color-bk);
  text-decoration: none;
}

.lang-sw ul li:first-child a {
  border-right: 1px solid var(--color-bk);
  padding-right: 8px;
}



/*----- ボタンエリア -----*/
/* メンバー限定ボタン */
#top-sub-nav a.smb-btn {
  padding: 6px 16px 8px;
  font-size: 12px;
}


/*----- グローバルナビゲーション -----*/
nav#top-nav ul li a {
  font-size: 16px;
  letter-spacing: 0;
}


/* =======================================
　コンテンツ
======================================= */
.page-template-default #content-inner {
  padding: 40px !important;
}

.wp-singular #content-inner {
  padding-bottom: 0 !important;
}


/* =======================================
　フッター 
======================================= */
footer {
  position: relative;
  z-index: 0;
  margin-bottom: 0;
}

/*----- フッターボトム -----*/
footer #footer-bottom {
  padding: 0 16px;
}

.footer-bottom-widget p {
  padding: 10px 0;
}



/* =======================================
　コンテンツ
======================================= */


/*----- カスタムリスト（矢印リスト） -----*/
ul.wp-block-list.arrow-list {
  list-style: none;
  padding-left: 0;
}

ul.wp-block-list.arrow-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 16px;
}

ul.wp-block-list.arrow-list li::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 22px;
  background: url('../../images/common/list-mark.png') no-repeat center center/contain;
  position: absolute;
  left: 0;
  top: 6px;
}



/* =======================================
　カスタマイズブロック
======================================= */

/*----- min-widthボタン -----*/
.wp-block-snow-monkey-blocks-btn.smb-btn-wrapper.fix-size-btn a {
  min-width: 170px;
  line-height: 1.8;
  padding-bottom: 8px;
}

/*----- ボタン矢印装飾 -----*/
.wp-block-snow-monkey-blocks-btn.smb-btn-wrapper.is-style-text.btn-style-arrow {
  padding: 16px 0;
}

.btn-style-arrow .smb-btn__label {
  position: relative;
  padding-right: 40px;
}

.btn-style-arrow .smb-btn__label::after {
  content: '';
  display: inline-block;
  width: 36px;
  height: 36px;
  background: url('../../images/common/btn-arrow.png') no-repeat center center/contain;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}


/* =======================================
　見出し
======================================= */
/*----- h2 -----*/
/* デフォルト */
h2.wp-block-heading {
  background: #e5f6fd;
  border-bottom: 2px solid var(--color-primary);
  padding: 8px 12px;
}

/* スタイルなし */
h2.wp-block-heading.no-style {
  background: none;
  border-bottom: none;
  padding: 0;
  margin-top: 0;
}


/*----- h3 -----*/
/* デフォルト */
h3.wp-block-heading {
  border-left: 2px solid var(--color-primary);
  padding: 6px 0 6px 16px;
}

h3.wp-block-heading.no-style {
  border-left: none;
  padding: 6px 0;
}


/* グレーリスト版 */
h3.wp-block-heading.gray {
  border-left: 2px solid var(--color-gray03);
}


/* スタイルなし */
h2.wp-block-heading.no-style {
  background: none;
  border-bottom: none;
  padding: 0;
}





/* =======================================
　コアブロック調整
======================================= */
/*----- アコーディオンブロック -----*/
/* タイトルのホバー時：アンダーライン・見た目の変化を無効化（反応なし） */
.wp-block-accordion .wp-block-accordion-heading__toggle:hover,
.wp-block-accordion .wp-block-accordion-heading__toggle:focus,
.wp-block-accordion .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title,
.wp-block-accordion .wp-block-accordion-heading__toggle:focus .wp-block-accordion-heading__toggle-title {
  text-decoration: none;
  color: inherit;
  background-color: transparent;
  border-bottom-color: transparent;
}

.wp-block-accordion-item.is-layout-flow.wp-block-accordion-item-is-layout-flow {
  margin-bottom: 16px;
}

/* 質問タイトル */
.wp-block-accordion .wp-block-accordion-heading__toggle-title::before {
  content: "Q:";
  margin-right: 8px;
}

/* 展開する回答エリア */
.wp-block-accordion .wp-block-accordion-panel {
  padding: 40px 24px 40px 40px;
}

.wp-block-accordion .wp-block-accordion-panel::before {
  content: "A:";
  position: absolute;
  margin-left: -32px;
  font-size: 18px;
  margin-top: -2px;
  font-weight: 600;
  color: var(--color-primary);
}


/* =======================================
　固定ページ見出し
======================================= */
/*----- h1調整 -----*/
body.wp-singular.page .page-default-title {
  margin-bottom: 80px;
  margin-top: 80px;
}

/* h1.page-default-title {
  margin-top: 40px;
  margin-bottom: 32px;
} */





/* =======================================
　固定アイキャッチ背景テンプレート
  PC・iPhone 両方で固定表示、透過 0.2
  【1】cover … 背景面積を埋める
  【2】contain … 領域内に収める
======================================= */

/* 共通：固定レイヤー */
.page-template-page-fixed-eyecatch-php .fixed-eyecatch-bg,
.page-template-page-fixed-eyecatch-contain-php .fixed-eyecatch-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  /* モバイルのアドレスバー考慮 */
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* 共通：背景画像レイヤー */
.page-template-page-fixed-eyecatch-php .fixed-eyecatch-bg__image,
.page-template-page-fixed-eyecatch-contain-php .fixed-eyecatch-bg__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  opacity: 0.2;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* 【1】cover：背景面積を埋める（中央配置） */
.page-template-page-fixed-eyecatch-php .fixed-eyecatch-bg__image {
  background-position: center;
  background-size: cover;
}

/* 【2】contain：領域内に収める（中央配置） */
.page-template-page-fixed-eyecatch-contain-php .fixed-eyecatch-bg__image {
  background-position: center;
  background-size: contain;
}

/* コンテンツを手前に表示 */
.page-template-page-fixed-eyecatch-php #content.fixed-eyecatch-content,
.page-template-page-fixed-eyecatch-contain-php #content.fixed-eyecatch-content {
  position: relative;
  z-index: 1;
  background: transparent;
}


/* =======================================
　採択された研修課題アーカイブ
======================================= */
/*----- 研修課題アーカイブ一覧 -----*/
body.archive.post-type-archive.post-type-archive-research #content-inner {
  max-width: 1200px;
}

.research_archive_list .research-archive-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid var(--color-gray02) !important;
  padding: 16px 8px;
}

h2.research-archive-item__title {
  padding: 0 !important;
  margin: 3px 0 0 !important;
  font-size: 16px;
  letter-spacing: 1px !important;
  font-weight: 400;
}

a h2.research-archive-item__title {
  text-decoration: underline;
  color: var(--color-primary);
}


/*----- 研修課題詳細ページ（個別記事） -----*/
body.wp-singular.research-template-default.single.single-research #content-inner {
  max-width: 1200px;
  ;
}

body.wp-singular.research-template-default.single.single-research .article_body {
  margin-top: 48px;
}


/* =======================================
　固定お問い合わせ CTA（子テーマ：parts.css を上書き）
======================================= */

#fixed-contact-btn a::before {
  display: none;
  content: none;
}

#fixed-contact-btn.visible {
  z-index: 999;
  animation-duration: 0.55s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: both;
}

@keyframes fixed-contact-cta-from-right {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fixed-contact-cta-from-bottom {
  from {
    opacity: 0;
    transform: translateY(100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#fixed-contact-btn .fixed-contact-btn__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  gap: 6px;
  padding: 14px 12px;
  width: 100%;
  text-align: center;
  text-decoration: none;
  font-size: var(--size-primary-font, 15px);
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
  background: var(--color-primary);
  transition: background 0.35s ease, opacity 0.35s ease;
}

#fixed-contact-btn .fixed-contact-btn__link:hover {
  opacity: 1;
  background: #0182b3;
}

#fixed-contact-btn .fixed-contact-btn__icon {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: auto;
}

#fixed-contact-btn .fixed-contact-btn__label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.12em;
}

/* 639px 以下：画面下・全幅・横書き */
@media (max-width: 639px) {
  #fixed-contact-btn.visible {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: env(safe-area-inset-bottom, 0);
    pointer-events: none;
    animation-name: fixed-contact-cta-from-bottom;
  }

  #fixed-contact-btn.visible .fixed-contact-btn__link {
    pointer-events: auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
  }

  #fixed-contact-btn.visible .fixed-contact-btn__label {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    letter-spacing: 0.06em;
  }
}

/* 640px 以上：右端・縦書き */
@media (min-width: 640px) {
  #fixed-contact-btn.visible {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    pointer-events: none;
    animation-name: fixed-contact-cta-from-right;
  }

  #fixed-contact-btn.visible .fixed-contact-btn__link {
    pointer-events: auto;
    width: auto;
    min-width: 52px;
    padding: 18px 12px;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 2px 12px rgba(0, 0, 0, 0.12);
  }
}

/* ポップアップ：ホバー時に指カーソル */
.popup {
  cursor: pointer;
}

/* ページ内アンカー（JS の --anchor-scroll-padding と連動） */
:root {
  --anchor-scroll-padding: 140px;
}

@media screen and (max-width: 1023px) {
  :root {
    --anchor-scroll-padding: 96px;
  }
}

/* ターゲット要素に余白（scroll-padding と併用すると二重になりやすいので margin のみ） */
#container [id]:not([id="container"]):not([id="container-inner"]) {
  scroll-margin-top: var(--anchor-scroll-padding);
}

html:has(body.admin-bar) #container [id]:not([id="container"]):not([id="container-inner"]) {
  scroll-margin-top: calc(var(--anchor-scroll-padding) + 32px);
}

@media screen and (max-width: 782px) {
  html:has(body.admin-bar) #container [id]:not([id="container"]):not([id="container-inner"]) {
    scroll-margin-top: calc(var(--anchor-scroll-padding) + 46px);
  }
}

/* モバイル: 親の overflow:hidden を緩め、フラグメントスクロールを阻害しにくくする */
@media screen and (max-width: 1023px) {
  #container {
    overflow-x: hidden;
    overflow-y: visible;
  }
}