/**
* Template Name: ZenBlog
* Template URL: https://bootstrapmade.com/zenblog-bootstrap-blog-template/
* Updated: Mar 17 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https:///bootstrapmade.com/license/
*/

/**
* Check out variables.css for easy customization of colors, typography, and other repetitive properties
*/
/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  scroll-behavior: smooth;
}

body {
  color: rgba(var(--color-primary-rgb), 1);
}

a {
  color: var(--color-links);
  text-decoration: none;
}

a:hover {
  color: var(--color-links-hover);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
}

#main {
  margin-top: 90px;
}


/* h3 ヘッダーのスタイル */
h3 {
  font-family: 'Noto Serif JP', serif; /* フォント指定 */
  font-weight: 600; /* Semibold の指定 */
  font-size: 22px; /* フォントサイズ */
  color: #D20808; /* 色 */
  letter-spacing: 3.5px; /* 文字間の調整（適宜調整可能） */
  line-height: 1.7; /* 行間の調整（適宜調整可） */
  margin: 0 0 10px; /* 必要に応じてマージンを調整 */
}


/* p 段落のスタイル */
p {
  font-family: 'Noto Sans JP', sans-serif; /* フォント指定 */
  font-weight: 400; /* Regular の指定 */
  font-size: 14px; /* フォントサイズ */
  color: #2E2E35; /* 色 */
  line-height: 2.0; /* 行間の調整（適宜調整可） */
  letter-spacing: 1.5px; /* 文字間の調整（適宜調整可能） */
  margin: 0 0 10px; /* 必要に応じてマージンを調整 */
}

/* モバイル（画面幅768px以下の場合） */
@media (max-width: 768px) {
  h3 {
    font-size: 18px; /* モバイル向けのフォントサイズ */
    line-height: 1.6; /* モバイル向けの行間 */
  }

  p {
    font-size: 14px; /* モバイル向けのフォントサイズ */
    line-height: 1.5; /* モバイル向けの行間 */
  }
}


/* モバイル（画面幅768px以下の場合） */
@media (max-width: 768px) {
  section,
  div {
    padding-left: 0px; /* モバイルでの親要素の余白 */
    padding-right: 0px;
  }

  h3,
  p {
    padding-left: 10px; /* モバイルでの子要素の余白 */
    padding-right: 10px;
  }
}

/* comment-style クラスのスタイル */
.comment-style {
  font-family: 'Noto Serif JP', serif; /* フォントをNoto Serif JPに指定 */
  font-weight: 400; /* Regularの指定 */
  font-size: 14px; /* 適宜フォントサイズを調整 */
  line-height: 1.8; /* 行間を調整 */
  color: #4E3500; /* 必要に応じて色を調整 */
  padding: 5px; /* 余白の調整（必要に応じて） */
  margin: 0 0 10px; /* 下マージンを調整 */
}


/*--------------------------------------------------------------
# Sections & Section Header
--------------------------------------------------------------*/
section {
  padding: 40px 0;
  overflow: hidden;
}

.section-header {
  border-bottom: 2px solid var(--color-black);
}

.section-header h2 {
  font-size: 50px;
  color: var(--color-black);
}

.section-header p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Scroll top button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: var(--color-primary);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.scroll-top:hover {
  background: rgba(var(--color-primary-rgb), 0.8);
  color: #fff;
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Page title
--------------------------------------------------------------*/
.page-title {
  font-size: 70px;
  color: var(--color-black);
}

/* Form Input Fieldds */
.form-control:active,
.form-control:focus {
  outline: none;
  box-shadow: none;
  border-color: var(--color-black);
}

.btn:active,
.btn:focus {
  outline: none;
}

.btn.btn-primary {
  background-color: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
  height: 90px;
  transition: all 0.5s;
  z-index: 997;
  background: #D20808;
}

.header.sticked {
  height: 70px;
}

.header .logo img {
  max-height: 60px;
  margin-right: 6px;
}

.header .logo h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-default);
  font-family: var(--font-primary);
}

.search-form-wrap {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 9;
  transition: 0.3s all ease;
  visibility: hidden;
  opacity: 0;
}

.search-form-wrap .search-form {
  position: relative;
}

.search-form-wrap .search-form .form-control {
  width: 300px;
  border: none;
  box-shadow: 0 15px 20px -10px rgba(var(--color-black-rgb), 0.1);
  padding-left: 40px;
  padding-right: 40px;
}

.search-form-wrap .search-form .form-control:active,
.search-form-wrap .search-form .form-control:focus {
  outline: none;
  box-shadow: none;
}

.search-form-wrap .search-form .icon {
  position: absolute;
  left: 0;
  top: 7px;
  opacity: 0.5;
  left: 10px;
}

.search-form-wrap .search-form .btn {
  position: absolute;
  top: 2px;
  right: 4px;
  padding: 0;
  margin: 0;
  line-height: 1;
  font-size: 30px;
}

.search-form-wrap .search-form .btn:active,
.search-form-wrap .search-form .btn:focus {
  outline: none;
  box-shadow: none;
}

.search-form-wrap.active {
  visibility: visible;
  opacity: 1;
}

section {
  scroll-margin-top: 70px;
}

/* 下記の２つは、画像の上のテキスト追加*/

.img-bg {
  position: relative; /* 親要素を基準に配置するため */
}

.text-overlay {
  position: absolute;
  top: 50%; /* 垂直方向の中央に配置 */
  left: 50%; /* 水平方向の中央に配置 */
  transform: translate(-50%, -50%); /* 中央揃えの調整 */
  color: white; /* テキストの色 (必要に応じて変更) */
  z-index: 2; /* 画像より上に表示 */
}


