@charset "UTF-8";
@import url("grid.css");

:root { /* 色変更される場合は、#以降のカラーコードを変更してください IE非対応 */
    --base-color: #2353f0;
    --link-color: #407ef0;
    --linkhover-color: #7f9ef1;
    --back-color: #e2e6f5;
    --border-color: #ccc;
    --white-color: #fff;
    --gray-color: #f0f0f0;/* 追加: グレー色の変数 */
    --blue-color: #407ef0;/* 追加: ブルー色の変数 */
    --lightblue-color: #d5e1f8;/* 追加: 薄い青色の変数 */
}

img {
	max-width:100%;
	height: auto;/*高さ自動*/
}
a {
    display:inline;
    color: var(--link-color);
    text-decoration-line: none;
}
.inline-link {
  display: inline;
  color: var(--link-color);
  text-decoration: none;
}
a:hover { 
    color: var(--linkhover-color);
}


/*ヘッダー
-------------------------------------*/
.header {
  display: flex;
  align-items: center; /* 上下中央揃え */
  flex-wrap: wrap;
  padding: 1rem 0 0 0;
}
  header {/* ヘッダー全体のスタイル */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

.header-box {
  margin-left: auto;
}
.contact-button {
	padding: 1rem;
  color: #fff;
  background-color: #407ef0; 
}
/*ナビゲーション*/
nav ul {
	display: flex;
    flex-direction: row;
    justify-content: space-around;
    list-style: none;
	margin: 0.5rem 0 0 0;
}
nav li {
	flex: 1 0 auto;
	border-right: 1px solid #dbedf3; /* 縦線を追加 */
}

/* 最後の項目には縦線を表示しない */
nav li:last-child {
	border-right: none;
}

nav li a {
    text-decoration: none;
    text-align: center; /* ← 既にあるはずですが、念のため確認・追加 */
    width: 100%;
    display: block;     /* ← 追加: block化で中央配置を有効に */
}
nav a:hover {
    background-color: var(--back-color);   
}
nav a {
    padding: 0.5rem;
}

@media screen and (min-width: 769px){
/* PC時はMENUボタンを非表示 */
#open,#close {
    display: none !important;
}

#navi {
    display: block !important;
}
}

/* navi 下の余白を無くす（nav 内の li の下マージンを打ち消す） */
nav li,
ul.submenu li {
  margin-bottom: 0;
}

/* 念のためコンテナ自体の下側余白もゼロに */
#navi,
nav ul {
  margin-bottom: 0;
  padding-bottom: 0;
}

@media screen and (max-width: 768px){
.header {
	flex-direction: column;
    margin-bottom: 10px;
}
.header #open,#close  {
    position: absolute;
    top: 30px;
    right: 20px;
}
nav ul {
	flex-direction: column;
}

/* スマホ時は縦線を非表示にして横線に変更 */
nav li {
	border-right: none;
	border-bottom: 1px solid #ddd;
}

nav li:last-child {
	border-bottom: none;
}

/* スマホ時はMENUボタンを表示 */
#open {
    display: block;
    background: url("../img/button.png");
    background-repeat: no-repeat;
    background-size: contain;
    width: 70px;
    height: 70px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
#close  {
    /* 初期状態は非表示に変更 */
    display: none;
    background: url("../img/button2.png");
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}

/* メニュー開時の表示切替（JSで body に menu-open を付与） */
body.menu-open #open { display: none; }  /* ← 修正: 開いている間は非表示 */
body.menu-open #close { display: block; }

/* 追加: メニュー開時は navi を確実に表示（保険） */
body.menu-open #navi { display: block !important; }

/* 追加: 初期状態の強制（menu-open でない限り close は非表示, open は表示） */
body:not(.menu-open) #close { display: none !important; }
body:not(.menu-open) #open  { display: block !important; }

/* スマホ時はメニューを非表示 */
#navi {
    display: none;
}

/* 追加：モバイル時にヘッダの右側ボックス（お問い合わせボタン）を非表示にする */
.header-box {
    display: none;
}

/* スマホ時のメニューアイコンを最前面にして確実にタップ可能に */
#open,
#close {
  z-index: 2001;       /* ヘッダーより前面に */
  cursor: pointer;     /* タップ可能に見せる */
  pointer-events: auto;
}

