/* Tailwind-like Utility Classes */
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.mb-8 { margin-bottom: 2rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-12 { margin-top: 3rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-gray-600 { color: #4b5563; }
.text-gray-400 { color: #9ca3af; }
.text-gray-800 { color: #1f2937; }
.font-medium { font-weight: 500; }
.text-center { text-align: center; }
.bg-white { background-color: #ffffff; }
.rounded-lg { border-radius: 0.5rem; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.space-y-4 > * + * { margin-top: 1rem; }

/* 通常投稿用スタイル */
.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.post-title {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.post-meta {
  color: #6b7280;
  font-size: 0.875rem;
}

.post-content {
  line-height: 1.8;
  color: #374151;
}

.post-content h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 4px solid #9667FF;
}

.post-content h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.post-content p {
  margin-bottom: 1rem;
}

.post-content ul, .post-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

/* 目次スタイル */
.table-of-contents {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.toc-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #333;
}

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

.toc-list li {
    margin: 8px 0;
}

.toc-list a {
    color: #0066cc;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.2s ease;
}

.toc-list a:hover {
    color: #004499;
    text-decoration: underline;
}

.toc-item-h2 {
    font-weight: 500;
}

.toc-item-h3 {
    padding-left: 20px;
    font-size: 14px;
}

/* フローチャートのスタイル */
.flowchart-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    padding: 2rem 0;
}

.flowchart-step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
}

.flowchart-step:hover {
    transform: translateX(10px);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: #7E3FFC; /* クライアント側のデフォルト色 */
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* パートナー側のアイコン色 */
.flow-column:nth-child(2) .step-icon {
    background: #04C998;
}

.step-number {
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.2;
}

.step-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #6B7280;
    font-size: 0.875rem;
}

/* 詳細ガイドのスタイル */
.guide-steps {
    display: grid;
    gap: 2rem;
}

.guide-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.guide-step:hover {
    transform: translateY(-5px);
}

.step-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.step-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-details h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1F2937;
}

.step-details p {
    color: #6B7280;
    line-height: 1.6;
}

.step-details ul {
    list-style: none;
    padding: 0;
}

.step-details li {
    color: #6B7280;
    margin-bottom: 0.5rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .guide-step {
        grid-template-columns: 1fr;
    }
    
    .flowchart-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-icon {
        margin-bottom: 1rem;
    }
}

/* iframeのスタイル */
.header-iframe {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.footer-iframe {
    margin-top: 4rem;
}

/* メインコンテンツのマージン調整 */
main {
    margin-top: 60px; /* ヘッダーの高さ分 */
}

/* ステップカードのスタイル */
.step-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: #ffbf00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: #6B7280;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.step-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: #ffbf00;
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.step-button:hover {
    background: #e6ac00;
}

/* サポートカードのスタイル */
.support-card {
    text-align: center;
    padding: 2rem;
}

.support-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 1rem;
}

.support-card p {
    color: #6B7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.support-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: #F3F4F6;
    color: #ffbf00;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.support-button:hover {
    background: #E5E7EB;
    color: #e6ac00;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .step-card {
        padding: 1.5rem;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* FAQ styles moved to assets/css/components/faq.css */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #FFC107;
    color: #1A1A1A;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #FFB300;
    transform: translateY(-2px);
}

/* フッター */
.footer {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    text-align: center;
    color: #6c757d;
}

/* フッターを下部に固定するためのスタイル */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Noto Sans JP', sans-serif;
}

main {
    flex: 1;
}

/* フッターのスタイル */
footer {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-top: auto;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

footer p {
    color: #6c757d;
    margin-bottom: 1rem;
}

footer nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

footer a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #343a40;
}

@media (max-width: 640px) {
    footer nav {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ご利用ガイドページ専用スタイル */
.guide-header {
  background-color: #FFC107;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guide-logo img {
  height: 32px;
}

.guide-logo-img {
  height: 120px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  display: block;
  max-height: 120px; /* 最大高さを明示的に設定 */
  object-fit: contain; /* 画像のアスペクト比を保持しつつ、指定サイズ内に収める */
  transition: opacity 0.3s ease-in-out; /* スムーズな表示 */
}

.guide-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px;
}

.guide-title {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.guide-description {
  text-align: center;
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.flow-box {
  background: white;
  border-radius: 0.5rem;
  padding: 3rem 2rem;
  margin-bottom: 4rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.flow-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  text-align: center;
  color: #333;
}

.flow-preparation-notice {
  text-align: center;
  color: #ff6b6b;
  font-size: 1.1rem;
  font-weight: 600;
  margin: -1rem 0 2rem 0;
  padding: 0.5rem 1rem;
  background-color: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 0.375rem;
  display: inline-block;
  margin-left: 50%;
  transform: translateX(-50%);
}

.flow-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.flow-columns {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  justify-content: center;
}

.flow-column {
  flex: 1;
  max-width: 520px;
}

.flow-column-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.flow-column-label {
  font-size: 0.875rem;
  color: #999;
  font-weight: normal;
  margin-top: 0.5rem;
}

.client-illustration, .partner-illustration {
  margin-bottom: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px; /* 縦幅を統一 */
}

.illustration-img {
  max-height:200px;
  width: auto;
  margin-bottom: 1rem;
}

.illustration-text {
  font-size: 0.875rem; /* 14px */
  color: #666;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  min-height: 100px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-decoration: none; /* リンクの下線を消す */
  color: inherit; /* テキストの色を継承 */
  cursor: pointer; /* クリック可能に変更 */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.step-item:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.02);
}

.step-item.client:hover .step-badge { opacity: 1; }

.step-item.partner:hover .step-badge { opacity: 1; }

.step-item.reverse {
    min-height: 100px;
  max-width: 520px;
  }

.step-item.reverse .step-badge {
  margin-right: 0;
  margin-left: 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 15% 100%, 0 50%);
}

.step-badge {
  width: 80px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
  margin-right: 1.25rem;
  flex-shrink: 0;
  border-radius: 0.5rem 0 0 0.5rem;
  overflow: hidden;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.step-badge.client {
  background-color: #9667FF;
}

.step-badge.partner {
  background-color: #00BE00;
}

.step-text {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  margin-bottom: 0.25rem;
  font-weight: normal;
}

.step-number {
  font-size: 2rem;
  line-height: 1;
  font-weight: bold;
}

.step-icon-container {
  margin-right: 2rem;
  flex-shrink: 0;
  padding: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.step-icon-img {
  width: 100%;
  max-width: 4.25rem;
  height: 4.25rem;
  object-fit: contain;
}

.step-content {
  flex: 1;
  /* padding: 1.5rem 0; */
}

.step-title {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
}

.step-arrow {
  margin-left: 1rem;
  margin-right: 1.25rem;
  color: #666;
  font-size: 1.25rem;
  flex-shrink: 0;
  padding: 1rem 0;
  /* opacity: 0 !important; step-arrowを透明にする */
}

.help-box, .faq-box, .contact-box {
  text-align: center;
  background: white;
  border-radius: 0.5rem;
  padding: 3rem 2rem;
  margin-bottom: 4rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.help-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.help-icon img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
}

.help-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.help-description {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.help-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.help-button {
  background: #f9f9f9;
  border-radius: 0.5rem;
  padding: 1.25rem 2rem;
  font-size: 1rem;
  color: #666;
  border: none;
  cursor: pointer;
  min-width: 220px;
  text-align: center;
}

.contact-button, .more-button {
  font-size: 1rem; /* 16px */
  color: #FFFFFF; /* 白 */
  font-weight: 500; /* ウェイト */
  background-color: #000000; /* 黒 */
  border-radius: 0.5rem; /* 8px */
  padding: 1rem 1.125rem; /* 上下16px, 左右18px */
  transition: background-color 0.3s ease;
}

.contact-button:hover, .more-button:hover {
  background-color: #333333; /* ホバー時の背景色 */
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .guide-container {
        padding-left: 16;
        padding-right: 16;
        }
    .header-content, .footer-content {
        padding: 0 0.5rem;
    }
}

@media (max-width: 768px) {
    .flow-columns {
        flex-direction: column;
        gap: 3rem;
      }
      
      .flow-column {
        max-width: 100%;
      }
      
      .step-item {
        max-width: 100%;
      }
      
      .illustration-img {
        max-width: 180px;
      }

    .header-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
.guide-description{
    padding: 0 1rem;
}

    .flowchart-container, .guide-steps {
        padding: 1rem 0;
    }

    .flowchart-step, .guide-step {
        flex-direction: column;
        text-align: center;
    }

    .step-icon {
        margin-bottom: 1rem;
    }

    .faq-categories-desktop {
        display: none;
    }

    .faq-categories-mobile {
        display: block;
    }
}

@media (max-width: 640px) {
    .main-content {
        padding: 0rem;
    }
    .flow-box, .help-box, .faq-box {
        padding: 3rem 1rem;
    }
    .step-card {
        padding: 1rem;
    }
    .faq-item{
        padding: 0;
    }
}

@media (max-width: 400px) {
    .step-badge{
        width: 70px;
        margin-right: 0.75rem;
    }
    .step-icon-container {
        margin-right: 0.5rem;
    }

    .main-content {
        padding: 0rem;
    }
    .flow-box, .help-box, .faq-box {
        padding: 3rem 1rem;
    }
    .step-card {
        padding: 1rem;
    }
    .faq-item{
        padding: 0;
    }
}

/* スマホ版のみ表示される選択ボタン */
.flow-select-buttons {
  display: none;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.flow-select-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.5em 0.25em;
  font-size: 1rem;
  border: none;
  border-radius: 0.5em;
  background: #f3f4f6;
  color: #333;
  font-weight: bold;
  align-items: center;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.flow-select-btn.flow-column-label{
    font-size: 0.75rem;
    color: #999;
    font-weight: normal;
    margin-top: 0.375rem;
}
.flow-select-btn.client {
  background: #EAE1FF;
  color: #9667FF;
}
.flow-select-btn.partner {
  background: #E5F8E5;
  color: #00BE00;
}
.flow-select-btn.client:active, .flow-select-btn.client:focus {
  background: #ddd6fe;
}
.flow-select-btn.partner:active, .flow-select-btn.partner:focus {
    background: #D3EDD0;
  }

@media (max-width: 768px) {
  .flow-select-buttons {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
  }
}

/* パンくずリストのリンクの下線を非表示 */
nav a {
  text-decoration: none !important;
}

nav a:hover {
  text-decoration: none !important;
} 