/*
Theme Name: original
*/

@charset "utf-8";

/* ============================================================
   CSS変数
============================================================ */
:root {
  --clr-primary:    #009BD8;
  --clr-primary-lt: #E1F5FE;
  --clr-primary-dk: #005A87;
  --clr-accent:     #C8102E;
  --clr-green:      #06C755;
  --clr-white:      #ffffff;
  --clr-bg:         #f7fcff;
  --clr-text:       #333333;
  --clr-text-sub:   #555555;
  --clr-border:     #eeeeee;
  --header-h:       100px;
  --bar-h:          64px;
  --header-h-sp:    70px;
  --bar-h-sp:       56px;

  /* サイト共通コンテンツ幅 */
  --content-w:      1080px;
  --content-pad:    20px;
}

/* ============================================================
   リセット
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code, del, dfn, em, img,
ins, kbd, q, samp, small, strong, sub, sup, var,
b, i, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  vertical-align: baseline;
  border: 0;
  outline: 0;
  background: transparent;
}

html {
  font-size: 62.5%;
  margin-top: 0 !important;
  overflow-x: hidden;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.6rem;
  color: var(--clr-text);
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

ul, ol { list-style: none; }

blockquote, q { quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after { content: ''; content: none; }

a {
  margin: 0;
  padding: 0;
  vertical-align: baseline;
  background: transparent;
  text-decoration: none;
  transition: all .3s;
}

table {
  border-spacing: 0;
  border-collapse: collapse;
}

hr {
  display: block;
  height: 1px;
  margin: 1em 0;
  padding: 0;
  border: 0;
  border-top: 1px solid #ccc;
}

input[type="submit"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="button"],
input[type="reset"] {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

button {
  outline: none;
  padding: 0;
  appearance: none;
  background-color: transparent;
  border: none;
}

img {
  width: 100%;
  image-rendering: -webkit-optimize-contrast;
  vertical-align: bottom;
}

/* ============================================================
   共通レイアウト
============================================================ */
.inner {
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

/* front-page.php用コンテナ（.innerと同一） */
.container {
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

article {
  overflow: hidden;
}

.pc-only { display: flex; }
.sp_br, .sp_img, .sp, .sp-br { display: none; }

@media screen and (max-width: 1080px) {
  .inner,
  .container {
    padding: 0 15px;
  }
  .sp_br, .sp_img, .sp, .sp-br { display: block; }
  .pc_br, .pc_img, .pc { display: none; }
}

/* ============================================================
   ヘッダー
============================================================ */
header {
  width: 100%;
  height: var(--header-h);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9000;
  background-color: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 0;
  border-radius: 0;
}

.header_inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--content-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--content-pad);
  gap: 20px;
}

.header_logo {
  flex-shrink: 0;
}

.header_logo a {
  display: block;
}

.header_logo img {
  width: 320px;
  height: auto;
  display: block;
}

/* ============================================================
   共通ボタン
============================================================ */
.btn {
  font-family: "Noto Sans JP", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--clr-primary);
  color: var(--clr-white);
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color .2s;
}

.btn:hover {
  background-color: var(--clr-primary-dk);
  color: var(--clr-white);
}

.linebtn {
  background-color: var(--clr-green);
}

.linebtn:hover {
  background-color: #05a848;
  color: var(--clr-white);
}

.header_link {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

/* ============================================================
   診療科目バー
============================================================ */

/* ============================================================
   診療科目バー
============================================================ */

/* バー全体：幅をヘッダー・FVと同じ1080pxに揃える */
.department-nav-wrap {
  height: var(--bar-h);
  position: fixed;
  top: var(--header-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--content-w);
  z-index: 8999;
  background-color: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(0,155,216,0.2);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* 中身：左右パディングでヘッダーの内側と位置を揃える */
.department-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  height: 100%;
  padding: 0 var(--content-pad);
}

/* アウトラインボタン */
.dept_link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 180px;
  padding: 0 24px;
  background-color: transparent;
  color: var(--clr-primary-dk);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 50px;
  border: 2px solid var(--clr-primary);
  transition: background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}

