/*
 * コーポレートサイトの見た目.
 * 旧 WordPress サイト（テーマ: Twenty Twenty ベース）の見た目に合わせて書いたもの。
 */

:root {
  --color-accent: #0378d2;
  --color-text: #000;
  --color-secondary: #6d6d6d;
  --color-border: #dbdbdb;
  --color-bg-gray: #f5f5f5;
  --font-base: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
}

/* ---------- base ---------- */

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

html {
  scroll-behavior: smooth;
}

body.site {
  margin: 0;
  background: #fff;
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
}

.site a {
  color: var(--color-accent);
}

.site img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site h1,
.site h2,
.site h4 {
  font-feature-settings: "lnum";
  line-height: 1.5;
  margin: 0;
}

.site h1,
.site h2.entry-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.138888889;
  letter-spacing: -0.0415625em;
}

.site h2 {
  font-size: 28px;
  font-weight: 700;
}

.site h4 {
  font-size: 22px;
  font-weight: 700;
}

.site p {
  margin: 0 0 16px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  word-wrap: normal;
}

.skip-link {
  position: absolute;
  left: -9999rem;
  top: 2.5rem;
  z-index: 999999999;
}

.skip-link:focus {
  left: 2.5rem;
  background: #fff;
  padding: 8px 16px;
}

.section-inner {
  width: calc(100% - 40px);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-inner.thin {
  max-width: 800px;
}

/* ---------- header ---------- */

.site-header {
  position: relative;
  background: #fff;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--color-accent);
  z-index: 999;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1680px;
  margin: 0 20px;
  padding: 20px 0;
}

.site-logo img {
  height: 40px;
  width: auto;
  max-width: calc(100vw - 120px);
  object-fit: contain;
  object-position: left center;
}

.primary-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu li {
  margin: 0 0 0 16px;
}

.primary-menu a {
  display: block;
  padding: 15px 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  letter-spacing: -0.0277em;
}

.primary-menu a:hover,
.primary-menu a:focus {
  text-decoration: underline;
}

/* モバイルのメニュー */
.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;
  background: none;
  color: var(--color-secondary);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 0 0 10px;
}

.nav-toggle-icon {
  display: flex;
  gap: 4px;
  height: 24px;
  color: var(--color-text);
  align-items: center;
}

.nav-toggle-icon span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.menu-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #fff;
  overflow-y: auto;
}

.menu-modal.is-open {
  display: block;
}

.menu-modal-inner {
  padding: 20px;
}

.menu-close {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  border: none;
  background: none;
  color: var(--color-text);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  padding: 20px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
}

.modal-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.modal-menu li {
  border-bottom: 1px solid var(--color-border);
}

.modal-menu a {
  display: block;
  padding: 20px 0;
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
}

/* ---------- top page ---------- */

.top-main-image img {
  width: 100%;
  height: auto;
}

.front-page-content {
  width: calc(100% - 40px);
  max-width: 1200px;
  margin: 0 auto;
}

.front-page-content > h1 {
  text-align: center;
  margin: 40px 0 30px;
}

.front-page-content p {
  line-height: 1.75;
}

.service-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 40px 0;
}

.service-columns > div {
  flex-basis: 100%;
  min-width: 0;
}

.service-columns h4 {
  margin: 0 0 25px;
  font-size: 20px;
}

.service-columns p {
  margin: 0;
}

.top-news {
  background: var(--color-bg-gray);
  padding: 50px 0 100px;
}

.top-news h2 {
  text-align: center;
  margin: 0 auto 50px;
}

.entry-list {
  list-style: none;
  margin: 0 auto;
  padding: 20px;
  max-width: 1000px;
  background: #fff;
}

.entry-list li {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
}

.entry-list li:first-child {
  border-top: 1px solid #ccc;
}

.entry-list-date {
  display: inline-block;
  padding: 3px 0;
  font-size: 14px;
  margin-right: 10px;
}

.entry-list-cat {
  display: inline-block;
  font-size: 12px;
  padding: 2px 20px;
  background: #000;
  color: #fff;
  margin-right: 10px;
  text-decoration: none;
}

.site a.entry-list-cat {
  color: #fff;
}

.entry-list-title {
  display: inline-block;
  margin: 10px 0;
  text-decoration: none;
}

.entry-list-title:hover {
  text-decoration: underline;
}

/* ---------- pages (Profile 等) ---------- */

.entry-header {
  text-align: center;
  padding: 50px 0;
}

.entry-categories {
  margin-bottom: 20px;
}

.entry-categories a {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.036666667em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1.5px solid var(--color-accent);
  line-height: 1.25;
}

.entry-title a {
  color: inherit;
  text-decoration: none;
}

.entry-title a:hover {
  text-decoration: underline;
}

.post-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  color: var(--color-secondary);
  font-size: 15px;
  font-weight: 500;
}

.post-meta li {
  display: flex;
  align-items: center;
  margin: 0 15px;
}

.post-meta svg {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  fill: currentColor;
}

.post-meta a {
  color: inherit;
  text-decoration: none;
}

.featured-media .section-inner {
  width: 100%;
}

.featured-media img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.post-inner {
  padding-top: 50px;
}

