/* カスタムフォント mynewfont の定義 */
@font-face {
  font-family: 'mynewfont';
  src: url('https://cdn.shopify.com/s/files/1/0776/1379/3576/files/myfont-otf-th.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'mynewfont';
  src: url('https://cdn.shopify.com/s/files/1/0776/1379/3576/files/myfont-otf-rg.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'mynewfont';
  src: url('https://cdn.shopify.com/s/files/1/0776/1379/3576/files/myfont-otf-bd.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'mynewfont';
  src: url('https://cdn.shopify.com/s/files/1/0776/1379/3576/files/myfont-otf-eb.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

.alert-title-strong {
  font-weight: 900;
}


div.content img {
  max-height: 600px;  /* 最大高さを制限 */
  height: auto;       /* アスペクト比を維持 */
  max-width: 100%;    /* 横幅は本文の幅を超えないように */
  display: block;     /* レイアウト崩れ防止（任意） */
  margin: 1em auto;   /* 中央寄せ（任意） */
  object-fit: contain; /* はみ出し防止（任意） */
}

article > main > div.content {
  padding-top: 30px;
  padding-bottom: 30px;
  margin-top: 15px;
  border-top: 3px dashed #252525;
}

article > main > div.content  a {
  font-weight: 700;
}

* {
  font-family: "mynewfont", "Noto Sans JP", sans-serif!important;
  font-optical-sizing: auto;
  font-style: normal;
}


.content h2{
  border: 3px solid #121212;
  font-size: clamp(20px, 15.3934px + .6006vw, 30px);
  font-weight: 900;
  border-radius: 10px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .14);
  background-color: #fff;
  line-height: 1.4;
  margin-bottom: 1.4rem;
  padding: 1rem 2rem;
}


.content h3 {
  border-bottom:2px solid #000;
  border-left:0px solid #000;
  padding: 1rem 2rem;
  font-weight: 900!important;
}

h3 {  font-weight: 700!important;}


h1{
  font-weight: 900!important;

}



.hextra-toc a.active {
  color: #333333;
  font-weight: 900;
  background: #FDF6B2;
  padding: 0.5rem;
}


/* テーブルのラッパー：スマホで横スクロール可能に */
.content table {
  display: table !important;
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

/* デスクトップでは通常表示 */
@media (min-width: 769px) {
  .content table {
    table-layout: fixed;
  }
}

/* スマホでは横スクロール可能に */
@media (max-width: 768px) {
  .content {
    overflow-x: visible;
  }
  
  .content table {
    display: block !important;
    width: max-content !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap;
    /* スクロール可能であることを視覚的に示す */
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
  }
  
  /* スクロールバーのスタイリング */
  .content table::-webkit-scrollbar {
    height: 8px;
  }
  
  .content table::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }
  
  .content table::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
  }
  
  .content table::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
  }
}

th, td {
  text-align: center;
  padding: 8px;
  border: 1px solid #ccc;
  word-wrap: break-word;
}

/* スマホでのセル調整 */
@media (max-width: 768px) {
  th, td {
    padding: 10px 12px;
    min-width: 100px; /* 最小幅を確保 */
    white-space: normal; /* 必要に応じて折り返し */
  }
}


.faq-block {
  margin-top: 2em;
  margin-bottom: 2em;
}

.faq-item {
  margin-bottom: 1.2em;
  background: #f9f9f9;
  border-left: 4px solid #0af;
  padding: 1em;
  border-radius: 8px;
}

.faq-question {
  font-weight: bold;
}

.faq-answer {
  margin-top: 0.5em;
}

hr {margin: 20px;
  color:#eee;}

/* ブログ記事内のリストスタイル */
.content ul:not(:where([class~=not-prose],[class~=not-prose] *)),
.content ol:not(:where([class~=not-prose],[class~=not-prose] *)) {
  list-style: none;
  border: 1px solid #e5e7eb;
  border-radius: .5em;
  background: #fafbfc;
  padding: 1em 2em;
  margin-bottom: 1.5em;
  margin-left: 0;
  margin-right: 0;
}

/* リスト項目の点線区切り */
.content ul:not(:where([class~=not-prose],[class~=not-prose] *)) li,
.content ol:not(:where([class~=not-prose],[class~=not-prose] *)) li {
  border-bottom: 1px dashed #d1d5db;
  padding: 0.75em 0;
  margin: 0;
}

/* 最後の項目には下線を表示しない */
.content ul:not(:where([class~=not-prose],[class~=not-prose] *)) li:last-child,
.content ol:not(:where([class~=not-prose],[class~=not-prose] *)) li:last-child {
  border-bottom: none;
}

/* 番号付きリストのカウンター */
.content ol:not(:where([class~=not-prose],[class~=not-prose] *)) {
  counter-reset: list-counter;
}

.content ol:not(:where([class~=not-prose],[class~=not-prose] *)) li {
  counter-increment: list-counter;
  position: relative;
  padding-left: 2em;
}

.content ol:not(:where([class~=not-prose],[class~=not-prose] *)) li::before {
  content: counter(list-counter) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #4b5563;
}

/* 箇条書きリストのマーカー */
.content ul:not(:where([class~=not-prose],[class~=not-prose] *)) li {
  position: relative;
  padding-left: 2em;
}

.content ul:not(:where([class~=not-prose],[class~=not-prose] *)) li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: #4b5563;
}

/* ネストされたリストの調整 */
.content ul:not(:where([class~=not-prose],[class~=not-prose] *)) ul,
.content ol:not(:where([class~=not-prose],[class~=not-prose] *)) ol,
.content ul:not(:where([class~=not-prose],[class~=not-prose] *)) ol,
.content ol:not(:where([class~=not-prose],[class~=not-prose] *)) ul {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
  border: none;
  background: transparent;
  padding: 0;
}

/* スマホでの検索結果表示を最適化 */
@media (max-width: 768px) {
  /* 検索バーをスマホで最適化 */
  .hextra-ja-search {
    width: 100% !important;
    max-width: none !important;
  }
  
  .hextra-ja-search-input {
    font-size: 16px !important; /* iOSでズームを防ぐ */
    padding: 14px 12px 14px 44px !important;
  }
  
  /* スマホでの検索結果表示を最適化 */
  .hextra-ja-search-results {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90vw !important;
    max-width: 90vw !important;
    max-height: 70vh !important;
    border-radius: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    background: white !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  }
  
  .hextra-ja-item {
    padding: 16px 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* 検索候補の幅を画面幅に合わせて調整 */
  .hextra-ja-search-results .hextra-ja-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 16px 20px !important;
  }
  
  /* 検索候補のテキストを画面幅に合わせて調整 */
  .hextra-ja-search-results .hextra-ja-item .hextra-ja-title,
  .hextra-ja-search-results .hextra-ja-item .hextra-ja-snip {
    width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* 検索候補のコンテナ全体を画面幅に */
  .hextra-ja-search-results > div {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* スクロールバーのスタイリング */
  .hextra-ja-search-results::-webkit-scrollbar {
    width: 6px !important;
  }
  
  .hextra-ja-search-results::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 3px !important;
  }
  
  .hextra-ja-search-results::-webkit-scrollbar-thumb {
    background: #c1c1c1 !important;
    border-radius: 3px !important;
  }
  
  .hextra-ja-search-results::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8 !important;
  }
}

/* スピーチカードスタイル */
.speech-card {
  border-radius: 12px;
  padding: 1em 1.2em;
  margin: 1.2em 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  line-height: 1.7;
}

.speech-card-left {
  background: #fef3c7;
  border-left: 6px solid #f59e0b;
  margin-right: 2rem;
}

.speech-card-right {
  background: #dbeafe;
  border-left: 6px solid #3b82f6;
  margin-left: 2rem;
}

@media (max-width: 640px) {
  .speech-card-left {
    margin-right: 1rem;
  }
  
  .speech-card-right {
    margin-left: 1rem;
  }
}

.dark .speech-card-left {
  background: #451a03;
  border-left: 6px solid #f59e0b;
}

.dark .speech-card-right {
  background: #1e3a8a;
  border-left: 6px solid #60a5fa;
}

.speech-card .speech-name {
  font-weight: 600;
  margin-bottom: 0.4em;
  font-size: 0.95em;
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.speech-card .speech-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.speech-card-left .speech-name {
  color: #92400e;
}

.speech-card-right .speech-name {
  color: #1e40af;
}

.dark .speech-card-left .speech-name {
  color: #fbbf24;
}

.dark .speech-card-right .speech-name {
  color: #93c5fd;
}

.speech-card .speech-text {
  color: #333;
  font-size: 1em;
  white-space: pre-line;
}

.dark .speech-card .speech-text {
  color: #e5e7eb;
}

/* ヒーローセクションのスタイリング */
#lottie-animation {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.dark #lottie-animation {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

/* ヒーローセクションのアニメーション */
.hero-section {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ヒーローテキストのアニメーション */
.hero-title {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-button {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Expert of アニメーション */
#expert-skill {
  animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
  0%, 20% {
    opacity: 1;
    transform: translateY(0);
  }
  25%, 75% {
    opacity: 0;
    transform: translateY(-10px);
  }
  80%, 100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* レスポンシブ調整 */
@media (max-width: 1024px) {
  .hero-section > div {
    flex-direction: column !important;
    gap: 2rem !important;
    text-align: center !important;
  }
  
  .hero-section > div > div:last-child {
    text-align: center !important;
  }
  
  .hero-section > div > div:last-child > div {
    justify-content: center !important;
  }
}

@media (max-width: 768px) {
  .hero-section > div {
    padding: 0 1rem !important;
    gap: 1.5rem !important;
  }
  
  .hero-section h1 {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
  }
  
  .hero-section p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }
  
  #lottie-container {
    height: 20rem !important;
  }
  
  .hero-section > div > div:first-child > div {
    max-width: 20rem !important;
    height: 20rem !important;
  }
}

/* おすすめサービスセクションのアニメーション */
.hextra-feature-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
  margin: 0.5rem;
}

.hextra-feature-card:nth-child(1) { animation-delay: 0.1s; }
.hextra-feature-card:nth-child(2) { animation-delay: 0.2s; }
.hextra-feature-card:nth-child(3) { animation-delay: 0.3s; }
.hextra-feature-card:nth-child(4) { animation-delay: 0.4s; }
.hextra-feature-card:nth-child(5) { animation-delay: 0.5s; }
.hextra-feature-card:nth-child(6) { animation-delay: 0.6s; }

.hextra-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* おすすめサービスセクションのレスポンシブ調整 */
@media (max-width: 1024px) {
  .hextra-feature-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
  }
}

@media (max-width: 768px) {
  .hextra-feature-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .hextra-feature-card {
    margin-bottom: 1.5rem;
  }
}


pre{
  padding: 10px 20px;
  margin: 10px;
}