@charset "UTF-8";
/* ===========================================
 * 
	----------------------------------
  Structure
  ----------------------------------
  00_common parts
  01_header
  02_hamburger menu (スマホ向けドロワーメニュー)
  03_footer
  04_form
  05_pagination
  06_breadcrumb
 * ======================================== */

/* ===========================================
 * 00_common parts
 * ======================================== */
.c-inner {
  padding: var(--spc-60-30) var(--spc-40-20);
  max-width: 1780px;
  width: 100%;
  margin-inline: auto;
}

/* common head */
/* ======================================== */
.c-head {
  text-align: center;
  padding-bottom: var(--spc-80-40);
}

.c-title {
  --clamp-min: 50;
  --clamp-max: 62;
  text-align: center;
  padding-bottom: var(--spc-20-10);
  text-align: center;
}

.c-sub-title {
  --clamp-min: 20;
  --clamp-max: 32;
  text-align: center;
}

/* ===========================================
 * 01_header
 * ======================================== */
.header {
  container-type: inline-size;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

/* 通常時のスタイル */
.header__inner {
  padding-top: var(--spc-20-10);
  padding-bottom: var(--spc-20-10);
}

@container (width <= 768px) {
  .header__inner {
    padding-top: var(--spc-20-10);
    padding-bottom: var(--spc-20-10);
  }
}

.header__content-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  width: var(--len-340-170);
  height:auto;
}

/* navi */
/* ======================================== */
.header__nav-lists {
  display: flex;
  gap: var(--spc-40-20);
}
.header__nav-lists > li {
  --clamp-min: 16;
  --clamp-max: 20;
  font-weight: bold;
  
  padding-bottom: 3px;
  background-image: linear-gradient(var(--color-font), var(--color-font));
  background-repeat: no-repeat;
  background-position: bottom right; /* 下線の初期位置 */
  background-size: 0 1px; /* 下線のサイズ（横幅、高さ） */
  transition: background-size 0.3s;

}
@media (hover: hover) {
  .header__nav-lists > li:hover {
    background-position: bottom left;
    background-size: 100% 1px;
  }
}


/* ===========================================
 * 02_hamburger menu (スマホ向けドロワーメニュー)
 * ======================================== */
