* {
    box-sizing: border-box;
}

html, body {
    background-color: #f7f5f3;
    overflow-x: hidden; /*横スクロールバーを消す */
    width: 100%;
    margin: 0;
    padding: 0;
}
/* FullPage.js の余白調整 */
.fp-enabled body {
    margin: 0 !important;
    padding: 0 !important;
}

/* fullpageコンテナの位置調整 */
#fullpage .section {
    padding: 0 !important;
}

/* fullpage.js使用時のlayout.htmlのcontainerを非表示 */
body.fp-enabled .container:not(#fullpage .container) {
    display: none !important;
}

/* fullpage.js使用時のlayout.htmlのrowを非表示 */
body.fp-enabled .row:not(#fullpage .row) {
    display: none !important;
}

/* fullpage.js専用のスタイル */
#fullpage {
    margin: 0 !important;
    padding: 0 !important;
}

/* home.css に追加するCSS - Offcanvas対応 */

/* Offcanvasが開いている時のfullPage.js無効化 */
body.offcanvas-open,
body.fp-disabled,
body.menu-active {
    overflow: visible !important;
    height: auto !important;
}

html.offcanvas-open,
html.fp-disabled,
html.menu-active {
    overflow: visible !important;
    height: auto !important;
}

/* fullPage.jsコンテナの無効化 */
.offcanvas-open #fullpage,
.fp-disabled #fullpage {
    height: auto !important;
    overflow: visible !important;
    transform: none !important;
    position: static !important;
}

.offcanvas-open .fp-section,
.fp-disabled .fp-section {
    height: auto !important;
    min-height: 100vh;
    transform: none !important;
    position: static !important;
    align-items: center !important;
    justify-content: center !important;
    display: flex !important;
}

.offcanvas-open .fp-tableCell,
.fp-disabled .fp-tableCell {
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Offcanvasのz-indexを最前面に */
.offcanvas {
    z-index: 9999 !important;
}

.offcanvas-backdrop {
    z-index: 9998 !important;
}

/* fullPage.jsのナビゲーションドットを隠す */
.offcanvas-open #fp-nav,
.fp-disabled #fp-nav {
    display: none !important;
}

/* Offcanvasが開いている間のボディスクロール制御 */
.offcanvas-open {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* Offcanvas内のスクロール */
.offcanvas.show {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* タッチデバイスでの調整 */
@media (max-width: 768px) {
    .offcanvas-open #fullpage {
        padding-top: 0;
    }
}

/* スムーズなトランジション */
#fullpage {
    transition: height 0.3s ease, overflow 0.3s ease, transform 0.3s ease;
}

.fp-section {
    transition: height 0.3s ease, transform 0.3s ease;
}

/* iOS Safari用の特別な設定 */
@supports (-webkit-touch-callout: none) {
    .offcanvas-open,
    .menu-active {
        -webkit-overflow-scrolling: touch;
    }
    
    .offcanvas-open #fullpage,
    .fp-disabled #fullpage {
        -webkit-transform: none !important;
        transform: none !important;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}

/* デバッグ用（開発時のみ使用） */
.debug-offcanvas::before {
    content: 'Offcanvas: ' attr(data-offcanvas-state);
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 123, 255, 0.8);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    z-index: 10000;
    border-radius: 3px;
}

/* 高解像度ディスプレイでの調整 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .offcanvas-open #fullpage,
    .fp-disabled #fullpage {
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}

/* コンテナの幅を制限 */
.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100%;
}

/* 列の幅を制限 */
[class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
}

/* 特に最後のセクションの中央配置を強化 */
.section:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.section:last-child .row {
    width: 100%;
    text-align: center;
}

/* すべてのセクションで垂直中央配置 */
.section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0 20px;
}

/* 画像の最大幅を制限 */
img {
    max-width: 100%;
    height: auto;
}

/*page0*/
/* Avisptosisロゴのスタイル */
.avisptosis-logo {
    max-width: 800px; /* ロゴの最大幅を調整 */
    width: 80%; /* レスポンシブ対応 */
    height: auto;
    margin-bottom: 20px; /* ロゴとテキストの間に余白を追加 */
}
/* サブタイトルのスタイル */
.subtitle-text {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}
/* 説明文のスタイル */
.description-text {
    color: #333;
    max-width: 800px;
    margin: 0 auto;
}

/*page1*/
.text-content {
    padding: 3rem;
}
.bold-text {
    font-weight: bold;
}

