@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ------------------------------------------------------
 * フッターの設定
 * ------------------------------------------------------ */
#before_footer_widget {
  text-align: center;
}
.l-footer {
  border-top: 10px solid #006FB4;
}
.w-footer__box {
  max-width: 1000px;
  margin: auto;
}
.w-footer__box .c-listMenu a {
  border: 0;
  padding: 0.5em 1.5em;
}
.footer-logo {
  width: 220px;
  height: auto;
}

/* ------------------------------------------------------
 * ヘッダーの設定
 * ------------------------------------------------------ */

.l-header .l-container {
  max-width: 1280px;
  color: #000;
  align-items: center;
}
/* --- PCでもハンバーガーメニューを表示 --- */
@media (min-width: 960px) {
  .p-gnav { display: none; }
  .l-header__menuBtn {
    position: fixed;
    left: calc(50% + 530px);
    top: 1rem;
    z-index: 1000;
  }
}
.l-fixHeader {
  z-index: 99;
}

.l-header__menuBtn {
    display: block !important;
    color: #000;
}

/* --- PCでもグローバルメニュー表示 --- */

@media (min-width: 960px) {
    .is-hide-last--pc .p-postList__item:last-child, .p-spMenu{
      display: block;
    }
}
/* --- 上から表示させる --- */
.-right .p-spMenu__inner {
    top: 0;
    -webkit-transform: translateY(-100vh);
    transform: translateY(-100vh);
}
[data-spmenu=opened] .p-spMenu__inner {
    -webkit-transform: translate(0);
    transform: translateY(0);
}
.p-spMenu__inner {
    height: auto;
    width: 100vw;
    padding-top: 0;
}
.p-spMenu__body {
  padding: 2vw 4vw;
  background: #CA062A;
  color: #fff;
}

.p-spMenu__closeBtn {
  display: none;
}

.c-widget__title.-spmenu {
  display: none;
}

.p-spMenu__nav {
  max-width: 980px;
  margin: 1rem auto 0;
}

.c-spnav {
  text-align: center;
}

.c-spnav a {
  padding: 0.75em 1.5em !important;
  border: 0;
}

@media (max-width: 767px) {
  .c-spnav {
    text-align: left;
  }
}

.c-submenuToggleBtn {
  color: #fff;
}

.c-submenuToggleBtn:before {
  font-size: 1.2rem;
}
.p-drawer__close {
  background: none;
  border: 0;
  color: #fff;
}
.spMenuIcon {
  font-size: 1.7rem;
  margin-right: 1rem;
}
@media (max-width: 767px) {
  .c-submenuToggleBtn:before {
    font-size: 1rem;
  }
}

/* ------------------------------------------------------
 * 固定ページ共通設定
 * ------------------------------------------------------ */

.l-topTitleArea:before {
  content: "";
  display: block;
  position: absolute;
  width: 50%;
  height: 100%;
  background-color: rgba(255,255,255,0.8);
  z-index: 1;
}
.c-pageTitle {
  color: #000;
  font-size: 3rem;
  max-width: 48%;
}
@media (max-width: 767px) {
  .c-pageTitle {
    font-size: 2rem;
  }
}

 @media (min-width: 600px) {
    .l-topTitleArea {
        min-height: 290px;
    }
}

.main-header {
  text-align: center;
}
.main-header .wp-block-heading {
  display: inline-block;
  font-size: 2.2rem;
  
}
.main-header .wp-block-heading span {
  position: relative;
  display: block;
  margin-top: 4px;
  padding-bottom: 1px;
  font-size: 1rem;
  padding: 0.3rem 0;
}
.main-header .wp-block-heading span:before {
  content: "";
  height: 4px;
  width: 100%;
  background-color: #ca062a;
  position: absolute;
  display: block;
  top: 0;
}
.main-header .wp-block-heading span:after {
  content: "";
  height: 4px;
  width: 100%;
  background-color: #006fb4;
  position: absolute;
  display: block;
  bottom: 0;
}


/* ------------------------------------------------------
 * WORKS
 * ------------------------------------------------------ */

/* .page-slug-works .wp-block-list,.page-slug-coordinator .wp-block-list {
  max-width: 980px;
  margin: 0 auto;
}
.page-slug-works .wp-block-list li a,.page-slug-coordinator .wp-block-list li a{
  padding: 0.5em 0;
  display: inline-block;
  color: #000;
  border-bottom: 4px solid #fff;
} */
.works-history {
  margin: 0 auto;
  max-width: 450px;
}
.works-history .has-fixed-layout td {
  border: 0;
}
.works-history .has-fixed-layout tr > td:first-child {
  width: 30%;
}