/* 念のため、ナビ本体はアイコンより下に */
#navi {
  position: relative;
  z-index: 1500;
}
}
    
/*メイン画像
-------------------------------------*/
.mainimg img {
    width: 100vw;
    height: auto;
}

.mainimg {
  margin-bottom: 3rem; /* ← 追加: 下に余白を確保 */
}

/*アニメーション追加*/
.fade-zoom {
  opacity: 0;
  transform: scale(0.9);
  animation: fadeZoomIn 2.0s ease-out forwards;
}

@keyframes fadeZoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/*メインコンテンツ
-------------------------------------*/
main {
  margin: 5rem 0 0 0; /* デフォルトの余白（スマホ向け） */
}

/* より強い詳細度でマージンを指定 */
body main {
  margin: 5rem 0 0 0;
}

@media screen and (min-width: 769px) {
  body main {
    margin-top: 200px !important; /* 最優先で適用 */
  }
}

@media screen and (max-width: 768px) {
  body main {
    margin-top: 100px !important; /* 最優先で適用 */
  }
}

/*セクション共通スタイル*/
section {
	margin: 2.5rem 0;
	padding: 2rem 0;
  scroll-margin-top: 120px; /* スマホ時のヘッダー高さ + 余白 */
}


/* PC時はヘッダーが高いため調整 */
@media screen and (min-width: 769px) {
  section {
    scroll-margin-top: 220px; /* PC時のヘッダー高さ + 余白 */
  }
}

/* 施工事例のスクロールボックス */
.case-scroll-box {
  max-height: 480px;           /* 高さ制限（調整可） */
  overflow-y: auto;            /* 縦スクロール有効 */
  border: 1px solid #ddd;      /* 枠線 */
  padding: 1.5rem;             /* 内側余白 */
  background-color: #fff;      /* 背景色 */
  border-radius: 8px;          /* 角丸 */
  margin-bottom: 2rem;
}

/* スマホ時は高さを少し低く */
@media screen and (max-width: 768px) {
  .case-scroll-box {
    max-height: 500px;
    padding: 1rem;
  }
}

/* 既存の .anchor-target は削除または統合（全sectionに適用済みのため不要） */
/* section.anchor-target { scroll-margin-top: 200px; } */

.gray-back {
	background-color: var(--back-color);
}
.lightblue-back {
	background-color: var(--lightblue-color);
}

.section-lined {/* 青いライン付きセクション */
  border-left: 6px solid #407ef0; /* 青いラインの太さと色 */
  padding-left: 1.5rem;           /* ラインと本文の間隔 */
}

/* お知らせセクション--------------------------------- */
.notice-section {
  border-bottom: 1px solid #eee;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}
/* ボックス用 */
.arrow-box {
  border: 1px solid #ccc;
  padding: 1rem;
  max-height: 300px;
  overflow-y: auto;
  background-color: #fff;
}


/* 小さめの矢印アイコンなどに ------------------------*/
.arrow-inline {
  font-size: 1.4rem;
  color: #999;
  margin-left: 1rem;
}

/* 強調テキスト用 */
.arrow-bold {
  font-weight: bold;
  color: #999;
}

/* タイトル風の見出し用 */
.arrow-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5rem;
}

/*アンダーライン矢印見出しスタイル---------------------------------------------*/
.custom-heading {
  position: relative;
  padding-left: 25px;
}

.custom-heading::before {
  position: absolute;
  content: '';
  bottom: -3px;
  left: 0;
  width: 0;
  height: 0;
  border-left: solid 15px transparent;
  border-bottom: solid 15px #407ef0;
}

.custom-heading::after {
  position: absolute;
  content: '';
  bottom: -3px;
  left: 10px;
  width: 100%;
  border-bottom: solid 3px #407ef0;
}

/*リンクボックス---------------------------------------------*/
.linkbox{
  display: flex;
  justify-content: space-between; /* 左右に分ける */
  align-items: center;/* 上下中央揃え */
  padding: 1rem 0;
  
  font-size: 2rem;
  margin: 1rem 1rem;/* 上下の余白 */
  border-bottom: 1px solid #ccc;
  border-right: 4px solid #eee;
  background-color: #e9ecee;
  color: #2353f0;
  text-decoration: none;
 
  transition: background-color 0.3s ease;
   min-height: 10rem; /* 高さを一定に */
}

