@charset "UTF-8";
/*###################################################################
  style.css（全ページ共通・WP化で追加した分）
  ページ別の見た目は top.css / company.css / work.css / recruit.css /
  gallery.css / contact.css / lower.css（静的サイトから移植）。
  このファイルはページ別CSSの後に読み込む。SCSS は使用しない（直接編集）
###################################################################*/
:root {
  --base: #fff;
  --main: #10528D;
  --sub: #365568;
  --bg: #f4f4f4;
  --text: #333;
}

/*###################################################################
  フォント
###################################################################*/
body {
  font-family: "Noto Sans JP", sans-serif;
}

/* 見出し・ナビ・キャッチコピーは明朝 */
h1,
h2,
h3,
h4,
h5,
h6,
.ttl__title,
.future p,
.navi-bottom a,
#g-nav a {
  font-family: "Zen Old Mincho", serif;
}

/*###################################################################
  画像
###################################################################*/
/* WP化で img に width / height 属性を付けたため、CSS で幅だけ指定している画像が
   属性の height のまま伸びないようにする（高さを指定しているクラスはそちらが優先） */
img {
  height: auto;
}

/*###################################################################
  共通パーツ
###################################################################*/
/* 下層ページタイトル（静的サイトの h2 と同じ見た目にする） */
.ttl__title {
  font-size: 1.5em;
  font-weight: bold;
}

/* recruit.css の h2 { margin: 16px 0; } が元はタイトルにも当たっていたため */
.page-recruit .ttl__title {
  margin: 16px 0;
}

/* ハンバーガー（button 化したため PC で非表示にする） */
@media (min-width: 960px) {
  .openbtn {
    display: none;
  }
}

