@charset "UTF-8";
/* ************************************************
 *	スマホ表示（幅 767px 以下）
 *
 *	viewport を持つページで読み込む（$css に 'sp' を追加）。
 *	パソコン表示は変えない：すべての規則をこの @media の中に書く。
 *	viewport を持つ全ページで読み込む（2026-09-30 に全ページ対応済み）
 * ************************************************ */
@media (max-width: 767px) {

/* ---- 全体の幅：1000px 固定をやめて画面幅に合わせる ---- */
#container {
  width: auto;
  border: none;
}
#container img {
  max-width: 100%;
  height: auto;
}

/* ---- ヘッダー：ロゴの下にリンクを折り返す ---- */
#header {
  flex-wrap: wrap;
  height: auto;
  gap: 0;
}
#header .site-logo {
  height: 64px;
  margin-left: 20px;
}
#header .site-logo::before {        /* ロゴを小さくした分、帯も縮めてロゴの右隣に */
  left: 146px;
  width: 20px;
  height: 64px;
}
#header .site-logo img {
  height: 32px;
}
#header ul {
  flex-wrap: wrap;
  gap: 4px 16px;
  width: 100%;
  padding: 0 16px 10px;
}

/* ---- グローバルナビ：写真の上に縦1列で重ねる ----
   写真はナビの高さいっぱいに広げて左寄せ。文字の下（右側）ほど濃くなる半透明の黒を重ねて読みやすくする */
#navigation.nav {
  position: relative;
  height: auto;
  background-size: cover;
  background-position: left center;
}
#navigation.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0.7) 100%);
}
#navigation ul {
  position: relative;              /* 重ねた半透明の色より手前に出す */
  margin: 0;
  padding: 16px 16px 18px;
}
#navigation ul li {
  font-size: 0.95em;
  letter-spacing: 0.1em;
  line-height: 2.3;
  white-space: nowrap;
}

/* ---- 見出し帯：キャッチコピーが2行になっても重ならないよう、青い線をキャッチコピーの下線として引く ---- */
.page-head {
  background-image: none;
}
.page-head__title {
  flex: 0 0 100%;
  padding: 6px 12px 8px 50px;
}
.page-head__title::before {
  display: none;
}
.page-head__catch {
  position: relative;
  height: auto;
  min-height: 24px;
  margin: 0 -12px 6px -50px;
  padding: 2px 12px 5px 50px;
  line-height: 1.6;
  border-bottom: 1px solid #1c4b9c;
}
.page-head__catch::before {        /* 波形のマークを線の上に重ねる */
  content: "";
  position: absolute;
  left: 8px;
  bottom: -14px;
  width: 36px;
  height: 27px;
  background: var(--page-head-wave) no-repeat;
}
.page-head__name {
  font-size: 19px;
}
.page-head__en {
  display: block;
  margin: 2px 0 0 0;
  padding: 0;
  border: none;
  font-size: 10px;
  line-height: 1.6;
}

/* ---- 本文：横並びを縦積みにする ---- */
#flex_2col {
  flex-direction: column;
  gap: 20px;
  margin: 24px 16px;
}
.service-columns {
  flex-direction: column;
  gap: 40px;
  margin: 24px 16px;
}
.service-columns article {
  width: 100%;
}
#service2 h2 {
  margin: 0 0 0 16px;
}
#features {
  flex-direction: column;
  gap: 40px;
  margin: 32px 16px;
}
.flex_3col {
  max-width: 100%;
  width: 100%;
}
.caption {
  font-size: 1.3em;               /* 長い英文（Research and Development など）が画面からはみ出さないように */
}
.btn,
.btn:link,
.btn:visited,
.btn:hover,
.btn:active,
.btn:focus {
  padding: 1rem 16px;
}

/* ---- フッター：縦に並べる ---- */
#footer {
  flex-direction: column;
  gap: 8px;
  padding: 20px 16px;
}
#footer_menu {
  flex-wrap: wrap;
}
#footer li a {
  margin-left: 0;
  margin-right: 14px;
}
#footer address,
#footer .copyright {
  text-align: left;
}

/* ---- スペック表（W-series など） ---- */
.spec td {                         /* 画面内で折り返す */
  white-space: normal;
}

/* ---- 実績一覧（works.css）：カード2列、名前一覧2列 ---- */
.works {
  padding: 24px 16px 32px;
}
.works-group {
  margin-bottom: 56px;
}
.works .heading {
  margin-bottom: 44px;
}
.works-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 14px;
}
#container .works-card__image img {   /* 上の「#container img の高さ auto」より優先して、枠（4:3）いっぱいに表示する */
  height: 100%;
}
.works-card__title {
  margin-top: 8px;
  font-size: 0.95em;
}
.works-others {
  margin-top: 36px;
}
.works-others__list {
  columns: 2;
  column-gap: 16px;
}

}

/* 幅 480px 以下：実績一覧のカードと名前一覧を1列に */
@media (max-width: 480px) {
.works-grid {
  grid-template-columns: 1fr;
  gap: 28px;
}
.works-card__title {
  font-size: 1em;
}
.works-others__list {
  columns: 1;
}
}