.dept_link::after {
  content: '\203A'; /* › */
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 6px;
}

.dept_link:hover {
  background-color: var(--clr-primary);
  color: var(--clr-white);
  border-color: var(--clr-primary);
}

/* セパレーター非表示 */
.dept-sep {
  display: none;
}

/* ============================================================
   ハンバーガーボタン
============================================================ */
#toggle {
  display: none;
  position: fixed;
  right: 15px;
  top: calc((var(--header-h-sp) - 36px) / 2);
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 9500;
  background: none;
  border: none;
  padding: 0;
}

#toggle span {
  display: block;
  position: absolute;
  width: 28px;
  height: 2px;
  background: var(--clr-text);
  left: 6px;
  border-radius: 2px;
  transition: .3s;
}

#toggle span:nth-child(1) { top: 9px; }
#toggle span:nth-child(2) { top: 18px; }
#toggle span:nth-child(3) { top: 27px; }

#toggle.active span:nth-child(1) {
  top: 18px;
  transform: rotate(-45deg);
}
#toggle.active span:nth-child(2) { opacity: 0; }
#toggle.active span:nth-child(3) {
  top: 18px;
  transform: rotate(45deg);
}

/* ============================================================
   スマホメニュー
============================================================ */
.nav-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--clr-white);
  z-index: 9200;
  padding: 120px 30px 40px;
  overflow-y: auto;
}

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

.nav-menu ul li a {
  display: block;
  padding: 16px 0;
  color: var(--clr-text);
  font-size: 1.7rem;
  font-weight: 700;
  border-bottom: 1px solid var(--clr-primary-lt);
}

.nav-menu-cta {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.nav-menu-cta a {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--clr-white);
  text-decoration: none;
}

.nav-menu-cta .btn-tel { background-color: var(--clr-primary); }
.nav-menu-cta .btn-line { background-color: var(--clr-green); }

/* ============================================================
   スマホ対応（ヘッダー）
   ブレークポイント: 1080px に統一
============================================================ */
@media screen and (max-width: 1080px) {
  header {
    height: var(--header-h-sp);
  }

  .header_logo img {
    width: 200px;
  }

  .department-nav-wrap {
    top: var(--header-h-sp);
    height: var(--bar-h-sp);
  }

  .department-nav {
    height: var(--bar-h-sp);
    gap: 12px;
  }

  .dept_link {
    height: 34px;
    min-width: 130px;
    padding: 0 16px;
    font-size: 1.3rem;
  }

  #toggle {
    display: block;
  }

  .pc-only {
    display: none;
  }
}

/* ============================================================
   フッター
============================================================ */
footer {
  background-color: var(--clr-white);
  border-top: 2px solid var(--clr-primary-lt);
  padding: 60px 0 40px;
  color: var(--clr-text);
}

.footer_fx {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--content-pad) 40px;
  gap: 40px;
}

.footer_L {
  flex-shrink: 0;
}

.f_logo {
  width: 240px;
  height: auto;
  display: block;
  margin-bottom: 16px;
}

.footer_L p {
  color: var(--clr-text-sub);
  font-size: 1.3rem;
  line-height: 1.8;
}

.footer_R {
  flex: 1;
  text-align: right;
}

.footer_nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.footer_nav ul li:after {
  display: none;
}

.footer_nav li a {
  color: var(--clr-text);
  font-size: 1.3rem;
  font-weight: 500;
  text-decoration: none;
}

.footer_nav li a:hover {
  color: var(--clr-primary);
}