.works-gallery {
  gap: 0 !important;
}
.works-gallery .wp-block-image  {
  max-height: 500px;
}
.works-gallery img {
  width: auto;
  height: auto;
}

.works-activity {
  margin: 0 auto;
  max-width: 750px;
}

/* ------------------------------------------------------
 * メンバー
 * ------------------------------------------------------ */

.page-slug-member .c-pageTitle {
  display: none;
}
.page-slug-member .l-topTitleArea:before {
  display: none;
}
.page-slug-member .title {
  text-align: center;
  padding-bottom: 2em;
}
.page-slug-member .member-tit {
    display: inline-block;
    color: #000;
    background: none;
    padding: 0;
    margin: 3rem auto 2rem;
    font-size: 2.2rem;
}

.page-slug-member .member-tit .subtitle {
  position: relative;
  display: block;
  margin-top: 4px;
  padding-bottom: 1px;
  font-size: 1rem;
}
.page-slug-member .member-tit .subtitle:before {
  content: "";
  height: 4px;
  width: 100%;
  background-color: #ca062a;
  position: absolute;
  display: block;
  top: 0;
}
.page-slug-member .member-tit .subtitle:after {
  content: "";
  height: 4px;
  width: 100%;
  background-color: #006fb4;
  position: absolute;
  display: block;
  bottom: 0;
}
@media (max-width: 767px) {
  .page-slug-member .member-tit .subtitle {
    padding: 0.3rem 0;
  }
}

.page-slug-member .img-wrap {
  width: 340px;
  height: auto;
}
.page-slug-member #main_content .text-wrap {
  width: calc(100% - 400px);
  height: auto;
}
.page-slug-member #main_content .l-mainContent__inner h2.wp-block-heading.name {
  display: block;
  padding-top: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid #ca062a;
  font-size: 1.2rem;
  position: relative;
}
.page-slug-member #main_content .l-mainContent__inner h2.wp-block-heading.name:before {
  content: "";
  display: block;
  border: 0;
  position: absolute;
  left: 0;
  top: auto;
  bottom: -6px;
  width: 0;
  height: 0;
  border-left: 10px solid #ca062a;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.page-slug-member #main_content .l-mainContent__inner h2.wp-block-heading.name:after {
  content: "";
  width: 9px;
  height: 9px;
  display: block;
  border: 0;
  border-radius: 10px;
  position: absolute;
  right: 0;
  top: auto;
  bottom: -5px;
  background: #ca062a;
}

.page-slug-member #main_content .l-mainContent__inner h2.wp-block-heading.name .post {
  display: inline-block;
  margin-right: 1rem;
  font-weight: normal;
  font-size: 1rem;

}
.page-slug-member #main_content .text  {
  padding-top: 1rem;
  line-height: 1.5;
}
.page-slug-member .swell-block-columns {
  margin-bottom: 2.4em;
}
.read-more-button {
  display: none;
}
@media (max-width: 959px) {
  .page-slug-member .img-wrap {
    width: 280px;
  }
  .page-slug-member #main_content .text-wrap {
    width: calc(100% - 328px);
  }
  .page-slug-member #main_content .l-mainContent__inner h2.wp-block-heading.name {
    padding-top: 0;
  }
  .page-slug-member #main_content .text  {
    padding-top: 0;
  }
}

