/* フローチャートのスタイル */
.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のスタイル */
.faq-item {
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    transition: background-color 0.3s ease;
    background-color: #FFF8E1;
    position: relative;
    gap: 1rem;
}

.faq-question span {
    font-weight: 500;
    color: #1F2937;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 1rem;
    max-height: 500px;
}

/* FAQページ専用のコンテナスタイル */
.faq-container {
    /* width: 100%; */
    max-width: none;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .faq-container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .faq-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }
}

@media (min-width: 1440px) {
    .faq-container {
        max-width: 1400px;
        padding: 0 3rem;
    }
}

/* FAQページのスタイル */
/* デスクトップ用カテゴリ選択 */
.faq-categories-desktop {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 3rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

/* モバイル用プルダウン */
.faq-categories-mobile {
    display: none;
    margin-bottom: 3rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

.category-select {
    width: 100%;
    padding: 0.7rem 0.75rem;
    border-radius: 8px;
    background-color: #FFF3D4;
    color: #1A1A1A;
    font-weight: 500;
    border: 1px solid #D9D9D9;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

.category-tag {
    background-color: #FFF3D4;
    padding: 0.7rem 0.75rem;
    border-radius: 8px;
    color: #1A1A1A;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-style: none;

}

.category-tag:hover {
    background-color: #FFE5A3;
}

.category-tag.active {
    /* background-color: #FFC107; */ /* アクティブ状態の色変化を無効化 */
}

.faq-section {
    margin-bottom: 3rem;
    width: 100%;
    max-width: 100%;
}

.faq-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1.5px solid #D9D9D9;
    text-align: center;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid #D9D9D9;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.faq-question-content {
    display: flex;
    align-items: center;
    flex: 1;
    padding-left: 2.5rem;
    position: relative;
}

.faq-question-content::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-image: url('../assets/icon/Q-mark.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.faq-question:hover {
    background-color: #FFF3D4;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
    border-top: 1px solid #D9D9D9;
}

.faq-answer-content {
    text-align: left;
    position: relative;
    padding: 1.25rem;
    padding-left: 2.5rem;
    margin-left: 1.25rem;
}

.faq-answer-content::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.25rem;
    transform: none;
    width: 24px;
    height: 24px;
    background-image: url('../assets/icon/A-mark.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: #6B7280;
    z-index: 10;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.faq-icon.active {
    transform: rotate(180deg);
}

.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);
}

/*
@media (max-width: 1024px) {
    .faq-categories {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.5rem;
    }
}
*/

@media (max-width: 768px) {
    .faq-categories-desktop {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .category-tag {
        padding: 0.625rem 0.625rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 640px) {
    .faq-categories-desktop {
        display: none; /* デスクトップ用カテゴリを非表示 */
    }
    
    .faq-categories-mobile {
        display: block; /* モバイル用プルダウンを表示 */
    }
}

/* フッター */
.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: default !important; /* クリック無効化 */
  pointer-events: none !important; /* ポインターイベント無効化 */
  /* transition: background-color 0.3s ease, box-shadow 0.3s ease; */ /* ホバー効果を無効化 */
}

.step-item:hover {
  /* background-color: #e0e0e0; ホバー時の背景色を無効化 */
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); ホバー時のボックスシャドウを無効化 */
}

.step-item.client:hover .step-badge {
    /* background-color: #7A4DFF; クライアントのホバー時の背景色を無効化 */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
}

.step-item.partner:hover .step-badge {
    /* background-color: #009E00; パートナーのホバー時の背景色を無効化 */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.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: 0;
        padding-right: 0;
        }
    .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;
} 