/* =======================================
   Bootstrap組込用 最終カスタムスタイル (ボタン挙動修正版)
   ======================================= */

/* 基本設定 */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: block !important;
}

/* カスタムコンポーネント内の全てのリンクに対するホバー設定 */
/* .ct-layout-a a,
.ct-layout-b a {
    transition: opacity 0.3s ease;
}

.ct-layout-a a:hover,
.ct-layout-b a:hover,
.ct-layout-a a:focus,
.ct-layout-b a:focus {
    opacity: 0.5;
} */

/* ファーストビュー スライドショー */
.ct-fv-slideshow {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.ct-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.ct-slide.is-active {
    opacity: 1;
    z-index: 2;
}

/* ヘッダ全体 */
.ct-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    color: #333;
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.ct-header.scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #333;
}

/* ヘッダコンテナ */
.ct-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    height: 90px;
}

/* ヘッダ内のリンクスタイルを明確に定義してBootstrapを上書き */
.ct-header a,
.ct-header a:hover,
.ct-header a:focus {
    color: inherit;
    text-decoration: none;
}


/* ロゴエリア */
.ct-header-logo-area {
    display: flex;
    align-items: center;
}

.ct-logo-image {
    width: 50px;
    height: 50px;
    display: block;
}

/* PCナビゲーション */
.ct-header-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ct-header-nav li {
    margin: 0 15px;
}

.ct-header-nav li:last-child::before {
    content: '|';
    color: currentColor;
    opacity: 0.5;
    font-weight: 100;
    margin-right: 15px;
    transition: color 0.3s ease;
}

/* アイコンエリア */
.ct-header-icon-area {
    display: flex;
    align-items: center;
}
.ct-header-icon-area a {
    margin-left: 15px;
}

/* SVGアイコンのスタイル */
.ct-header-icon {
    width: 26px;
    height: 26px;
    color: currentColor;
    transition: color 0.3s ease;
}

/* ハンバーガーメニューボタン */
.ct-hamburger-menu {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 101;
    transition: opacity 0.3s ease;
}

.ct-hamburger-menu:hover {
    opacity: 0.5;
}

.ct-hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.ct-hamburger-menu span:nth-child(1) { top: 0; }
.ct-hamburger-menu span:nth-child(2) { top: 11px; }
.ct-hamburger-menu span:nth-child(3) { bottom: 0; }

.ct-hamburger-menu.is-active span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.ct-hamburger-menu.is-active span:nth-child(2) { opacity: 0; }
.ct-hamburger-menu.is-active span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* メインコンテンツエリア */
.ct-main-content {
    padding-bottom: 40px;
}

/* ページトップボタン */
#ct-page-top-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: white;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* ▼▼▼ 修正箇所 ▼▼▼ */
/* フッターで停止する際の位置決めの基準を変更 */
#ct-page-top-btn.is-stopped {
    position: absolute;
}
/* ▲▲▲ 修正箇所 ▲▲▲ */


#ct-page-top-btn:hover {
    opacity: 0.5;
}

#ct-page-top-btn .ct-arrow-icon {
    width: 20px;
    height: 20px;
}

#ct-page-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
}


/* =======================================
   レスポンシブ & パターン別スタイル
   ======================================= */

/* パターンA (layout-a) 用のタイトルスタイル */
.ct-title-text {
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 0 15px;
}

/* パターンB (layout-b) 用のロゴサイズ */
.ct-layout-b .ct-logo-image {
    width: 113px;
    height: 50px;
}

/* ブレイクポイント 768px以下 */
@media (max-width: 768px) {
    .ct-header {
        background-color: white;
    }

    .ct-header-nav { display: none; }
    .ct-header-nav li:last-child::before { content: ''; }
    .ct-hamburger-menu { display: block; margin-left: 20px; }
    .ct-header-logo-area { flex-grow: 1; }
    .ct-title-text { margin-right: auto; }

    .ct-header-nav.is-active {
        display: block;
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(5px);
        color: #333;
    }
    .ct-header-nav.is-active ul { flex-direction: column; }

    .ct-header-nav.is-active li {
        margin: 0;
        text-align: center;
        border-top: none;
    }
    .ct-header-nav.is-active li:last-child {
        border-top: 1px solid #eee;
    }

    .ct-header-nav.is-active li a {
        display: block;
        padding: 20px;
    }
}
.cont-lr {
    padding-left: 10%;
    padding-right: 10%;
    margin-bottom: 50px;
}
/* ヘッダーロゴ（SVG）サイズ調整 */
.ct-header-logo-area {
  display: flex;
  align-items: center;
}

.ct-logo-image {
  width: 160px;   /* ← ここが重要（おおよそ添付画像サイズ） */
  height: auto;   /* SVGは縦横比を維持 */
  max-height: 48px; /* ヘッダー高に収める安全装置 */
}