.entry-content {
  font-size: 16px;
  line-height: 1.5;
}

.entry-content h4 {
  margin: 35px 0 20px;
}

.entry-content > h4:first-child {
  margin-top: 0;
}

.entry-content p,
.entry-content ul {
  margin: 0 0 16px;
}

.entry-content ul {
  padding-left: 20px;
}

/* 縞模様の表（Profile） */
.stripes-table {
  width: 100%;
  margin: 40px 0;
  border-collapse: collapse;
  border-spacing: 0;
  border: 1px solid var(--color-border);
  font-size: 15px;
  line-height: 1.4;
  background: #fff;
}

.stripes-table td {
  padding: 7.5px;
  border: 1px solid transparent;
  vertical-align: middle;
}

.stripes-table td:first-child {
  width: 27%;
}

.stripes-table tr:nth-child(odd) {
  background: var(--color-border);
}

.stripes-table .mail-image {
  display: inline-block;
  width: 150px;
  vertical-align: middle;
}

/* お知らせの一覧の区切り */
.post-separator {
  position: relative;
  margin: 50px auto;
  border: none;
  border-top: 1px solid var(--color-border);
  overflow: visible;
  color: var(--color-secondary);
}

.post-separator::before {
  content: "//";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 10px;
  background: #fff;
  font-size: 14px;
  letter-spacing: -0.1em;
}

/* 前後のお知らせへのリンク */
.pagination-single {
  margin-top: 50px;
  font-size: 18px;
  font-weight: 600;
}

.pagination-single hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

.pagination-single-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0;
}

.pagination-single a {
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
}

.pagination-single a:hover .title {
  text-decoration: underline;
}

.pagination-single .next-post {
  margin-left: auto;
  text-align: right;
}

/* ---------- お問い合わせ ---------- */

.inquiry-form label,
.inquiry-form .form-label {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0;
}

.inquiry-form .form-control {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 0;
  color: var(--color-text);
  font-size: 16px;
  padding: 16px 18px;
  line-height: 1.4;
}

.inquiry-form .form-control:focus {
  background: #fff;
  border-color: currentColor;
  box-shadow: none;
}

.inquiry-form textarea.form-control {
  min-height: 120px;
}

.inquiry-form .row > div {
  /* splib の入力部品は Bootstrap のグリッドで並ぶので、1 列にそろえる */
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  margin-bottom: 20px;
}

.inquiry-form img[alt="CAPTCHA"] {
  border: 1px solid var(--color-border) !important;
}

.inquiry-form .btn,
.site-button {
  display: inline-block;
  border: none;
  border-radius: 0;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.0333em;
  line-height: 1.25;
  padding: 18px 24px;
  text-decoration: none;
  cursor: pointer;
}

.inquiry-form .btn:hover,
.site-button:hover {
  text-decoration: underline;
  background: var(--color-accent);
  color: #fff;
}

.inquiry-form .text-danger {
  color: #cd2653 !important;
  font-size: 15px;
  margin-top: 4px;
}

/* ---------- footer ---------- */

.site-footer {
  /* splib-web.css の footer（画面下に固定）を打ち消す（お問い合わせ画面で読み込まれる） */
  position: static;
  width: auto;
  text-align: left;
  background: var(--color-accent);
  color: #fff;
  font-size: 12px;
  padding: 20px 0;
  margin-top: 0;
}

.site-footer .footer-copyright {
  margin: 0;
  font-weight: 600;
  line-height: 1.75;
}

.to-the-top {
  position: fixed;
  bottom: 8px;
  right: 15px;
  z-index: 100;
  border: 2px solid;
  padding: 10px;
  border-radius: 25px;
  background: #fff;
  color: var(--color-secondary);
  font-size: 12px;
  text-decoration: none;
}

.site a.to-the-top {
  color: var(--color-secondary);
}

.to-the-top:hover {
  background: rgba(255, 255, 255, 0.8);
}

.to-the-top-long {
  display: none;
}

.main-has-footer-space {
  margin-bottom: 80px;
}

/* ---------- media queries ---------- */

@media (min-width: 700px) {
  .section-inner,
  .front-page-content {
    width: calc(100% - 80px);
  }

  .header-inner {
    margin: 0 40px;
  }

  .front-page-content > h1 {
    margin-top: 60px;
  }

  .service-columns h4 {
    font-size: 22px;
  }

  .featured-media .section-inner {
    width: calc(100% - 80px);
  }

  .entry-categories {
    margin-bottom: 30px;
  }

  .entry-categories a {
    font-size: 15px;
  }

  .post-meta {
    font-size: 16px;
    margin-top: 30px;
  }

  .post-inner {
    padding-top: 80px;
  }

  .entry-list {
    padding: 50px;
  }

  .to-the-top-long {
    display: inline;
  }

  .to-the-top-short {
    display: none;
  }
}

@media (min-width: 782px) {
  .service-columns {
    flex-wrap: nowrap;
  }

  .service-columns > div {
    flex-basis: 0;
    flex-grow: 1;
  }
}

@media (min-width: 1000px) {
  .primary-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-toggle {
    display: none;
  }
}