/* ヘッダー全体のスタイル */
.header {
  display: flex; /* Flexboxでレイアウト */
  align-items: center; /* 垂直方向の中央揃え */
  justify-content: space-between; /* ロゴとナビゲーションを左右に分ける */
  padding: 10px 20px; /* ヘッダーの内側余白 */
}

/* ロゴ部分 */
.logo {
  margin-right: auto; /* ロゴを左端に配置し、ナビゲーションとの距離を調整 */
}

.logo img {
  height: 50px; /* ロゴ画像の高さを調整 */
}

/* ナビゲーションバー */
.navbar {
  display: flex; /* Flexboxでリストを横並びに配置 */
  align-items: center; /* 垂直方向の中央揃え */
}

.navbar ul {
  display: flex; /* 横並び配置 */
  list-style: none; /* リストのデフォルトマーカーを削除 */
  padding: 0; /* リスト全体の余白を削除 */
  margin: 0; /* リスト全体の外側余白を削除 */
}

.navbar ul li {
  margin: 0 15px; /* 各リスト項目間のスペースを設定 */
}

.navbar ul li a {
  font-family: 'Noto Sans JP', sans-serif; /* 日本語対応フォント */
  font-size: 14px; /* フォントサイズを調整 */
  color: #ffffff; /* 通常時の文字色 */
  text-decoration: none; /* 下線を削除 */
  padding: 10px 15px; /* クリックエリアを広げる */
  transition: color 0.3s ease; /* ホバー時のスムーズな変化 */
}

.navbar ul li a:hover {
  color: #000000; /* ホバー時の文字色 */
}

.navbar ul li a.active {
  color: #D20808; /* アクティブ時の文字色 */
  font-weight: bold; /* アクティブなリンクを強調 */
}


.js-search-form-wrap.active {
  width: 80% !important; /* 横幅を画面の80%に設定 */
  height: 70% !important; /* 縦幅を画面の70%に設定 */
  background-color: #000000 !important; /* 背景色を黒に変更 */
  color: #ffffff !important; /* 文字色を白に変更 */
  border-radius: 15px !important; /* 角を丸める */
}

.bi.bi-list.mobile-nav-toggle {
  color: white;
}


/*--------------------------------------------------------------
# Desktop Navigation 
--------------------------------------------------------------*/
@media (min-width: 1280px) {
  .navbar {
    padding: 0;
  }

  .navbar ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navbar li {
    position: relative;
  }

  .navbar a,
  .navbar a:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 10px 30px;
    font-family: var(--font-default);
    font-size: 16px;
    font-weight: 500;
    color: rgba(var(--color-default-rgb), 1);
    white-space: nowrap;
    transition: 0.3s;
  }

  .navbar a i,
  .navbar a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
  }

  .navbar a:hover,
  .navbar .active,
  .navbar .active:focus,
  .navbar li:hover>a {
    color: var(--color-default);
  }

  .navbar .getstarted,
  .navbar .getstarted:focus {
    background: var(--color-primary);
    padding: 8px 20px;
    margin-left: 30px;
    border-radius: 4px;
    color: var(--color-white);
  }

  .navbar .getstarted:hover,
  .navbar .getstarted:focus:hover {
    color: var(--color-white);
    background: rgba(var(--color-primary-rgb), 0.8);
  }

  .navbar .dropdown ul {
    display: block;
    position: absolute;
    left: 14px;
    top: calc(100% + 30px);
    margin: 0;
    padding: 10px 0;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    background: var(--color-white);
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
    transition: 0.3s;
    border-radius: 4px;
  }

  .navbar .dropdown ul li {
    min-width: 200px;
  }

  .navbar .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    font-weight: 400;
  }

  .navbar .dropdown ul a i {
    font-size: 12px;
  }

  .navbar .dropdown ul a:hover,
  .navbar .dropdown ul .active:hover,
  .navbar .dropdown ul li:hover>a {
    color: var(--color-primary);
  }

  .navbar .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navbar .dropdown .dropdown ul {
    top: 0;
    left: calc(100% - 30px);
    visibility: hidden;
  }

  .navbar .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: 100%;
    visibility: visible;
  }
}

@media (min-width: 1280px) and (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }

  .navbar .dropdown .dropdown:hover>ul {
    left: -100%;
  }
}

.mobile-nav-toggle {
  display: none;
}

/*--------------------------------------------------------------
# Mobile Navigation
--------------------------------------------------------------*/
@media (max-width: 1279px) {
  .navbar {
    padding: 0;
    z-index: 9997;
  }

  .navbar ul {
    display: none;
    position: absolute;
    inset: 55px 15px 15px 15px;
    padding: 10px 0;
    margin: 0;
    border-radius: 10px;
    background-color: var(--color-white);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
  }

  .navbar a,
  .navbar a:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    transition: 0.3s;
  }

  .navbar a i,
  .navbar a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
  }

  .navbar a:hover,
  .navbar .active,
  .navbar .active:focus,
  .navbar li:hover>a {
    color: var(--color-primary);
  }

  .navbar .dropdown ul,
  .navbar .dropdown .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background: var(--color-white);
    transition: all 0.5s ease-in-out;
    box-shadow: 0px 0px 30px rgba(var(--color-black-rgb), 0.1);
  }

  .navbar .dropdown>.dropdown-active,
  .navbar .dropdown .dropdown>.dropdown-active {
    display: block;
  }

  .mobile-nav-toggle {
    display: inline-block;
    color: var(--color-secondary);
    font-size: 28px;
    cursor: pointer;
    line-height: 0;
    transition: 0.5s;
  }

  .mobile-nav-toggle.bi-x {
    color: var(--color-black);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 9999;
    color: var(--color-white);
  }

  .mobile-nav-active .navbar {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(var(--color-black-rgb), 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navbar>ul {
    display: block;
  }
}

.mobile-nav-active .navbar ul {
  background-color: #D20808 !important;
}

.mobile-nav-active .navbar ul {
  width: 90%; /* 横幅を80%にする */
  height: 300px; /* 高さを300pxにする */
  border-radius: 0; /* 角丸をなくす */
}
/*--------------------------------------------------------------
# Posts
--------------------------------------------------------------*/
.post-entry-1 {
  margin-bottom: 30px;
}

.post-entry-1 img {
  margin-bottom: 30px;
}

.post-entry-1 h2 {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  font-weight: 500;
}

.post-entry-1 h2 a {
  color: var(--color-black);
}

.post-entry-1.lg h2 {
  font-size: 40px;
  line-height: 1;
}

.post-meta {
  font-size: 11px;
  letter-spacing: 0.07rem;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-secondary);
  color: rgba(var(--color-black-rgb), 0.4);
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .custom-border {
    border: none !important;
  }
}

