/* ==========================================================================
   レスポンシブ / Responsive
   確認対象 : 1440 / 1280 / 1024 / 768 / 430 / 390 / 375
   ・文字のはみ出し・切れを作らない
   ・日本語が不自然に改行されない
   ・カード高さ / 左右余白 / 見出しサイズを全ページで統一
   ========================================================================== */

/* モバイル専用の改行（意味のまとまりごとに改行するため） */
.br-sp {
  display: none;
}

.br-pc {
  display: inline;
}

/* ---------------------------------------------------------------
   <= 1280px  余白と文字サイズをわずかに調整
   --------------------------------------------------------------- */
@media (max-width: 1280px) {
  :root {
    --fs-fv: 60px;
    --fs-lead: 46px;
    --fs-h2: 38px;
    --fs-h3: 24px;
    --sec-y: 108px;
    --side-pad: 40px;
  }

  .site-nav {
    gap: 28px;
  }

  .site-nav__list {
    gap: 26px;
  }

  .site-nav__link {
    font-size: 14px;
  }

  .site-nav__cta {
    min-width: 156px;
    padding-inline: 20px;
  }

  .brand__name {
    font-size: 15px;
  }
}

/* ---------------------------------------------------------------
   <= 1080px  ヘッダーをモバイルナビへ
   --------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: var(--line);
    padding: 8px var(--side-pad) 32px;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__list li {
    border-bottom: var(--line);
  }

  .site-nav__link {
    display: block;
    padding-block: 20px;
    font-size: 16px;
  }

  .site-nav__link::after {
    display: none;
  }

  .site-nav__cta-wrap {
    margin-top: 24px;
  }

  .site-nav__cta {
    width: 100%;
    min-width: 0;
    height: 52px;
  }
}

/* ---------------------------------------------------------------
   <= 1024px  Tablet
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --fs-fv: 52px;
    --fs-lead: 40px;
    --fs-h2: 34px;
    --fs-h3: 22px;
    --fs-body: 16px;
    --sec-y: 92px;
    --gap-content: 48px;
    --side-pad: 32px;
    --header-h: 76px;
  }

  /* layout : 2カラムへ */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .approach__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .posts__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value__items {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 支援体制 : 当社ブロックを縦積みに */
  .flow__core {
    grid-template-columns: 1fr;
  }

  .flow__core-main {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding: 22px 26px;
  }

  .flow__duties {
    grid-template-columns: repeat(3, 1fr);
    padding: 20px 26px;
  }

  .flow__experts {
    grid-template-columns: 150px 1fr;
    gap: 18px;
  }

  .ceo__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact__aside {
    position: static;
  }

  .fv {
    padding-top: calc(var(--header-h) + 76px);
    padding-bottom: 72px;
  }

  .fv__stats {
    flex-wrap: wrap;
  }

  .fv__stat {
    min-width: 132px;
    padding-right: 24px;
    margin-right: 24px;
  }

  .ceo__grid {
    gap: 40px;
  }

  .ceo__photo {
    max-width: 420px;
  }

  .cta-band {
    padding-block: 88px;
  }

  .site-footer__nav {
    gap: 48px;
  }
}

