/* トップページ固有のスタイル */

/* リセットCSS */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 基本スタイル */
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

/* メインビジュアル (トップページ固有) */
.main_visual {
  position: relative;
  width: 100%;
  height: calc(100vh - 90px);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 4% 8%;           /* 左右 4%, 下に 8% 余白 */
}

.main_visual_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main_visual_text {
  width: auto;
  max-width: 600px;
  background: #fff;
  color: #0C0C70;
  font-weight: bold;
  font-size: 7.5vw;           /* さらに大きく */
  padding: 1rem 1.5rem;       /* 余白調整 */
  width: auto;                /* テキスト量に応じる */
  box-sizing: border-box;     /* padding を含む */
  border-radius: 4px;
  text-align: center;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.main_visual_text h1 {
  margin: 0;
  font-size: 7.5vw;           /* 同上 */
  font-weight: bold;
  letter-spacing: 0.05em;
  line-height: 1.35;
}

/* 各セクション共通スタイル (トップページ用) */
.section_wrapper {
  padding: 80px 0;
  background: #f7f7f7;
}

.about_us_section_wrapper {
  background: #fff;
  /* 余白を半分に減らす */
  padding: 40px 0;
}

.section_inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section_title {
  font-size: 48px;
  font-weight: bold;
  color: #0C0C70;
  margin-bottom: 5px; /* 下に少しスペースを減らす */
  position: relative;
  text-align: left;
  font-style: italic; /* 斜体を再度追加 */
}

.section_title::before {
  content: '';
  position: absolute;
  left: -28px; /* 赤いバーを左にずらしてテキストと揃える */
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 40px;
  background-color: #e04040;
}

.section_subtitle {
  font-size: 24px;
  color: #333;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: left;
}

/* 私たちについて */
.about_us_sub_title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  position: relative;
  text-align: left;
}

.about_us_left_content {
  flex: 1;
  padding-right: 20px;
}

.about_us_text {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

.about_us_image {
  flex-shrink: 0;
  width: 500px;
}

.about_us_image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about_us_grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about_us_content {
  margin-top: 20px;
}

/* 事業内容 */
.business_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 20px;
}

.business_item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.business_image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.business_content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  align-items: center;         /* 中央寄せ */
}

.business_text_wrapper {
  flex-grow: 1; /* 残りのスペースをすべて占有 */
}

.business_heading {
  font-size: 1.5rem;
  color: #0C0C70;
  margin-bottom: 15px;
  font-weight: bold;
  text-align: center;          /* 見出し中央 */
}

.business_text {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
}

.business_text:last-of-type {
  margin-bottom: 0;
}

/* 採用情報 */
.recruit_main_visual_inner {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 20px;
}

.recruit_main_visual_content {
  flex: 1;
  padding-right: 20px;
}

.recruit_main_visual_subtitle {
  font-size: 1.2rem;
  color: #0C0C70;
  margin-bottom: 20px;
}

.recruit_main_visual_text {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
}

.recruit_main_visual_button {
  display:inline-block;
  padding:12px 40px !important;
  font-size:16px;
  font-weight:bold;
  text-align:center;
  color:#000 !important;
  border:3px solid #000 !important;
  border-radius:30px !important;
  text-decoration:none;
  transition:all 0.3s ease;
  cursor:pointer;
  margin-top:30px;
  margin-left:auto;
  margin-right:0;
}
.recruit_main_visual_button:hover {
  background:#000 !important;
  color:#fff !important;
}

.recruit_main_visual_image {
  flex-shrink: 0;
  width: 500px;
}

.recruit_main_visual_image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* お問合せ */
.contact_section_wrapper {
  background-color: #fff;
  padding: 80px 0;
  text-align: center;
}

.contact_section_wrapper .section_inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background-color: #f7f7f7;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact_section_wrapper .section_title {
  font-size: 2rem;
  color: #0C0C70;
  margin-bottom: 10px;
  font-style: normal;
  display: inline-block;
  position: relative;
}

.contact_section_wrapper .section_title::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 40px;
  background-color: #e04040;
}