.author .photo {
  margin-right: 10px;
}

.author .photo img {
  width: 40px;
  border-radius: 50%;
  margin-bottom: 0;
}

.author .name h3 {
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-family: var(--font-secondary);
}

.trending {
  border: 1px solid rgba(var(--color-black-rgb), 0.1);
}

.trending>h3 {
  color: var(--color-black);
  padding: 20px;
  border-bottom: 1px solid rgba(var(--color-black-rgb), 0.1);
}

.trending .trending-post {
  padding: 0;
  margin: 0;
}

.trending .trending-post li {
  padding: 0;
  margin: 0;
  list-style: none;
  display: block;
}

.trending .trending-post li a {
  display: block;
  padding: 20px;
  border-bottom: 1px solid rgba(var(--color-black-rgb), 0.1);
  position: relative;
  overflow: hidden;
}

.trending .trending-post li a .number {
  position: absolute;
  z-index: -1;
  font-size: 5rem;
  left: -10px;
  top: -20px;
  font-weight: 700;
  color: rgba(var(--color-black-rgb), 0.05);
}

.trending .trending-post li a h3 {
  font-size: 18px;
  color: rgba(var(--color-black-rgb), 0.9);
}

.trending .trending-post li a .author {
  color: rgba(var(--color-black-rgb), 0.7);
  font-weight: 500;
}

.trending .trending-post li a:hover h3 {
  color: rgba(var(--color-black-rgb), 1);
}

.trending .trending-post li:last-child a {
  border-bottom: none;
}

.post-entry-2 {
  margin-bottom: 30px;
}

.post-entry-2 .post-meta {
  font-size: 11px;
  letter-spacing: 0.07rem;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-secondary);
  color: rgba(var(--color-black-rgb), 0.4);
  margin-bottom: 10px;
}

.post-entry-2 .author {
  color: rgba(var(--color-black-rgb), 0.7);
  font-weight: 500;
  margin-bottom: 20px;
  display: block;
}

.post-entry-2 .thumbnail {
  flex: 0 0 65%;
}

@media (max-width: 960px) {
  .post-entry-2 .thumbnail {
    flex: 0 0 100%;
    margin-bottom: 20px;
  }
}

.post-entry-2.half .thumbnail {
  flex: 0 0 50%;
}

@media (max-width: 768px) {
  .post-entry-2.half .thumbnail {
    flex: 0 0 100%;
    margin-bottom: 20px;
  }
}

.post-entry-2.small-img .thumbnail {
  flex: 0 0 30%;
}

@media (max-width: 768px) {
  .post-entry-2.small-img .thumbnail {
    flex: 0 0 100%;
    margin-bottom: 20px;
  }
}

.img-bg {
  height: 500px;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  background-position: center center;
}

@media (max-width: 768px) {
  .img-bg {
    height: 400px;
  }
}

.img-bg:before {
  position: absolute;
  content: "";
  background: rgb(0, 0, 0);
  background: linear-gradient(0deg, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
  opacity: 0.5;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  top: 0;
}

.img-bg .img-bg-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  position: relative;
  padding-left: 100px;
  padding-right: 100px;
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  .img-bg .img-bg-inner {
    padding-left: 30px;
    padding-right: 30px;
    margin-bottom: 50px;
  }
}

.img-bg .img-bg-inner h2,
.img-bg .img-bg-inner p {
  color: var(--color-white);
}

.custom-swiper-button-next,
.custom-swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9;
}

@media (max-width: 768px) {

  .custom-swiper-button-next,
  .custom-swiper-button-prev {
    display: none;
  }
}

.custom-swiper-button-next span,
.custom-swiper-button-prev span {
  font-size: 20px;
  color: rgba(var(--color-white-rgb), 0.7);
  transition: 0.3s all ease;
}

.custom-swiper-button-next:hover span,
.custom-swiper-button-next:focus span,
.custom-swiper-button-prev:hover span,
.custom-swiper-button-prev:focus span {
  color: rgba(var(--color-white-rgb), 1);
}

.custom-swiper-button-next {
  right: 40px;
}

.custom-swiper-button-prev {
  left: 40px;
}

.swiper-pagination .swiper-pagination-bullet {
  background-color: rgba(var(--color-white-rgb), 0.8);
}

.swiper-pagination .swiper-pagination-bullet-active {
  background-color: rgba(var(--color-white-rgb), 1);
}

.more {
  font-family: var(--font-secondary);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

.more:before {
  content: "";
  position: absolute;
  height: 2px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-black);
}

.post-content {
  padding-left: 10%;
  padding-right: 10%;
}

@media (max-width: 768px) {
  .post-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}