/*page2*/
.chickens-died-image {
    max-width: 80%; /* 画像の最大幅を調整 */
    height: auto;
}
.chicken-caption {
    font-size: 1.5rem;
    color: #333;
    margin-top: 10px;
}
.chicken-caption2 {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    text-align: left;
    max-width: 80%;
}

/*page5---------*/
.responsive-title {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    line-height: 1.4;
    font-weight: 400;
    max-width: 100%;
}
.responsive-diagram {
    max-height: 55vh;
    max-width: 90%;
    object-fit: contain;
}

/* Bootstrap gapクラスが使えない場合の代替 */
.gap-2 > * + * {
    margin-top: 1rem !important;
}

/* タブレット・デスクトップ調整 */
@media (min-width: 992px) {
    .responsive-title {
        font-size: clamp(1.2rem, 2.2vw, 1.5rem);
        line-height: 1.3;
    }
    .responsive-diagram {
        max-height: 60vh;
        max-width: 95%;
    }
    
    .gap-2 > * + * {
        margin-top: 1.25rem !important;
    }
}

/* モバイル調整 */
@media (max-width: 768px) {
    .responsive-diagram {
        max-height: 40vh;
        max-width: 100%;
    }
    .gap-2 > * + * {
        margin-top: 0.75rem !important;
    }
}

/*page7 advantage-card*/
.section-content {
    padding: 20px;
    text-align: left;
}
        
.section-content h2 {
    text-align: left;
}
        
.advantages-container {
    text-align: left;
}

.advantage-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
        
.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}
        

        
.advantage-card:hover::before {
    width: 6px;
}
        
.advantage-number {
    font-size: 2rem;
    font-weight: bold;
    color: #7a9b57;
    margin-right: 15px;
    display: inline-block;
    min-width: 40px;
}
        
.advantage-text {
    font-size: 1.25rem;
    color: #333;
    margin: 0;
    display: inline-block;
    vertical-align: top;
}
        
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
        
.advantage-card {
    animation: fadeInUp 0.6s ease-out forwards;
}
        
.advantage-card:nth-child(1) { animation-delay: 0.1s; }
.advantage-card:nth-child(2) { animation-delay: 0.2s; }
.advantage-card:nth-child(3) { animation-delay: 0.3s; }
.advantage-card:nth-child(4) { animation-delay: 0.4s; }

/*-----------page6-----------*/
.section:nth-child(7) {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

.section:nth-child(7) .container-fluid {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.section:nth-child(7) .row {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* アニメーションコンテナの調整 */
#bm {
  margin-bottom: 10px !important;
}

/* アニメーション下のテキストとの間隔を狭める */
.section:nth-child(7) .responsive-title {
  margin-top: 10px !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
}

/* セクション全体の上下パディングを調整（必要に応じて） */
.section:nth-child(7) .d-flex {
  gap: 0.5rem !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .section:nth-child(7) {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
  }
  
  #bm {
    height: 60vh !important;
    margin-bottom: 5px !important;
  }
  
  .section:nth-child(7) .responsive-title {
    margin-top: 5px !important;
    font-size: 1.1rem !important;
  }
}
/*----------------page8--------*/
.section-image {
    max-height: 45vh;
    object-fit: contain;
    margin-top: 2rem;
}

.section h3 {
    font-weight: normal; /* または font-weight: 400; */
}

@media (max-height: 600px) {
    .section-image {
        max-height: 30vh;
        margin-top: 1.5rem;
    }
}
/*--------------------------tour-map----------------------------*/

/* Page10 Timeline セクションの修正 */

/* セクション全体の設定 */
.section:nth-child(10) {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 2rem 1rem !important;
    overflow: hidden !important;
    min-height: 100vh !important;
    height: 100vh !important;
}

.section:nth-child(10) .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.section:nth-child(10) .row {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.timeline-title {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700 !important;
    color: #333;
    margin-bottom: 0;
    margin-top: 3rem;
    text-align: center;
    width: 100%;
}

.arrow-timeline-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0.1rem;
    min-height: 500px;
    overflow: hidden !important;
}

/* SVG道路 */
.road-svg {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: clamp(200px, 30vh, 300px);
    transform: translateY(-50%);
    z-index: 1;
}

/* 道路の影 */
.road-shadow {
    stroke: rgba(0, 0, 0, 0.2);
    stroke-width: 85;
    stroke-linecap: round;
    filter: blur(5px);
}

/* 道路本体 */
.road-path {
    stroke: #b8b8b8;
    stroke-width: 80;
    stroke-linecap: round;
}

/* 白い破線 */
.road-dashed {
    stroke: white;
    stroke-width: 4;
    stroke-dasharray: 30 30;
    stroke-linecap: round;
}

/* ジグザグ配置のコンテナ */
.zigzag-circles {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 2;
    padding: 0 clamp(20px, 3vw, 50px);
    overflow: visible;
    box-sizing: border-box;
}

/* タイムライン円アイテム */
.timeline-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex: 0 1 auto;
    max-width: clamp(80px, 15vw, 220px);
    position: relative;
    min-width: 0;
}