/* 左側の余白を追加するための内包要素 */
.linkbox-text {
  padding-left: 2rem; /* 左余白を調整 */
  flex: 1;             /* 必要なら幅を広げる */
}

.linkbox:hover {
  background-color: #e6e8ec;
}

/*スクロール付きお知らせ----------------------------*/

.notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 300px;       /* ← 高さ制限 */
  overflow-y: auto;        /* ← 縦スクロールを有効に */
  border: 0.2px solid #f5f4f4;  /* ← 枠線（任意） */
  background-color: #fff;  /* ← 背景（任意） */
}

.notice-list li {
  border-bottom: 1px solid #eee;
}

.notice-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: #333;
  padding: 0.5rem 0;
  transition: background-color 0.3s;
}

.notice-list a:hover {
  background-color: #f5f5f5;
}

/*下部タイトルボックス付き画像----------------------------*/
.image-link-wrapper {
  display: inline-block;
  text-align: center;
  font-size: 0;
  margin-bottom: 2rem;
}

.image-link-wrapper img {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
}

/* スマホ時に2列表示する専用クラス */
@media screen and (max-width: 768px) {
  .image-grid.row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 0 !important;
  }
  
  .image-grid .col.span-3 {
    flex: 0 0 49% !important;
    max-width: 49% !important;
    width: 49% !important;
    margin-left: 0 !important;
    margin-bottom: 1rem !important;
  }
  
  .image-grid .col.span-3:nth-child(2n+1) {
    margin-right: 2% !important;
  }
  
  .image-grid .col.span-3:nth-child(2n) {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}

.image-link {
  display: block;
  background-color: #407ef0;
  color: #fff;
  text-decoration: none;
  padding: 10px 0;
  font-weight: bold;
  margin: 0;
  font-size: 2rem; /* フォントサイズを維持 */
}

.image-label {/* 画像下のラベルスタイル(リンク無し */
  display: block;
  background-color: #87b1fd; /* 好きな色に変更可能 */
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 10px 0;
  margin: 0;
}


/*スライドインアニメーション----------------------------*/
.slide-in {
  opacity: 0;
  transition: all 0.8s ease-out;
}
.slide-in.visible {
  opacity: 1;
  transform: translateX(0); /* 戻り調整 */
}
.slide-left {/* 初期位置を左に設定 */
  transform: translateX(-50px);
}
.slide-right {/* 初期位置を右に設定 */
  transform: translateX(50px);
}
.slide-bottom {/* 初期位置を下に設定 */
  transform: translateY(50px);
}

/* カラフルな表 */
.color-table {
  border-collapse: collapse;
  width: 100%;
}

.color-table th,
.color-table td {
  border: 1px solid #333;
  padding: 10px;
  text-align: center;
}

.red-cell {
  background-color: #f8d7da;
}

.green-cell {
  background-color: #d4edda;
}

.blue-cell {
  background-color: #d1ecf1;
}

/*申し込みの流れ
-------------------------------------*/
.flow.row {
	margin-bottom: 3rem;
}

/*会社概要-----------------------------*/
.company-summary {
  padding: 4rem 1.5rem;
  margin: 0 auto;
}

/* PC表示時に横幅を広げる */
@media screen and (min-width: 1024px) {
  .company-summary {
    max-width: 1200px;
    padding: 5rem 2rem;
  }
}

/* スマホ表示時は自動で幅調整 */
@media screen and (max-width: 1023px) {
  .company-summary {
    max-width: 100%;
  }
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  margin: 0 auto;
}

