@charset "UTF-8";
body, html, main{width: 100% ; height: 100% ;margin: 0; padding: 0; word-wrap: break-word; overflow-x: hidden;}
body{color: #333; background-color: #f6f6f6;}
font-family: YuGothicM, "游ゴシック Medium", YuGothic, "Yu Gothic", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic", "メイリオ", Meiryo, sans-serif;line-height:1.6;font-weight:normal ;}
body .container {display: flex;justify-content:center;gap: 20px;}
div{display:block;}

@media only screen and (min-width: 768px) {html,body {font-size:16px;}}
@media only screen and (max-width: 767px) {html,body {font-size:14px;}}

a {text-decoration: none;
  color: #000; -webkit-transition: .2s;
  transition: .2s;}
a:hover{color:#0FA0CE; text-decoration:non;}
a:active{text-decoration:none;color:#ccc;}
a img{border-style:none;padding:0px;margin:0px;}
a img:hover{opacity:0.6;filter:alpha(opacity=60);-ms-filter:"alpha( opacity=60 )";}


h1 {font-size:200%}
h3 {font-size:170%}
.f150 {font-size:150%}
,f200 {font-size:200%}
ul, dl {
  font-size: 100%;
  padding-left: 20px;
  padding-right: 30px;
  margin: 0 0 40px 0;
}
li{list-style:none;}
img{max-width: 100%; height: auto;}

.bold {font-weight:bold;}
.mincyo {font-family: "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "游明朝", YuMincho, "Sawarabi Mincho", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", serif;}
.f200bgc{font-size: 200%; font-weight: bold; text-align: center; margin: 0; padding-top: 50px; padding-bottom: 20px; width: 100%;}
.bg_g{background-color:#f6f6f6;}
.bg_w{background-color:#ffffff;}
.bg_bg{background-color:#00182b;}

.content {clear: both;}
.txtc{text-align:center;}
.txtr{text-align:right; padding-right:20px;}
.f80{font-size:80%;}
hr{display:block;height:2px;border-top:2px solid #eee;margin:1em 0;padding:0;}
.f_orange{font-weight:bold;color:#fd7e00;padding-top:20px;}
.f_green{font-weight:bold;color:#008000;}
.f_blue{font-weight:bold;color:#006bba;}
.f200{font-size:200% ; font-weight:bold;}
.float-image {float: right; margin:10px;}
.htitle{font-size:150%;margin:0px;padding:20px;font-weight:bold;}
.htitle span{font-size:60%;color:#808080;font-weight:normal;}
.overlay-text {text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);}

.container {
  display: flex; /* Flexboxを有効にする */
  justify-content: space-between; /* 子要素を両端に配置 */
  align-items: center; /* 垂直方向の中央揃え（任意） */
  width: 100%; /* 親要素の幅 */
}

/*headerナビ
-------------------------------------*/
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #ffffff; /* 背景を白 */
  font-weight: bold;
  color: #333333; /* 文字を黒 */
  position: relative;
  z-index: 1001;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* 軽い影で境界を出す */
}

.logo img {
  height: 60px;
}

/* ナビゲーションメニュー (PC向け) */
.site-nav ul {
  display: flex;
  list-style: none;
  font-size: 14px;
  padding: 0;
  margin: 0;
}

.site-nav li a {
  padding: 10px 20px;
  display: block;
  color: #333333; /* リンクを黒に */
  text-decoration: none;
  transition: 0.3s;
}

.site-nav li a:hover {
  color: #808080;
}
/* お問い合わせボタン（ここだけアクセントカラー） */
.contact-item a {
  background-color: #fd7e00 !important;
  color: #ffffff !important;
  padding: 10px 15px;
  border-radius: 4px;
}

/* ハンバーガーメニューアイコン */
.menu-toggle {
  display: none; /* PCでは隠す */
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  height: 24px;
  width: 30px;
  padding: 0;
}

.menu-toggle .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333333;
  transition: 0.4s;
}

/* レスポンシブ対応 (980px以下) */
@media (max-width: 980px) {
  .menu-toggle {
    display: flex; /* スマホで表示 */
  }

  .site-nav {
    display: none; /* JSで.is-activeがつくまで隠す */
    position: absolute;
    top: 100%; /* ヘッダーのすぐ下に配置 */
    right: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  /* JSでクラスが付与された時の表示 */
  .site-nav.is-active {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav li a {
    color: #333333;
    padding: 15px;
    border-top: 1px solid #eeeeee;
  }

  /* ハンバーガーメニューのアニメーション (Xマーク) */
  .menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/*詳細はこちらボタン
-------------------------------------*/
a.btn {
  display: block;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  padding: 10px 30px;
  background: gray;
  color: #ffffff;
  border-radius: 4px; 
  margin: 20px auto;
  -webkit-transition: .2s;
  transition: .2s;
text-decoration: none;
}

a.btn:hover {
  background: #b3b3b3;
  -webkit-transition: .2s;
  transition: .2s;
}

a.btn.white {
  background: transparent;
  border: 3px solid rgba(255, 255, 255, 0.75);
  color: #fff;
}

a.btn.white:hover {
   background: #ffffff;
  color: #333333;
  font-weight:bold;
}

a.btn.orange {
  background: #ff8c00; /* オレンジ色 */
}

a.btn.orange:hover {
  background: #ff7400; /* ホバー時の少し濃いオレンジ色 */
}
/* =====================================
  メイン画像の右下にタイトルをいれる
   ===================================== */

/* PC・通常時のスタイル */
.image-container {
    position: relative; /* 子要素の基準点 */
    width: 100%;
    /* max-width: 1200px; <-- 必要に応じて調整または削除 */
    margin: 0;
}

.responsive-img {width: 100%; height: auto; display: block;}

.text-overlay {
    position: absolute; /* 画像の上に重ねる */
    bottom: 10px;
    right: 10px;
    background-color: #fd7e00;
    text-align:center;
    color: white;
    padding: 10px;
    width: fit-content; /* テキストの幅に合わせる */
    max-width: 50%; /* 最大幅の制限 */
    box-sizing: border-box;
    border-radius: 15px;
    overflow: hidden;
    white-space: nowrap; /* タイトルの改行を防ぐ */
}

.text-overlay h1 {margin: 0 0 10px 0; font-size: 2rem;}
.text-overlay p {margin: 0; font-size: 1.2rem; white-space: normal;}

/* --- スマートフォン向けのレスポンシブ対応 (画面幅600px以下) --- */
@media screen and (max-width: 600px) {
    .text-overlay {
        position: static; /* 絶対配置を解除し、通常のドキュメントフローに戻す */
        width: auto; /* 幅の制限を解除 */
        max-width: 100%; /* 最大幅を100%に */
        border-radius: 0; /* 角丸をなくす */
        /* bottomとrightの設定はstaticで無効になる */
        margin-top: 0; /* 画像との間に少し余白が必要ならここに追記 (例: 10px) */
        white-space: normal; /* タイトルも改行許可 */
    }

    .text-overlay h1 {
        font-size: 1.5rem; /* スマホ用に少し小さく調整 */
    }

    .text-overlay p {
        font-size: 1rem; /* スマホ用に少し小さく調整 */
    }

    /* 画像とテキストを縦並びにするための調整 */
    .image-container {
        display: flex;
        flex-direction: column; /* 画像とテキストを縦に並べる */
    }
}
/* =====================================
   メイン 
   ===================================== */
.main {max-width: 1100px; width:90%; margin: 0px auto; padding-top: 20px; padding-bottom: 50px; position: relative;}

.txtbl{border-bottom: 1px solid rgba(0, 0, 0, 0.2); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);}


/* =====================================
   メイン3カラム 
   ===================================== */
#cardlayout-wrap {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: justify;
    margin: 0em auto;
    padding-top:0px;
    padding-bottom:20px;
    max-width: 960px;
    width: 100%;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    justify-content: space-between;
}
.card-title:hover{color: #0FA0CE;text-decoration: underline;}

/* カードレイアウト内の画像を幅いっぱいに表示 */
#cardlayout-wrap img {
    display: block;
    max-width: 100%;
    height: auto;
}

.card-figure {
    margin: 0;
    padding: 0;
}

/* カードレイアウトのタイトル部分 */
.card-title h2 h3{font-size:20px; margin: 0.6em 0 0.3em 0; color: #000;}

/* カードレイアウトの説明文部分 */
.card-text-tax {margin: 0; padding: 1em; padding-top:0;color: #333;}

/* カードレイアウトを1カラムで配置 */
.card-list {
    margin: 0.5em auto;
    padding: 0;
    width: 96%;text-align: center;
    background:  #f0f0f0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  border-radius: 20px; 
  -webkit-transition: .2s;
  transition: .2s;
}

/* 画面幅768px以上の場合カードレイアウトを2カラムで配置 */
@media all and (min-width: 768px) {
    .card-list {
        margin: 0.5em 0;
        width: calc(96% / 2); /* 96%幅を2で割るという指定 */
    }
}

/* 画面幅992px以上の場合カードレイアウトを3カラムで配置 */
@media all and (min-width: 992px) {
    .card-list {
        width: calc(96% / 3); /* 96%幅を3で割るという指定 */
}
    
/* 最後の行が3列より少ない場合左寄せにレイアウトさせる */
    #cardlayout-wrap::after{
        content: "";
        display: block;
        width: calc(96% / 3);
    }
}

/* =====================================
   動画エリア 
   ===================================== */
.video-section-wrapper {
    width: 100%; background-color: #00182b;
    padding: 15px 0; /* 上下の余白（元の.video_areaのpadding-top/bottom分） */
    margin-bottom: 50px; /* 下余白 */
}
.video_area {
  width: 100%;
  padding: 0 16px; 
  margin-bottom: 0px; 
  box-sizing: border-box;
  max-width: 900px; /* 例: 最大幅を900pxに制限 */
  margin-left: auto;  /* 中央寄せにする */
  margin-right: auto; /* 中央寄せにする */
}

.video_area h2 {
  margin: 0;
  padding-top: 50px;
  padding-bottom: 20px;
  font-size: 200%;
  color: #fff;
  font-weight: bolder;
  width: 100%;
  text-align: center;
}

/* --- 動画とテキストのFlexboxコンテナ --- */
.video-flex-container {
    display: flex; /* Flexboxで横並び */
    gap: 20px;     /* 要素間の隙間 */
    align-items: center; /* 垂直方向の中央揃え */
    padding-bottom: 50px;
    width: 100%;
}

/* 左側の動画ラッパー */
.video_wrapper {flex: 2 1 0; /* 幅の比率を2とする */}

/* 動画要素自体（ここで全体設定のmax-width:を上書きする！） */
.video_wrapper video {
    width: 100%;       /* 親要素 (video_wrapper) いっぱいに広がる */
    max-width: 100%;   /* ★修正点: 全体設定のmax-width: 50%を上書き */
    height: auto;      
    display: block;
}

/* 右側のテキストコンテンツ */
.video_text_content {
    color: #fff; 
    padding-left: 10px; 
    flex: 1 1 0; /* 幅の比率を1とする */
}

.video_text_content p {
    color: inherit;
    margin: 0 0 10px 0;
}

@media (max-width: 768px) {
    .video-flex-container {
        flex-direction: column; /* ★重要: スマホでは縦積みにする */
        gap: 15px; 
    }
    . .video_wrapper video {
        max-width: 100%; 
    }
    .video_text_content {
        padding-left: 0; 
    }
}

/* =====================================
   フッターエリア
   ===================================== */
#footer{width:100%;margin:0 auto; background:#f1f1f1;}
#footer a{text-decoration:none;color:#333;font size:14px;}
#footer a:hover,active{text-decoration:underline;color:#333;}

#footer1{width:1100px;margin:0 auto;padding:30px 0px 25px;position:relative;overflow:hidden;}
#footer1 h3{border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:0 0 10px;padding:10px 0px;font-size:110%;color:#092937;}
#footer1 .list{float:left;width:255px;margin-left:20px;font size:14px;}
#footer1 .list ul{margin:0;padding:0px 0 15px;}
#footer1 .list ul li{list-style:none;margin:0 0 5px;padding:0 20px 0 0;line-height:2.0;}

#footer2{width:100%;background:#e6e6e6;}
#footer2 ul#wrapper{width:1100px;margin:0 auto;padding:20px 0px;text-align:center;}
#footer2 ul#wrapper li{display:inline;border-left:1px solid #ccc;padding:0 10px;}
#footer2 ul#wrapper li.last{border-right:1px solid #ccc;}
#copyright{width:100%;background:#00182b;padding:6px 0;text-align:center;color:#ffffff;font-size:90%;margin:0px;}
ul, menu, dir{display:block;list-style-type:disc;-webkit-margin-before:1em;-webkit-margin-after:1em;-webkit-margin-start:0px;-webkit-margin-end:0px;-webkit-padding-start:40px;}
.cf:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0;}

@media screen and (max-width: 767px){
#footer1,#footer1 .list{width:100%;}
#footer2 ul#wrapper{width:99%;height:auto;margin:0;padding:0;text-align:center;background:#fff;}
#footer2 ul#wrapper li{float:left;width:50%;height:auto;list-style:none;text-align:center;margin:0px;font-size:90%;position:relative;padding:0px;border-top:2px solid #eee;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}
#footer2 ul#wrapper li a{width:99%;height:48px;margin:0 auto;display:block;text-decoration:none;color:#333;background:#fff;}
#footer2 ul#wrapper li a{padding:20px 0 0 0;border-left:none;}
#footer2 ul#wrapper li.last,{border-right:none;}
#footer2 ul#wrapper li a:hover{color:#000;background:#e6e6e6;text-decoration:none;}
#footer2 ul#wrapper li a:hover{color:#909090;text-decoration:none;}
}

/* =====================================
  メインBOX横並び
   ===================================== */
/* 1. 全デバイス共通の基本設定 */
.linkproduct {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.linkproduct-box {
  box-sizing: border-box;
}

.linkproduct-box img {
  width: 100%;
  height: auto;
  display: block;
}

/* 2. PC画面（768px以上）の設定 */
@media screen and (min-width: 768px) {
  .linkproduct {
    flex-direction: row; /* 必ず横並び */
  }
  /* PC用の固定幅クラス */
  .box5 { width: 200px; }
  .box4 { width: 250px; }
  .box3 { width: 360px; }
  .box37 { width: 740px; }
  .box2 { width: 500px; }
  .box1 { width: 1000px; }
}

/* 3. スマホ画面（767px以下）の設定 */
@media screen and (max-width: 767px) {
  .linkproduct {
    flex-direction: column; /* 基本は縦1枚 */
    align-items: center;
    gap: 15px;
  }

  /* 個別幅をリセットして画面幅に合わせる */
  .box1, .box2, .box3, .box4, .box5, .box37 {
    width: 95%; 
  }

  /* 【2枚並べたい時専用】HTMLに col-2 クラスを追加した場合 */
  .linkproduct.col-2 {
    flex-direction: row; /* 横並びにする */
    flex-wrap: wrap;    /* 折り返しを許可 */
    justify-content: center;
    gap: 10px;          /* 画像間の隙間 */
  }

  .linkproduct.col-2 .linkproduct-box {
    /* 隙間を計算して50%幅にする */
    width: calc(50% - 10px);
    flex: 0 0 calc(50% - 10px);
  }
}

/* リンクのホバー等の装飾（任意） */
.linkproduct-box-link {
  text-decoration: none;
  display: block;
  transition: transform 0.2s;
}
.linkproduct-box-link:hover {
  transform: translateY(-5px);
}

