@charset "UTF-8";

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  font-family: "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

a {
  text-decoration: none;
}

ul {
  list-style-type: none;
  padding: 0;
}

ol {
  list-style-type: none;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Noto Sans JP", sans-serif;
}

h6 {
  font-size: 28px;
}

h2 {
  padding: 0.35em 1em;
  /*文字の上下 左右の余白*/
  color: #494949;
  /*文字色*/
  font-size: 30px;
  background: #f4f4f4;
  /*背景色*/
  border-left: solid 8px #004e95;
  /*左線*/
  border-bottom: solid 3px #d7d7d7;
  /*下線*/
}

.inner {
  width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

aside {
  padding-top: 50px;
}

footer {
  margin-top: 50px;
  background-color: #0b63b6;
  padding: 30px 0 30px;
}

main a,
footer a {
  transition-property: opacity;
  transition-duration: 0.3s;
}

main a:hover,
footer a:hover {
  opacity: 0.6;
}

/*ヘッダー設定*/
h3::after {
  content: "";
  display: block;
  width: 200px;
  height: 0;
  margin-top: 25px;
  border-bottom: solid 1.5px #00a4d7;
}

#a-nav {
  padding-top: 37px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: bold;
}

.nav-container a {
  padding: 9px 30px 10px 30px;
  margin-left: 7px;
  border-radius: 5px;
  transition: 0.25s;
}

:root {
  --link-color: #1a70b6;
  /* 元の青色 */
  --link-color-dk: #3a5570;
  /* 少し濃い青 */
  --press-depth: 5px;
  /* 押し込まれる深さ */
  --transition-dur: 0.2s;
}

/* リンクの基本スタイル */
#a-nav .nav-container li a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 1rem;
  color: var(--link-color);
  text-decoration: none;
  border: 2px solid var(--link-color);
  border-radius: 4px;
  background: #fff;
  /* 下にシャドウを置いてリンクが浮いているように見せる */
  box-shadow: 0 var(--press-depth) 0 var(--link-color-dk);
  transition: transform var(--transition-dur) ease,
    box-shadow var(--transition-dur) ease;
}

/* フォントカラーを黒に強制 */
#a-nav .nav-container li a {
  color: #ffffff !important;
  background-color: #1a70b6;
}

/* ホバーで“押し込まれ”アニメーション */
#a-nav .nav-container li a:hover {
  transform: translateY(var(--press-depth));
  /* 下へ移動 */
  box-shadow: 0 0 0 var(--link-color-dk);
  /* シャドウを消す */
}

.logo {
  text-align: left;
  margin-top: 20px;
}

.logo-saiz {
  max-width: 160px;
}

.logo img {
  display: inline-block;
}

.pc-header {
  display: flex;
  justify-content: space-between;
}

.nav-container {
  padding: 0;
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  margin-top: 50px;
}

/*パンくずリスト*/
.Breadcrumb {
  padding: 0.5em;
}

.Breadcrumb-ListGroup {
  padding: 25px 0 0 0;
  display: flex;
  font-size: 12px;
}

.Breadcrumb-ListGroup > * + * {
  margin-left: 0.5em;
}

.Breadcrumb-ListGroup > * + *::before {
  content: ">";
  margin-left: 0.75em;
  margin-right: 0.75em;
}

.Breadcrumb-ListGroup-Item-Link {
  color: #000000;
}

/*お知らせ*/
.notice {
  margin-top: 50px;
  background-color: #f5f5f5;
  border-radius: 10px;
}

.notice-top {
  padding: 35px 70px;
  font-size: 26px;
}

.notice-top::after {
  content: "";
  display: block;
  width: 300px;
  height: 20px;
  border-bottom: solid 2px #000000;
}

/*メイン設定*/

/*インフォメーション設定*/
.info-img {
  width: 230px;
  height: 330px;
}

.wrapper-grid {
  padding-top: 50px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  object-fit: cover;
}

.container {
  display: flex;
  margin: 0;
  max-width: 100%;
}

.info-columns {
  display: flex;
  gap: 20px;
}

.info-text {
  margin: 40px 0 0 20px;
  flex-direction: column;
}

.p-1 {
  padding-right: 20px;
}