/* SVG道路の高さ(30vh)に連動した配置 */
.timeline-circle-item:nth-child(1) {
    margin-bottom: calc(30vh * 0.05);
    margin-top: calc(30vh * -0.05);
}

.timeline-circle-item:nth-child(2) {
    margin-top: calc(30vh * 1);
    margin-bottom: calc(30vh * -1);
}

.timeline-circle-item:nth-child(3) {
    margin-bottom: calc(30vh * -0.2);
    margin-top: calc(30vh * 0.2);
}

.timeline-circle-item:nth-child(4) {
    margin-top: calc(30vh * 0.8);
    margin-bottom: calc(30vh * -0.8);
}

.timeline-circle-item:nth-child(5) {
    margin-bottom: calc(30vh * -0.05);
    margin-top: calc(30vh * 0.05);
}

.timeline-circle-item:nth-child(6) {
    margin-top: calc(30vh * 1.0);
    margin-bottom: calc(30vh * -1.0);
}

.timeline-circle-item:hover {
    transform: scale(1.08);
    z-index: 10;
}

/* 1. Description - ソフトグリーン */
.timeline-circle-item:nth-child(1) .timeline-circle-new {
    background: linear-gradient(135deg, #a8c5b0 0%, #8fb29c 100%);
}

/* 2. Design - ソフトブルー */
.timeline-circle-item:nth-child(2) .timeline-circle-new {
    background: linear-gradient(135deg, #9eb3c2 0%, #829bb0 100%);
}

/* 3. Results - ソフトラベンダー */
.timeline-circle-item:nth-child(3) .timeline-circle-new {
    background: linear-gradient(135deg, #b3a8c5 0%, #9b8fb2 100%);
}

/* 4. Parts - ソフトピーチ */
.timeline-circle-item:nth-child(4) .timeline-circle-new {
    background: linear-gradient(135deg, #d4a89a 0%, #c4927e 100%);
}

/* 5. Engineering - ソフトゴールド */
.timeline-circle-item:nth-child(5) .timeline-circle-new {
    background: linear-gradient(135deg, #c9b88a 0%, #b3a178 100%);
}

/* 6. iHP - ソフトスレート */
.timeline-circle-item:nth-child(6) .timeline-circle-new {
    background: linear-gradient(135deg, #a8b5b8 0%, #8f9ea1 100%);
}

/* 円のラッパー */
.circle-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* 上の円は円の上にテキスト */
.timeline-circle-item.position-top .circle-wrapper {
    flex-direction: column;
}

/* 下の円は円の下にテキスト */
.timeline-circle-item.position-bottom .circle-wrapper {
    flex-direction: column-reverse;
}

/* 新しい円スタイル */
.timeline-circle-new {
    width: clamp(50px, 10vw, 150px);
    height: clamp(50px, 10vw, 150px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    border: clamp(2px, 0.3vw, 5px) solid white;
    position: relative;
    overflow: hidden;
}

/* 円の中のアイコン */
.circle-icon {
    position: absolute;
    font-size: clamp(1rem, 3.5vw, 5rem);
    color: rgba(255, 255, 255, 0.3);
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.timeline-circle-item:hover .timeline-circle-new {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    transform: translateY(-5px);
}

/* テキストを円の外側に配置 */
.circle-text {
    color: #333;
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    padding: 0;
    background: transparent;
    white-space: nowrap;
    position: relative;
    z-index: 10;
}

/* Timeline リンクのスタイル */
.timeline-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.3s ease;
}

.timeline-link:hover {
    text-decoration: none;
    color: inherit;
    opacity: 0.9;
}

/* 接続線 */
.connector-line {
    width: clamp(2px, 0.3vw, 4px);
    height: clamp(20px, 3vh, 40px);
    background: linear-gradient(180deg, #333 0%, #666 100%);
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* レスポンシブデザイン */
@media (max-width: 1400px) {
    .timeline-circle-new {
        width: 170px;
        height: 170px;
    }
    
    .circle-icon {
        font-size: 4rem;
    }
    
    .circle-text {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 1200px) {
    .timeline-circle-item:nth-child(1) { 
        margin-bottom: calc(30vh * 0.18); 
        margin-top: calc(30vh * -0.18); 
    }
    .timeline-circle-item:nth-child(2) { 
        margin-top: calc(30vh * 0.28); 
        margin-bottom: calc(30vh * -0.28); 
    }
    .timeline-circle-item:nth-child(3) { 
        margin-bottom: calc(30vh * 0.18); 
        margin-top: calc(30vh * -0.18); 
    }
    .timeline-circle-item:nth-child(4) { 
        margin-top: calc(30vh * 0.18); 
        margin-bottom: calc(30vh * -0.18); 
    }
    .timeline-circle-item:nth-child(5) { 
        margin-bottom: calc(30vh * 0.18); 
        margin-top: calc(30vh * -0.18); 
    }
    .timeline-circle-item:nth-child(6) { 
        margin-top: calc(30vh * 0.23); 
        margin-bottom: calc(30vh * -0.23); 
    }

    .timeline-circle-new {
        width: 140px;
        height: 140px;
        border: 4px solid white;
    }
    
    .circle-icon {
        font-size: 3rem;
    }
    
    .circle-text {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }
    
    .connector-line {
        height: 60px;
    }
}

@media (max-width: 992px) {
    .timeline-circle-item:nth-child(1) { 
        margin-bottom: calc(30vh * 0.16); 
        margin-top: calc(30vh * -0.16); 
    }
    .timeline-circle-item:nth-child(2) { 
        margin-top: calc(30vh * 0.24); 
        margin-bottom: calc(30vh * -0.24); 
    }
    .timeline-circle-item:nth-child(3) { 
        margin-bottom: calc(30vh * 0.16); 
        margin-top: calc(30vh * -0.16); 
    }
    .timeline-circle-item:nth-child(4) { 
        margin-top: calc(30vh * 0.16); 
        margin-bottom: calc(30vh * -0.16); 
    }
    .timeline-circle-item:nth-child(5) { 
        margin-bottom: calc(30vh * 0.16); 
        margin-top: calc(30vh * -0.16); 
    }
    .timeline-circle-item:nth-child(6) { 
        margin-top: calc(30vh * 0.20); 
        margin-bottom: calc(30vh * -0.20); 
    }

    .timeline-circle-new {
        width: 110px;
        height: 110px;
        border: 3px solid white;
    }
    
    .circle-icon {
        font-size: 2rem;
    }
    
    .circle-text {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
    
    .connector-line {
        height: 45px;
        width: 3px;
    }
}

@media (max-width: 768px) {
    .timeline-circle-item:nth-child(1) { 
        margin-bottom: calc(30vh * 0.14); 
        margin-top: calc(30vh * -0.14); 
    }
    .timeline-circle-item:nth-child(2) { 
        margin-top: calc(30vh * 0.20); 
        margin-bottom: calc(30vh * -0.20); 
    }
    .timeline-circle-item:nth-child(3) { 
        margin-bottom: calc(30vh * 0.14); 
        margin-top: calc(30vh * -0.14); 
    }
    .timeline-circle-item:nth-child(4) { 
        margin-top: calc(30vh * 0.14); 
        margin-bottom: calc(30vh * -0.14); 
    }
    .timeline-circle-item:nth-child(5) { 
        margin-bottom: calc(30vh * 0.14); 
        margin-top: calc(30vh * -0.14); 
    }
    .timeline-circle-item:nth-child(6) { 
        margin-top: calc(30vh * 0.18); 
        margin-bottom: calc(30vh * -0.18); 
    }

    .timeline-circle-new {
        width: 80px;
        height: 80px;
        border: 3px solid white;
    }
    
    .circle-icon {
        font-size: 1.5rem;
    }
    
    .circle-text {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
    
    .connector-line {
        height: 35px;
        width: 3px;
    }
}

@media (max-width: 576px) {
    .timeline-circle-item:nth-child(1) { 
        margin-bottom: calc(30vh * 0.12); 
        margin-top: calc(30vh * -0.12); 
    }
    .timeline-circle-item:nth-child(2) { 
        margin-top: calc(30vh * 0.18); 
        margin-bottom: calc(30vh * -0.18); 
    }
    .timeline-circle-item:nth-child(3) { 
        margin-bottom: calc(30vh * 0.12); 
        margin-top: calc(30vh * -0.12); 
    }
    .timeline-circle-item:nth-child(4) { 
        margin-top: calc(30vh * 0.12); 
        margin-bottom: calc(30vh * -0.12); 
    }
    .timeline-circle-item:nth-child(5) { 
        margin-bottom: calc(30vh * 0.12); 
        margin-top: calc(30vh * -0.12); 
    }
    .timeline-circle-item:nth-child(6) { 
        margin-top: calc(30vh * 0.15); 
        margin-bottom: calc(30vh * -0.15); 
    }

    .timeline-circle-new {
        width: 60px;
        height: 60px;
        border: 2px solid white;
    }
    
    .circle-icon {
        font-size: 1rem;
    }
    
    .circle-text {
        font-size: 0.5rem;
        padding: 0.15rem 0.3rem;
    }
    
    .connector-line {
        height: 25px;
        width: 2px;
    }
}

/*-----------page10----------*/
.project-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
    height: 100%;
}
.project-link:hover {
    text-decoration: none;
    color: inherit;
}

/* プロジェクトカードのスタイル */
.project-card {
  background: transparent;
  border: none;
  border-radius:0;
  box-shadow: none;
  transition: all 0.3s ease;
  min-height: 150px;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px);
  background: transparent;
  border: none;
  box-shadow: none;
}

.project-icon-container img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
}

.project-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.bold-text {
  font-weight: bold;
  color: #2c3e50;
  font-size: 2rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .bold-text {
    font-size: 1.5rem;
  }
  
  .project-title {
    font-size: 0.9rem;
  }
  
  .project-icon-container img {
    width: 50px;
    height: 50px;
  }
  
  .project-card {
    min-height: 120px;
    padding: 1rem !important;
  }
}

@media (max-width: 576px) {
  .bold-text {
    font-size: 1.3rem;
  }
  
  .project-card {
    min-height: 100px;
  }
  
  .project-icon-container img {
    width: 40px;
    height: 40px;
  }
}

/*footer*/
/* シンプルな全幅フッター用のスタイル */
.footer-bg {
    background-image: linear-gradient(to top, #5b7fa6, #f2efea);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 60px 0;
}


.footer-bg .social-icon img {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.footer-bg .social-icon img:hover {
    transform: scale(1.1);
}

.footer-bg a.subfoot {
    color: #5b7fa6;
    text-decoration: none;
}

.footer-bg a.subfoot:hover {
    color: #4a6b8a;
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .footer-bg {
        padding: 40px 0;
    }
    
    .footer-bg .row {
        margin-bottom: 20px !important;
    }
}
/* 超小型画面での調整 */
@media (max-width: 576px) {
    .section:nth-child(10) {
        padding: 1rem 0.5rem !important;
    }
    
    .timeline-title {
        font-size: 1rem;
        margin-bottom: 0.5rem !important;
    }
    
    .zigzag-circles {
        padding: 0 10px;
    }
    
    .timeline-circle-item:nth-child(1) { margin-bottom: 120px; }
    .timeline-circle-item:nth-child(2) { margin-top: 130px; }
    .timeline-circle-item:nth-child(3) { margin-bottom: 70px; }
    .timeline-circle-item:nth-child(4) { margin-top: 80px; }
    .timeline-circle-item:nth-child(5) { margin-bottom: 120px; }
    .timeline-circle-item:nth-child(6) { margin-top: 140px; }
}

/* 縦長画面での調整 */
@media (max-height: 700px) {
    .timeline-circle-item:nth-child(1) { margin-bottom: 100px !important; }
    .timeline-circle-item:nth-child(2) { margin-top: 110px !important; }
    .timeline-circle-item:nth-child(3) { margin-bottom: 60px !important; }
    .timeline-circle-item:nth-child(4) { margin-top: 70px !important; }
    .timeline-circle-item:nth-child(5) { margin-bottom: 100px !important; }
    .timeline-circle-item:nth-child(6) { margin-top: 115px !important; }
    
    .connector-line {
        height: 20px !important;
    }
}

/* 非常に縦長の画面での調整 */
@media (max-height: 600px) {
    .timeline-circle-item:nth-child(1) { margin-bottom: 70px !important; }
    .timeline-circle-item:nth-child(2) { margin-top: 80px !important; }
    .timeline-circle-item:nth-child(3) { margin-bottom: 40px !important; }
    .timeline-circle-item:nth-child(4) { margin-top: 50px !important; }
    .timeline-circle-item:nth-child(5) { margin-bottom: 70px !important; }
    .timeline-circle-item:nth-child(6) { margin-top: 85px !important; }
    
    .connector-line {
        height: 15px !important;
    }
}
/*------------home h4の上書き--------------*/
h4 {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border-left: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    /* font-sizeとfont-weightは継承される */
}