.post-content .firstcharacter {
  float: left;
  font-family: Georgia;
  font-size: 75px;
  line-height: 60px;
  padding-top: 4px;
  padding-right: 8px;
  padding-left: 3px;
}

.image-container {
  /* ここに画像のレイアウトを調整するCSSを記述 */
  width: 100%; /* 例：画像の幅を親要素に合わせる */
  max-width: 800px; /* 例：画像の最大幅を指定 */
  margin: 0 auto; /* 例：画像を中央寄せ */
}


.post-content figure figcaption {
  font-family: var(--font-secondary);
  font-size: 14px;
  padding: 10px 0 0 0;
}

.aside-title,
.category-title {
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--color-black);
}

.category-title {
  border-bottom: none;
}

.custom-pagination a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  font-family: var(--font-secondary);
  margin: 5px;
  transition: 0.3s all ease;
}

.custom-pagination a.active {
  background: var(--color-black);
  color: var(--color-white);
}

.custom-pagination a.active:hover {
  background: rgba(var(--color-black-rgb), 0.9);
}

.custom-pagination a:hover {
  background: rgba(var(--color-black-rgb), 0.1);
}

.custom-pagination a.prev,
.custom-pagination a.next {
  width: auto !important;
  border-radius: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

.custom-pagination a.prev:hover,
.custom-pagination a.next:hover {
  background: rgba(var(--color-black-rgb), 0.1);
}

/* custom tab nav on sidebar */
.aside-block {
  margin-bottom: 30px;
}

.aside-block .custom-tab-nav .nav-item {
  display: inline-block;
}

.aside-block .custom-tab-nav .nav-item button {
  color: var(--color-black);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
  margin-right: 20px;
}

.aside-block .custom-tab-nav .nav-item button.active {
  background-color: var(--color-black) !important;
  background-color: transparent !important;
  color: var(--color-black);
  border-bottom: 2px solid var(--color-black);
}

.link-video {
  position: relative;
}

.link-video span {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  text-align: center;
  display: inline-block;
  background-color: rgba(var(--color-black-rgb), 0.2);
  color: var(--color-white);
}

.aside-links li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(var(--color-black-rgb), 0.1);
}

.aside-links li a {
  display: block;
  color: rgba(var(--color-black-rgb), 0.7);
}

.aside-links li a:hover,
.aside-links li a:focus {
  color: rgba(var(--color-black-rgb), 1);
}

.aside-tags li {
  display: inline-block;
}

.aside-tags li a {
  display: inline-block;
  color: rgba(var(--color-black-rgb), 0.7);
  padding: 7px 10px;
  border: 1px solid rgba(var(--color-black-rgb), 0.1);
  margin-bottom: 3px;
  transition: 0.3s all ease;
}

.aside-tags li a:hover,
.aside-tags li a:focus {
  color: rgba(var(--color-black-rgb), 1);
  border: 1px solid rgba(var(--color-black-rgb), 0.5);
}

/*--------------------------------------------------------------
# Comments
--------------------------------------------------------------*/
.comment {
  /* Font not working in <textarea> for this version of bs */
}

.comment .avatar {
  position: relative;
  display: inline-block;
  width: 3rem;
  height: 3rem;
}

.comment .avatar-img,
.comment .avatar-initials,
.comment .avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.comment .avatar-img {
  display: block;
  -o-object-fit: cover;
  object-fit: cover;
}

.comment .avatar-initials {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  line-height: 0;
  background-color: rgba(var(--color-black-rgba), 0.1);
}

.comment .avatar-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(var(--color-black-rgba), 0.1) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='%23fff' d='M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z'/%3e%3c/svg%3e") no-repeat center/1.75rem;
}

.comment .avatar-indicator {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 20%;
  height: 20%;
  display: block;
  background-color: rgba(var(--color-black-rgba), 0.1);
  border-radius: 50%;
}

.comment .avatar-group {
  display: inline-flex;
}

.comment .avatar-group .avatar+.avatar {
  margin-left: -0.75rem;
}

.comment .avatar-group .avatar:hover {
  z-index: 1;
}

.comment .avatar-sm,
.comment .avatar-group-sm>.avatar {
  width: 2.125rem;
  height: 2.125rem;
  font-size: 1rem;
}

.comment .avatar-sm .avatar-placeholder,
.comment .avatar-group-sm>.avatar .avatar-placeholder {
  background-size: 1.25rem;
}

.comment .avatar-group-sm>.avatar+.avatar {
  margin-left: -0.53125rem;
}

.comment .avatar-lg,
.comment .avatar-group-lg>.avatar {
  width: 4rem;
  height: 4rem;
  font-size: 1.5rem;
}

.comment .avatar-lg .avatar-placeholder,
.comment .avatar-group-lg>.avatar .avatar-placeholder {
  background-size: 2.25rem;
}

.comment .avatar-group-lg>.avatar+.avatar {
  margin-left: -1rem;
}

.comment .avatar-light .avatar-indicator {
  box-shadow: 0 0 0 2px rgba(var(--color-white-rgba), 0.75);
}

.comment .avatar-group-light>.avatar {
  box-shadow: 0 0 0 2px rgba(var(--color-white-rgba), 0.75);
}

.comment .avatar-dark .avatar-indicator {
  box-shadow: 0 0 0 2px rgba(var(--color-black-rgba), 0.25);
}

.comment .avatar-group-dark>.avatar {
  box-shadow: 0 0 0 2px rgba(var(--color-black-rgba), 0.25);
}

.comment textarea {
  font-family: inherit;
}

.comment .comment-replies-title,
.comment .comment-title {
  text-transform: uppercase;
  color: var(--color-black) !important;
  letter-spacing: 0.1rem;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 30px;
}