.fv_link02 {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.fv_link02 a {
  display: inline-block;
  background-color: var(--clr-bg);
  color: var(--clr-primary);
  border: 1.5px solid var(--clr-primary);
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.4rem;
  text-align: center;
  min-width: 120px;
  text-decoration: none;
  position: static;
}

.fv_link02 a:before {
  display: none;
}

.fv_link02 a:hover {
  background-color: var(--clr-primary);
  color: var(--clr-white);
}

footer small {
  display: block;
  text-align: center;
  font-size: 1.2rem;
  color: #999;
  border-top: 1px solid var(--clr-border);
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 20px var(--content-pad) 0;
}

/* ============================================================
   スマホ固定ボタン
============================================================ */
.footer_btn {
  display: none;
}

@media screen and (max-width: 1080px) {
  .footer_btn {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255,255,255,0.97);
    padding: 10px 12px;
    z-index: 9000;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  }

  .footer_btn_fx {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
  }

  .footer_btn_reserve {
    flex: 1;
    background-color: var(--clr-primary);
    color: var(--clr-white);
    text-align: center;
    padding: 14px 0;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    display: block;
  }

  .footer_btn_line {
    flex: 1;
    background-color: var(--clr-green);
    color: var(--clr-white);
    text-align: center;
    padding: 14px 0;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    display: block;
  }

  footer {
    margin-bottom: 70px;
  }

  .footer_fx {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 400px;
  }

  .footer_L {
    width: 100%;
  }

  .f_logo {
    margin: 0 auto 16px;
  }

  .footer_R {
    width: 100%;
  }

  .footer_nav ul {
    justify-content: center;
  }

  .fv_link02 {
    justify-content: center;
  }
}

/* ============================================================
   トップページ：スライダー（FV）
============================================================ */
.main-visual {
  width: 100%;
  max-width: var(--content-w);
  margin: calc(var(--header-h) + var(--bar-h) + 8px) auto 0;
  padding: 0 var(--content-pad);
  position: relative;
  z-index: 1;
}

@media screen and (max-width: 1080px) {
  .main-visual {
    margin-top: calc(var(--header-h-sp) + var(--bar-h-sp) + 10px);
    padding: 0 15px;
  }
}

.slider {
  opacity: 0;
  transition: opacity .4s ease;
}

.slider.slick-initialized {
  opacity: 1;
}

.slider-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.slider .slick-dots li.slick-active button:before {
  color: var(--clr-primary);
}

/* slick height修正 */
.main-visual .slick-list,
.main-visual .slick-track,
.main-visual .slick-slide,
.main-visual .slick-slide > div {
  height: auto !important;
}

.main-visual .slider-item img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   トップページ：共通
============================================================ */
.fp-section {
  margin-bottom: 80px;
}

.fp-section:last-child {
  margin-bottom: 0;
}

.fp-h2 {
  font-size: 3.2rem;
  font-weight: 600;
  color: #000;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.15em;
}

.fp-red-text {
  color: #d30037;
  font-weight: 600;
  font-size: 3.0rem;
  margin-bottom: 15px;
  letter-spacing: 0.08em;
}

