/* common.css ================================================
   全ページ共通スタイル
   ============================================================ */

/* リセット ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, figure, figcaption { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* CSS変数 -------------------------------------------------- */
:root {
  /* カラー */
  --color_main:   #1A2167;
  --color_sub:    #EFF5FB;
  --color_dark:   #222222;
  --color_gray:   #D9D9D9;
  --color_light:  #E8E8E8;
  --color_orange: #F8B96F;
  --color_kv:     #DEEAF9;
  --color_muted:  #6E7086;

  /* フォント */
  --font_jp:     "Noto Sans JP", sans-serif;
  --font_eng:    "Josefin Sans", sans-serif;
  --font_accent: "Shippori Mincho", serif;

  /* レイアウト */
  --sectionWidth:      1200px;
  --sectionWidth_wide: 1440px;
  --header_height:     clamp(8rem, 7.78vw, 11.3rem);
  --footer_height:     clamp(20rem, 20vw, 28rem);

  /* その他 */
  --gradient:   linear-gradient(90deg, var(--color_main), var(--color_sub));
  --transition: all .3s ease;
}

/* フォントサイズ基準 --------------------------------------- */
html { font-size: 62.5%; }
body {
  font-size: 1.6rem;
  line-height: 1.8;
  font-family: var(--font_jp);
  color: var(--color_dark);
}

/* WP管理バーを下部に移動 ----------------------------------- */
#wpadminbar { top: unset !important; bottom: 0; }
html { margin-top: 0 !important; }

/* main オフセット（固定ヘッダー分） ------------------------ */
main { padding-top: var(--header_height); }

/* .section / .section__inner ------------------------------- */
.section { padding: clamp(6rem, 6.88vw, 10rem) 0; }
.section__inner {
  max-width: var(--sectionWidth);
  margin: 0 auto;
  padding: 0 clamp(2rem, 2.75vw, 4rem);
}

/* .section__head ------------------------------------------- */
.section__head { text-align: center; margin-bottom: 6rem; }
.section__label {
  font-size: clamp(1.5rem, 1.24vw, 1.8rem);
  color: var(--color_main);
  letter-spacing: 0.1em;
}
.section__title {
  font-family: var(--font_eng);
  font-size: clamp(3.6rem, 4.40vw, 6.4rem);
  font-weight: 700;
  line-height: 1.0;
}

/* .page-hero ----------------------------------------------- */
.page-hero {
  background: var(--color_kv);
  padding: 5rem 0;
  text-align: center;
}

/* .breadcrumb-wrap ----------------------------------------- */
.breadcrumb-wrap {
  background: #fff;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--color_gray);
}

/* .btn ----------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 1.2rem 2.8rem;
  border-radius: 5rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.btn.btn--solid-main {
  background: var(--color_main);
  color: #fff;
  border-color: var(--color_main);
}
.btn.btn--solid-main:hover {
  background: transparent;
  color: var(--color_main);
}
.btn.btn--outline-main {
  background: transparent;
  color: var(--color_main);
  border-color: var(--color_main);
}
.btn.btn--outline-main:hover {
  background: var(--color_main);
  color: #fff;
}
@media (max-width: 768px) {
  .btn { padding: 1.4rem 3.2rem; }
}

/* ヘッダー ------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header_height);
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.header__logo img {
  height: clamp(5rem, 5.51vw, 8rem);
  width: auto;
}
.header__nav {
  display: flex;
  align-items: center;
  gap: 2.8rem;
}
.header__list {
  display: flex;
  gap: 2.8rem;
  list-style: none;
}
.header__list a {
  font-family: var(--font_eng);
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color_dark);
  transition: var(--transition);
}
.header__list a:hover { color: var(--color_main); }
.header__drawer-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: .6rem;
  width: 4.4rem;
  height: 4.4rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.header__drawer-btn span {
  display: block;
  width: 2.8rem;
  height: 2px;
  background: var(--color_dark);
  transition: var(--transition);
}
.header__drawer-btn.header__drawer-btn--close span:nth-child(1) { transform: translateY(.8rem) rotate(45deg); }
.header__drawer-btn.header__drawer-btn--close span:nth-child(2) { opacity: 0; }
.header__drawer-btn.header__drawer-btn--close span:nth-child(3) { transform: translateY(-.8rem) rotate(-45deg); }
@media (max-width: 768px) {
  .header__drawer-btn { display: flex; }
  .header__nav {
    position: fixed;
    top: var(--header_height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 2rem;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
  }
  .header__nav.header__nav--open {
    opacity: 1;
    visibility: visible;
  }
  .header__list {
    flex-direction: column;
    gap: 0;
  }
  .header__list a {
    display: block;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--color_gray);
  }
  .header__nav .btn {
    width: 100%;
    padding: 1.6rem;
    text-align: center;
    margin-top: 2rem;
  }
}

/* フッター ------------------------------------------------- */
.footer {
  background: var(--color_main);
  padding: 6rem 0 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  padding-bottom: clamp(4rem, 3.30vw, 4.8rem);
}
.footer__left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 0 0 auto;
  max-width: 32rem;
}
.footer__logo img {
  height: 8rem;
  width: auto;
}
.footer__company {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .4rem;
}
.footer__address,
.footer__tel,
.footer__mail {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
}
.footer__sns {
  display: flex;
  gap: 1.6rem;
}
.footer__sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  transition: var(--transition);
}
.footer__sns-link:hover { color: #fff; opacity: .8; }
.footer__right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}
.footer__list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  list-style: none;
}
.footer__list a {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: var(--transition);
}
.footer__list a:hover { color: #fff; }
.copyright {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  padding: 1.4rem 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}
@media (max-width: 768px) {
  .footer__inner { flex-direction: column; gap: 4rem; }
  .footer__left { max-width: 100%; }
  .footer__right { justify-content: flex-start; }
  .footer__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
  }
}

