/* ========================================
    Base Styles
======================================== */

body {
    background-color: #0f172a; /* ダークネイビー */
    color: #ffffff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.7;
  position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.section {
    padding: 80px 24px;
    max-width: 960px;
    margin: 0 auto;
}

/* ========================================
    Header
======================================== */
/* === ヘッダー全体 === */
.site-header {
    padding: 32px 24px;
    text-align: center;
    background-color: #0f172a;
    position: relative;
  z-index: 10; /* ← 背景動画より上に */
  overflow: visible; /* ↓これが大事！飛び出しを許可 */
}

/* === ロゴ === */
.logo {
    display: inline-block;
}

.logo img {
    width: 120px;
}

/* ロゴゆらゆらアニメーション */
@keyframes sway {
    0%   { transform: rotate(0deg); }
    25%  { transform: rotate(8deg); }
    50%  { transform: rotate(-8deg); }
    75%  { transform: rotate(6deg); }
    100% { transform: rotate(0deg); }
}

.wiggle {
    display: inline-block;
    animation: sway 3s infinite ease-in-out;
    transform-origin: top center;
}

/* === ナビゲーション === */
/* ヘッダー全体 */
.header-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  pointer-events: none; /* 要素の下をクリックできるように */
  z-index: 1;
}

.header-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 180px;
  position: relative;
  z-index: 2;
}

/* ネイビーのアイランド */
.header-island {

  padding: 16px 32px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 360px;
  margin: 0 auto;
}

/* ヘッダー内コンテンツ */
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ナビゲーション全体 */
.site-nav {
  position: static;
  transform: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.site-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  position: relative;
}


/* 下線ホバー演出 */
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: #38bdf8;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

/* ホバー時 */
.site-nav a:hover {
  color: #38bdf8;
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ヘッダー背景動画 */
.header-bg-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.header-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35; /* 透け具合。好みで調整 */
  pointer-events: none;
}

/* ヘッダー本体を前面に */
header {
  position: relative;
  z-index: 10;
}

/* === 背景動画用 === */
.with-bg-video {
  position: relative;
  overflow: hidden;

  /* 中央寄せの制約を打ち消して全幅に */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  left: 0;
  right: 0;
}

/* ========================================
    Episode0 : Main Message & Scroll CTA
======================================== */
#episode0 {
  position: relative;
  z-index: 1;
  margin-top: 120px; /* ← ここを追加または調整 */
}

#episode0.section {
  padding-top: 0;
}

#episode0 .main-message {
  margin-top: 40px;
  margin-bottom: 60px;
  text-align: center;
}

#episode0 .main-message p {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 24px;
  color: #ffffff;
  line-height: 1.6;
}

#episode0 .main-message .message-emotion {
  font-weight: 600;
  margin-bottom: 24px;
}

#episode0 .main-message .scroll-icon img {
  display: block;
  width: 24px;
  height: auto;
  opacity: 0.9;
  margin: 0 auto;
}

/* スライドショー */
.slideshow {
  position: relative;
  width: 100%;
  max-width: 960px; /* ←お好みでサイズ調整 */
  aspect-ratio: 16 / 9; /* ←比率を固定したい場合 */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  z-index: 1;
  background-color: #000; /* 見切れ対策（黒背景） */
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* ←これで見切れないように！ */
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slider-nav {
  text-align: center;
  margin-top: 12px;
}

.slider-nav .dot {
  height: 10px;
  width: 10px;
  margin: 0 6px;
  background-color: #aaa;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.slider-nav .dot.active {
  background-color: #fff;
}

/* ========================================
    === Episode 1 ブロック共通設定 ===
======================================== */
#episode1 {
    padding: 80px 0;
    background-color: #0f172a; /* ダークネイビー背景 */
    color: #fff;
}

#episode1 .section-title {
    text-align: left;
    padding-left: 40px;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 24px;
}

.episode1-wrap {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    height: 640px;
}

.image-block {
    width: 600px;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: absolute;
}

.upper-bg {
    background-image: url("../images/episode1-top.png");
    top: 0;
    left: 0;
    z-index: 2;
}

.lower-bg {
    background-image: url("../images/episode1-bottom.png");
    top: 200px;
    right: 0;         
    left: auto;       
    z-index: 1;
}

.text-block {
    color: #fff;
    padding: 16px;
    font-size: 14px;
    font-weight: 400;
    background: rgba(0, 0, 0, 0); /* 文字のみ表示、背景は透明 */
}