.comment .comment-meta .text-muted,
.comment .reply-meta .text-muted {
  font-family: var(--font-secondary);
  font-size: 12px;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-item {
  text-align: center;
}

.contact .info-item i {
  font-size: 48px;
  display: inline-block;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.contact .info-item address,
.contact .info-item p {
  margin-bottom: 0;
}

.contact .info-item h3 {
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: bold;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: var(--color-primary);
}

.contact .info-item a:hover {
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .contact .info-item-borders {
    border-left: 1px solid rgba(var(--color-secondary-rgb), 0.2);
    border-right: 1px solid rgba(var(--color-secondary-rgb), 0.2);
  }
}

.contact .php-email-form {
  box-shadow: 0 0 30px rgba(var(--color-black-rgb), 0.1);
  padding: 30px;
  background: var(--color-white);
}

@media (max-width: 640px) {
  .contact .php-email-form {
    padding: 20px;
  }
}

.contact .php-email-form .error-message {
  display: none;
  color: var(--color-white);
  background: var(--color-red);
  text-align: left;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .error-message br+br {
  margin-top: 25px;
}

.contact .php-email-form .sent-message {
  display: none;
  color: var(--color-white);
  background: var(--color-green);
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: var(--color-white);
  text-align: center;
  padding: 15px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--color-green);
  border-top-color: var(--color-white);
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form .form-group {
  margin-bottom: 20px;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  padding: 10px 14px;
  border-radius: 0;
  box-shadow: none;
  font-size: 15px;
}

.contact .php-email-form input::focus,
.contact .php-email-form textarea::focus {
  background-color: var(--color-primary);
}

.contact .php-email-form button[type=submit] {
  background: var(--color-primary);
  border: 0;
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  cursor: pointer;
}

.contact .php-email-form button[type=submit]:hover {
  background: rgba(var(--color-primary-rgb), 0.8);
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  overflow: hidden;
  background: rgba(var(--color-black-rgb), 0.9);
  font-size: 16px;
  color: rgba(var(--color-white-rgb), 0.7);
}

.footer .footer-content {
  padding: 60px 0;
}

.footer a.footer-link-more {
  color: rgba(var(--color-white-rgb), 0.7);
  display: inline-block;
  position: relative;
}

.footer a.footer-link-more:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-white);
}

.footer a.footer-link-more:hover {
  color: rgba(var(--color-white-rgb), 1);
}

.footer .footer-heading {
  color: var(--color-white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  font-size: 18px;
}

.footer .footer-blog-entry li {
  margin-bottom: 20px;
  display: block;
}

.footer .footer-blog-entry li a .post-meta {
  font-size: 10px;
  letter-spacing: 0.07rem;
  text-transform: uppercase;
  font-weight: 400;
  font-family: var(--font-secondary);
  color: rgba(var(--color-white-rgb), 0.4);
  margin-bottom: 0px;
}

.footer .footer-blog-entry li a img {
  flex: 0 0 50px;
  width: 50px;
}

.footer .footer-links li {
  margin-bottom: 10px;
}

.footer .footer-links li a {
  color: rgba(var(--color-white-rgb), 0.7);
}

.footer .footer-links li a:hover,
.footer .footer-links li a:focus {
  color: rgba(var(--color-white-rgb), 1);
}

.footer .footer-legal {
  background: var(--color-black);
  padding: 40px 0;
}

.footer .footer-legal .social-links a {
  text-align: center;
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: rgba(var(--color-white-rgb), 0.09);
  border-radius: 50%;
  color: var(--color-white);
  line-height: 40px;
}

.footer .footer-legal .social-links a:hover {
  background-color: rgba(var(--color-white-rgb), 0.2);
}

.footer .copyright strong {
  font-weight: 400;
}

.footer .credits {
  padding-top: 6px;
  font-size: 13px;
}

.footer .credits a {
  color: var(--color-white);
}

/*--------------------------------------------------------------
# Custom Padding Section - Centralize Content
--------------------------------------------------------------*/
#hero-image { /* 追加 */
  background-color: black;
}


.custom-padding-section {
  display: flex; /* フレックスボックスでレイアウト制御 */
  flex-direction: column; /* 子要素を縦に並べる */
  justify-content: center; /* 縦方向に中央揃え */
  align-items: center; /* 横方向に中央揃え */
  height: 25vh; /* セクション全体を画面の高さに合わせる */
  background-color: white; /* 背景色を黒に変更 */
}
.responsive-heading {
  color: #000000; /* 例：青色に変更 */
  font-size: 28px; /* 例：36pxに変更 */
}

.new-section h3, 
.new-section p {
  color: white;
  text-align: center; /* テキストを中央揃えにする */
}

/* 親要素（<section>）の設定 */
#hero-image {
  position: relative; /* 子要素を配置するための基準 */
  height: 100vh; /* セクション全体の高さを画面の高さに設定 */
  margin: 0;
  padding: 0;
}

/* 子要素（<div class="img-bg">）の設定 */
.img-bg {
  position: absolute; /* 親要素いっぱいに広げる */
  top: 0;
  left: 0;
  width: 100%; /* 親要素の幅いっぱいに設定 */
  height: 100%; /* 親要素の高さいっぱいに設定 */
  background-size: cover; /* 背景画像を全体にフィットさせる */
  background-position: center; /* 背景画像の位置を中央に設定 */
  background-repeat: no-repeat; /* 背景画像を繰り返しなし */
}

/* 必要に応じて内部コンテンツ（<div class="img-bg-inner">）の調整 */
.img-bg-inner {
  width: 100%; /* 必要に応じて変更可能 */
  padding: 20px; /* 内部コンテンツ用の余白 */
  color: white; /* コンテンツのテキスト色 */
  text-align: center; /* テキストの配置 */
}