@container (width <= 1300px) {
  .header__nav-wrap {
    display: none;
  }

  /* アイコンボタン */
  .button-icon {
    position: relative;
    display: grid;
    flex: 0 0 48px;
    place-items: center;
    inline-size: 48px;
    block-size: 48px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
    outline: transparent;
  }
  /* ×アイコン */
  .button-icon::before,
  .button-icon::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 2px;
    border-radius: 20px;
    background: var(--color-font-gr);
  }

  /* 三本線 */
  .button-menu::before {
    width: 24px;
    height: 2px;
    border-radius: 20px;
    background: var(--color-font-gr);

    /* 上下の線 */
    box-shadow:
      0 -6px 0 var(--color-font-gr),
      0 6px 0 var(--color-font-gr);
  }
  .button-menu::after {
    /* 三本線：不要な二本目疑似要素 */
    content: none;
  }

  /* ×印の角度 */
  .button-close::before {
    rotate: 45deg;
  }
  .button-close::after {
    rotate: -45deg;
  }

  .menu__dialog {
    --menu-interaction-delay: 0s;
    position: fixed;
    /* [open]外のレイアウト指定 */
    display: grid;
    max-width: none;
    max-height: none;
    margin: 0;
    border: 0;
    background: var(--color-bg-wh);
    interactivity: inert;
    pointer-events: none;
    transition:
      opacity 0.4s,
      translate 0.4s ease,
      display 0.4s allow-discrete,
      overlay 0.4s allow-discrete,
      interactivity 0s var(--menu-interaction-delay) allow-discrete,
      pointer-events 0s var(--menu-interaction-delay) allow-discrete;
      transition-behavior: allow-discrete;
  }

  .menu__dialog:not([open]):not(:popover-open) {
    display: none;
  }

  .menu__dialog::backdrop {
    background: var(--backdrop);
    opacity: 0;
    transition: opacity 0.4s;
  }

  .menu__dialog[open],
  .menu__dialog:popover-open {
    --menu-interaction-delay: 0.4s;

    interactivity: auto;
    opacity: 1;
    pointer-events: auto;
    translate: 0 0;
  }

  .menu__dialog[open]::backdrop,
  .menu__dialog:popover-open::backdrop {
    opacity: 1;
  }

  @starting-style {
    .menu__dialog[open],
    .menu__dialog:popover-open {
      interactivity: inert;
      opacity: 0;
      pointer-events: none;
    }

    .menu__dialog[open]::backdrop,
    .menu__dialog:popover-open::backdrop {
      opacity: 0;
    }
  }

  .menu__header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .menu__list {
    /* リスト側スクロール */
    display: grid;
    align-content: start;
    gap: var(--spc-40-20);
    min-height: 0;
    overflow-y: auto;
    /* スクロール連鎖の内側管理 */
    overscroll-behavior-y: contain;
  }

  .menu__nav-lists {
    display: flex;
    flex-direction: column;
    gap: var(--spc-40-20);
  }
  .menu__nav-lists > li > a{
    --clamp-min: 18;
    --clamp-max: 24;
    color: var(--color-font);
    font-weight: bold;
    display: flex;
    align-items: center;
    padding-inline: var(--spc-20-10);
  }
  
  .menu__drawer {
    --spring: linear(0, 0.0107, 0.0398, 0.0834, 0.138, 0.2003, 0.2677, 0.3379, 0.4089, 0.4791, 0.5471, 0.612, 0.6731, 0.7297, 0.7815, 0.8283, 0.87, 0.9068, 0.9388, 0.9662, 0.9892, 1.0083, 1.0237, 1.0357, 1.0449, 1.0514, 1.0556, 1.058, 1.0587, 1.0581, 1.0563, 1.0538, 1.0506, 1.0469, 1.043, 1.0388, 1.0347, 1.0306, 1.0266, 1.0228, 1.0192, 1.0159, 1.0128, 1.0101, 1.0076, 1.0055, 1.0036, 1.002, 1.0006, 0.9995, 0.9986, 0.9979, 0.9974, 0.997, 0.9967, 0.9966, 0.9966, 0.9966, 0.9967, 0.9968, 0.997, 0.9972, 0.9975, 0.9977, 0.998, 0.9982, 0.9984, 0.9987, 0.9989, 0.9991, 0.9992, 0.9994, 0.9996, 0.9997, 0.9998, 0.9999, 1, 1, 1.0001, 1.0001, 1.0002, 1.0002, 1.0002, 1.0002, 1.0002, 1.0002, 1.0002, 1.0002, 1.0002, 1.0002, 1.0001, 1.0001, 1.0001, 1.0001, 1.0001, 1.0001, 1.0001, 1.0001, 1, 1, 1);

    inset: 0 0 0 auto;
    grid-template-rows: auto 1fr;
    align-content: start;
    gap: var(--spc-40-20);
    width: 70%;
    inline-size: 70%;
    height: 100dvh;
    block-size: 100dvh;
    overflow: visible;
    padding: var(--spc-20-10);
    background: var(--color-bg-wh);
    translate: 100vw 0;
    transition:
      translate 1s var(--spring),
      display 1s allow-discrete,
      overlay 1s allow-discrete;
    inset-inline-start: 64px;
    width: auto;
    inline-size: auto;
  }

  .menu__drawer::backdrop {
    background: var(--backdrop);
    opacity: 0;
    transition: opacity 0.4s;
  }

  /* スプリング時の右端の白い受け */
  .menu__drawer::after {
    position: absolute;
    inset-block: 0;
    right: -128px;
    inline-size: 128px;
    background: var(--color-bg-wh);
    content: "";
    pointer-events: none;
  }
  .menu__drawer[open] {
    --menu-interaction-delay: 1s;

    display: grid;
    translate: 0 0;
  }
  @starting-style {
    .menu__drawer[open] {
      translate: 70% 0;
    }
  }

  .menu__drawer[open]::backdrop {
    opacity: 1;
  }
  @starting-style {
    .menu__drawer[open]::backdrop {
      opacity: 0;
    }
  }
}

/* ===========================================
 * 03_footer
 * ======================================== */
.footer {
  container-type: inline-size;
  background: var(--color-bg-gr);
  outline: 1px solid var(--color-bg-gr);
}
.footer__inner {
  padding-block: var(--spc-100-50);
}
.footer__content {
  display: grid;
  color: var(--color-font);
  gap: var(--spc-60-30);
}
@container (width <= 768px) {
  .footer__content {
    gap: var(--spc-80-40);
  }
}

.footer__nav-lists {
  --clamp-min: 16;
  --clamp-max: 20;
  font-weight: bold;
  display: grid;
  grid-template-columns:repeat(4, max-content);
  grid-template-columns: max-content max-content var(--spc-100-50) max-content max-content;
  justify-content: space-evenly;
  gap: var(--spc-60-30) var(--spc-20-10);
}