.info-text p {
  white-space: nowrap;
  width: 315px;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.8px;
  padding-top: 40px;
}

.info-text {
  position: relative;
}

.view span {
  display: inline-block;
  padding: 10px 45px;
  font-size: 15px;
  color: #ffffff;
  background-color: rgb(39, 39, 39);
  position: absolute;
  right: 0;
  bottom: 0;
}

/*バナー設定*/
.banner-columns {
  max-width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.sns-box {
  padding-left: 30px;
}

/*フッター設定*/
.footer-inner {
  width: 1200px;
  margin: 0 auto;
  padding-top: 10px;
}

.footer-nav {
  display: flex;
  justify-content: flex-end;
}

.footer-h {
  font-size: 30px;
}

.nav-list {
  color: aliceblue;
  justify-content: flex-end;
}

.nav-list dl {
  padding-left: 50px;
}

.nav-list dt::before {
  content: "";
  padding-right: 5px;
  border-left: solid 5px #e2e2e2;
}

.nav-list li {
  font-size: 14px;
  padding: 6px 0 0 10px;
}

.nav-list ul {
  padding: 6px 0 10px 0;
}

.footer-text p,
h4,
small {
  color: #ccc;
  font-size: 12px;
  line-height: 200%;
}

.footer-h li {
  font-size: 30px;
}

/*経営理念　FDリスト設定*/
.fd-list {
  margin-left: 60px;
  font-size: 24px;
}

.fd-list li {
  list-style-type: disc;
  text-decoration: underline;
  text-decoration-color: #004e95;
}

.co-philosophy p {
  margin: 60px 0;
  font-family: "Noto Serif SC", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 36px;
  text-align: center;
}

/*FD宣言設定*/
.fd-formulation {
  text-align: end;
  font-weight: bold;
}

.fd-headline {
  color: #ffffff;
  background-color: #5275c0;
  padding: 6px;
  font-size: 26px;
  text-align: center;
  margin: 18px 0;
}

.fd-text01 {
  font-size: 30px;
  text-align: center;
}

.fd-declaration {
  color: #494949;
}

.fd-declaration p {
  padding: 12px 0;
}

.fd-declaration ol {
  padding: 0;
}

.fd-policy p {
  padding-left: 43px;
}

.fd-declaration li {
  font-weight: bold;
  line-height: 1.6;
  padding-bottom: 15px;
}

.fd-declaration section {
  padding-bottom: 30px;
}

.fd-provacy p {
  padding: 5px 0 15px 34px;
}

.fd-provacy li {
  padding-bottom: 8px;
}

.fd-provacy ol {
  padding: 10px 0 0 70px;
}

.fd-p {
  padding-left: 36px;
}

.h-p {
  margin: 50px 0 15px 0;
  padding: 0.2em 0.5em;
  font-size: 18px;
  border-left: solid 3px #0070d8;
}

.h-p2 {
  padding: 0.2em 0.5em;
  font-size: 20px;
  border-left: solid 3px #0070d8;
  color: #3a3a3a;
}

.insurance-information p {
  padding-left: 37px;
}

.fd-declaration h6 {
  font-size: 18px;
  margin: 20px 0 10px 15px;
}

/* 代表挨拶 */
.greeting h6 {
  margin: 30px 40px 0px 40px;
}

.greeting-message {
  padding-top: 30px;
}

.greeting p {
  padding: 30px 40px 0 40px;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: #333;
}

.greeting img {
  width: 25%;
  height: 25%;
  margin: 40px;
}

.greeting-name p {
  text-align: center;
  font-family: "Yu Mincho,Times New Roman", Times, serif;
  font-size: 2rem;
}

/* 会社概要 */
.overview {
  color: #494949;
}

.overview p {
  margin: 2em 2em;
  font-size: 21px;
}

.overview h6 {
  margin: 60px 40px 0px 25px;
  font-size: 26px;
}

.overview h6::after {
  content: "";
  display: block;
  width: 100%;
  height: 0;
  margin-top: 0px;
  border-bottom: solid 3px #747474;
}

.overview ul {
  margin-left: 45px;
}

.overview li {
  line-height: 32px;
}

/* 採用情報 */
.recruit h6 {
  font-size: 24px;
  margin: 20px 40px 0px 25px;
  line-height: 2;
}

.recruit p {
  margin: 1em 2em;
  font-size: 20px;
}

.recruit-btn a {
  width: 500px;
  display: inline-block;
  padding: 0.8em 2em;
  background-color: #139acf;
  color: white;
  font-weight: bold;
  font-size: 1.6em;
  text-align: center;
  border: none;
  border-radius: 6px;
  box-shadow: 0 6px 0 #013d7c;
  /* 通常時の立体影 */
  transition: transform 0.2s ease, box-shadow 0.1s ease;
}

/* マウスホバー時に押し込まれたように見せる */
.recruit-btn a:hover {
  transform: translateY(6px);
  /* 下に動く */
  box-shadow: 0 0 0 #0056b3;
  /* 影を消すことで沈んだ印象 */
}

.recruit-btn {
  color: #fff;
  margin: 60px auto;
  text-align: center;
}

/* 社会貢献活動　各ページ */
.announcement p {
  margin: 1.7em 2em;
  font-size: 21px;
}

.news-url-1 {
  margin: 1.8em;
  font-size: 1.4rem;
  color: #013d7c;
  text-decoration: underline;
}

.news-url-2 {
  padding-top: 1.8em;
  font-size: 1.4rem;
  color: #013d7c;
  text-decoration: underline;
}

/* ニュースロゴ */
.announcement-1-logo1 {
  width: 150px;
  height: 100%;
  padding-left: 2.5rem;
}

.announcement-1-logo2 {
  width: 180px;
  height: 100%;
}

/*テーブル設定*/
table {
  width: 90%;
  margin: auto;
  border-collapse: collapse;
}

.table-heading {
  color: #494949;
  width: 30%;
  font-size: 20px;
}

table th {
  background: #c8deec;
}

table td {
  background-color: #fafafa;
}

.table-color {
  background-color: #f1f1f1;
}

.table-text {
  text-align: left;
  padding-left: 230px;
}

table th,
table td {
  color: white;
  border: solid 2px rgb(255, 255, 255);
  text-align: center;
  padding: 10px 0;
  color: #000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2vh 5vw;
  background: #fff;
  border-bottom: 1px solid #ddd;
  display: none;
  /* 1199px以上では非表示 */
}

/* 応募フォーム */
.form-container,
.confirm-container,
.complete-container {
  background: #fff;
  max-width: 1200px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h5 {
  margin: 20px 0;
  font-size: 2.5em;
  text-align: center;
}

label {
  display: block;
  margin-bottom: 15px;
  font-size: 0.95em;
}

label p {
  margin: 0;
}

label input,
label textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95em;
}

.privacy-btn {
  display: flex;
  justify-content: center;
}

button {
  margin-top: 20px;
  padding: 15px 100px;
  font-size: 1em;
  border: none;
  border-radius: 4px;
}

button[type="submit"]:hover,
#submitBtn:hover,
#backBtn:hover {
  opacity: 0.7;
  transition: all 0.3s;
}