/* スクリーンリーダー用テキスト */
.screen-reader-text {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ボタン（top.css と同じ指定。404 等でも使うため共通化） */
.btn,
a.btn,
button.btn {
  position: relative;
  display: inline-block;
  color: #333;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  background-color: #fff;
  border-radius: 0.5rem;
  padding: 1rem 2rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s;
}

a.btn--red.btn--cubic {
  border-bottom: 3px solid #707070;
}

a.btn--red.btn--cubic:hover {
  margin-top: 3px;
  border-bottom: 1px solid #707070;
}

a.btn--radius {
  border-radius: 100vh;
}

/*###################################################################
  アイコン（静的サイトの icons8 画像を CSS に置き換え）
###################################################################*/
.phone-link::before,
.footer-phone::before,
.contact-button::before,
.footer-contact::before {
  content: "";
  width: 20px;
  height: 20px;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  background-color: #fff;
  margin-right: 8px;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.phone-link::before,
.footer-phone::before {
  mask-image: url(../images/icon-tel.svg);
  -webkit-mask-image: url(../images/icon-tel.svg);
}

.contact-button::before,
.footer-contact::before {
  margin-right: 10px;
  mask-image: url(../images/icon-mail.svg);
  -webkit-mask-image: url(../images/icon-mail.svg);
}

/* フッターの電話アイコンは 15px・青 */
.footer-phone::before {
  width: 15px;
  height: 15px;
  background-color: #0056b3;
}

/*###################################################################
  トップ: TOPICS
###################################################################*/
.topic-btn {
  margin-top: 20px;
  text-align: right;
}

/* 元は space-around のため、タイトルの長さで日付の位置がずれる → 左揃えにする
   間隔は PC: 参考画像 pp/top – 1.png の日付〜本文の実測（約48px）、SP: 既存 top.css の .date margin-right 10px */
.notification {
  justify-content: flex-start;
  column-gap: 48px;
}

.notification .date {
  flex-shrink: 0;
  margin-right: 0;
}

.notification .message {
  min-width: 0;
}

@media (max-width: 959px) {
  .notification {
    column-gap: 10px;
  }
}

.topic-none {
  margin: 8px 0;
}

/*###################################################################
  お知らせ・404 共通（lower.css と併用）
###################################################################*/
.news-main {
  background-color: var(--bg);
  padding: clamp(3.75rem, 2.8571rem + 3.8095vw, 6.25rem) 0;
}

/*----------------------------------
  お知らせ一覧
----------------------------------*/
.news-list__inner {
  max-width: 1000px;
  box-sizing: content-box;
  margin-inline: auto;
  padding-right: 30px;
  padding-left: 30px;
}

@media (max-width: 959px) {
  .news-list__inner {
    padding-right: 5%;
    padding-left: 5%;
  }
}

.news-list__items {
  display: flex;
  flex-direction: column;
  row-gap: clamp(1.25rem, 0.9821rem + 1.1429vw, 1.875rem);
}

.news-list__post-link {
  display: grid;
  grid-template-columns: 25% 1fr;
  align-items: center;
  column-gap: clamp(0.9375rem, 0.4243rem + 2.1898vw, 1.875rem);
  background-color: var(--base);
  color: var(--text);
  border: 1px solid #ddd;
}

@media (max-width: 600px) {
  .news-list__post-link {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }
}

.news-list__thumbnail {
  height: 100%;
  overflow: hidden;
}

.news-list__thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.news-list__text-box {
  min-width: 0;
  padding-block: clamp(0.625rem, 0.4539rem + 0.7299vw, 0.9375rem);
  padding-right: clamp(0.625rem, 0.4539rem + 0.7299vw, 0.9375rem);
}

@media (max-width: 600px) {
  .news-list__text-box {
    padding: 0 15px 20px;
  }
}

.news-list__date {
  display: block;
  color: var(--main);
  font-size: clamp(0.875rem, 0.8066rem + 0.292vw, 1rem);
  font-weight: 500;
  line-height: 1.75;
}

.news-list__post-title {
  font-size: clamp(1rem, 0.8631rem + 0.5839vw, 1.25rem);
  font-weight: 500;
  line-height: 1.75;
  text-align: start;
  word-break: break-all;
}

.news-list__no-post {
  min-height: 200px;
  display: grid;
  place-items: center;
  background-color: var(--base);
  font-size: clamp(1rem, 0.8631rem + 0.5839vw, 1.25rem);
  text-align: center;
  padding: 20px;
}

.news-list__pagination {
  margin-top: clamp(3.125rem, 2.0558rem + 4.5620vw, 5rem);
}

.news-list__pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
}

/* ul にも .page-numbers が付くため li の中だけに当てる */
.news-list__pagination li .page-numbers {
  min-width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--base);
  color: var(--main);
  font-size: 1rem;
  line-height: 1;
  border: 1px solid var(--main);
}

.news-list__pagination .page-numbers.current {
  background-color: var(--main);
  color: var(--base);
}

.news-list__pagination .page-numbers.dots {
  background-color: transparent;
  border-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .news-list__thumbnail img {
    transition: transform ease 0.4s;
  }
  .news-list__post-title {
    transition: color ease 0.4s;
  }
  .news-list__post-link:hover .news-list__thumbnail img,
  .news-list__post-link:focus .news-list__thumbnail img {
    transform: scale(1.1);
  }
  .news-list__post-link:hover .news-list__post-title,
  .news-list__post-link:focus .news-list__post-title {
    color: var(--main);
    text-decoration: underline;
  }
  .news-list__pagination a.page-numbers {
    transition: background-color 0.4s ease, color 0.4s ease;
  }
  .news-list__pagination a.page-numbers:hover,
  .news-list__pagination a.page-numbers:focus {
    background-color: var(--main);
    color: var(--base);
  }
}

/*----------------------------------
  お知らせ詳細
----------------------------------*/
.news-post__inner {
  max-width: 840px;
  box-sizing: content-box;
  margin-inline: auto;
  padding-right: 30px;
  padding-left: 30px;
}

@media (max-width: 959px) {
  .news-post__inner {
    padding-right: 5%;
    padding-left: 5%;
  }
}

