/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a {
  word-break: break-all;   /* 単語の途中でも折り返す */
}

body {
    font-family: "游ゴシック体", "Yu Gothic", "YuGothic", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    line-height: 1.6;
    color: #111;
    overflow-y: scroll;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}
.container.fv {
    max-width: 1100px;
    margin: 0 auto;
    bottom: 50px;
    position: absolute;
}

.container.text {
    max-width: 1300px;
    margin: 0 auto;
}
/* メインビジュアル（ヘッダー統合） */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-background {
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    max-width: none; /* 最大幅制限を解除 */
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    width: 100%;
    min-width: 450px;
    left: 50%;    /* 横中央 */
    transform: translateX(-50%);
}

.hero-text {
}

.hero-title {
    font-size: 5rem;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 30px;
    letter-spacing: 4px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 300;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #9B760A;
    border-radius: 5px;
    padding: 5px ;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-cta:hover {
    background-color: #B58C15;
}

.hero-cta:hover .cta-top-text {
    background: #fff;
    color: #9B760A;
}


.cta-top-text {
    background: rgba(255, 255, 255, 0.95);
    color: #9B760A;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    width: 100%;
}

.cta-button-main {
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 22px;
    font-weight: bold;
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 30px 15px;
}

.hero-ippo {
  margin-bottom: 20px;
  color: #FAD96B;
  font-size: 26px;
  font-weight: bold;
}


/* メリット */
.merits {
    padding: 80px 0;
    background:#fff;
}

.section-title {
    text-align: center;
    font-size: 48px;
    color: #E6B422;
    margin-bottom: 60px;
    position: relative;
    font-family: "Helvetica";
}
.section-title span{
    font-size: 32px;
    color: #111;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, 
                                #E6B422 0%, 
                                #E6B422 33.33%, 
                                #111 33.33%, 
                                #111 100%);
}
.merits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 40px;
}

.merit-item {
    position: relative;
    overflow: hidden;
}



.merit-background {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.merit-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* タブレット・スマートフォン表示時の画像切り替え */
@media (max-width: 1024px) {
    /* タブレット・スマートフォン表示時のfooter画像切り替え */
    .footer-bg-image[src="img/footer.png"] {
        content: url('img/footer_sp.png');
    }
}

/* スマートフォン表示時のmerit・brand画像切り替え */
@media (max-width: 1024px) {
    .merit-background img[src="img/merit_1.png"] {
        content: url('img/merit_1_sp.png');
    }
    
    .merit-background img[src="img/merit_2.png"] {
        content: url('img/merit_2_sp.png');
    }
    
    .merit-background img[src="img/merit_3.png"] {
        content: url('img/merit_3_sp.png');
    }
    
    .merit-background img[src="img/merit_4.png"] {
        content: url('img/merit_4_sp.png');
    }
    
    .merit-background img[src="img/merit_5.png"] {
        content: url('img/merit_5_sp.png');
    }
    
    .merit-background img[src="img/merit_6.png"] {
        content: url('img/merit_6_sp.png');
    }
    
    .merit-background img[src="img/merit_7.png"] {
        content: url('img/merit_7_sp.png');
    }
    
    .merit-background img[src="img/merit_8.png"] {
        content: url('img/merit_8_sp.png');
    }
    
    /* スマートフォン表示時のbrand画像切り替え */
    .brand-background img[src="img/brand_1.png"] {
        content: url('img/brand_1_sp.png');
    }
    
    .brand-background img[src="img/brand_2.png"] {
        content: url('img/brand_2_sp.png');
    }
    
    .brand-background img[src="img/brand_3.png"] {
        content: url('img/brand_3_sp.png');
    }
    
    .brand-background img[src="img/brand_4.png"] {
        content: url('img/brand_4_sp.png');
    }
}

.merit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 56% 15px 40px;
    color: white;
}

.merit-title {
    font-size: 18px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
    text-align: center;
    letter-spacing: 0.5px;
}

.merit-description {
    color: #ffffff;
    line-height: 1.75;
    font-size: 14px;
    font-weight: normal;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* MT5特徴 */
.mt5-features {
    background: #f7f7f7;
    padding-bottom: 100px;
}

.mt5-header {
    position: relative;
    height: 400px; /* 固定高さを設定 */
    overflow: hidden;
}

.mt5-header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mt5-header-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    max-width: none;
}