button[type="submit"],
#submitBtn {
  background: #007bff;
  color: #fff;
}

#backBtn {
  background: #6c757d;
  color: #fff;
}

.button-group {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.form-inner {
  margin: 30px 200px;
}

/* エラー表示 */
.error {
  border-color: red !important;
}

.error-message {
  color: red;
  font-size: 0.8em;
  margin-top: 5px;
}
.form-a {
  width: 100%;
  height: 900px;
}
/* プライバシーポリシー */
.privacy-h {
  text-align: center;
  font-size: 20px;
  padding: 20px 0;
  margin: 0;
  background-color: #292929;
  color: #dddddd;
}

.privacy-box {
  border: 1px solid #ccc;
  margin: 50px 0 50px 20px;
}

.privacy-content {
  max-height: 150px;
  overflow-y: scroll;
  font-size: 0.9em;
}

.privacy-content p {
  padding: 0px 50px;
}

/* ハンバーガーメニューのデフォルト設定 */
.burger-wrapper {
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1100;
  display: none;
  /* 1199px以上では非表示 */
}

.hamburger,
.hamburger::before,
.hamburger::after {
  background: black;
  width: 40px;
  height: 5px;
  position: absolute;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out,
    top 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
  content: "";
  width: 40px;
  height: 5px;
  position: absolute;
}

.hamburger::before {
  top: -12px;
  right: 0px;
}

.hamburger::after {
  top: 12px;
  right: 0px;
}

/* メニューのスライドイン */
.menu {
  position: fixed;
  top: 0;
  right: -100vw;
  width: 50vw;
  height: 100vh;
  background: white;
  box-shadow: -2px 0px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  padding-top: 10vh;
  transition: right 0.3s ease-in-out;
  z-index: 1000;
}

/* 通常メニュー（デフォルト表示） */
.menu a {
  display: block;
  padding: 2vh;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
}

.menu a:hover {
  background: #f5f5f5;
}

/* メニューが開いた状態 */
.menu.active {
  right: 0;
}

/* ハンバーガーアイコンが「×」に変形 */
.burger-wrapper.active .hamburger {
  background: transparent;
  opacity: 1;
}

.burger-wrapper.active .hamburger::before,
.burger-wrapper.active .hamburger::after {
  top: 0;
  transition: top 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.burger-wrapper.active .hamburger::before {
  transform: rotate(45deg);
}

.burger-wrapper.active .hamburger::after {
  transform: rotate(-45deg);
}

/* 背景を暗くするオーバーレイ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease-in-out;
  z-index: 800;
  pointer-events: none;
}

/* メニューが開いたときのオーバーレイ */
.overlay.active {
  background: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #007bff;
}

/* 社会貢献活動ページ設定 */
/* 2カラムレイアウト */
.content-container {
  padding-top: 30px;
  display: flex;
  gap: 20px;
}

/* 左カラム：お知らせリスト */
.announcements-column {
  flex: 2;
}

/* 各お知らせカード */
.announcement-1 {
  padding-bottom: 180px;
}

.announcement-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.announcement-card {
  display: flex;
  flex-direction: row;
  /* デフォルトの方向 */
  align-items: center;
  /* 垂直方向の中央揃え */
  text-decoration: none;
  background-color: #fff;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
}

.announcement-card:hover {
  background-color: #f9f9f9;
}

.announcement-card .date {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.announcement-card .title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #3a3a3a;
}

.announcement-card .content {
  font-size: 1rem;
  line-height: 1.5;
  color: #6d7172;
}

/* ページネーション  今は削除　5つ増やしたら追加*/
/* 今は削除　5つ増やしたら追加*/
#pagination {
  display: none;
}

.pagination {
  margin-top: 20px;
  text-align: center;
}

.pagination button {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 8px 12px;
  margin: 0 2px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.pagination button:hover {
  background-color: #f0f0f0;
}

.pagination button.active {
  background-color: #008eb9;
  color: #fff;
  border-color: #007bff;
}

/* ページネーションの「...」 */
.pagination span {
  margin: 0 4px;
  vertical-align: middle;
}
/* 右カラム：アーカイブ */
.archive-column {
  flex: 1;
  background-color: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  height: fit-content;
}

.archive-column h6 {
  margin: 10px 0;
  font-size: 1.2rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

.archive-column ul {
  list-style: none;
}

.archive-column ul li {
  margin-bottom: 8px;
}

.archive-column ul li a {
  text-decoration: none;
  color: #007bff;
  transition: color 0.3s;
}

.archive-column ul li a:hover {
  color: #0056b3;
}

/*お知らせリストの画像サイズ変更*/
/* サムネイル画像（テキストの左側に表示） */
.thumbnail {
  flex-shrink: 0;
  width: 100px;
  /* 例：固定サイズ指定の場合 */
  height: auto;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 15px;
  /* 画像とテキストの間隔 */
}

/* カード内テキストコンテナ */
.card-content {
  display: flex;
  flex-direction: column;
}

/* SNSまだ未実装 */
.sns-box {
  display: flex;
  justify-content: flex-end;
  padding-top: 3em;
}

.sns-box p {
  font-size: 1.1rem;
  background-color: #cacaca;
  padding: 3em 6em 4em 6em;
}

.br-sp {
  display: none;
}

/*レスポンシブ*/

@media screen and (max-width: 1199px) {
  .inner {
    width: 100%;
  }

  .burger-wrapper,
  .header-container {
    display: flex;
    /* ハンバーガーメニューを表示 */
  }

  .menu {
    right: -100vw;
    /* メニューは非表示 */
  }

  .menu.active {
    right: 0;
    /* メニューを表示 */
  }

  .pc-header {
    display: none;
  }

  .header-nav {
    display: initial;
  }
}

/* レスポンシブCSS */
html {
  font-size: 100%;
  line-height: 1.6;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* タブレット～スマホ（1199px以下）共通 */
@media screen and (max-width: 1199px) {
  html {
    font-size: 90%;
  }

  body {
    margin: 0;
    line-height: 1.6;
  }

  .footer-inner {
    width: 100%;
  }

  /* ヘッダー固定・高さ60px */
  header,
  .header-container {
    position: fixed;
    top: -7px;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  }

  /* ロゴサイズ調整 */
  .logo-saiz {
    max-height: 59px;
    height: auto;
  }

  .pc-header {
    display: none;
  }

  /* ハンバーガーメニュー */
  .mobile-header,
  .burger-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }

  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    margin: 4px 0;
    transition: all 0.3s ease;
  }

  /* ナビゲーション（ハンバーガー） */
  nav ul,
  .menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    right: 0;
    width: 80%;
    max-width: 280px;
    height: calc(100% - 60px);
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    margin: 0;
    padding: 0;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
  }

  nav.open ul,
  .menu.active {
    transform: translateX(0);
  }

  nav a,
  .menu a {
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: left;
  }

  /* メインコンテンツ全般 */
  .wrapper,
  .main-content,
  aside,
  article {
    display: block;
    width: 100%;
    margin: 0;
    padding: 51px;
  }

  .fd-list {
    margin-left: 60px;
  }

  .overview ul {
    margin-left: 10px;
  }

  .form-inner {
    margin: 30px 80px;
  }

  .button-group {
    gap: 30px;
  }

  .form-container,
  .confirm-container,
  .complete-container {
    margin: 0px auto;
  }

  .top-screen {
    margin-top: 90px;
  }

  /* パンくずリスト */
  .Breadcrumb-ListGroup {
    margin: 60px 0 10px 30px;
  }

  .Breadcrumb-ListGroup > * + *::before {
    margin: 0;
  }

  .Breadcrumb-ListGroup-Item-Link {
    display: inline-block;
  }

  /* インフォメーションメニュー */
  .info-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 1rem 0;
    padding: 0;
  }

  .info-columns {
    display: flex;
    flex-direction: column;
    width: 30%;
    margin: 1rem 0;
    padding: 0;
    gap: 32px;
  }

  .info-menu img,
  .info-columns img {
    max-width: 100%;
    height: auto;
  }

  .info-menu p,
  .info-columns p {
    margin: 0 0 1rem;
    padding: 10px 5px;
    font-size: 1.1rem;
  }

  /* 汎用要素 */
  img,
  video {
    max-width: 100%;
    height: auto;
    display: block;
  }

  table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0;
  }

  th,
  td {
    white-space: nowrap;
    padding: 0.5rem;
  }

  input,
  textarea,
  select {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  button,
  .btn,
  .recruit-btn a {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  /* グリッドレイアウト→1カラム */
  .wrapper-grid,
  .announcements-column,
  .archive-column,
  .recruit .form-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .wrapper-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* ページ個別調整 */
  .greeting article.wrapper-grid {
    display: block;
  }

  .co-philosophy .philosophy-section {
    display: block;
    margin: 1rem 0;
    text-align: center;
  }

  .overview .overview,
  .overview table {
    width: 100%;
    margin: 1rem 0;
  }

  .recruit .info-columns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .content-container {
    display: inline;
  }
  .co-philosophy p {
    font-size: 30px;
  }

  /* テキスト要素 */
  h1 {
    font-size: 2rem;
    margin: 1rem 0;
  }

  h2 {
    font-size: 1.8rem;
    margin: 1rem 0;
  }

  h3 {
    font-size: 1.6rem;
    margin: 1rem 0;
  }

  h4 {
    font-size: 1.4rem;
    margin: 1rem 0;
  }

  h5 {
    font-size: 1.2rem;
    margin: 1rem 0;
  }

  h6 {
    font-size: 1rem;
    margin: 1rem 0;
  }

  p,
  div {
    font-size: 0.95rem;
    margin: 0.5rem 0;
    padding: 0 10px;
  }

  /* フッターナビ縦表示 */
  footer {
    padding: 1rem 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 2rem;
  }

  footer nav,
  footer .footer-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  footer li {
    margin: 0.2rem 0;
  }

  footer a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
  }

  /* 各表示変更 */
  .footer-nav dt {
    font-size: 24px;
  }

  /* 各表示変更 */
  .footer-nav ul {
    padding: 0 0 30px 0;
  }
}