.news-post__bg {
  background-color: var(--base);
  padding: clamp(2.5rem, 2.0536rem + 1.9048vw, 3.125rem) clamp(0.9375rem, 0.1786rem + 3.2381vw, 3.125rem) clamp(3.75rem, 1.9643rem + 7.619vw, 6.25rem);
}

.news-post__date {
  display: block;
  color: var(--main);
  font-size: 1rem;
  font-weight: 500;
}

.news-post__title {
  font-size: clamp(1.375rem, 1.2857rem + 0.381vw, 1.5rem);
  font-weight: bold;
  line-height: 1.6;
  word-break: break-all;
  border-bottom: 2px solid var(--main);
  margin-top: 10px;
  padding-bottom: 10px;
}

.news-post__thumbnail {
  margin-top: clamp(1.875rem, 1.4286rem + 1.9048vw, 2.5rem);
}

.news-post__thumbnail img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-inline: auto;
}

.news-post__editor {
  margin-top: clamp(1.875rem, 1.4286rem + 1.9048vw, 2.5rem);
}

.news-post__page-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
}

.news-post__page-links-label {
  line-height: 1;
}

.news-post__page-links .post-page-numbers {
  min-width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--main);
  line-height: 1;
  border: 1px solid var(--main);
}

.news-post__page-links .post-page-numbers.current {
  background-color: var(--main);
  color: var(--base);
}

.news-post-pager {
  background-color: var(--base);
  margin-top: clamp(2.5rem, 1.6071rem + 3.8095vw, 3.75rem);
}

.news-post-pager__nav {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 15px;
  font-size: clamp(0.875rem, 0.6071rem + 1.1429vw, 1.125rem);
  font-weight: 500;
  padding: 0 20px;
}

.news-post-pager__nav a {
  color: var(--main);
}

.news-post-pager__btn_prev {
  justify-self: start;
}

.news-post-pager__btn_next {
  justify-self: end;
}

@media (hover: hover) and (pointer: fine) {
  .news-post__page-links a.post-page-numbers {
    transition: background-color 0.4s ease, color 0.4s ease;
  }
  .news-post__page-links a.post-page-numbers:hover,
  .news-post__page-links a.post-page-numbers:focus {
    background-color: var(--main);
    color: var(--base);
  }
  .news-post-pager__link {
    transition: opacity 0.5s;
  }
  .news-post-pager__link:hover,
  .news-post-pager__link:focus {
    opacity: 0.7;
  }
}

/*----------------------------------
  投稿本文（ブロックエディター）
----------------------------------*/
.mce-content-body {
  display: flow-root;
  color: var(--text);
  line-height: 1.875;
  word-break: break-word;
}

.mce-content-body > * {
  margin-top: 1.5em;
}

.mce-content-body .wp-block-columns,
.mce-content-body .wp-block-group,
.mce-content-body .wp-block-buttons,
.mce-content-body .wp-block-cover,
.mce-content-body .wp-block-media-text,
.mce-content-body .wp-block-file,
.mce-content-body .wp-block-details {
  margin-top: 1.5em;
}

.mce-content-body > *:first-child {
  margin-top: 0;
}

.mce-content-body > .wp-block-spacer {
  margin-top: 0;
}

.mce-content-body .wp-block-column > *:first-child,
.mce-content-body .wp-block-group > *:first-child,
.mce-content-body .wp-block-cover__inner-container > *:first-child,
.mce-content-body .wp-block-media-text__content > *:first-child,
.mce-content-body .wp-block-details > *:first-child {
  margin-top: 0;
}

.mce-content-body h1 {
  font-size: inherit;
  font-weight: normal;
}

.mce-content-body h2,
.mce-content-body h3,
.mce-content-body h4,
.mce-content-body h5,
.mce-content-body h6 {
  font-weight: bold;
  line-height: 1.75;
  margin: 3em 0 1.5em;
  clear: both;
}

.mce-content-body h2 {
  font-size: 1.375rem;
  border-left: 5px solid var(--main);
  padding: 2px 0 2px 10px;
}