.contact_section_wrapper .section_subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 20px;
  display: block;
}

.contact_description {
  font-size: 16px;
  color: #555;
  margin: 20px 0 40px;
  line-height: 1.6;
  overflow: visible;
}

@media (min-width: 769px) {
  .contact_description {
    white-space: nowrap; /* PCでは改行なし */
  }
}

.contact_button {
  display: inline-block;
  padding: 15px 50px;
  border: 1px solid #333;
  border-radius: 5px;
  color: #333;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.contact_button:hover {
  background-color: #333;
  color: #fff;
}

/* 共通ボタンスタイル（トップページ固有で定義） */
.section_button,
.company_profile_button {
  border-radius: 30px;      /* 角丸で楕円形に */
  margin-left: auto;        /* 右寄せ */
  margin-right: 0;
  padding: 12px 40px;       /* 少し横幅を持たせる */
  margin-top: 24px;        /* 上に余白を追加 */
}

.section_button:hover {
  background-color: #0C0C70;
  color: #fff;
}

/* レスポンシブ対応 (トップページ固有) */
@media (max-width: 768px) {
  .main_visual {
    padding: 0 0 8% !important; /* 左右余白を除去 */
  }
  .about_us_grid {
    flex-direction: column;
    gap: 20px;
  }
  .contact_description {
    white-space: nowrap !important;   /* 折り返さず1行 */
    font-size: clamp(10px, 3.2vw, 16px); /* 画面幅に応じて調整 */
    overflow: visible !important;     /* はみ出し防止 */
    text-overflow: clip !important;   /* 省略しない */
    max-width: 100%;
    text-align: center;
  }
  /* スマホでは画像幅を自動に */
  .about_us_image {
    width: 100% !important;
    max-width: 100% !important;
  }

  .business_grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .business_item {
    width: 100%;
  }

  .recruit_main_visual_inner {
    flex-direction: column;
  }

  .recruit_main_visual_image {
    width: 100%;
  }

  .section_title {
    padding-left: 28px !important; /* テキストを右へずらす */
  }
  .section_title::before {
    left: 0 !important;            /* バーをテキスト直前に */
  }

  .company_profile_grid {
    flex-direction: column;
    gap: 20px;
  }
  .company_profile_image {
    width: 100% !important;
  }
  .company_profile_right_content {
    align-items: flex-start;
  }
  .company_profile_button {
    align-self: flex-start;
  }
  .company_profile_button {
    align-self: center;
    margin-top: 24px;
  }
}

@media (max-width: 600px) {
  /* ===== メインビジュアルを画面いっぱいに ===== */
  .main_visual {
    height: calc(100vh - 90px); /* ヘッダー分を引いた全高 */
    padding: 0 0 8%;            /* 左右余白をなくし下側のみ 8% 余白 */
    align-items: flex-end;      /* 下寄せ */
  }

  /* ステップ状レイアウト用調整 */
  .main_visual_text {
    background: none;
    padding: 0;
    margin-bottom: 0;
    max-width: 100%;
    text-align: left;          /* 左揃えに */
  }

  .main_visual_text h1 {
    display: inline;            /* 行ごとに分割 */
    padding: 1rem 1.5rem;       /* 余白 */
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone; /* 行ごとに背景を複製 */
  }

  .main_visual_text h1 {
    font-size: 7.5vw;           /* 同上 */
    line-height: 1.35;
  }

  /* ===== キャッチコピー（共通） ===== */
  .catchcopy {
    display: flex;
    flex-direction: column; /* 上が1行目、下が2行目 */
    align-items: flex-start;
    gap: 0;
  }
  .copy-line {
    background: #fff;
    display: inline-block;
    padding: 1.2rem 1.5rem;
    border-radius: 4px;
    font-size: 7.5vw;
    font-weight: bold;
    color: #0C0C70;
    line-height: 1.3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  /* 不要になった改行用クラスは非表示にしておく */
  .sp-br{display:none;}

  /* 各行を改めてブロック化＆折り返し防止 */
  .copy-line{
    display:inline-block !important;
    white-space:normal;      /* 折り返し許可 */
    max-width:90vw;          /* 画面端で折り返し */
  }

  /* ===== キャッチコピー（スマホ） ===== */
  .copy-line {
    background: none !important;   /* 背景を消す */
    padding: 0 !important;         /* 余白をなくす */
    box-shadow: none !important;   /* 影を消す */
  }
}

@media (max-width: 992px) {
  .recruit_main_visual_inner {
    flex-direction: column;
  }

  .recruit_main_visual_image {
    width: 100%;
  }
}

/* 会社概要 */
.company_profile_grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

.company_profile_image {
  flex-shrink: 0;
  width: 500px;
}

.company_profile_image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.company_profile_right_content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.company_profile_right_content .section_title {
  font-size: 48px;
  font-weight: bold;
  color: #0C0C70;
  margin-bottom: 5px;
  position: relative;
  text-align: left;
  font-style: italic;
}

.company_profile_right_content .section_title::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 40px;
  background-color: #e04040;
}