/* モバイル（767px以下） */
@media screen and (max-width: 767px) {
  html {
    font-size: 100%;
  }

  body {
    line-height: 1.8;
  }

  /* 見出しサイズ */
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  h4 {
    font-size: 1.2rem;
  }

  h5 {
    font-size: 1rem;
  }

  h6 {
    font-size: 1.4rem;
  }

  /* テキスト */
  p,
  li,
  span,
  div {
    font-size: 1rem;
  }
  .greeting-name p {
    font-size: 1.5rem;
  }

  .co-philosophy p {
    font-size: 24px;
    line-height: 1.8;
  }

  /* ページ余白 */
  header,
  section,
  article,
  footer {
    padding: 1rem 10px;
  }

  footer {
    padding: 1.5rem 10px;
    font-size: 1rem;
    line-height: 1.6;
  }

  .table-text {
    padding-left: 150px;
  }

  /* スマホ改行 */
  .br-sp {
    display: block;
  }
  article img,
  article .container img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .info-columns {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* モバイル（400px以下） */
@media screen and (max-width: 440px) {
  .inner {
    width: 350px;
    padding: 0;
  }
  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 24px;
    padding: 0.3em 0.4em;
  }

  h3 {
    font-size: 22px;
  }

  h4 {
    font-size: 20px;
  }

  h5 {
    font-size: 18px;
  }

  h6 {
    font-size: 16px;
  }
  p,
  li,
  span,
  div {
    font-size: 16px;
  }
  /* 1. 全要素をボックスサイズ border-box 計算にする */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  /* 2. <article class="wrapper-grid"> を1カラム表示に切り替え */
  .wrapper-grid {
    width: 100% !important;
    height: auto;
    padding: 0 !important; /* 必要に応じて左右余白 */
  }
  /* 3. 各カラム (.info-columns) を100%幅のブロックにする */
  .wrapper-grid .info-columns {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 4. カラム内の画像を100%幅に縮小 */
  .wrapper-grid .info-columns img,
  .wrapper-grid .info-columns .info-img {
    height: 130px !important;
    max-width: 100% !important;
  }

  /* 5. 画像やテキストが横幅を超えないように */
  .wrapper-grid .info-columns h3,
  .wrapper-grid .info-columns h2,
  .wrapper-grid .info-columns p,
  .wrapper-grid .info-columns span {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* 6. ボタンやリンクが横にはみ出さないように */
  .wrapper-grid .info-columns a,
  .wrapper-grid .info-columns button {
    max-width: 100% !important;
    display: inline-block !important;
    word-break: break-all !important;
  }

  /* 7. 余計な横スクロールを防止 */
  body,
  html {
    overflow-x: hidden !important;
  }
  .Breadcrumb-ListGroup {
    margin: 50px 0 0 10px;
  }
  .Breadcrumb-ListGroup span {
    font-size: 12px;
  }

  .info-text {
    width: 100%;
    margin: 8px 0 0 0;
  }
  .info-text p {
    font-size: 0.7rem;
  }
  .info-text h3 {
    font-size: 0.9rem;
  }
  h3::after {
    margin-top: 14px;
  }

  .view span {
    display: inline-block !important; /* リセットを防止 */
    position: absolute !important; /* 絶対配置を復活 */
    padding: 3px 15px !important; /* 既にある値 */
    font-size: 10px !important; /* 既にある値 */
    color: #ffffff !important; /* 抜けている色指定 */
    background-color: rgb(39, 39, 39) !important; /* 抜けている背景色 */
    right: 100px !important; /* 既にある値 */
    bottom: 0 !important; /* 既にある値 */
  }
  .info-columns {
    margin: 15px 0 0 0;
    gap: 15px;
  }
  .sns-box {
    width: 300px;
    height: 150px;
  }
  .sns-box p {
    padding: 2em 3em 2em 3em;
    font-size: 14px;
  }
  .nav-list dl {
    padding: 0;
  }
  .footer-nav {
    padding: 0;
  }
  h4 {
    font-size: 1.1rem;
  }
  .footer-nav ul {
    padding: 0 0 10px 0;
  }
  .footer-text p {
    font-size: 11px;
    padding: 5px 0 0 0;
  }
  .footer-text small {
    font-size: 11px;
  }
  .footer-nav dt {
    font-size: 20px;
  }
  /* 各ページの要素変更 */
  .greeting p {
    padding: 10px 5px 20px 5px;
    font-size: 16px;
    line-height: 1.8em;
  }
  .greeting h6 {
    margin: 20px 10px 10px 10px;
  }
  .greeting-name p {
    font-size: 1.3rem;
  }
  .co-philosophy p {
    font-size: 14px;
    line-height: 1.6;
    padding: 0;
    margin: 20px 0;
  }
  .fd-list {
    margin-left: 16px;
  }
  .fd-list li {
    font-size: 13px;
  }

  .overview p {
    margin: 1rem 0;
    font-size: 16px;
  }
  .table-heading {
    font-size: 14px;
  }
  .table-text {
    font-size: 14px;
    padding-left: 15px;
  }
  .overview h6 {
    margin: 20px 0 0 0;
    font-size: 20px;
  }
  .overview li {
    font-size: 15px;
  }
  .recruit h6 {
    font-size: 20px;
    margin: 15px 10px 0px 10px;
    line-height: 1.6;
  }
  .recruit p {
    margin: 30px 10px 0px 10px;
    font-size: 18px;
  }
  .announcement-card {
    display: inline;
    padding: 15px 3px;
  }
  .thumbnail {
    margin: 10px auto 20px;
    width: 140px;
  }
  .announcement-card .date {
    margin: 0;
  }
  .announcement-card .title {
    font-size: 16px;
  }
  .content {
    margin: 0;
  }
  .card-content {
    padding: 0;
  }
  .pagination {
    margin-top: 0;
  }
  .archive-column {
    padding: 15px;
  }
  .archive-column h6 {
    margin: 0;
    font-size: 16px;
  }
  #archiveList {
    margin: 0;
  }
  .archive-column ul li {
    font-size: 12px;
  }
  .archive-column {
    margin: 40px auto 0 auto;
    width: 88%;
  }
  .form-inner {
    margin: 0;
  }
  .privacy-box {
    margin: 0;
    padding: 0;
  }
  .privacy-h {
    font-size: 18px;
    padding: 12px 0;
  }
  .privacy-content p {
    padding: 0;
    font-size: 14px;
    line-height: 1.3;
  }
  label input,
  label textarea {
    margin-top: 0;
  }
  label p {
    padding: 0;
  }
  .form-inner h1 {
    font-size: 20px;
  }
  .fd-declaration h2 {
    font-size: 19px;
    text-wrap: wrap;
  }
  .fd-provacy h2 {
    font-size: 19px;
    text-wrap: wrap;
  }
  .fd-provacy p {
    padding: 5px 0 15px 32px;
  }
  .fd-provacy ol {
    padding: 10px 0 0 35px;
  }
  .fd-text01 {
    font-size: 17px;
  }
  .fd-headline {
    font-size: 19px;
    margin: 0;
  }
  .fd-policy li {
    padding: 0 5px;
    margin-bottom: 16px;
  }
  h4 {
    text-wrap: wrap;
  }
  .announcement h2 {
    font-size: 20px;
  }
  .announcement,
  .announcement-1 {
    padding: 0;
  }
  .announcement p {
    padding: 0;
    margin: 1.2em 0.7em;
    font-size: 18px;
  }
  .announcement-1-logo1 {
    width: 80px;
    padding-left: 1rem;
  }
  .news-url-1 {
    margin: 1em 19px;
    font-size: 1rem;
  }
  .announcement-1-logo2 {
    margin: auto 0;
    width: 100px;
  }
  .news-url-2 {
    width: 100px;
    font-size: 1rem;
    text-wrap: nowrap;
  }
}