.mce-content-body h3 {
  font-size: 1.25rem;
  border-bottom: 2px solid var(--main);
  padding-bottom: 10px;
}

.mce-content-body h4 {
  font-size: 1.125rem;
}

.mce-content-body h5 {
  font-size: 1.0625rem;
}

.mce-content-body h6 {
  font-size: 1rem;
}

.mce-content-body p {
  line-height: 1.8;
  margin-top: 1.5em;
}

.mce-content-body em {
  font-style: italic;
}

.mce-content-body pre {
  overflow: auto;
  background-color: #eee;
  border: 1px solid #ccc;
  margin-top: 1.5em;
  padding: 7px 12px;
}

.mce-content-body blockquote {
  color: #777;
  border-left: 5px solid #ddd;
  margin: 1.5em 0;
  padding: 0.5em 0 0.5em 10px;
}

.mce-content-body blockquote > *:first-child {
  margin-top: 0;
}

.mce-content-body ul,
.mce-content-body ol {
  margin-top: 1.5em;
  padding-left: 0;
  clear: both;
}

.mce-content-body ul ul,
.mce-content-body ul ol,
.mce-content-body ol ul,
.mce-content-body ol ol {
  margin-top: 0;
}

.mce-content-body ul {
  list-style-type: disc;
}

.mce-content-body ol {
  list-style-type: decimal;
}

.mce-content-body li {
  margin-left: 1.5em;
}

.mce-content-body a {
  color: #0000ee;
  text-decoration: underline;
}

.mce-content-body img {
  max-width: 100%;
  width: auto;
  height: auto;
}

.mce-content-body figure {
  margin-top: 1.5em;
}

.mce-content-body figcaption {
  font-size: 0.875rem;
  line-height: 1.75;
  text-align: center;
  margin-top: 0.5em;
}

.mce-content-body hr {
  margin-top: 1.5em;
  clear: both;
}

.mce-content-body .aligncenter {
  margin-right: auto;
  margin-left: auto;
}

.mce-content-body .aligncenter:not([class*=wp-block-]) {
  display: block;
}

/* 画像ブロックの中央寄せは figure.aligncenter（クラスに wp-block- が無い）になるため、
   上の display: block が当たってキャプションが縦1文字ずつになる → コア同様 table に戻す */
.mce-content-body .wp-block-image figure.aligncenter {
  display: table;
}

.mce-content-body .alignleft {
  float: left;
  margin-right: 20px;
  margin-bottom: 20px;
}

.mce-content-body .alignright {
  float: right;
  margin-bottom: 20px;
  margin-left: 20px;
}

.mce-content-body .alignwide,
.mce-content-body .alignfull {
  max-width: 100%;
  margin-inline: 0;
}

.mce-content-body .wp-caption,
.mce-content-body [class*=wp-image] {
  max-width: 100% !important;
  display: block;
  text-align: center;
  margin-top: 1.5em;
}

.mce-content-body .wp-caption-text {
  margin-top: 0;
}

.mce-content-body .wp-block-image a {
  display: inline-block;
}

.mce-content-body div.wp-block-image {
  display: contents;
}

.mce-content-body .wp-block-table {
  overflow-x: auto;
}

/* border-collapse では外側の罫線の半分が表の幅からはみ出し、1px 分の横スクロールと右端の欠けが出るため 1px 引く */
.mce-content-body .wp-block-table table {
  width: calc(100% - 1px);
  border-collapse: collapse;
}

.mce-content-body .wp-block-table th,
.mce-content-body .wp-block-table td {
  border: 1px solid #ddd;
  padding: 10px;
}

.mce-content-body .wp-block-table th {
  background-color: var(--bg);
}

.mce-content-body .wp-block-embed.aligncenter {
  text-align: center;
}

.mce-content-body .wp-block-embed.is-type-video .wp-block-embed__wrapper {
  aspect-ratio: 16 / 9;
}

.mce-content-body .wp-block-embed.is-type-video .wp-block-embed__wrapper iframe {
  width: 100%;
  height: 100%;
}