.mt5-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mt5-header-title {
    color: #E6B422;
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    font-family: "Helvetica";
    position: relative;
    top: -100px;
}

.mt5-header-title span{
    font-size: 32px;
    color: #fff;
}

.mt5-header-title::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, 
                                #E6B422 0%, 
                                #E6B422 33.33%, 
                                #fff 33.33%, 
                                #fff 100%);
}

.mt5-description-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin: -15% auto 60px;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.mt5-card-content {
    display: flex;
    align-items: center;
    padding: 90px 60px 0;
    gap: 20px;
}

.mt5-card-text {
    flex: 2;
    text-align: left; /* 子要素を中央揃え */
}

.mt5-card-subtitle.underline-custom {
  color: #111;
  font-size: 32px;
  margin-bottom: 15px;
  font-weight: bold;
  position: relative;       
  display: inline-block;    /* テキスト幅に合わせる */
}

.underline-custom::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 20%;             /* テキストの下に配置 */
  width: 420px;             /* 親要素のテキスト幅に合わせる */
  height: 10px;            
  background-color: #FAD96B;
  z-index: -1;
}

.mt5-card-title {
    color: #E6B422;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
}

.mt5-card-description {
    color: #111;
    line-height: 1.7;
    font-size: 18px;
    text-align: left;
}

.mt5-card-image {
    flex: 1;
    text-align: center;
}

.mt5-card-image img {
    max-width: 320px;
    height: auto;
  
}

.mt5-main-features {
    padding: 80px 60px 0px;
}
.mt5-title h2{
    text-align: center;
    font-size: 28px;
    color: #111;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 見出しの下に短い下線 */
.mt5-title h2{
  position: relative;
  text-align: center; /* 文字の中央寄せ */
}
.mt5-title h2::before {
  background-color: #D1D1D1; /* 線の色 */
  border-radius: 5px; /* 線の両端を丸く */
  bottom: -10px; /* 線の位置 */
  content: "";
  height: 1px; /* 線の高さ */
  left: 50%; /* 線の中央寄せ */
  position: absolute;
  transform: translateX(-50%); /* 線の中央寄せ */
  width: 30px; /* 線の長さ */
}
.sub_title {
    text-align: center;
    color: #E6B422;
    font-weight: bold;
}
.mt5-main-features .mt5-title .sub_title{
    margin-bottom: 40px;
}

.mt5-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 0 auto;
}



.mt5-feature-item {
    position: relative;
    border-radius: 15px;
}



.mt5-feature-background {
    position: relative;
    width: 100%;
    height: 100%;
}

.mt5-feature-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mt5-feature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 20px 0px 20px 130px;
}

.mt5-feature-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    line-height:2;
    text-align: left;
}