.left {
    text-align: left;
}

.right {
    text-align: left;
    position: absolute;
    bottom: 16px;
    right: 0px;
    max-width: 500px;
}

/* 初期状態（非表示でズレてる） */
.slide-in-left,
.slide-in-right {
    opacity: 0;
    transform: translateX(100px); /* ←ズレを大きめに */
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); /* ←滑らかさUP */
}

/* 表示時（アニメーション） */
.slide-in-left.in-view {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    transform: translateX(-100px); /* ←逆方向のズレ */
}

.slide-in-right.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
    === Episode 2 ブロック共通設定 ===
======================================== */

#episode2.section.skills {
    padding: 80px 24px;
    background-color: #0f172a;
    color: #fff;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 40px;
}

/* 背景ベクター含むラッパー */
.skill-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0;
}

/* ベクター背景を擬似要素で */
.skill-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    height: 100%;
    background: url("../images/vector-background.png") no-repeat center center;
    background-size: contain;
    z-index: 0;
    pointer-events: none;
}

/* カードを縦並び中央に配置 */
.skill-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
}

/* 各カード共通 */
.skill-card {
    width: 100%;
    max-width: 600px;
    font-size: 14px;
    line-height: 1.8;
    padding-left: 100px;
}

/* 色分け */
.skill-card.it h3 {
    color: #5ac8fa;
    font-size: 30px;
    position: relative;
    top: -30px;
}

.skill-card.care h3 {
    color: #f59e0b;
    font-size: 30px;
    position: relative;
    top: -30px;
}

.skills-message {
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    line-height: 2;
    margin-top: 60px;
}

/* ================================
    === Episode 3：発信セクション ===
================================= */
#episode3 {
    background-color: #0f172a;
    color: #ffffff;
    padding: 80px 24px;
    position: relative;
}

/* タイトル */
#episode3 .section-title {
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    max-width: 800px;
    padding-left: 20px;
    margin-top: 0px;        
    margin-bottom: 0px;     
}

/* 枠＋中身を包む */
.episode3-wrap {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 背景の青いベクター線 */
.episode3-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../images/episode3-frame.png") no-repeat center center;
    background-size: contain;
    z-index: 0;
    pointer-events: none;
}

/* 中のテキスト・アイコン */
.episode3-content {
    max-width: 600px;
    padding: 60px 24px;
    text-align: left; 
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

.episode3-content p {
    font-size: 14px;
    line-height: 2;
    margin-bottom: 16px;
}

/* アイコンエリア */
.episode3-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-box img {
    width: 48px;
    height: 48px;
}

.icon-caption {
    font-size: 12px;
    color: #ffffff;
    margin-top: 8px;
}

.icon-box a img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-box a:hover img {
    transform: translateY(-6px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* ==========================
    Episode 4：相談の流れ
=========================== */
#episode4 {
    background-color: #0f172a;
    color: #ffffff;
    padding: 80px 24px;
    text-align: center;
    overflow: hidden; /* ←追加 */
}

#episode4 .section-title {
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.episode4-intro {
    font-size: 14px;
    line-height: 2;
    margin-bottom: 40px;
}

.episode4-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.label {
    flex-shrink: 0;
    width: 120px; /* 固定幅で左に揃える */
    font-weight: bold;
    text-align: left;
}

.balloon {
    flex: 1;
    max-width: 450px;
    background-color: #334155;
    border-radius: 9999px;
    padding: 12px 20px;
    text-align: left;
}

.arrow {
    font-size: 20px;
    color: #ffffff;
    text-align: center;
}

.episode4-message {
    font-size: 14px;
    margin-top: 40px;
    line-height: 2;
}

/* ==========================
    Footer
=========================== */
/* フッター全体 */
.site-footer {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  font-size: 13px;
  line-height: 2;
  background-color: #0f172a; /* ← フッターも同じ色で塗る */
}

/* ロゴ画像 */
.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    background-color: transparent;
}

.footer-logo img {
    width: 80px;
    height: auto;
}

/* リンクエリア */
.footer-links {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 8px;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}

/* コピーライト */
.copyright {
    font-size: 12px;
    color: #cbd5e1;
}

/* ブログ */
body {
    background-color: #0f172a; /* ダークネイビー */
    color: #ffffff;
}

.post-archive {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
}

.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.post-item {
    background-color: #1e293b;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 16px;
    transition: transform 0.3s;
}

.post-item:hover {
    transform: translateY(-4px);
}

.post-thumb {
    margin-bottom: 12px;
    text-align: center;
}

.post-thumb img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}
.default-thumb {
    width: 100%;
    max-width: 160px !important;
    height: auto;
    margin: 0 auto;
    display: block;
}