@media (max-width: 767px) {
  .page-slug-member .l-topTitleArea {
    margin-top: 0;
  }
  .page-slug-member .l-content {
    padding-top: .5em;
  }
  .page-slug-member .title {
    text-align: center;
    padding-bottom: 1em;
  }
  .page-slug-member .img-wrap {
    width: 100%;
    height: auto;
    margin-left: 0;
  }
  .page-slug-member .swell-block-columns__inner {
    margin: auto;
  }
  .page-slug-member #main_content .text-wrap {
    width: 90%;
    margin: auto;
    padding-bottom: 1.5em;
  }
  .page-slug-member #main_content .l-mainContent__inner h2.wp-block-heading.name {
    padding-top: 0;
    padding-bottom: 1rem;
  }
  .page-slug-member #main_content .text  {
    padding-top: 0.5rem;
    margin-bottom: 0.5em;
    transition: max-height 0.3s ease-out;

  }

  /* もっと見る機能の親コンテナ */
  .page-slug-member .wp-block-group-is-layout-constrained {
      position: relative;
  }

  /* 折りたたまれるテキストエリアの初期状態 */
  .page-slug-member .text.is-collapsed {
      overflow: hidden;
      position: relative;
      max-height: 3.5em;
  }
  
  /* テキストエリアが開いた状態 */
  .page-slug-member .text.is-open {
      max-height: 20em;
  }

  /* テキストを隠すための白い透過グラデーション */
  .page-slug-member .text.is-collapsed::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 100%;
      background: linear-gradient(to bottom, transparent 0%, white 100%);
  }
  
  /* 開いた時はグラデーションを消す */
  .page-slug-member .text.is-open::after {
      opacity: 0;
  }
  
  /* 「もっと見る」ボタンのスタイル */
  .page-slug-member .read-more-button {
      display: block; /* SPでは常に表示 */
      text-align: center;
      color: #006fb4; /* サイトのテーマカラーなどに合わせる */
      cursor: pointer;
      font-weight: bold;
  }
}

/* ------------------------------------------------------
 * 準備中ページ
 * ------------------------------------------------------ */
.preparation {
  padding: 15% 0;
  text-align: center;
  font-size: 2rem;
}





/* ==================================
   「ふわっと」表示させるアニメーション
   ================================== */

/* バウンドありバージョン */


/* 1. キーフレームの定義（変更なし） */
@keyframes bounceInUp {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  60% {
    opacity: 1;
    transform: translateY(-5px);
  }
  80% {
    transform: translateY(5px);
  }
  100% {
    opacity: 1; /* 念のため終了時にも指定 */
    transform: translateY(0);
  }
}

/* 2. アニメーション前の初期状態（変更なし） */
.fade-in-target_b {
  opacity: 0;
}

/* 3. アニメーションを適用するクラス（ここに追記） */
.fade-in-target_b.is-visible {
  /* ▼▼▼ アニメーション終了後の最終スタイルを明記する ▼▼▼ */
  opacity: 1;
  transform: translateY(0);

  /* ▼▼▼ アニメーションの指定 ▼▼▼ */
  animation: bounceInUp 1.2s ease-out;
  /* animation-fill-mode は不要になります */
}

/* ==================================
   バウンド無しの「ふわっと」表示アニメーション
   ================================== */

/* 1. キーフレームを「最初」と「最後」だけにする */
@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(30px); /* 少し下からスタート */
  }
  to {
    opacity: 1;
    transform: translateY(0);   /* 本来の位置へ */
  }
}

/* 2. is-visibleクラスで、新しいアニメーション名を指定する */
.fade-in-target.is-visible {
  /* 最終的なスタイル */
  opacity: 1;
  transform: translateY(0);

  /* アニメーションの指定（名前を floatIn に変更） */
  animation: floatIn 1s ease-out;
}

/* ※ .fade-in-target { opacity: 0; } の指定は変更ありません */


/* =================================
 固定ページのタイトル
================================= */
.l-topTitleArea__body.l-container {
  text-align: center;
  padding: 0;
  max-width: inherit;
}

/* =================================
WORKS（事業紹介）ページ
================================= */
.works-content {
  margin-top: 3.5rem;
  gap: 0 !important;
}
.works-content .wp-block-column.works-img {
  width: 50%;
  flex: inherit !important;
  max-height: 400px;
}
.works-content .wp-block-column.works-img img {
  object-fit: cover;
  height: 100%;
  max-height: 400px;
}

