@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
*/
/*Footer*/
.icon-color-w {
color :#fff;
}
/* ===================================================
 * YouTube一覧ページ用 カスタムスタイル
 * =================================================== */

/* 1. リスト全体のレイアウト（CSS Grid） */
.p-youtube-list {
  display: grid;
  grid-template-columns: 1fr; /* スマホ時は1列に並ぶ */
  gap: 24px; /* 縦の余白 */
  margin-bottom: 40px;
}
/* タブレット・PC向け（画面幅768px以上）時は2列に */
@media screen and (min-width: 768px) {
  .p-youtube-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px; /* 余白を広めに */
  }
}
/* PC大画面向け（画面幅1024px以上）時は3列に
 * 理由：PC表示では2列だか余白が広すぎるため、メディア一覧として情報量を増やすため */
@media screen and (min-width: 1024px) {
  .p-youtube-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 2. カードのベーススタイル */
.p-youtube-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* 軽い影を落としてカード感を出す */
  overflow: hidden; /* 角丸外にはみ出た画像を隠す */
  height: 100%; /* 親要素内で高さ揃え */
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
/* マウスホバーでフワッと浮くアニメーション */
.p-youtube-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* 3. サムネイル画像エリア（アスペクト比固定 16:9） */
.p-youtube-card__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9; /* YouTubeライクな比率 */
  background-color: #f5f5f5;
  position: relative;
  overflow: hidden;
}
.p-youtube-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像の縦横比を崩さずに枠を埋める */
  transition: transform 0.3s ease;
}
/* ホバー時、画像だけ少しズームする */
.p-youtube-card:hover .p-youtube-card__thumb img {
  transform: scale(1.05);
}
.p-youtube-card__noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #ccc;
  font-size: 13px;
}

/* 4. テキスト領域 */
.p-youtube-card__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* 残りの高さを埋める */
  padding: 20px;
}

/* トピック（タグ風） */
.p-youtube-card__terms {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.p-youtube-card__term {
  display: inline-block;
  background-color: #f0f3f5;
  color: #555;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* タイトル */
.p-youtube-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 12px;
  /* タイトルが長い記事でもカードの高さが崩れにくくなり、一覧で見やすくなるため2行に制限 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.p-youtube-card__title a {
  color: #333;
  text-decoration: none;
}
.p-youtube-card__title a:hover {
  text-decoration: underline;
}

/* 概要（summary） */
.p-youtube-card__summary {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 20px;
  flex-grow: 1; /* 余白を埋める（下のボタンを常に下部に押し下げるため） */
  /* 説明文が長すぎるとカードごとの高さがバラつくため、一覧の見た目を整えるために3行制限 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* 5. ボタン（YouTubeを見る） */
.p-youtube-card__action {
  margin-top: auto; /* flex-grow で押し下げられた結果、常に下部に配置される */
}
.p-youtube-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #CC0000; /* YouTube風の赤 */
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 6px;
  transition: background-color 0.2s;
  width: 100%;
}
.p-youtube-card__btn:hover {
  background-color: #B30000;
  color: #fff;
}
/* アイコン文字をCSS疑似要素で簡易追加 */
.p-youtube-card__btn::before {
  content: "▶";
  margin-right: 6px;
  font-size: 11px;
}
/*==================================
 * TOPページのカスタム投稿noteの表示
 * =================================*/
.post_content h3 {
    margin: 3em 0 15px;
}
.note-custom-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 24px;
  align-items: start;
}

.note-custom-grid__side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.note-card {
  background: #fff;
}

.note-card__thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.note-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.note-card__body {
  padding-top: 12px;
}

.note-card__title {
  margin: 0 0 10px;
  line-height: 1.5;
}

.note-card--large .note-card__title {
  font-size: 1.8rem;
}

.note-card--small .note-card__title {
  font-size: 1.2rem;
}

.note-card__title a {
  color: inherit;
  text-decoration: none;
}

.note-card__excerpt {
  font-size: 14px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 10px;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-card--small .note-card__excerpt {
  -webkit-line-clamp: 3;
}
.note-card--large .note-card__excerpt {
  -webkit-line-clamp: 6;
}
.note-card__meta {
  font-size: 0.85rem;
  color: #777;
}

/* タブレット（iPad対応） */
@media (max-width: 1024px) {
  .note-custom-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .note-custom-grid__main {
    order: 1;
  }

  .note-custom-grid__side--left {
    order: 2;
  }

  .note-custom-grid__side--right {
    order: 3;
  }

  .note-custom-grid__side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .note-card--small .note-card__title {
    font-size: 1.05rem;
  }
	.note-card--large .note-card__title {
    font-size: 1.5rem;
  }
  .note-card--large .note-card__excerpt {
    -webkit-line-clamp: 4;
  }
}

/* スマホ */
@media (max-width: 767px) {
  .note-custom-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .note-custom-grid__side {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .note-custom-grid__main {
    order: 1;
  }

  .note-custom-grid__side--left {
    order: 2;
  }

  .note-custom-grid__side--right {
    order: 3;
  }
  .note-card--small .note-card__title {
    font-size: 1.1rem;
  }
.note-card--large .note-card__title {
    font-size: 1.1rem;
  }
.note-card--large .note-card__excerpt {
    -webkit-line-clamp: 4;
  }
  .note-card__excerpt {
    font-size: 0.9rem;
  }
}
/*メニューの幅*/
.c-gnav > .menu-item {
    width: 120px;
    letter-spacing: .1rem;
}
/*TOPページサービスだけスクロール*/
.service-layout {
  align-items: flex-start;
}

.profile-sticky {
  position: sticky;
  top: 100px;
}

@media (max-width: 1024px) {
  .profile-sticky {
    position: static;
  }
}
/*サイドバー　タイトル*/
.sidebar-cpt-list__title,
.widget_block h2,
.widget_block h3,
.widget-title {
  position: relative;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ddd;
  color: #222;
}

.sidebar-cpt-list__title::after,
.widget_block h2::after,
.widget_block h3::after,
.widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 120px;
  height: 1px;
  background: #1f2a44;
}