/* スマホ表示：交互に縦並び */
@media screen and (max-width: 768px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

.item,
.value {
  padding: 1rem 0;
  border-bottom: 1px solid #eaf1f5;
}

/* 項目の見た目強調 */
.item {
  font-weight: bold;
  background-color: #eaf1f5;
}

/* スマホ表示：上下に区切り線変更 */
@media screen and (max-width: 768px) {
  .item,
  .value {
    border-bottom: none;
    border-top: 1px solid #eaf1f5;
  }

  .item {
    border-top: 1px solid #eaf1f5;
    background-color: #eaf1f5  }
}

/*採用情報-----------------------------*/
.recruit-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid #ccc; /* 薄い下線 */
}

.recruit-label {
  width: 30%;
  font-weight: bold;
  color: #333;
}

.recruit-content {
  width: 70%;
  color: #555;
}
/*フッター
-------------------------------------*/
footer {
    background-color: var(--back-color); 
    padding: 5rem 0;
}
footer h4 {
    border-bottom: 3px solid var(--border-color);
}
/*フッター内サイトマップ
-------------------------------------*/
.sitemap {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* スマホ：1列 */
  gap: 0.5rem;
}

.sitemap .column > a {
  text-decoration: none;
  color: #407ef0;
  padding: 0.3rem 0;
  display: block;
  border-bottom: 1px solid #ddd;
  transition: background-color 0.3s;
}

.sitemap .column > a:hover {
  background-color: #93b5f5;
}

.sublist {
  display: none;
  padding-left: 1rem;
  font-size: 1.5rem;
}

.sublist a {
  display: block;
}

/* hover/focus-within で開く（必要なら残す。PC常時表示が優先されるため影響なし） */
.sitemap .column:hover > .sublist,
.sitemap .column:focus-within > .sublist {
  display: block;
}

/* 追加: スマホ時は .has-sub をタップ可能に見せる（見た目のみ） */
@media screen and (max-width: 768px) {
  .sitemap .has-sub {
    cursor: pointer;
    user-select: none;
  }
}

@media screen and (min-width: 769px) {/* PC表示時 */
  .sitemap {
    grid-template-columns: repeat(4, 1fr); /* PC：4列 */
  }
  /* PCは常時表示にする */
  .sublist {
    display: block;
  }

}
/*お問い合わせフォーム
-------------------------------------*/
.contact-box {
	border: 1px solid var(--border-color);
	text-align: center;
	padding: 2rem 0;
}
.table {
	margin: 4rem 0;
}
.table th {
	width: 250px;
}

/*申し込みの流れデザイン02（フローチャート）*/
.flow_design01 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flow_design01 ul {
  padding: 0;
}

.flow_design01 li {
  list-style-type: none;
}

.flow_design01 dd {
  margin-left: 0;
}

.flow01 > li {
  padding: 40px 10px;;
}

.flow01 > li:not(:last-child) {
  border-bottom: 3px solid #407ef0;
  position: relative;
}

.flow01 > li:not(:last-child)::before,
.flow01 > li:not(:last-child)::after {
  content: "";
  border: solid transparent;
  position: absolute;
  top: 100%;
  left: 15%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

.flow01 > li:not(:last-child)::before {
  border-width: 22px;
  border-top-color: #407ef0;
}

.flow01 > li:not(:last-child)::after {
  border-width: 18px;
  border-top-color: #fff;
}

.flow01 > li dl {
  margin: 0;
}

.flow01 > li dl dt {
  font-size: 1.3em;
  font-weight: 600;
  border-bottom: 2px dotted #878787;
  margin-bottom: 0.5em;
  padding-bottom: 0.5em;
  display: flex;
}

.flow01 > li dl dt .icon01 {
  font-size: 0.6em;
  color: #fff;
  background: #407ef0;
  padding: 5px 10px;
  display: inline-block;
  margin-right: 0.5em;
}

/*コピーライト
-------------------------------------*/
.copyright {
    text-align: center;
    padding: 1rem 0;
    background-color: var(--base-color);
    font-size: 1.5rem;
}
.copyright a {
    color: var(--white-color);
    text-decoration: none;
	display: inline;
}

/*ページトップへ戻るボタンとお問い合わせボタン
-------------------------------------*/
#pagetop {
  position: fixed;
  bottom: 45px;
  right: 15px;
  display: flex;         /* 横並びにする */
  gap: 10px;             /* ボタン間の余白 */
}

#pagetop a {
  display: block;
  color: var(--white-color);
  width: 100px;
  padding: 12px 7px;
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1.2rem;
}

/* #pagetop 内のボタン色（優先度を上げるため ID を含むセレクタで指定） */
#pagetop a.btn-contact {
  background-color: #93b5f5;
  color: var(--white-color);
}
#pagetop a.btn-contact:hover {
  background-color: #659afc;
}

#pagetop a.btn-top {
  background-color: #407ef0;
  color: var(--white-color);
}
#pagetop a.btn-top:hover {
  background-color: #2353f0;
}