.footer__nav-list {
  display: grid;
  grid-template-columns: subgrid;
  align-items: start;
  &.--about {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  &.--services {
    grid-column: 4 / 6;
    grid-row: 1 / span 2;
  }
  &.--company {
    grid-column: 1 / 3;
    grid-row: 2;
  }
}

@container (width <= 900px) {
  .footer__nav-lists {
    grid-template-columns: 1fr;
  }
  .footer__nav-list {
    &.--about,
    &.--services,
    &.--company {
      grid-column: auto;
      grid-row: auto;
    }
  }
}

.footer__nav-link {
  transition: color 0.3s ease;
}

@media (hover: hover) {
  .footer__nav-link:hover {
    color: var(--color-tertiary);
  }
}
.footer__sub-lists {
  display: flex;
  flex-direction: column;
  gap: var(--spc-10-5);
}

.footer__sub-lists > li > a {
  transition: color 0.3s ease;
}
@media (hover: hover) {
  .footer__sub-lists > li > a:hover {
    color: var(--color-tertiary);
  }
}
@container (width <= 768px) {
  .footer__sub-lists {
    display: grid;
    gap: var(--spc-10-5);
  }
}

.footer__copy-wrap {
  margin-inline: auto;
}


/* ===========================================
 * 04_form
 * ======================================== */
/* -------------------------------------------
  input (テキスト系), textarea, select
------------------------------------------- */
input:not([type="radio"], [type="checkbox"], [type="submit"], [type="button"]),
textarea,
select {
  /* kiso.cssでリセットしきれないOS標準のUI（iOSの角丸や影など）を完全に無効化 */
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  background-color: var(--color-bg-wh);
  border: 1px solid var(--color-border);
  color: var(--color-font);
  padding: var(--spc-10-5); 
  border-radius: 4px;
  
  /* フォーカス時の変化を滑らかにする */
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* -------------------------------------------
  フォーカス（選択）時のアクセシビリティ対応
------------------------------------------- */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(249, 127, 6, 0.2);
}

/* -------------------------------------------
  labelの共通スタイル
------------------------------------------- */
label {
  display: inline-block;
  color: var(--color-font);
  
  /* 入力欄との間に少し余白を設ける（PC: 10px / SP: 5px） */
  margin-bottom: var(--spc-10-5);
}

/* ===========================================
 * 05_pagination
 * ======================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--spc-60-30);
}


.pagination,
.news-lists__pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--spc-40-20);
  margin-top: 40px; 
}

.pagination,
.news-lists__pagination,
.news-lists__pagination .nav-links {
  display: flex;
  flex-wrap: wrap; 
  align-items: center;
  justify-content: center; 
  gap: var(--spc-20-10);
}
.page-numbers {
  --clamp-min: 16;
  --clamp-max: 18;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, font-weight 0.3s ease , border-bottom 0.3s ease;
}

/* リンク要素の基本設定 */
.page-numbers {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-weight: bold;
}

/* 数字部分の見た目（未選択）(「前へ」「次へ」「...」を除外 */
/* ======================================== */
.page-numbers:not(.prev):not(.next):not(.dots):not(.current) {
  width: 40px; 
  height: 40px;
  border: 1px solid var(--color-font-gr); 
  color: var(--color-font-gr);            
  transition: all 0.3s ease;
}

/* 現在選択している数字 */
/* ======================================== */
.page-numbers.current {
  width: 40px; 
  height: 40px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background-color: transparent;
}


 /* ホバー時 */
 /* ======================================== */
@media (any-hover: hover) {
  .page-numbers:not(.prev):not(.next):not(.dots):hover {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
  }
}

 /*  前へ / 次へ のテキスト */
 /* ======================================== */
.page-numbers.prev,
.page-numbers.next {
  color: var(--color-font);
  border: none;
}

@media (hover: hover) {
  .page-numbers:hover {
    color: var(--color-secondary);
    font-weight: bold;
    border-bottom: 1px solid var(--color-secondary);
  }
}



/* ===========================================
 *  06_breadcrumb
 * ======================================== */
.breadcrumb-inner {
  padding-block: var(--spc-20-10);
}
.c-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  color: var(--color-font-gr);
}
.c-breadcrumb__list:not(:last-of-type)::after {
  content: ">";
  margin: var(--spc-20-10);
}