.works-content .wp-block-column.works-txt {
  flex: inherit !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 8px solid #CA062A;
  width: 50%;
}
.works-txt h2 {
  font-size:24px;
  color: #000;
  display: flex;
  align-items: center;
  padding: 0.5rem 0 0.5rem 3rem;
}
.works-content-cd .works-txt h2 {
  margin-bottom: 0.3rem;
}
.works-txt h2 a{
  display: flex;
  align-items: center;
  color: #000;
}
.works-txt .arrow {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}
.works-txt .arrow:after {
  content: "▶︎";
  color: #fff;
  border-radius: 20px;
  margin-left: 1.2rem;
  background: #CA062A;
  width: 22px;
  height: 22px;
  padding-left: 2px;
  line-height: 1.45rem;
  font-family: sans-serif;
  text-align: center;
  font-size: 13px;
  display: inline-block;

}
.works-txt h2 .number {
  position: relative;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: 45px;
  margin-top: 4px;
  color: #CA062A;
  padding-right:0.3em;
  margin-right: 0.3em;
}
.works-txt h2 .number:after {
  content: "";
  display: block;
  position: absolute;
  width: 2px;
  height: 0.8em;
  background: #CA062A;
  top: 50%;
  right: 0;
  transform: translateY(-54%);
}
.works-txt-list {
  margin-left: 7rem;
}
.works-txt-list a {
  position: relative;
  display: block;
  padding: 0.7rem 0;
  width: 9.5em;
  color: #000;
  font-size: 18px;
}
.works-txt-list .arrow:after {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}
@media (max-width: 959px) {
  .works-content {
    margin-top: 2rem;
  }
  .works-content .wp-block-column.works-img {
    max-height: 265px;
  }
  .works-content .wp-block-column.works-img img {
    max-height: 265px;
  }  
  .works-content .wp-block-column.works-txt {
    border: 5px solid #CA062A;
  }
  .works-txt h2 {
    font-size: 18px;
    padding-left: 1.5rem;
  }
  .works-txt .arrow:after {
    margin-left: 1rem;
    width: 20px;
    height: 20px;
    line-height: 1.2rem;
    font-size: 11px;
  }
  .works-txt h2 .number {
    font-size: 40px;
  }
  .works-txt-list {
    margin-left: 4rem;
    margin-top: -0.6rem;
  }
  .works-txt-list a {
    padding: 0.4rem 0;
    font-size: 16px;
  }
}
@media (max-width: 767px) {
  .works-content {
    flex-direction: column;
  }
  .works-content-cd {
    flex-direction: column-reverse;
  }

  .works-content .wp-block-column.works-img {
    width: 100%;
  }
  .works-content .wp-block-column.works-txt {
    width: 100%;
    height: 265px;
  }
  .works-content-cd .wp-block-column.works-txt {
  }
  .works-txt .arrow:after {
    margin-left: 1rem;
    width: 20px;
    height: 20px;
    padding-left: 1px;
    line-height: 1.5rem;
  }
}

/* =================================
投稿ページカスタマイズ
================================= */
.single-post .l-content.l-container .l-mainContent__inner {
  display: flex;
  flex-direction: column;
}
.single-post .l-content.l-container .l-mainContent__inner .c-postTitle {
  order: 1;
  background:#CA062A;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin-top: -87px !important;
  width: 95%;
  margin-left: 2.5%;
}
.single-post .l-content.l-container .l-mainContent__inner .p-articleMetas.-top {
  order: 2;
  justify-content: flex-end;
  font-size: 1rem;
  margin-right: 2.5%;
  padding-top: 0.5rem;
}
.single-post .l-content.l-container .l-mainContent__inner .p-articleThumb {
  order: 0;
}
.single-post .l-content.l-container #main_content .l-mainContent__inner .post_content {
  order: 4;
  font-size: 1.15rem;
  padding: 0 5rem;
  margin: 2.5em 0;
}
.single-post .l-content.l-container .l-mainContent__inner .p-articleFoot {
  order: 5;
}
.single-post .l-content.l-container .l-mainContent__inner .l-articleBottom {
  order: 6;
}
@media (max-width: 767px) {
  .single-post .l-content.l-container #main_content .l-mainContent__inner .post_content {
    padding: 0 1rem;
  }
}

/* =================================
COORDINATOR（コーディネーター事業）ページ
================================= */
.coordinator-content {
  margin-top: 3.5rem;
  gap: 0 !important;
}
.coordinator-content .wp-block-column.coordinator-img {
  width: 50%;
  flex: inherit !important;
  max-height: 400px;
}
.coordinator-content .wp-block-column.coordinator-img img {
  object-fit: cover;
  height: 100%;
  max-height: 400px;
}