.company_profile_right_content .section_subtitle {
  font-size: 24px;
  color: #333;
  font-weight: bold;
  margin-bottom: 20px;
  position: relative;
  text-align: left;
}

.company_profile_text {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-top: 20px;
}

.company_profile_button {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 768px) {
  .company_profile_grid {
    flex-direction: column;
    gap: 20px;
  }
  .company_profile_button {
    align-self: center;
    margin-top: 24px;
  }
}

/* ===== PC (幅769px以上) 用に上書き ===== */
@media (min-width: 769px) {
  .main_visual {
    height: 600px;
    padding-left: 5%;
    padding-bottom: 0;
    align-items: flex-end;
  }
  .main_visual_text {
    font-size: 2rem;
    max-width: 600px;
    padding: 1rem 2rem;
  }
  .main_visual_text h1 {
    font-size: 2rem;
    line-height: 1.3;
  }
  /* PC 用キャッチコピー調整 */
  .catchcopy{
    display:block;
  }
  .main_visual_text{
    background:#fff;
    padding:1.5rem 2rem;
    border-radius:4px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
    max-width: fit-content;
  }
  .copy-line{
    background:none;
    padding:0;
    display:inline;
    white-space:normal;
  }
  /* About us セクション */
  .about_us_left_content,
  .about_us_image {
    flex: 0 0 50%;   /* 50% 幅固定 */
    max-width: 50%;
  }
  .about_us_image { width: 100%; }
  .about_us_image img { width: 100%; height: auto; }
  .company_profile_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "image text"
      "image button";
    align-items: start;
    gap: 40px;
  }
  .company_profile_image { 
    grid-area: image;
    width: 100%;          /* 列幅 (50%) にフィット */
  }
  .company_profile_image img { width: 100%; height: auto; }
  .company_profile_right_content { 
    grid-area: text;
    width: 100%;          /* 列幅にフィット */
  }
  .company_profile_button { grid-area: button; justify-self: start; align-self: start; }

  /* Recruit セクション (PC) */
  .recruit_main_visual_inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "text image"
      "button image";
    align-items: start;
    gap: 40px;
  }
  .recruit_main_visual_content { grid-area: text; }
  .recruit_main_visual_image { grid-area: image; }
  .recruit_main_visual_button { grid-area: button; justify-self: start; align-self: start; }
}

/* ===== キャッチコピー（PC 基本） ===== */
.catchcopy {
  display: inline-flex;
  flex-direction: row;
  gap: 0.25rem;            /* 行同士のすき間 */
  align-items: flex-start;
}
.copy-line {
  display: inline;
}

/* SP専用改行 */
.sp-br{display:none;}
@media (max-width:768px){
  .sp-br{display:inline;} 
} 

.catchcopy-pc { display: none; }
.catchcopy-sp { display: inline-block; }

@media (min-width: 769px) {
  .catchcopy-pc { display: inline-flex; }
  .catchcopy-sp { display: none; }
} 

@media (max-width: 768px) {
  /* キャッチコピー表示切替 */
  .catchcopy-pc { display: none !important; }
  .catchcopy-sp { display: inline-block !important; }
} 