/*
Theme Name: ns
Theme URI: https://wordpress.org/themes/twentysixteen/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Twenty Sixteen is a modernized take on an ever-popular WordPress layout — the horizontal masthead with an optional right sidebar that works perfectly for blogs and websites. It has custom color options with beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail. Twenty Sixteen will make your WordPress look beautiful everywhere.
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog
Text Domain: twentysixteen

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* スライダー全体のスタイル */
.swiper-container {
width: 100%;
height: auto;
margin: 20px 0;
overflow: hidden;
position: relative;
}

/* 各スライドのスタイル */
.swiper-slide {
position: relative;
text-align: center;
width: 100%;
transition: opacity 0.3s ease;
opacity: 0.5;
}

.swiper-slide-active {
opacity: 1;
}

/* ナビゲーションボタンのスタイル */
.swiper-button-next,
.swiper-button-prev {
color: #fff !important;
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 10;
cursor: pointer;
}

.swiper-button-next:after,
.swiper-button-prev:after {
color: #fff !important; /* 矢印アイコンを白に指定 */
font-size: 20px; /* 必要に応じて調整 */
}

/* スライダー1のナビゲーションボタン */
#slider1 .swiper-button-next-1 {
right: 10px;
}
#slider1 .swiper-button-prev-1 {
left: 10px;
}

/* スライダー2のナビゲーションボタン */
#slider2 .swiper-button-next-2 {
right: 10px;
}
#slider2 .swiper-button-prev-2 {
left: 10px;
}

/* レスポンシブ対応（スマートフォン用） */
@media (max-width: 768px) {
.swiper-button-next,
.swiper-button-prev {
  right: 5px;
  left: 5px;
}
}

/* --- ここからタブUI用のCSS --- */

/* タブ全体のコンテナ */
.tab_container {
width: 100%;
}

/* タブ切り替え用のラジオボタンを非表示に */
.tab_container input[type="radio"] {
display: none;
}

/* タブのラベル（ボタン部分） */
article .tab_container .tab_item {
  display: inline-block;
  padding: 10px 20px;
  cursor: pointer;
  background-color: #f2f2f2;
  border: 1px solid #ccc; /* 枠線を設定 */
  margin-right: 5px;
  font-weight: bold;
  color: #666;
  position: relative; /* 基準位置の指定 */
}

.tab_container > br {
display: none;
}

/* 選択されているタブのラベルのスタイル */
.tab_container input[type="radio"]:checked + .tab_item {
background-color: #fff;
color: #009d41;
border-color: #ccc;
border-bottom: 1px solid #fff;
margin-bottom: -1px;
}

/* タブで切り替わるコンテンツエリア */
.tab_content {
display: none; /* 初期状態では非表示 */
padding: 20px;
border: 1px solid #ccc;
width: 100%;
box-sizing: border-box; /* paddingを含めて幅100%にする */
}

/* 選択されたタブに対応するコンテンツだけを表示 */
#tab1:checked ~ #tab1_content,
#tab2:checked ~ #tab2_content,
#tab3:checked ~ #tab3_content {
display: block;
}

/* タブコンテンツ内のレイアウト（画像と説明文を横並びに） */
.tab_content .tab {
display: flex;
flex-wrap: wrap; /* 画面が小さい時に折り返す */
align-items: flex-start; /* 上揃え */
gap: 20px;
}

.tab_content_inner_left,
.tab_content_inner_right {
flex: 1; /* 左右のエリアが均等にスペースを分け合う */
min-width: 280px; /* これより狭くなると折り返す */
}

.tab_content_inner_left img,
.tab_content_inner_right img {
max-width: 100%;
height: auto;
display: block;
}

/* --- ページネーションのスタイル --- */

.swiper-pagination {
position: relative !important; /* 位置を調整 */
bottom: 20px !important; /* スライダーからの距離 */
}

/* 通常の点（ページネーション）のスタイル */
.swiper-pagination-bullet {
background-color: #ccc !important; /* 点の色 */
width: 10px !important;
height: 10px !important;
opacity: 1 !important;
}

/* 現在表示されているスライドに対応する点のスタイル */
.swiper-pagination-bullet-active {
background-color: #009d41 !important; /* アクティブな点の色（サイトのテーマカラーに合わせました） */
}



/*
============================================================
 HTML内のインラインstyle属性から転記したスタイル (タブUI用)
============================================================
*/

/* タブコンテンツ内の画像ラッパー */
.tab-image-wrapper {
  margin-bottom: 15px;
}

/* タブコンテンツ内の画像 (img-responsive)
  インラインで display: block; margin-left: 0; margin-right: auto; が指定されていたため、
  これを .tab_content .img-responsive に適用します。
*/
.tab_content .img-responsive {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* タブコンテンツ内のテキストラッパー */
.tab-text-content {
  margin-bottom: 3px; /* 元の 'margin: bottom 3px;' は誤りのため 'margin-bottom' に修正 */
}

/* タブコンテンツ内のカテゴリタグ */
.tab-category-tag {
  color: #009d41;
  background-color: #f7f7f7 !important;
  padding: 5px;
  display: inline-block; /* spanタグのため */
}

/* タブコンテンツ内のタイトル (h2.entry-title)
  インラインで指定されていたスタイルを適用します。
*/
.tab_content .entry-title {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 0;
  border-bottom: none;
}

/* タブコンテンツ内の会社情報ラッパー */
.tab-company-info {
  font-size: 15px;
  border-top: 1px solid #009d41;
  border-bottom: 1px solid #009d41;
  padding-bottom: 5px;
}

/* タブコンテンツ内の会社情報 (pタグ) */
.tab-company-info p {
  margin-bottom: 0;
}