.coordinator-content .wp-block-column.coordinator-txt {
  flex: inherit !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 8px solid #0f6eb8;
  width: 50%;
}
.coordinator-txt h2 {
  font-size:24px;
  color: #000;
  display: flex;
  align-items: center;
  padding: 0.5rem 0 0.5rem 3rem;
}
.coordinator-content-cd .coordinator-txt h2 {
  margin-bottom: 0.3rem;
}
.coordinator-txt h2 a{
  display: flex;
  align-items: center;
  color: #000;
}
.coordinator-txt .arrow {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}
.coordinator-txt .arrow:after {
  content: "▶︎";
  color: #fff;
  border-radius: 20px;
  margin-left: 1.2rem;
  background: #0f6eb8;
  width: 22px;
  height: 22px;
  padding-left: 2px;
  line-height: 1.45rem;
  font-family: sans-serif;
  text-align: center;
  font-size: 13px;
  display: inline-block;

}
.coordinator-txt h2 .number {
  position: relative;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: 45px;
  margin-top: 4px;
  color: #0f6eb8;
  padding-right:0.3em;
  margin-right: 0.3em;
}
.coordinator-txt h2 .number:after {
  content: "";
  display: block;
  position: absolute;
  width: 2px;
  height: 0.8em;
  background: #0f6eb8;
  top: 50%;
  right: 0;
  transform: translateY(-54%);
}
.coordinator-txt-list {
  margin-left: 7rem;
}
.coordinator-txt-list a {
  position: relative;
  display: block;
  padding: 0.7rem 0;
  width: 9.5em;
  color: #000;
  font-size: 18px;
}
.coordinator-txt-list .arrow:after {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}
@media (max-width: 959px) {
  .coordinator-content {
    margin-top: 2rem;
  }
  .coordinator-content .wp-block-column.coordinator-img {
    max-height: 265px;
  }
  .coordinator-content .wp-block-column.coordinator-img img {
    max-height: 265px;
  }  
  .coordinator-content .wp-block-column.coordinator-txt {
    border: 5px solid #0f6eb8;
  }
  .coordinator-txt h2 {
    font-size: 18px;
    padding-left: 1.5rem;
  }
  .coordinator-txt .arrow:after {
    margin-left: 1rem;
    width: 20px;
    height: 20px;
    line-height: 1.2rem;
    font-size: 11px;
  }
  .coordinator-txt h2 .number {
    font-size: 40px;
  }
  .coordinator-txt-list {
    margin-left: 4rem;
    margin-top: -0.6rem;
  }
  .coordinator-txt-list a {
    padding: 0.4rem 0;
    font-size: 16px;
  }
}
@media (max-width: 767px) {
  .coordinator-content {
    flex-direction: column;
  }
  .coordinator-content-cd {
    flex-direction: column-reverse;
  }

  .coordinator-content .wp-block-column.coordinator-img {
    width: 100%;
  }
  .coordinator-content .wp-block-column.coordinator-txt {
    width: 100%;
    height: 265px;
  }
  .coordinator-content-cd .wp-block-column.coordinator-txt {
  }
  .coordinator-txt .arrow:after {
    margin-left: 1rem;
    width: 20px;
    height: 20px;
    padding-left: 1px;
    line-height: 1.5rem;
  }
}

/* =================================
事業紹介カードのホバーエフェクト
正確なセレクタ: .card-link-wrapper
================================= */

/* card-link-wrapperクラスにホバーエフェクトを適用 */
.card-link-wrapper {
  position: relative;
  display: block;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
}

/* オーバーレイ用の疑似要素 */
.card-link-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

/* ホバー時にオーバーレイを表示して暗くする */
.card-link-wrapper:hover::before {
  background-color: rgba(0, 0, 0, 0.4); /* 40%の透明な黒 */
}

/* カード内のコンテンツを前面に配置 */
.card-link-wrapper .card-item {
  position: relative;
  z-index: 2;
}

/* ホバー時の軽い浮上効果 */
.card-link-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ホバー時のテキスト色変更（オプション） */
.card-link-wrapper:hover .card-item__title {
  color: #fff;
  transition: color 0.3s ease;
}

.card-link-wrapper:hover .card-item__text {
  color: #fff;
  transition: color 0.3s ease;
}

/* 番号の色は変更しない（元の色を維持） */
.card-link-wrapper:hover .card-item__number {
  /* ホバー時も元のスタイルを維持 */
}

/* より強い暗化効果のバリエーション */
.card-link-wrapper.dark-hover:hover::before {
  background-color: rgba(0, 0, 0, 0.6); /* 60%の透明な黒 */
}