/* ---------------------------------------------------------------
   <= 768px  縦積みレイアウト
   --------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --fs-fv: 44px;
    --fs-lead: 34px;
    --fs-h2: 29px;
    --fs-h3: 21px;
    --fs-body: 16px;
    --fs-small: 13px;
    --sec-y: 72px;
    --gap-content: 36px;
    --gap-block: 20px;
    --side-pad: 24px;
    --header-h: 68px;
    --lh-body: 1.8;
  }

  /* 意味のまとまりごとの改行を有効化 */
  .br-sp {
    display: inline;
  }

  .br-pc {
    display: none;
  }

  .sec-head__en {
    margin-bottom: 12px;
  }

  .sec-head__ja {
    margin-bottom: 20px;
  }

  .sec-head--ruled {
    gap: 14px;
    padding-bottom: 16px;
    flex-wrap: wrap;
  }

  .sec-head--ruled .sec-head__ja {
    font-size: 17px;
  }

  .lead-text {
    font-size: 17px;
  }

  /* buttons : タップ領域を確保 */
  .btn {
    height: 48px;
    min-width: 0;
    width: 100%;
    padding-inline: 20px;
    font-size: 15px;
  }

  .btn-group {
    flex-direction: column;
    gap: 12px;
  }

  /* header */
  .brand__mark {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .brand__name {
    font-size: 13.5px;
    white-space: normal;
    line-height: 1.35;
  }

  .brand__en {
    display: none;
  }

  /* FV */
  .fv {
    padding-top: calc(var(--header-h) + 56px);
    padding-bottom: 56px;
  }

  .fv__grid,
  .page-head__grid {
    background-size: 88px 100%, 100% 88px;
  }

  .fv__meta {
    margin-bottom: 26px;
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .fv__meta::before {
    width: 32px;
  }

  .fv__copy {
    max-width: none;
    margin-bottom: 24px;
  }

  .fv__sub {
    font-size: 17px;
    margin-bottom: 20px;
  }

  .fv__desc {
    margin-bottom: 36px;
  }

  .fv__foot {
    gap: 32px;
  }

  .fv__stats {
    width: 100%;
    flex-direction: column;
  }

  .fv__stat {
    border-right: 0;
    border-bottom: var(--line);
    margin-right: 0;
    padding: 16px 0;
    min-width: 0;
    width: 100%;
  }

  .fv__stat:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .fv__stat dt {
    margin-bottom: 6px;
  }

  /* services */
  .services__grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    padding: 28px 22px 30px;
    gap: 16px;
  }

  .service-item__ja {
    font-size: 19px;
    min-height: 0;
  }

  /* structure : 支援体制の図解 */
  .flow {
    padding-top: 24px;
  }

  .flow__experts {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .flow__experts-head {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }

  .flow__experts-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .flow__experts-list li {
    padding: 12px 8px;
  }

  .flow__expert-ja {
    font-size: 14px;
  }

  .flow__core {
    grid-template-columns: 1fr;
  }

  .flow__core-main {
    padding: 20px 20px 18px;
    gap: 6px;
  }

  .flow__core-name {
    font-size: 17px;
  }

  .flow__core-role {
    font-size: 12.5px;
  }

  .flow__duties {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 18px 20px 20px;
  }

  .flow__duties li {
    font-size: 13.5px;
  }

  .flow__client {
    padding: 16px 20px;
  }

  .flow__client-name {
    font-size: 17px;
  }

  .flow__link-line {
    height: 18px;
  }

  .flow__link-text {
    font-size: 11.5px;
  }

  .structure__copy {
    margin-top: 32px;
    padding-top: 28px;
  }

  .structure__copy-text {
    font-size: 22px;
    margin-bottom: 16px;
  }

  /* approach */
  .approach__grid {
    grid-template-columns: 1fr;
  }

  .approach-item {
    padding: 26px 20px 28px;
  }

  .approach-item__num {
    margin-bottom: 16px;
  }

  .approach__copy {
    margin-bottom: 16px;
  }

  .approach__sub {
    font-size: 17px;
    margin-bottom: 22px;
  }

  .approach__desc {
    margin-bottom: 40px;
  }

  /* posts */
  .posts__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .post-card__title {
    font-size: 18px;
  }

  .post-row,
  .post-row--noimg {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 24px;
  }

  .post-row__thumb {
    max-width: 260px;
  }

  .post-row__date {
    order: -1;
  }

  .filter {
    gap: 8px;
    margin-bottom: 32px;
  }

  .filter__btn {
    padding: 9px 16px;
    font-size: 11px;
  }

  /* cta */
  .cta-band {
    padding-block: 64px;
  }

  .cta-band__copy {
    margin-bottom: 18px;
  }

  .cta-band__desc {
    margin-bottom: 28px;
  }

  .cta-band__inner {
    gap: 28px;
  }

  /* footer */
  .site-footer {
    padding-top: 56px;
    padding-bottom: 32px;
  }

  .site-footer__top {
    padding-bottom: 36px;
    gap: 36px;
  }

  .site-footer__brand-name {
    font-size: 17px;
  }

  .site-footer__nav {
    gap: 28px;
    flex-direction: column;
  }

  .site-footer__nav ul {
    gap: 12px;
  }

  /* sub page head */
  .page-head {
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 40px;
  }

  .page-head__ja {
    font-size: 16px;
  }

  .breadcrumb__inner {
    padding-inline: var(--side-pad);
    font-size: 11px;
  }

  /* company */
  .mission__copy {
    font-size: 26px;
  }

  .value__copy {
    margin-bottom: 16px;
  }

  .value__sub {
    font-size: 17px;
    margin-bottom: 28px;
  }

  .value__body {
    margin-bottom: 40px;
  }

  .value__items {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-item {
    padding: 22px 18px;
  }

  .ceo__photo {
    max-width: 100%;
  }

  .ceo__copy {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .ceo__sign {
    margin-top: 28px;
  }

  /* profile table : 縦積み */
  .profile-table,
  .profile-table tbody,
  .profile-table tr,
  .profile-table th,
  .profile-table td {
    display: block;
    width: 100%;
  }

  .profile-table tr {
    border-bottom: var(--line);
    padding-block: 18px;
  }

  .profile-table th {
    width: auto;
    border-bottom: 0;
    padding: 0 0 8px;
    font-size: 14px;
  }

  .profile-table td {
    border-bottom: 0;
    padding: 0;
    font-size: 16px;
  }

  /* article */
  .article {
    padding-top: 40px;
  }

  .article__title {
    font-size: 24px;
  }

  .article__hero {
    margin-block: 28px;
  }

  .article__body h2 {
    font-size: 21px;
    margin-block: 40px 18px;
  }

  .article__body h3 {
    font-size: 18px;
    margin-block: 30px 14px;
  }

  .article__body blockquote {
    font-size: 17px;
    padding-left: 20px;
    margin-block: 28px;
  }

  .article__profile {
    padding: 22px 20px;
    gap: 20px;
  }

  .article__profile-photo {
    width: 84px;
  }

  .article__related {
    margin-top: 48px;
    padding-top: 28px;
  }

  /* form */
  .field {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-block: 22px;
  }

  .field__label {
    padding-top: 0;
  }

  .form__submit {
    padding-top: 32px;
  }

  .form__submit .btn {
    height: 50px;
  }

  .form-message {
    padding: 22px 20px;
  }

  /* policy */
  .policy h2 {
    font-size: 19px;
    margin-block: 36px 14px;
  }

  .policy ol li {
    font-size: 15px;
  }
}

/* ---------------------------------------------------------------
   <= 430px  Mobile
   --------------------------------------------------------------- */
@media (max-width: 430px) {
  :root {
    --fs-fv: 38px;
    --fs-lead: 32px;
    --fs-h2: 28px;
    --fs-h3: 20px;
    --fs-body: 15.5px;
    --side-pad: 20px;
  }

  .fv__copy {
    line-height: 1.28;
  }

  .fv__sub {
    font-size: 16px;
  }

  .service-item__ja {
    font-size: 18px;
  }

  .structure__copy-text {
    font-size: 22px;
  }

  .mission__copy {
    font-size: 23px;
  }

  .ceo__copy {
    font-size: 22px;
  }

  .article__title {
    font-size: 22px;
  }

  .post-card__title,
  .post-row__title {
    font-size: 17px;
  }
}

/* ---------------------------------------------------------------
   <= 390px / 375px  最小幅
   --------------------------------------------------------------- */
@media (max-width: 390px) {
  :root {
    --fs-fv: 36px;
    --side-pad: 20px;
  }

  .brand__name {
    font-size: 12.5px;
  }

  .fv__stat dd {
    font-size: 14px;
  }

  .flow__client-name {
    font-size: 16px;
  }
}

@media (max-width: 375px) {
  :root {
    --fs-fv: 34px;
    --fs-h2: 26px;
    --side-pad: 18px;
  }

  .flow__experts-list {
    grid-template-columns: 1fr;
  }

  .value__items {
    grid-template-columns: 1fr;
  }

  .btn {
    font-size: 14px;
  }
}

/* ---------------------------------------------------------------
   印刷
   --------------------------------------------------------------- */
@media print {
  .site-header,
  .cta-band,
  .site-footer__nav,
  .nav-toggle {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