/* ラップ用のスタイル */
.image-wrapper {
  position: relative;
  display: inline-block;
  width: 100%; /* 必要に応じて調整 */
  max-width: 500px; /* オプション: 画像の最大幅 */
}

/* 画像のスタイル */
.image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

/* アイコンオーバーレイ */
.icon-overlay {
  position: absolute;
  top: 50%; /* 垂直方向の中央 */
  right: 10px; /* 画像の右側に配置 */
  transform: translateY(-50%); /* 縦方向の中央揃え */
  font-size: 1.5rem; /* アイコンのサイズ */
  color: rgba(255, 255, 255, 0.8); /* アイコンの色 */
  background-color: rgba(0, 0, 0, 0); /* 背景の透明効果 */
  padding: 5px 10px; /* アイコンの周囲の余白 */
  border-radius: 0%; /* 丸い背景 */
  pointer-events: none; /* アイコンをクリック不可に */
  transition: all 0.3s ease; /* ホバーや調整用のスムーズなアニメーション */
}

/* ホバー時の透明度変更（任意） */
.image-wrapper:hover .icon-overlay {
  background-color: rgba(0, 0, 0, 0.3); /* 背景色の濃さを調整 */
  color: rgba(255, 255, 255, 1); /* アイコンの透明度を上げる */
}




@font-face {
  font-family: 'Font Awesome';
  src: url('fontawesome.woff2') format('woff2'),
       url('fontawesome.woff') format('woff'),
       url('fontawesome.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


.mobile-nav-toggle {
  display: none;
}

.font-loaded {
  display: block;
}

/* PC表示の場合 */
@media (min-width: 768px) { 
  .bi.bi-list.mobile-nav-toggle {
    display: none; 
  }
}


.img-bg {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  background-image: url('assets/img/post-slide-3.jpg');
  min-height: 0px;  
  width: 100%;  
}

.img-bg-inner {
  color: white;
  text-align: center;
  padding: 300px; 
  margin-top: 0px;  
}

.img-bg h3 {
  letter-spacing: 3px;
  font-size: 24px;
  text-align: center; 
  margin: 0;  
  padding: 0;  
  line-height: 1.2;  
  word-break: normal;  
  line-height: 1.7;
  display: block; /* ブロックレベル要素として扱う */ 
  margin-left: auto; /* 左側のマージンを自動調整 */
  margin-right: auto; /* 右側のマージンを自動調整 */ 
}

@media (max-width: 767px) {
  .img-bg h3 {
    text-align: left;
  }
}

/* PC表示の場合（画面サイズが768px以上の時） */
@media (min-width: 768px) {
  .img-bg h3 {
    width: 100%; 
  }
}

/* モバイル表示の場合（画面サイズが767px以下の時） */
@media (max-width: 767px) {
  .img-bg h3 {
    width: auto;   
  }
}

/* フッターのリンクの色を白に、マウスオンで赤にする */
#footer .footer-content a { 
  color: white; 
  transition: color 0.3s ease; /* マウスオン時の色の変化を滑らかにする */
}

#footer .footer-content a:hover { 
  color: red; 
}




/* セクション全体 */
#slider {
  background-color: #ffffff; 
  padding: 0px 0;            
  height: 450px; 
}

/* セクション内のコンテンツ幅 */
#slider .container {
  max-width: 1000px;      
  width: 100%;            
  padding: 0;              
  margin: 0 auto;          
  overflow: hidden;
  display: flex;
  justify-content: center; /* 水平方向の中央揃え */
  align-items: center;     /* 垂直方向の中央揃え */
  height: 95%;            /* 高さを親要素(section)に合わせる */
}

/* containerとimageのサイズを一致させる */
.container .image { 
  width: 100%;
  height: 100%; 
  display: block;
  background-size: cover; /* 画像をコンテナ全体に表示 */
  background-position: center; /* 画像を中央に配置 */
  position: relative; /* <h3> を配置するため */
}

.image .container {
  transform: scaleX(0.8) scaleY(0.8); 
  background-color: rgba(255, 0, 0, 0); 
}

.image .container.inner h3 {
  color: white; /* 色を白に設定 */
  font-size: 26px; /* フォントサイズを24pxに設定 */
}

.image .container.inner p {
  color: white; /* 色を白に設定 */
  font-size: 18px; /* フォントサイズを24pxに設定 */
}

.container.inner h3 .target-text { /* .container.inner h3 の中の .target-text にスタイルを適用 */
  font-size: 20px; /* フォントサイズ */
  letter-spacing: 2px; /* 文字間 */
  font-family: 'Noto Sans JP', sans-serif; /* フォントを指定 */
}



/* h3 見出しスタイル */
.img-bg-inner h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  font-weight: 600;
  color: #ffffff; /* ← ここを変更 */
  letter-spacing: 3.5px;
  line-height: 1.7;
  margin: 0 0 10px;
  text-align: left; 
}

.img-bg-inner p {
 
  font-family: 'Noto Sans JP', sans-serif;  /* または、お好みのフォント */
  font-size: 15px; /* または、お好みのサイズ */
  line-height: 1.8; /* または、お好みの値 */
  letter-spacing: 1px; /* または、お好みの値 */
  color: #ffffff; /* または、お好みの色 */
  font-weight: normal; /* または、normal, 700 など */
  font-style: normal; /* または、normal */
  text-align: left; /* または、center, right */
  margin-top: 20px; /* または、お好みの値 */
  margin-bottom: 20px; /* または、お好みの値 */
  padding-left: 0px; /* または、お好みの値 */
  padding-right: 15px; /* または、お好みの値 */
}