.mce-content-body .wp-block-embed iframe {
  max-width: 100%;
}

.mce-content-body .wp-block-button__link {
  background-color: var(--main);
  color: var(--base);
  text-decoration: none;
  border-radius: 0;
}

/* 音声プレーヤー（コアの min-width: 300px で 375px 幅のとき本文からはみ出すため） */
.mce-content-body .wp-block-audio audio {
  min-width: 0;
}

/* アウトラインボタン（上の塗りつぶし指定を打ち消す） */
.mce-content-body .is-style-outline > .wp-block-button__link {
  background-color: transparent;
  color: var(--main);
  border: 2px solid currentColor;
}

/* プルクオート（コアの上下 4em と、上の blockquote の左線・余白が重なって間延びするため） */
.mce-content-body .wp-block-pullquote {
  padding: 2em 0;
}

.mce-content-body .wp-block-pullquote blockquote {
  color: inherit;
  border-left: none;
  margin: 0;
  padding: 0;
}

.mce-content-body .wp-block-file {
  font-size: 1rem;
  line-height: 1.75;
}

.mce-content-body .wp-block-file .wp-block-file__button {
  background-color: var(--main);
  color: var(--base);
  font-size: 0.875rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 0;
}

.mce-content-body::after {
  content: "";
  display: block;
  clear: both;
}

@media (hover: hover) and (pointer: fine) {
  .mce-content-body .wp-block-button__link,
  .mce-content-body .wp-block-file__button {
    transition: opacity 0.4s ease;
  }
  .mce-content-body .wp-block-button__link:hover,
  .mce-content-body .wp-block-button__link:focus,
  .mce-content-body .wp-block-file__button:hover,
  .mce-content-body .wp-block-file__button:focus {
    opacity: 0.7;
  }
}

/*----------------------------------
  404
----------------------------------*/
.page-404__inner {
  max-width: 1000px;
  box-sizing: content-box;
  background-color: var(--base);
  text-align: center;
  margin-inline: auto;
  padding: clamp(2.5rem, 1.6071rem + 3.8095vw, 3.75rem) 30px;
}

@media (max-width: 959px) {
  .page-404__inner {
    max-width: 90%;
    padding-right: 5%;
    padding-left: 5%;
    box-sizing: border-box;
  }
}

.page-404__title {
  color: var(--main);
  font-size: clamp(1.25rem, 1.0714rem + 0.7619vw, 1.5rem);
  font-weight: bold;
  line-height: 1.5;
}

.page-404__text {
  white-space: pre-line;
  line-height: 1.8;
  margin-top: 30px;
}

@media (max-width: 959px) {
  .page-404__text {
    text-align: left;
  }
}

.page-404__button-wrapper {
  margin-top: 40px;
}

/*###################################################################
  お問い合わせ（Contact Form 7）
  フォーム本文は CF7 管理画面「フォーム」タブ（下書き: test.php）
  入力欄の見た目は contact.css（静的サイトから移植）
###################################################################*/
/* 入力欄を包む span をブロックにして、エラー文を入力欄の下に出す */
.contact-table .wpcf7-form-control-wrap {
  display: block;
}

/* メールアドレス（確認用）との間隔 */
.contact-table .wpcf7-form-control-wrap + .wpcf7-form-control-wrap {
  margin-top: 10px;
}

.contact-table .wpcf7-not-valid-tip {
  font-size: 12px;
  margin-top: 5px;
}

/* 送信ボタン（スピナーは通常フローから外し、ボタンの位置をずらさない） */
.submit-wrapper {
  position: relative;
  padding-bottom: 29px;
}

.submit-wrapper .wpcf7-spinner {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}

/* 送信完了後はボタンを非表示（連打防止） */
.wpcf7-form[data-status="sent"] .submit-wrapper {
  display: none;
}

.wpcf7 form .wpcf7-response-output {
  font-size: 14px;
  margin: 10px 0 0;
}