.category-sidebar {
    background-color: #1e293b;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 32px;
}

.category-sidebar h2 {
    margin-bottom: 12px;
    font-size: 18px;
    color: #ffffff;
}

.category-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    color: #ffffff;
    text-decoration: none;
}

.category-list a:hover {
    text-decoration: underline;
}

.pagination {
    margin-top: 40px;
    text-align: center;
}
.pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 4px;
    background: #1e293b;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}
.pagination .current {
    background: #9333ea;
    font-weight: bold;
}


/* 投稿詳細ページ */
.single-post {
    padding: 80px 24px;
    max-width: 960px;
    margin: 0 auto;
    color: #fff;
}
.post-detail h1 {
    font-size: 2rem;
    margin-bottom: 16px;
}
.post-thumbnail img {
    width: 100%;
    height: auto;
    margin-bottom: 24px;
}
.post-meta {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 24px;
}

/* ================================
    Responsive Design (スマホ対応)
================================= */
@media screen and (max-width: 600px) {
  /* 全体の文字サイズ調整 */
    body {
    font-size: 15px;
    line-height: 1.6;
    }

  /* セクションのパディング調整 */
    .section,
    #episode4,
    #episode3,
    #episode2.section.skills,
    #episode1 {
    padding: 40px 16px;
    }

  /* ロゴサイズ調整 */
    .logo img,
    .footer-logo img {
    width: 80px;
    }

    .slideshow {
    height: 220px;
    }

    .slide {
    object-fit: cover;
    }

    /*episode3*/
    .episode3-wrap::before {
    display: none;
    }

  /* 吹き出しステップ（episode4）縦並び化 */
    .episode4-steps {
    gap: 32px;
    }

    .step {
    flex-direction: column;
    align-items: flex-start;
    }

    .label {
    width: 100%;
    text-align: left;
    margin-bottom: 8px;
    font-size: 15px;
    }

    .balloon {
    width: 100%;
    max-width: 100%;
    font-size: 14px;
    }

    .arrow {
    display: none;
    }

  /* episode3 アイコン縦並び */
    .episode3-icons {
    flex-direction: column;
    gap: 20px;
    }

    .icon-box img {
    width: 40px;
    height: 40px;
    }

    .episode3-content {
    padding: 32px 16px;
    }

  /* episode1 画像重なりの解除 */
    .episode1-wrap {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    }

    .image-block {
    position: static;
    width: 100%;
    height: 200px;
    }

    .text-block {
    font-size: 14px;
    }

    .right {
    position: static;
    text-align: left;
    max-width: 100%;
    }

  /* skillカードのpadding調整 */
    .skill-card {
    padding-left: 0;
    font-size: 14px;
    }

    .skill-card.it h3,
    .skill-card.care h3 {
    font-size: 24px;
    top: 0;
    }

    .skills-message {
    font-size: 14px;
    margin-top: 40px;
    }

  /* フッター調整 */
    .footer-links {
    font-size: 13px;
    flex-wrap: wrap;
    }

    .copyright {
    font-size: 11px;
    }
}

.test{
    background-color: #9333ea;
}
.questions-and-answers .question,
.questions-and-answers .answer{
  display: flex;
  gap: 15px;
  align-items: center;
}
.questions-and-answers .question::before,
.questions-and-answers .answer::before{
  font-weight: 700;
  content: 'Q';
  display: block;
  background-color: #e5555d;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 999px;
  line-height: 1;
}
.questions-and-answers .answer::before{
    content: 'A';
}

#post-main{
    p{
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.8;
    }

    h1,h2,h3,h4,h5,h6{
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-style: normal;
    line-height: 1.5;
    }
    h1 {
    font-size: 45px;
    }
    h2 {
    font-size: 35px;
    }
    h3 {
    font-size: 28px;
    }
    h4 {
    font-size: 22px;
    }
    h5 {
    font-size: 18px;
    }
    h6{
    font-size: 16px;
    }
}