/* グラデーション効果のバリエーション */
.card-link-wrapper.gradient-hover:hover::before {
  background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
  /* スマホでは軽いエフェクトに */
  .card-link-wrapper:hover::before {
    background-color: rgba(0, 0, 0, 0.2); /* スマホでは20%に軽減 */
  }
  
  /* スマホでは変形エフェクトを無効化 */
  .card-link-wrapper:hover {
    transform: none;
    box-shadow: none;
  }
}

/* デバッグ用（一時的に使用してテストする場合） */
/*
.card-link-wrapper {
  border: 2px solid red !important;
}
.card-link-wrapper:hover {
  border: 2px solid blue !important;
}
*/

/* ==================================
   サイト全体「ふわっと」表示させるアニメーション
   ================================== */

/* 1. 基本のふわっとアニメーション（既存を改良） */
@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2. より軽やかなバリエーション */
@keyframes softFloatIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3. 左からスライドイン */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 4. 右からスライドイン */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 5. スケールアップアニメーション */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==================================
   アニメーション対象の要素設定
   ================================== */

/* 汎用クラス - 手動で追加する場合 */
.fade-in-target {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fade-in-target.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: floatIn 0.8s ease-out;
}

/* より軽やかなバージョン */
.soft-fade-target {
  opacity: 0;
}

.soft-fade-target.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: softFloatIn 0.6s ease-out;
}

/* ==================================
   自動的にアニメーションを適用する要素
   ================================== */

/* メインコンテンツ */
.l-mainContent__inner > *:not(.p-articleThumb):not(.c-postTitle) {
  opacity: 0;
  animation: floatIn 0.8s ease-out forwards;
}

/* 段階的にアニメーション開始 */
.l-mainContent__inner > *:nth-child(1) { animation-delay: 0.1s; }
.l-mainContent__inner > *:nth-child(2) { animation-delay: 0.2s; }
.l-mainContent__inner > *:nth-child(3) { animation-delay: 0.3s; }
.l-mainContent__inner > *:nth-child(4) { animation-delay: 0.4s; }
.l-mainContent__inner > *:nth-child(5) { animation-delay: 0.5s; }

/* カード要素 */
.works-content,
.coordinator-content {
  opacity: 0;
  animation: floatIn 1s ease-out forwards;
  animation-delay: 0.2s;
}

/* メンバーセクション */
.page-slug-member .swell-block-columns {
  opacity: 0;
  animation: slideInLeft 0.8s ease-out forwards;
}

.page-slug-member .swell-block-columns:nth-child(even) {
  animation-name: slideInRight;
}

/* 段階的表示 */
.page-slug-member .swell-block-columns:nth-child(1) { animation-delay: 0.1s; }
.page-slug-member .swell-block-columns:nth-child(2) { animation-delay: 0.3s; }
.page-slug-member .swell-block-columns:nth-child(3) { animation-delay: 0.5s; }
.page-slug-member .swell-block-columns:nth-child(4) { animation-delay: 0.7s; }

/* フッター要素 */
.w-footer__box > * {
  opacity: 0;
  animation: softFloatIn 0.6s ease-out forwards;
  animation-delay: 0.1s;
}

/* タイトル要素 */
.main-header,
.c-pageTitle {
  opacity: 0;
  animation: scaleIn 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

/* ==================================
   スクロール連動アニメーション用CSS
   ================================== */

/* スクロール時に表示される要素 */
.scroll-fade-target {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.scroll-fade-target.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 左右からのスクロール連動 */
.scroll-slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

.scroll-slide-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}

.scroll-slide-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ==================================
   レスポンシブ対応
   ================================== */

@media (max-width: 767px) {
  /* スマホでは軽めのアニメーション */
  .l-mainContent__inner > * {
    animation-duration: 0.6s;
  }
  
  .works-content,
  .coordinator-content {
    animation-duration: 0.7s;
  }
  
  /* スマホでは横移動を控えめに */
  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-15px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(15px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

/* ==================================
   パフォーマンス最適化
   ================================== */

/* アニメーション中の要素はGPUを使用 */
.fade-in-target.is-visible,
.soft-fade-target.is-visible,
.scroll-fade-target.is-visible {
  will-change: transform, opacity;
}

/* アニメーション完了後はwill-changeを解除 */
.fade-in-target.animation-complete,
.soft-fade-target.animation-complete,
.scroll-fade-target.animation-complete {
  will-change: auto;
}