.cta-btn {
  display: inline-block;  /* インラインブロック要素にする */
  padding: 6px 20px;   /* 上下左右に余白を追加 */
  background-color: #D20808; /* 背景色を設定 */
  color: white;          /* 文字色を白に設定 */
  border: none;          /* デフォルトの枠線を削除 */
  border-radius: 1px;    /* 角を丸くする */
  text-decoration: none; /* 下線を削除 */
  transition: background-color 0.3s ease; /* ホバー時の色の変化を滑らかに */
}

.cta-btn:hover {
  background-color: #4E3500; /* ホバー時の背景色を変更 */
  color: #ffffff; /* ホバー時の文字色を変更 */
}



#slider .image {
  position: relative; /* 子要素を配置するための基準 */
}

#slider .text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2; /* 画像より上に表示 */
}

.cta-btn { /* ボタンのスタイル */
  display: inline-block;
  padding: 10px 20px;
  background-color: #D20808;
  color: white;
  border: none;
  border-radius: 1px;
  text-decoration: none;
}


.col-lg-6 {
  padding-left: 1.5rem;
  padding-right: 1rem; 
}


.img-fluid {
  width: 80%;
  height: auto;
  margin-top: 4rem; /* 上マージンを2remに */
  margin-right: 2rem; 
  margin-bottom: 0rem; 
  margin-left: 2rem; 
}


@media (max-width: 768px) {
  #image-display-empty-desk {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;          /* スマホでは100%幅 */
    max-width: 90vw;      /* 画面の90%以内に制限 */
    height: auto;
  }

  .img-fluid {
    margin: 2rem auto 0 auto; /* 上だけマージン、左右は自動で中央 */
    width: 100%;              /* 明示的に幅をリセット */
    padding: 0;               /* 念のためパディング削除 */
  }
}


.triangle-svg {
  animation: bounceDown 1.5s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===== スマホ用クロスフェード画像対応 CSS 追加 ===== */
@media (max-width: 768px) {
  #hero video {
    display: none !important;
  }

  #hero-fallback-wrapper {
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
  }

  .fallback-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
  }

  .fallback-img.show {
    opacity: 1;
  }
}

/* PCでは fallback は非表示 */
@media (min-width: 769px) {
  #hero-fallback-wrapper {
    display: none !important;
  }
}





.testimonial-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center; /* 横中央揃え */
  justify-content: center;
}

.testimonial-row {
  display: flex;
  align-items: center;
  justify-content: center; /* row内中央 */
  gap: 1.5rem;
  margin-bottom: 3rem;
  max-width: 800px;
  width: 100%;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.speech-avatar-lg {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.1rem;
}

.speech-role-inline {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #333;
}

.speech-bubble {
  position: relative;
  background: #fff;
  border: 3px solid #2E2E35;
  border-radius: 20px;
  padding: 1.5rem 1.8rem;
  max-width: 700px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  font-size: 1rem;
  line-height: 2;
  margin: 0 auto;
}

/* 三角形（左側にピタッと寄せて鋭角に） */
.speech-bubble::before {
  content: "";
  position: absolute;
  top: 35%;
  left: -18px; /* 吹き出しの左端から突き出す */
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-right: 18px solid #2E2E35; /* より鋭角に */
}


/* ==== スマホ時は縦並び・三角形は非表示 ==== */
@media (max-width: 768px) {
  .testimonial-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem; /* ★吹き出しと画像の余白を縮める */
  }

  .testimonial-author {
    order: 2;
    margin-top: 0.5rem; /* ★上の余白を狭める */
  }

  .speech-bubble {
    order: 1;
    margin-bottom: 0.5rem; /* ★下の余白を縮める */
  }

  .speech-bubble::before {
    display: none !important; /* 三角形を非表示のまま */
  }
}



.testimonial-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #D20808;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 2px;
}


.highlight-paragraph {
  background-color: #333333;
  color: #fff;
  font-size: 1.0rem; /* 必要に応じて調整可 */
  padding: 1rem 1.2rem;
  border-radius: 0px;
  line-height: 1.8;
  font-weight: 500;
}



#cta-after-typing .cta-btn-custom {
  display: inline-block;
  padding: 12px 28px;
  background-color: #FFFFFF; /* 任意の赤系 */
  color: #D20808;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 1px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

#cta-after-typing .cta-btn-custom:hover {
  background-color: #A4988D; /* ホバー時 */
  color: #F9F8F8;
}



.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #D20808;
  margin-bottom: 2rem;
}

.strength-box {
  background-color: #fff;
  border: 0px solid #AF1225;
  border-radius: 2px;
  padding: 2rem 1.2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  height: 100%;
}

.strength-box:hover {
  transform: translateY(-5px);
}

.count-number {
  font-size: 3rem;
  font-weight: bold;
  color: #D20808;
  margin-bottom: 1rem;
  transition: 0.4s ease;
}


.bg-image-section {
  position: relative;
  background-image: url('../img/bgstrength.jpg'); /* ← これに修正！ */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 800px;
  color: white;
  z-index: 0;
}

.bg-image-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.bg-image-section > * {
  position: relative;
  z-index: 2;
}


.bg-image-section {
  animation: zoomInSlow 20s ease-in-out infinite alternate;
}

@keyframes zoomInSlow {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.0); /* ← ズームの倍率 */
  }
}

.testimonial-title {
  color: #fff; /* ← 好きなカラーコードに変更 */
}


/* 画像とテキストを左右交互にするためのスタイル */
@media (min-width: 992px) {
  .reverse-row:nth-child(even) .row {
    flex-direction: row-reverse;
  }
}