/* モバイルでは hover ではなく open クラスで表示する */
@media screen and (max-width: 768px) {
  /* サブメニューを縦並びにして位置を流す */
  ul.submenu {
    display: none;
    position: static;
    left: auto;
    transform: none;
    background-color: #c2cef7;
    box-shadow: none;
    padding-left: 1rem;
    min-width: 100%;
  }

  /* open クラスがあるときに表示 */
  li.has-submenu.open > ul.submenu {
    display: block;
  }

  /* 親リンクにタップ感を出す */
  li.has-submenu > a {
    cursor: pointer;
    user-select: none;
  }

  /* サブメニュー項目の色調整（任意） */
  ul.submenu li a {
    color: #fff;
  }
}

/* タイトル用（.titlebartext1 を明示的に定義） */
.titlebartext1 {
  background-color: #407ef0;
  color: #fff;
  padding: 1rem;
  border-radius: 4px;
  display: inline-block; /* 見た目を崩さないように明示 */
}

/* Swiperスライドショー */
/* 余白は外側で管理 */
.swiper-outer {
  padding: 0 40px;
  margin-top: 8rem; /* ← 追加: 上に余白を確保 */
}
@media screen and (max-width: 768px) {
  .swiper-outer { padding: 0 16px; }
}

/* 内側は余白なし＋チラ見せのため可視化 */
.swiper {
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: visible;
}
.swiper-3d { overflow: visible; }

/* スライドは幅指定を撤廃し、比率で高さのみ担保 */
.swiper-slide {
  /* width: 70%; ← 削除 */
  height: auto;
  aspect-ratio: 25 / 10;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* キャプション */
.caption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 12px;
  border-radius: 5px;
  z-index: 2;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  font-size: clamp(12px, 3.2vw, 16px);
  line-height: 1.3;
  max-width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* モバイル調整（幅指定はしない） */
@media screen and (max-width: 768px) {
  .swiper { max-width: 100%; }
  .caption {
    bottom: 8px;
    left: 8px;
    padding: 6px 10px;
    max-width: 85%;
  }
}

/* Swiper ページネーションの表示を明示 */
.swiper .swiper-pagination {
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  z-index: 20;
}

/* 必要なら色を調整（任意） */
/*
.swiper-pagination-bullet { background: rgba(255,255,255,.8); opacity: 1; }
.swiper-pagination-bullet-active { background: #407ef0; }
*/

/* ビフォーアフター画像の横並びレイアウト */
.before-after-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.before-after-wrapper img {
  flex: 1 1 0;
  width: 48%;           /* 画像幅を固定（PC/スマホ共通） */
  max-width: 48%;
  min-width: 120px;     /* 最小幅（任意） */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;    /* 画像比率を維持して揃える */
}

.before-after-wrapper .arrow {
  font-size: 2.5rem;
  color: #407ef0;
  font-weight: bold;
  margin: 0;
  flex: 0 0 auto;
}

.case-description {
  text-align: center;
  font-size: 1.6rem;
  color: #333;
  margin-top: 0.5rem;
}

/* スマホ時も横並び＆画像サイズ揃える */
@media screen and (max-width: 768px) {
  .before-after-wrapper {
    flex-direction: row;      /* ← column → row に変更 */
    gap: 0.5rem;
  }
  .before-after-wrapper img {
    width: 48%;
    max-width: 48%;
    min-width: 90px;
  }
  .before-after-wrapper .arrow {
    transform: none;          /* 矢印は回転しない */
    font-size: 2rem;
  }
}

/* FAQ アコーディオン */
.faq-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
}

.faq-question {
  padding: 1.5rem;
  font-size: 1.8rem;
  font-weight: 500;
  color: #2353f0;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s;
}

.faq-question:hover {
  background-color: #f0f4ff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.5rem;
  background-color: #f9fbff;
}

.faq-item.open .faq-answer {
  max-height: 500px; /* 十分な高さを確保 */
  padding: 1.5rem;
  transition: max-height 0.5s ease-in;
}

.faq-item.open .faq-question {
  background-color: #e2e6f5;
}

/* 求人ページ強化 */
.company-summary h3 {
  color: #407ef0;
  border-left: 4px solid #407ef0;
  padding-left: 1rem;
  margin: 2rem 0 1rem 0;
}

.company-summary ul li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.company-summary ul li::before {
  content: "✓";
  color: #407ef0;
  font-weight: bold;
  position: absolute;
  left: 0;
}