/* スマートフォン対応 (767px以下) */
@media (max-width: 767px) {
    .hero-bg-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .hero-content {
        min-width: auto;
        width: 100%;
        max-width: 500px;
    }
    
    .hero-title {
        font-size: 3rem;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .cta-top-text {
        font-size: 1.1rem;
        padding: 10px 25px;
    }
    
    .cta-button-main {
        font-size: 1.3rem;
    }
    
    .merits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .merit-background {
        height: 350px;
    }
    
    .merit-overlay {
        padding: 20px;
    }
    
    .merit-title {
        font-size: 1.1rem;
    }
    
    .merit-description {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .merit-item {
        padding: 20px;
    }
    
    .mt5-header {
        height: 300px; /* タブレット用の高さ */
    }
    
    .mt5-header-title {
        font-size: 2rem;
    }
    
    .mt5-card-content {
        flex-direction: column;
        padding: 30px;
        gap: 30px;
        text-align: center;
    }
    
    .mt5-card-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .mt5-features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mt5-features-grid .mt5-feature-item:last-child {
        grid-column: 1;
        max-width: 100%;
    }
    
    .mt5-feature-background {
        height: 120px;
    }
    
    .mt5-feature-title {
        font-size: 0.9rem;
    }
    .mt5-main-features{
        padding: 80px 20px 0;
    }
    .underline-custom::after {
    bottom: 10%;
    width: 100%;
    }
    .container.fv {
        bottom: 6vh;
    }
    .mt5-card-subtitle.underline-custom {
      font-size: 22px;
      margin: 0 auto 10px;
      display: block;
      text-align: center
    }
    .hero-ippo {
      margin-bottom: 20px;
      color: #FAD96B;
      font-size: 22px;
      font-weight: bold;
  }
}

@media (max-width: 480px) {
    .hero {
        min-height: 400px;
    }
    
    .hero-bg-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        content: url('img/mv_sp.png');
    }
    
    .hero-content {
        min-width: auto;
        width: 100%;
        max-width: 400px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-cta {
        width: 400px;
        margin: 0 auto;
    }
    
    .cta-top-text {
        font-size: 16px;
        padding: 5px 30px;
    }
    
    .cta-button-main {
        padding: 12px 30px;
        font-size: 20px;
    }
    
    .merits-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .merit-background {
        height: 100%;
    }
    
    .merit-overlay {
        padding: 37% 15px 15px;
    }
    
    .merit-title {
        font-size: 20px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .merit-description {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .mt5-header {
        height: 250px; /* スマートフォン用の高さ */
    }
    
    .mt5-header-title {
        font-size: 1.5rem;
        top: -70px;
    }
    
    /* 極小画面対応 */
    @media (max-width: 371px) {
        .hero {
            min-height: 350px;
        }
        .hero-ippo {
            font-size: 21px;
        }
        
        .hero-bg-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }
        
        .hero-content {
            min-width: auto;
            width: 100%;
            max-width: 300px;
            top: 20px;
        }
        
        .hero-cta {
            padding: 3px;
        }
        
        .cta-top-text {
            font-size: 0.9rem;
            padding: 6px 15px;
        }
        
        .cta-button-main {
            padding: 15px 30px;
            font-size: 1.1rem;
        }
        
        .mt5-header {
            height: 200px; /* 極小画面用の高さ */
        }
    }
    
    .mt5-card-content {
        padding: 20px;
        gap: 20px;
    }
    
    .mt5-card-title {
        font-size: 1.3rem;
    }
    
    .mt5-card-description {
        font-size: 16px;
        text-align: left;
    }
    
    .mt5-features-title {
        font-size: 1.5rem;
    }
    
    .mt5-feature-background {
        height: 100px;
    }
    
    .mt5-feature-title {
        font-size: 14px;
        line-height: 1.3;
    }
    .brand-description {
      font-size: 15px!important;
    }
    .calc-label, .calc-value {
      font-size: 16px!important;
    }
}

/* 取引銘柄 */
.brands {
    padding: 80px 60px 0;
}

.brands .section-title {
    color: #d4af37;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.brand-item {
    position: relative;
    overflow: hidden;
}


.brand-background {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.brand-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.brand-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 20px 20px 20px 50%;
}
.brand-overlay.brand-no-img {
    padding: 0px 20px 10px 20px;
}
.brand-content {
    display: flex;
    align-items: center;
    gap: 25px;
    width: 100%;
}

.brand-image-frame {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.brand-small-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.brand-text {
    flex: 1;
    color: white;
}

.brand-title {
    font-size: 22px;
    color: #fff;
    margin-bottom: 3px;
    font-weight: bold;
    text-align: center;
}

.brand-description {
    color: #ffffff;
    line-height: 1.7;
    font-size: 17px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}
.brand-bg {
  width: 100%;
  height: auto;
}
/* スマホ用（768px以下）で切り替え */
@media screen and (max-width: 767px) {

  .brand-bg {
    content: url("img/brand_bg_sp.png");
  }
}
/* 取引銘柄のレスポンシブ対応 */
@media (max-width: 767px) {
    .brands-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
     .brands{
        padding: 80px 20px 0;
    } 
  
    .brand-background {
        height: 250px;
    }
    
    .brand-overlay {
        padding: 20px;
    }
    
    .brand-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .brand-image-frame {
        width: 100px;
        height: 100px;
    }
    
    .brand-title {
        font-size: 1.5rem;
    }
    
    .brand-description {
        font-size: 0.9rem;
    }
    .mt5-feature-overlay{
        padding: 20px 10px 20px 100px;
    }
}

@media (max-width: 480px) {
    .brand-background {
        height: 100%;
    }
    
    .brand-overlay {
        padding: 60% 20px 20px 20px;
    }
    
    .brand-content {
        gap: 15px;
    }
    
    .brand-image-frame {
        width: 80px;
        height: 80px;
    }
    
    .brand-title {
        font-size: 20px;
        margin-bottom: 0px;
    }
    
    .brand-description {
        font-size: 16px;
        line-height: 1.5;
        text-align: left;
    }
}
/* 取引計算例 */
.calculation {
    padding: 80px 60px 0;
}

.calculation-card {
    background: white;
    border: 3px solid #111;
    border-radius: 20px;
    padding:  40px;
    max-width: 100%;
    position: relative;
}

.calculation-title {
    text-align: center;
    font-size: 28px;
    color: #111;
    font-weight: bold;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 20px;
    margin: 0;
}

.calculation-content {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 20px;
}

.calculation-section {
    margin-bottom: 40px;
}

.calculation-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.calculation-bulb {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-bottom: 5px;
}

.calculation-subtitle {
    font-size: 28px;
    color: #E6B422;
    margin: 0;
    font-weight: bold;
}

.calculation-description {
    font-size: 18px;
    color: #111;
    line-height: 1.7;
    margin-bottom: 15px;
}

.calculation-note {
    font-size: 14px;
    color: #111;
    line-height: 1.6;
}

.calculation-example {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 40px 0;
}

.calculation-table {
    border: 1px solid #111;
    overflow: hidden;
}

.calc-row {
    display: flex;
}

.calc-row:last-child {
    border-bottom: none;
}

.calc-label {
    padding: 15px 20px;
    min-width: 120px;
    display: flex;
    align-items: center;
    font-size: 18px;
}

.calc-value {
    padding: 15px 20px;
    min-width: 150px;
    display: flex;
    align-items: center;
    font-size: 18px;
}

.calculation-arrow {
    font-size: 2rem;
    font-weight: bold;
}

.calculation-result {
    text-align: center;
}

.result-label{
    font-size: 16px;
    margin: 10px 0;
    text-align: right;
    padding-right: 10px;
}

.result-formula {
    font-size: 18px;
    color: #111;
}
.result-white{
    margin: 10px 0;
}

.calculation-conclusion {
    text-align: center;
    font-size: 18px;
    color: #111;
    margin-top: 30px;
    background-color:#F7F7F7 ;
    padding: 10px 0;
}

/* MTcX商品概要 */
.product-overview {
    padding: 80px 60px;
}

.product-overview .section-title {
    color: #d4af37;
}

.overview-table-wrapper {
    margin-top: 40px;
}

.overview-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    overflow: hidden;
    border: 1px solid #707070;
}

.overview-table th {
    background: #FFFAEB;
    color: #111;
    padding: 20px 15px;
    font-size: 18px;
    text-align: center;
    border-right: 1px solid #707070;
    border-bottom: 1px solid #707070;
    font-weight: normal;
}

.overview-table th:last-child {
    border-right: none;
}

.overview-table td {
    padding: 15px 15px;
    text-align: center;
    border-bottom: 1px solid #707070;
    border-right: 1px solid #707070;
    color: #111;
    font-size: 1rem;
}

.overview-table td:last-child {
    border-right: none;
}

.overview-table tbody tr:last-child td {
    border-bottom: none;
}





.table-note {
    text-align: right;
    color: #111;
    font-size: 18px;
    margin-top: 10px;
}

/* 新セクションのレスポンシブ対応 */
@media (max-width: 767px) {
    .calculation-card {
        padding: 30px 20px;
        margin: 0 20px;
    }
      .calculation{
         padding: 80px 20px;
    }
    
    .calculation-title {
        font-size: 1.8rem;
        top: -15px;
        padding: 0 15px;
    }
    
    .calculation-header {
        gap: 10px;
    }
    
    .calculation-bulb {
        width: 30px;
        height: 30px;
    }
    
    .calculation-example {
        flex-direction: column;
        gap: 20px;
    }
    
    .calculation-arrow {
        transform: rotate(90deg);
    }
    
    .calc-label,
    .calc-value {
        padding: 12px 15px;
        min-width: auto;
    }
    
    .overview-table {
        font-size: 0.9rem;
    }
    
    .overview-table th,
    .overview-table td {
        padding: 12px 8px;
    }
    .result-label{
        text-align: center;
        margin: 0;
    } 
    .result-white {
    display: none;
  }
  .calculation-table {
    width: 100%;

  }
  .calc-row {
    justify-content: space-between;
    margin: 0 10px;

  }
  .calculation-conclusion{
    text-align: left;
  }
}

@media (max-width: 480px) {
    .calculation-card {
        padding: 20px 15px;
        margin: 0;
    }
    .table-note{
        font-size: 14px;
    }
    .product-overview {
        padding: 20px 10px;
    }
    .calculation-title {
        font-size: 1.5rem;
        top: -20px;
        padding: 0 12px;
    }
    
    .calculation-header {
        gap: 8px;
    }
    
    .calculation-bulb {
        width: 25px;
        height: 25px;
    }
    
    .calculation-subtitle {
        font-size: 1.3rem;
    }
    
    .calculation-description {
        font-size: 1rem;
    }
    
    .calc-label,
    .calc-value {
        padding: 10px 12px;
        font-size: 18px;
    }
    
    .result-formula {
        font-size: 18px;
        padding: 10px 0;
    }
    
    .overview-table {
        font-size: 0.8rem;
    }
    
    .overview-table th,
    .overview-table td {
        padding: 10px 6px;
        font-size: 13px;
    }
    
    .overview-table th {
        font-size: 0.9rem;
    }
}
/* 動画セクション */
.video-section {
    position: relative;
    padding: 0px 0;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-overlay {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}

.video-content {
    text-align: center;
    margin: 0 auto;
}

.video-title {
    text-align: center;
    font-size: 48px;
    color: #E6B422;
    margin-bottom: 60px;
    position: relative;
    font-family: "Helvetica";
}

.video-title span{
    font-size: 32px;
    color: #fff;
}

.video-title::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, 
                                #E6B422 0%, 
                                #E6B422 33.33%, 
                                #fff 33.33%, 
                                #fff 100%);
}


.video-wrapper {
    position: relative;
    max-width: 1000px;
    border-radius: 15px;
    overflow: hidden;
}

.main-video {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

.main-video:focus {
    outline: 3px solid #d4af37;
    outline-offset: 2px;
}

iframe.youtube-16-9 {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-width: 1000px;
    display: block;
    margin: auto;
}

/* 動画セクションのレスポンシブ対応 */
@media (max-width: 767px) {
    .video-title {
        font-size: 2rem;
        padding: 12px 24px;
        margin-bottom: 40px;
    }
    
    .video-wrapper {
        margin: 0 20px;
        max-width: calc(100% - 40px);
    }
    
    .video-overlay {
        padding: 60px 10px;
    }
}

@media (max-width: 480px) {
    .video-title {
        font-size: 1.5rem;
        padding: 10px 20px;
        margin-bottom: 30px;
    }
    
    .video-wrapper {
        margin: 0 15px;
        max-width: calc(100% - 30px);
    }
    
    .video-overlay {
        padding: 40px 10px;
    }
    
    .video-section {
        padding: 60px 0;
    }
}
/* 口座開設の流れ */
.account-flow {
    padding: 80px 0;
    background: #fff;
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.flow-step {
    text-align: center;
    position: relative;
}

.step-image {
    margin: 0 auto 20px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
}



.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.step-content {
    position: relative;
}

.step-number {
    color: #d4af37;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.step-title {
    color: #111;
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1.4;
}

/* サポートセクション */
.support-section {
    position: relative;
    overflow: hidden;
}

.support-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.support-bg-image {
    width: 100%;
    object-fit: cover;
    object-position: center;
    height: 100%;
}

.support-overlay {
    position: relative;
    z-index: 2;
    padding: 100px 0;
}

.support-content {
    text-align: center;
    color: white;
    width: 650px;
    margin: 0 auto;
}

.support-title {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}
.support-subtitle span{
    color: #fff;
}

.support-subtitle {
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: bold;
}

.support-cta {
    margin-top: 40px;
    background-color: #9B760A;
    border-radius: 5px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.support-cta:hover {
    background-color: #B58C15;
}

.support-cta:hover .support-cta-text {
    background: #fff;
    color: #9B760A;
}

.support-cta-text {
    background: rgba(255, 255, 255, 0.95);
    color: #9B760A;
    padding: 5px 30px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    width: 100%;
}

.support-cta-button {
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 22px;
    font-weight: bold;
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 30px 15px;
}




/* レスポンシブ対応 */
@media (max-width: 767px) {
    .flow-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .step-image {
        width: 150px;
        height: 150px;
    }
    
    .step-title {
        font-size: 1.1rem;
    }
    
    .support-title {
        font-size: 2rem;
    }
    
    .support-subtitle {
        font-size: 1.5rem;
    }
    
    .support-cta-button {
        padding: 18px 35px;
        font-size: 1.2rem;
    }
    .support-content{
        width: 100%;
    }
    .container.card{
        padding: 0 10px;
    }
    .mt5-description-card{
        margin: -35% auto 60px;
    }
    .support-cta {
        margin-top: 40px;
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .support-cta-text{
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .flow-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .step-image {
        width: 300px;
        height: 300px;
    }
    
    .step-title {
        font-size: 1rem;
    }
    
    .support-title {
        font-size: 24px;
    }
    
    .support-subtitle {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .support-cta-button {
        padding: 12px 30px;
        font-size: 20px;
    }
    
    .support-cta {
        width: 300px;
        margin: 40px auto 0;
    }
    
    .support-overlay {
        padding: 60px 20px;
    }
    
    .support-section {
        padding: 60px 0;
    }
}
/* 注意事項 */
.disclaimer {
    margin: 100px 0;
    padding: 40px 0;
    background: #ffffff;
    border-top:2px solid #9B760A ;
}

.disclaimer-content {
    font-size: 16px;
    line-height: 1.6;
    color: #111;
}

.risk-section {
    margin-bottom: 30px;
}

.risk-title {
    color: #9B760A;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: left;
    padding-bottom: 8px;
}

.risk-items {
    padding: 0;
}

.risk-item {
    margin-bottom: 10px;
    color: #111;
    font-size: 14px;
    line-height: 1.6;
}

.risk-item:last-child {
    margin-bottom: 0;
}

.risk-link {
    color: #9B760A;
    text-decoration: underline;
}

.risk-link:hover {
    color: #7a5c08;
}

.notice-section {
    margin-bottom: 30px;
}

.notice-title {
    color: #9B760A;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

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

.notice-item {
    margin-bottom: 12px;
    color: #111;
    font-size: 14px;
    line-height: 1.6;
    padding-left: 15px;
    position: relative;
}

.notice-item:before {
    content: "•";
    color: #9B760A;
    position: absolute;
    left: 0;
}

.notice-item:last-child {
    margin-bottom: 0;
}

.company-section {
    margin-bottom: 25px;
}

.company-title {
    color: #9B760A;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.company-info {
    padding: 0;
}

.company-name,
.company-registration,
.company-membership,
.company-description {
    margin-bottom: 8px;
    color: #111;
    font-size: 14px;
    line-height: 1.6;
}

.company-description:last-child {
    margin-bottom: 0;
}

.contact-section {
    margin-bottom: 25px;
}

.contact-title {
    color: #9B760A;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

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

.contact-item {
    margin-bottom: 8px;
    color: #111;
    font-size: 14px;
    line-height: 1.6;
    padding-left: 15px;
    position: relative;
}

.contact-item:before {
    content: "•";
    color: #9B760A;
    position: absolute;
    left: 0;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-link {
    color: #9B760A;
    text-decoration: underline;
}

.contact-link:hover {
    color: #7a5c08;
}

.footer-contact {
    text-align: left;
    padding: 20px 0;
    border-radius: 8px;
}

.footer-company {
    color: #111;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-text {
    color: #111;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}
.footer {
    background: url("./img/footer_bg.png");
}
.footer-logo {
    position: absolute;
    top: 60px;
    left: 60px;
}
.footer-logo img {
    width: 50%;
}
/* レスポンシブ対応 */
@media (max-width: 767px) {
    .disclaimer {
        padding: 30px 0;
    }
    
    .disclaimer-content {
        font-size: 0.85rem;
        padding: 0 20px;
    }
    
    .risk-title {
        font-size: 1.1rem;
    }
    
    .notice-title,
    .company-title,
    .contact-title {
        font-size: 1rem;
    }
    
    .footer-contact {
        padding: 15px;
        margin: 0 20px;
    }
    
    .footer-company {
        font-size: 1.1rem;
    }
    .footer-logo {
        left: 20px;
    }
 
}

@media (max-width: 480px) {
    .disclaimer {
        padding: 20px 0;
        margin: 20px 0;
    }
    
    .disclaimer-content {
        font-size: 0.8rem;
        padding: 0 15px;
    }
    
    .risk-title {
        font-size: 18px;
    }
    
    .notice-title,
    .company-title,
    .contact-title {
        font-size: 0.95rem;
    }
    
    .notice-item,
    .contact-item {
        padding-left: 12px;
    }
    
    .footer-contact {
        padding: 12px;
        margin: 0;
    }
    
    .footer-company {
        font-size: 1rem;
    }
    
    .footer-text {
        font-size: 0.85rem;
    }
}

/* フッター */
.footer {
    position: relative;
    overflow: hidden;
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 1;
}

.footer-bg-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
}

.footer-overlay {
    position: relative;
    z-index: 2;
    padding: 56px 0;
}

.footer-content {
    text-align: left;
    color: white;
    max-width: 1100px;
    margin: 0 auto;
    font-family: "Helvetica";
}

.footer-company-name {
    color: #fff;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: normal;
}

.footer-address,
.footer-registration,
.footer-membership {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-content h3 {
    margin-bottom: 0;
    font-family: Helvetica, Meiryo, sans-serif;
}

.container.footer_name{
    margin: 0 5% 0 60%;
}

/* フッターのレスポンシブ対応 */
@media (max-width: 1024px) {
    .footer {
        padding: 40px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .footer-overlay {
        padding: 200px 20px 40px 20px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .footer-content {
        text-align: left;
        border-radius: 8px;
        margin: 0 ;
    }
    
    .footer-company-name {
        font-size: 1.3rem;
    }
    
    .footer-address,
    .footer-registration,
    .footer-membership {
        font-size: 0.9rem;
    }
    .container.footer_name{
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
     .hero-cta {
        width: 100%;
        margin: 0 auto;
    }
    .footer-address a {
        color: #fff;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 0;
        overflow: visible
}
    
    .footer-content {
        padding-right: 15px;
        padding-left: 15px;
        text-align: left;
    }
    
    .footer-company-name {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .footer-address,
    .footer-registration,
    .footer-membership {
        font-size: 14px;
        line-height: 1.5;
    }
}
br.sp-only {
  display: none;
}

@media screen and (max-width: 1024px) {
  br.pc-only {
    display: none;
  }
   br.sp-only {
    display: inline;
  }
}
/* タブレット対応 (768px~1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .container.fv{
        bottom: 1vh;
    }
    
    .hero-content {
        min-width: auto;
        width: 400px;
        max-width: 700px;
    }
    
    .hero-title {
        font-size: 4rem;
        letter-spacing: 3px;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-cta {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .cta-top-text {
        font-size: 14px;
        padding: 2px 35px;
    }
    
    .cta-button-main {
        font-size: 16px;
        padding: 10px 30px;
    }
    
    .merits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    

    
    .merit-overlay {
        padding: 40% 30px 30px;
    }
    
    .merit-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .merit-description {
        font-size: 18px;
        line-height: 1.5;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 50px;
    }
    
    .mt5-header {
        height: 350px;
    }
    
    .mt5-header-title {
        font-size: 2.5rem;
        top: -80px;
    }
    
    .mt5-card-content {
        padding: 60px 20px 0;
        gap: 20px;
    }
    
    .mt5-card-title {
        font-size: 26px;
        text-align: center;
    }
    
    .mt5-card-description {
        font-size: 1rem;
    }
    
    .mt5-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    
    .mt5-feature-title {
        font-size: 14px;
        line-height: 1.8;
    }
    
    .mt5-feature-overlay {
        padding: 20px 15px 20px 30%;
        font-size: 14px;
    }
    
    .mt5-main-features {
        padding: 80px 20px 0;
    }
    
    .brands {
        padding: 80px 20px 0 !important;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
  
    
    .brand-overlay {
        padding: 50% 20px 10px ;
    }
    
    .brand-title {
        font-size: 1.3rem;
    }
    
    .brand-description {
        font-size: 1rem;
    }
    
    .calculation {
        padding: 80px 20px 0;
    }
    
    .product-overview {
        padding: 80px 40px;
    }
    
    .flow-steps {
        grid-template-columns: repeat(2, 2fr);
        gap: 25px;
    }
    
    .step-image {
        width: 300px;
        height: 300px;
    }
    
    .step-title {
        font-size: 1.1rem;
    }
    
    .support-content {
        width: 80%;
        max-width: 600px;
    }
    
    .support-title {
        font-size: 2.2rem;
    }
    
    .support-subtitle {
        font-size: 1.8rem;
    }
    
    .support-cta {
        max-width: 500px;
        margin: 40px auto 0;
    }
    
    .support-cta-text {
        font-size: 1.1rem;
        padding: 8px 35px;
    }
    
    .support-cta-button {
        font-size: 1.3rem;
        padding-top: 8px;
    }
    
    .video-title {
        font-size: 2.5rem;
        margin-bottom: 50px;
    }
    
    .video-wrapper {
        margin: 0 40px;
        max-width: calc(100% - 80px);
    }
    
    .container {
        padding: 0 0px;
    }
    
    .container.card {
        padding: 0 20px;
    }
    
    .mt5-description-card {
        margin: -20% auto 60px;
    }
    .calculation-card {
        padding: 0 20px;
    }
    .result-formula{
        text-align: right;
    }
    .calc-label{
        padding: 10px;
    }
    .calc-value {
        padding: 10px;
    }
    .merits{
        padding: 80px 20px;
    }
    .disclaimer{
        padding: 40px 20px;
        margin:40px ;
    } 
    .underline-custom::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 50%;   /* 20%より上に配置 */
    height: 10px;
    background-color: #FAD96B;
    z-index: -1;
    }
   
}
@media (max-width: 767px){
      .footer-overlay {
         padding: 100px 20px 40px 20px;
    }
}
.campaign {
    position: relative;
}
.campaign_bg {
    height: 254px;
}
.campaign_bg img{
  height: 254px;
  width: 100%;
}
.campaign-title {
    color: #E6B422;
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    font-family: "Helvetica";
    position: absolute;
    top: 89px;
    left: 50%;    /* 横中央 */
    transform: translateX(-50%);
}
.campaign-title span {
    color: #fff;
}
.campaign-content {
    background: #000;
    padding: 20px 20px 70px 20px;
}
.campaign-content img {
    width: 1100px;
    height: auto;
    margin: 0 auto;
    display: block;
    transition: opacity 0.3s ease;
}
/* PCのときだけマウスオーバーでopacityを0.8に */
@media (min-width: 768px) {
    .campaign-content a:hover img {
        opacity: 0.8;
    }
}
@media (max-width: 1024px){
    .campaign-content img {
        width: 100%;
    }
    .campaign-title {
        font-size: 24px;
        margin: 0 auto;
        display: block;
        width: 300px;
        top: 105px;
    }
}


/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 45px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-logo {
    max-width: 380px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.modal-title {
    font-size: 28px;
    font-weight: bold;
    color: #9B760A;
    text-align: center;
    margin-bottom: 22px;
}

.modal-text {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 32px;
}

.modal-button {
    width: 100%;
    padding: 18px;
    background-color: #9B760A;
    color: #ffffff;
    font-size: 17px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.modal-button:hover {
    opacity: 0.9;
}

.modal-button:active {
    opacity: 0.8;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 40px 25px;
        max-width: 90%;
    }
    
    .modal-logo {
        max-width: 300px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-text {
        font-size: 16px;
    }
    
    .modal-button {
        padding: 18px;
        font-size: 17px;
    }
}

/* Page title (SEO only, visually hidden) */
.page-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