/* ページトップボタン --------------------------------------- */
.pagetop {
  position: fixed;
  bottom: 3.2rem;
  right: 3.2rem;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  background: var(--color_main);
  color: #fff;
  text-decoration: none;
  font-size: 1.6rem;
}
@media (max-width: 768px) {
  .pagetop {
    width: 5.2rem;
    height: 5.2rem;
    bottom: 1.6rem;
    right: 1.6rem;
  }
}

/* NEWS ----------------------------------------------------- */
.news__list {
  margin-bottom: 4rem;
}
.news__item {
  border-bottom: 1px solid var(--color_gray);
}
.news__item a {
  display: flex;
  align-items: baseline;
  gap: 2.4rem;
  padding: 1.6rem 0;
  text-decoration: none;
  color: var(--color_dark);
  transition: var(--transition);
}
.news__item a:hover { opacity: .7; }
.news__date {
  flex-shrink: 0;
  min-width: 11rem;
  font-size: 1.4rem;
  color: var(--color_muted);
}
.news__title {
  font-size: 1.6rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

/* WORKS ---------------------------------------------------- */
.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.2rem;
  margin-bottom: 4rem;
}
.works__card a {
  display: block;
  text-decoration: none;
  color: var(--color_dark);
  transition: var(--transition);
}
.works__card a:hover { opacity: .8; }
.works__thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: .8rem;
  background: var(--color_light);
}
.works__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.works__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1.2rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
@media (max-width: 768px) {
  .works__grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .news__date { min-width: 9rem; }
}

/* ページネーション ----------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .8rem;
  margin-top: 5rem;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: .4rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--color_gray);
  color: var(--color_dark);
  transition: var(--transition);
}
.pagination .page-numbers:hover {
  border-color: var(--color_main);
  color: var(--color_main);
}
.pagination .page-numbers.current {
  background: var(--color_main);
  border-color: var(--color_main);
  color: #fff;
}
.pagination .prev.page-numbers,
.pagination .next.page-numbers {
  font-size: 1.8rem;
  color: var(--color_muted);
  border-color: var(--color_gray);
}

/* コンテンツ内見出し（固定ページ・投稿共通）--------------------- */
.page__body h1, .single__body h1,
.page__body h2, .single__body h2,
.page__body h3, .single__body h3,
.page__body h4, .single__body h4 {
  font-weight: 700;
  line-height: 1.4;
  margin-top: 4rem;
  margin-bottom: 1.5rem;
}
.page__body h1, .single__body h1 {
  font-size: clamp(2.4rem, 2.2vw, 3.2rem);
}
.page__body h2, .single__body h2 {
  font-size: clamp(2rem, 1.84vw, 2.6rem);
  border-left: 4px solid var(--color_main);
  padding-left: .75em;
}
.page__body h3, .single__body h3 {
  font-size: clamp(1.8rem, 1.65vw, 2.2rem);
}
.page__body h4, .single__body h4 {
  font-size: 1.8rem;
  color: var(--color_muted);
}
.page__body p, .single__body p {
  margin-bottom: 1.5em;
}
.page__body ul, .single__body ul,
.page__body ol, .single__body ol {
  padding-left: 1.8em;
  margin-bottom: 1.5em;
}
.page__body li, .single__body li {
  margin-bottom: .5em;
}