.strength-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #D20808;
  letter-spacing: 1.5px;
}

.strength-desc {
  font-size: 1rem;
  color: #333;
  line-height: 1.8;
}

.no-shadow-img {
  box-shadow: none !important;
}


.service-points-section img {
  box-shadow: none; /* 念のため影を確実に消す */
  border-radius: 1px;
}

.service-points-section h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #D20808;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.service-points-section p {
  font-size: 1rem;
  line-height: 2;
  color: #2E2E35;
}

.service-points-section img {
  max-width: 85%;        /* 写真をやや小さく表示 */
  height: auto;          /* アスペクト比維持 */
  display: block;        /* ブロック表示 */
  margin: 0 auto;        /* 中央寄せ */
  box-shadow: none;      /* 念のため影を消す */
}

@media (max-width: 768px) {
  .service-points-section img {
    max-width: 100%; /* スマホではフル幅 */
  }
}

.bg-alt {
  background-color: #F9F9F9; /* もしくは #FAFAFA / #F2F2F2 など */
  padding: 2rem;             /* 内側余白を調整（必要に応じて） */
  border-radius: 0px;        /* オプション：角丸 */
}


@media (max-width: 768px) {
  .service-points-section .row {
    flex-direction: column !important;
  }
  
  .service-points-section .col-lg-6 {
    padding-left: 15px;
    padding-right: 15px;
  }

  .service-points-section img {
    margin-top: 1.5rem;
  }
}


#testimonial-title-voice {
  color: #4E3500; /* ← お好みの色コードに変更 */
}




/* ステップボックス */
.step-box {
  background-color: #fff;
  padding: 1.8rem 1rem;
  border-radius: 0px;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

/* 画像サイズ */
.step-image {
  max-width: 100%;       /* 横幅は常に親要素の中に収める */
  height: auto;
  object-fit: cover;
  margin: 1rem 0;
  display: block;
}


/* STEP ラベル */
.step-header {
  font-weight: bold;
  color: #D20808;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* 横向き三角形（PC用） */
.triangle-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 190px;
}

.triangle-arrow svg {
  width: 20px;
  height: 20px;
}

/* モバイル専用三角形 */
.triangle-arrow-mobile {
  display: none;
}

/* モバイル対応 */
@media (max-width: 767px) {
  .triangle-arrow {
    display: none !important;
  }

  .triangle-arrow-mobile {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin: 1.2rem 0 0.5rem 0; /* ← 上を狭く、下も少し調整 */
    transform: rotate(0deg); /* ← 正しく下向きに */
  }

  .triangle-arrow-mobile svg {
    width: 22px;
    height: 22px;
  }

  .step-box {
    margin-bottom: 2rem;
  }
}

/* モバイル用三角形の位置調整 */
@media (max-width: 767px) {
  .triangle-arrow-mobile {
    display: flex;
    justify-content: center;
    margin-top: -10px; /* ← 上に上げる（調整可） */
    margin-bottom: 1rem;
  }
}

@media (max-width: 767px) {
  .step-box {
    width: 90%;             /* カードの横幅を画面の90%に */
    margin: 0 auto 3rem;    /* 自動で中央寄せ + 下に余白 */
    padding: 1.5rem 1rem;   /* 内側余白も調整したい場合はこちら */
  }
}




/* テキスト調整 */
.step-box h5 {
  font-weight: 600;
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #D20808;
}

.step-box p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
}



.howto-section {
  background-color: #BEBEBE !important;
}



.interview-photo {
  max-width: 90%;
  height: auto;
  border-radius: 2px;
}

.interview-title {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: #000000;
}

.interview-summary {
  font-size: 1rem;
  color: #444;
}

.interview-body {
  font-size: 1rem;
  line-height: 2.2;
  color: #333;
  white-space: pre-line;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "serif"; /* 教科書体風フォント */
}

.interview-speaker {
  color: #D20808;
  font-size: 0.75rem;
  font-weight: normal;
  display: inline-block;
  margin-bottom: 0.2rem;
}



/* 画像は全幅で自然に表示 */
.interview-photo-wrapper {
  width: 100%;
}

.interview-photo {
  width: 100%;
  height: auto;
  display: block;
}

/* テキストだけ幅を制限 */
.interview-text-wrapper {
  width: 100%; /* 画像と同じ横幅に */
  max-width: 100%;
  text-align: center;
}


/* 見出し調整 */
.interview-title {
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.6;
  text-align: center;
  margin: 0 auto 1rem auto;
  width: 100%;
  max-width: 100%;
}


/* 教授名の調整 */
.interview-summary {
  font-size: 0.95rem;
  color: #333;
  text-align: center;
}




/* Q&Aセクションベース */
.qa-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.qa-item {
  border: 1px solid #ddd;
  border-radius: 1px;
  margin-bottom: 1rem;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.qa-question {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1rem 1.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  word-break: break-word; /* ← 長い文でも折り返し */
  white-space: normal;     /* ← nowrap を解除 */
  box-sizing: border-box;
}


.qa-question::after {
  content: none !important;
  display: none !important;
}


.qa-item.open .qa-question::after {
  transform: translateY(-50%) rotate(180deg);
}

.qa-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.2rem;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.7;
}

/* 開いたとき（JSで max-height を動的に設定） */
.qa-item.open .qa-answer {
  padding-top: 0.5rem;
}

.qa-section {
  background-color: #444;  /* ← この色を変更 */
}



.story-section {
  background-color: #fdfdfd;
}

.story-text {
  max-width: 800px;
}

.story-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.story-text p {
  font-size: 1rem;
  line-height: 2.2;
  color: #333;
  white-space: pre-line;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