.fp-text {
  color: #000;
  text-align: left;
  margin-bottom: 20px;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

.fp-more-link {
  font-size: 1.8rem;
  display: inline-block;
  color: #d30037;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-bottom: 8px;
  margin-top: 10px;
  border-bottom: 1px solid #d30037;
  letter-spacing: 0.08em;
}

.fp-more-link::after {
  content: '▶';
  margin-left: 8px;
  font-size: 0.8em;
}

/* ============================================================
   トップページ：背景帯
============================================================ */
.fp-bg-light {
  background-color: var(--clr-bg);
  padding: 60px 0;
}

.fp-bg-gray {
  background-color: #F5F5F5;
  padding: 60px 0;
}

/* ============================================================
   トップページ：診療科目
============================================================ */
.fp-departments {
  margin-bottom: 0;
}

.fp-departments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

.fp-dept-card {
  position: relative;
  border: 2px solid #d30037;
  padding: 25px 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  margin-top: 20px;
  background-color: #fff;
}

.fp-dept-icon,
.fp-dept-icon--seibyo {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.fp-dept-desc {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 1.8rem;
  color: #000;
  line-height: 1.2;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.fp-dept-title {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  color: #d30037;
  font-size: 2.4rem;
  font-weight: 600;
  background-color: #fff;
  padding: 0 20px;
  white-space: nowrap;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-align: center;
}

.fp-dept-title-sub {
  display: block;
  font-size: 1.4rem;
  margin-top: -2px;
}

.fp-dept-title--seibyo {
  top: -20px;
}

.fp-dept-icon {
  width: 80px;
  height: 80px;
  margin-top: 10px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-dept-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fp-dept-icon--seibyo {
  width: 80px;  /* 左カードと同じ幅に統一 */
  height: 80px; /* 左カードと同じ高さに統一 */
  margin-top: 10px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}



/* ============================================================
   トップページ：クリニックについて
============================================================ */
.fp-about {
  margin-bottom: 0;
  padding: 80px 0;
}

.fp-about-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.fp-about-image {
  flex: 0 0 45%;
  max-width: 500px;
}

.fp-about-image img {
  width: 100%;
  height: auto;
}

.fp-about-text {
  flex: 1;
}

/* ============================================================
   トップページ：性病検査の特徴
============================================================ */
.fp-features {
  margin-bottom: 0;
}

.fp-features-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

.fp-features-image {
  flex: 0 0 40%;
  max-width: 400px;
}

.fp-features-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.fp-features-text {
  flex: 1;
}

/* ============================================================
   トップページ：アクセス・診療時間
============================================================ */
.fp-access {
  margin-bottom: 60px;
}

.fp-address {
  margin: 20px 0;
  line-height: 1.8;
}

.fp-map {
  width: 100%;
  height: 400px;
  margin-top: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.fp-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   トップページ：診療時間テーブル
============================================================ */
.fp-timetable {
  margin: 30px 0;
}

.fp-timetable table {
  width: 100%;
  border-collapse: collapse;
}

.fp-timetable thead {
  border-bottom: 3px solid #d30037;
}

.fp-timetable th {
  font-weight: 600;
  padding: 10px;
  text-align: center;
  border: none;
}

.fp-timetable td {
  padding: 12px;
  text-align: center;
  border: none;
  border-bottom: 1px dashed #3E3235;
}

.fp-timetable .available {
  color: #d30037;
  font-weight: 600;
  font-size: 2.4rem;
}

.fp-timetable .closed {
  color: #000;
  font-weight: 600;
  font-size: 2.4rem;
}

.fp-timetable .note {
  display: block;
  font-size: 1.2rem;
  color: #666;
  font-weight: normal;
  margin-top: 5px;
}

/* ============================================================
   トップページ：お知らせ
============================================================ */
.fp-news {
  padding-top: 80px;
}

.fp-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fp-news-item {
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
  display: flex;
  gap: 20px;
}

.fp-news-date {
  color: #d30037;
  font-weight: 600;
  white-space: nowrap;
}

.fp-news-title a {
  color: #3E3235;
  text-decoration: none;
}

/* ============================================================
   トップページ：FAQ
============================================================ */
.fp-faq {
  padding-bottom: 80px;
}

.fp-faq-item {
  margin-bottom: 30px;
}

.fp-faq-question {
  background-color: var(--clr-primary);
  color: #fff;
  padding: 15px 60px 15px 20px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  font-weight: 500;
}

.fp-faq-question .q-mark {
  font-weight: bold;
  margin-right: 10px;
}

.fp-faq-question::after {
  content: '';
  position: absolute;
  right: 25px;
  top: 50%;
  width: 24px;
  height: 2px;
  background: #fff;
  transform: translateY(-50%);
  transition: transform 0.3s;
}

.fp-faq-question::before {
  content: '';
  position: absolute;
  right: 36.5px;
  top: 50%;
  width: 2px;
  height: 24px;
  background: #fff;
  transform: translateY(-50%);
  transition: opacity 0.3s;
}

.fp-faq-question.open::before {
  opacity: 0;
}

.fp-faq-answer {
  display: none;
  padding: 20px;
  background-color: var(--clr-bg);
  border: 1px solid var(--clr-primary);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.fp-faq-answer p {
  color: #3E3235;
  line-height: 2;
  margin: 0;
}

.fp-faq-answer .a-mark {
  font-weight: bold;
  color: var(--clr-primary);
  margin-right: 10px;
}

/* ============================================================
   トップページ：レスポンシブ（1080px以下）
============================================================ */
@media screen and (max-width: 1080px) {
  .fp-h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
  }

  .fp-red-text {
    font-size: 1.8rem;
  }

  .fp-more-link {
    font-size: 1.2rem;
  }

  .fp-section {
    margin-bottom: 60px;
  }

  /* 診療科目 */
  .fp-departments-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 0;
  }

  .fp-dept-card {
    padding: 10px 5px 15px;
  }

  .fp-dept-title {
    font-size: 1.6rem;
    padding: 0 10px;
  }

  .fp-dept-title-sub {
    font-size: 1.1rem;
  }

  .fp-dept-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
  }

  .fp-dept-icon--seibyo {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
  }

  .fp-dept-desc {
    font-size: 1.2rem;
  }

  /* クリニックについて */
  .fp-about {
    padding: 60px 0;
  }

  .fp-about-content {
    flex-direction: column;
    gap: 30px;
  }

  .fp-about-image {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* 性病検査の特徴 */
  .fp-features-content {
    flex-direction: column;
    gap: 30px;
  }

  .fp-features-image {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* アクセス・診療時間 */
  .fp-map {
    height: 300px;
  }

  .fp-timetable table {
    font-size: 1.4rem;
  }

  .fp-timetable th,
  .fp-timetable td {
    padding: 8px 4px;
  }

  /* お知らせ */
  .fp-news {
    padding-top: 60px;
  }

  .fp-news-item {
    flex-direction: column;
    gap: 5px;
  }

  /* FAQ */
  .fp-faq {
    padding-bottom: 60px;
  }
}

/* ============================================================
   共通ページ：ヘッダービジュアル
============================================================ */
.basic_mv {
  position: relative;
  width: 100%;
  height: 240px;
  margin-top: calc(var(--header-h) + var(--bar-h));
  overflow: hidden;
}

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

.basic_bg {
  background-color: var(--clr-bg);
}

.basic_ttl {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: fit-content;
  text-align: center;
}

.basic_ttl h1 {
  color: var(--clr-white);
  font-weight: 700;
  font-size: clamp(2.0rem, 2.5vw, 3.2rem);
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

@media screen and (max-width: 1080px) {
  .basic_mv {
    margin-top: calc(var(--header-h-sp) + var(--bar-h-sp));
    height: 180px;
  }
}

/* ============================================================
   お知らせ一覧・採用情報ページ
============================================================ */
.basic_contents {
  padding: 60px 0 100px;
}

.column_pagearea {
  background-color: var(--clr-white);
}

.recruit_area {
  padding: 60px 0 100px;
}

.recruit_area .inner {
  max-width: 900px;
}

/* ============================================================
   記事詳細（single.php）
============================================================ */
.edit_contents {
  padding: 60px 0 100px;
}

.single_page .inner {
  max-width: 780px;
}

.edit_contents time {
  display: block;
  font-size: 1.4rem;
  color: var(--clr-text-sub);
  margin-bottom: 12px;
}

.edit_contents h2.ttl {
  font-size: clamp(2.0rem, 2.5vw, 2.8rem);
  font-weight: 700;
  color: var(--clr-text);
  padding-bottom: 20px;
  border-bottom: 2px solid var(--clr-primary-lt);
  margin-bottom: 40px;
  line-height: 1.5;
}

.edit-area h3 {
  font-size: 2.0rem;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 16px;
  margin-top: 40px;
  color: var(--clr-text);
}

.edit-area h4,
.edit-area h5 {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 10px;
  margin-top: 24px;
}

.edit-area p {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.edit-area img {
  width: 85%;
  display: block;
  margin: 30px auto;
}

.edit_contents .cta {
  display: inline-block;
  margin-top: 40px;
  background-color: var(--clr-primary);
  color: var(--clr-white);
  padding: 14px 40px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  transition: background-color .2s;
}

.edit_contents .cta:hover {
  background-color: var(--clr-primary-dk);
}

/* ============================================================
   フォーム共通
============================================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  font-size: 1.4rem;
  font-weight: 500;
  padding: 10px 15px;
  width: 100%;
  border: 1px solid var(--clr-border);
  background-color: #f0f0f0;
  border-radius: 4px;
  font-family: "Noto Sans JP", sans-serif;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
  color: #9c9c9c;
  font-size: 1.4rem;
}

.wpcf7-submit {
  font-size: 1.6rem;
  display: block;
  width: 100%;
  color: var(--clr-white);
  font-weight: 700;
  border: none;
  padding: 12px 0;
  border-radius: 8px;
  background-color: var(--clr-primary);
  cursor: pointer;
  transition: background-color .2s;
  font-family: "Noto Sans JP", sans-serif;
}

.wpcf7-submit:hover {
  background-color: var(--clr-primary-dk);
}

.wpcf7-spinner {
  display: none !important;
}

/* ============================================================
   アニメーション
============================================================ */
.fadeIn {
  opacity: 0;
  transition: opacity 2s;
}

.fadeIn.is-show {
  opacity: 1;
}

.js-fadeUp {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s, transform .8s;
}

.js-fadeUp.is-show {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .5s;
}

/* ============================================================
   PCヘッダーナビ
============================================================ */
.header_nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow: visible; /* ドロップダウンがはみ出るよう visible に */
}

/* 2行×4列グリッド */
.header_nav > ul {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 2px 0;
  justify-content: end;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 各セル */
.header_nav > ul > li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 縦区切り線（最終列以外） */
.header_nav > ul > li:not(:nth-child(4n)) {
  border-right: 1px solid var(--clr-border);
}

.header_nav > ul > li > a {
  display: block;
  padding: 4px 14px;
  color: var(--clr-text);
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}

.header_nav > ul > li > a:hover {
  color: var(--clr-primary);
}

/* サブメニューを持つ親にインジケーター */
.header_nav > ul > li.menu-item-has-children > a::after {
  content: ' \25BE'; /* ▾ */
  font-size: 1.0rem;
  color: var(--clr-primary);
}

/* ============================================================
   PCドロップダウン
============================================================ */
.header_nav ul li ul.sub-menu {
  display: block;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  padding: 6px 0;
  list-style: none;
  margin: 0;
  z-index: 9100;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity .2s, transform .2s;
}

.header_nav ul li:hover ul.sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.header_nav ul li ul.sub-menu li a {
  display: block;
  padding: 10px 18px;
  color: var(--clr-text);
  font-size: 1.3rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}

.header_nav ul li ul.sub-menu li a:hover {
  background-color: var(--clr-primary-lt);
  color: var(--clr-primary);
}

@media screen and (max-width: 1080px) {
  .header_nav {
    display: none;
  }
}

/* ============================================================
   SPスマホメニュー：サブメニューアコーディオン
============================================================ */

/* サブメニューを持つ親：リンクとトグルボタンを横並びに */
.nav-menu ul li.menu-item-has-children {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid var(--clr-primary-lt);
}

.nav-menu ul li.menu-item-has-children > a {
  flex: 1;
  padding: 16px 0;
  border-bottom: none; /* 親liのborder-bottomで制御 */
}

/* ＋ボタン */
.nav-menu ul li.menu-item-has-children > a::after {
  content: none; /* aタグのafterは使わない */
}

.submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--clr-primary);
  font-size: 2.0rem;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
}

/* サブメニュー本体：初期非表示 */
.nav-menu ul li ul.sub-menu {
  display: none;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: var(--clr-primary-lt);
  border-radius: 0 0 8px 8px;
}

.nav-menu ul li ul.sub-menu li {
  display: block;
  border-bottom: none;
}

.nav-menu ul li ul.sub-menu li a {
  display: block;
  padding: 12px 20px 12px 32px;
  color: var(--clr-primary-dk);
  font-size: 1.5rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(0,155,216,0.15);
}