/* home */
.home-hero {
  padding: 46px 0 30px;
}
.home-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.home-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
}
.home-copy h1 {
  margin: 0 0 18px;
  font:
    700 clamp(48px, 8vw, 96px)/0.92 "AcuminLCS",
    sans-serif;
}
.home-copy .jp {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.25;
}
.home-copy .lead {
  max-width: 560px;
}
.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.mv-grid .media-box {
  aspect-ratio: 1/1;
}
.news-list {
  display: grid;
  gap: 14px;
}
.news-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid #cfcfcf;
}
.news-item:first-child {
  border-top: 0;
}
.news-date {
  font:
    700 22px/1 "AcuminLCS",
    sans-serif;
}
.philosophy-grid .card {
  min-height: 100%;
}
.oshie-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.oshie-mark img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.channel-card img.cover {
  aspect-ratio: 16/10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.channel-card .title {
  margin: 0 0 10px;
  font:
    700 30px/1.1 "AcuminLCS",
    sans-serif;
}
.channel-meta {
  margin: 0 0 16px;
  color: var(--muted);
}
.icon-grid .tile-link {
  background: #fff;
}
.icon-grid .tile-link img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* 上2つ */
.toc a.card:nth-child(-n + 2) {
  width: calc(50% - 10px);
}

/* 下3つ  */
.toc a.card:nth-child(n + 3) {
  width: calc(33% - 13px);
}

/* 背景カード状デザイン */
.toc a.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.toc a.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* 写真 */
.toc img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* タイトル */
.toc-row {
  font-weight: bold;
  font-size: 16px;
  margin-top: 10px;
  text-align: center;
}

/* 詳細 */
.tile-link__sub {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin: 8px 0 16px;
}

/*（縦1列に切り替え）*/
@media (max-width: 768px) {
  .toc a.card {
    width: 100% !important;
  }
}

/* company */
.message-box {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
}
.portrait {
  background: linear-gradient(180deg, #d7d7d7, #efefef);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  font:
    700 24px/1.2 "AcuminLCS",
    sans-serif;
}
.timeline {
  display: grid;
  gap: 16px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #cfcfcf;
}
.timeline-item:first-child {
  padding-top: 0;
  border-top: 0;
}
.timeline-year {
  font:
    700 24px/1 "AcuminLCS",
    sans-serif;
}

/* 写真サイズを自分で調整用 */
:root {
  --photo-width: 100%; /* 横幅（例：100%, 400px など） */
  --photo-height: auto; /* 高さ（例：auto, 300px, 80vh など） */
  --photo-zoom-height: 35vh; /* PC画面で縦長にしたいときの高さ */
}

/* 通常：元のサイズへ */
.crop {
  width: var(--photo-width);
  height: var(--photo-height);
  object-fit: contain;
}

/* PC、スマホ、幅横広：縦長サイズ */
@media screen and (min-width: 1024px) {
  .crop {
    height: var(--photo-zoom-height); /* ←ここを変えるだけで拡大率調整可能 */
    object-fit: cover;
    object-position: center;
  }
}



/* business */
.service-card .thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #d9d9d9, #f0f0f0);
  border-bottom: 1px solid var(--line);
}
.service-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card .body {
  padding: 24px;
}
.service-card ul {
  margin: 14px 0 0;
  padding-left: 1.15em;
}
.root-promo {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #fff;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.channel-grid .card {
  overflow: hidden;
}



/* office */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.gallery .media-box {
  grid-column: span 4;
}
.gallery .media-box.large {
  grid-column: span 8;
  grid-row: span 2;
}
.gallery .media-box img {
  aspect-ratio: 4/3;
}
.gallery .media-box.large img {
  aspect-ratio: 16/10;
}

/* activities */
.event-hero-card {
  padding: 30px;
}
.event-cards .card {
  overflow: hidden;
}
.event-cards img {
  aspect-ratio: 16/10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.instagram-strip {
  background: linear-gradient(135deg, #12131d, #272a44);
  color: #000000;
}

/* インスタyoutube見出しを中央 */
.instagram-head {
  text-align: center;
}

    .gallery-wrapper {
      max-width: 2100px;
      margin: 60px auto;
      padding: 20px;
      background: #000000;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
      border-radius: 8px;
    }


    .gallery-row {
      display: flex;

      gap: 16px;                 /* 画像同士の余白 */
      flex-wrap: nowrap;         /* 折り返さない（必要なら wrap に変更） */
      overflow-x: auto;          /* はみ出したら横スクロール */
      padding-bottom: 8px;
    }

    .gallery-item {
      flex: 0 0 auto;            /* 幅を固定寄りにして横並び維持 */
      width: 180px;              /* 1枚あたりの幅（調整可） */
      border-radius: 6px;
      overflow: hidden;
      background: #000;
    }

    .gallery-item img {
      display: block;
      width: 200%;
      height: 100%;
      object-fit: cover;         /* トリミングしてきれいに収める */
    }


/* グリッド配置 */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

/* （インスタ画像） */
/* .instagram-card img {
  width: 100%;
  display: block;
} */

/* スマホ時：縦表示 */
@media{
  .instagram-grid {
    grid-template-columns: 1fr;
  }
}

.instagram-section {
  border-top: 3px solid #000;
  border-bottom: 2px solid #000;
  padding: 40px;
}

/* recruit */
.salary-grid .stat {
  text-align: center;
}
.benefit-item {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 18px;
  align-items: start;
}
.benefit-item img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-top: 4px;
}
.job-table .table th {
  width: 180px;
}

/* root dx */
.root-hero {
  background: linear-gradient(135deg, #0b0d18 0%, #191f37 100%);
  color: #fff;
}
.root-hero .btn-secondary {
  border-color: #fff;
}
.step-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.step-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
}
.step-no {
  font:
    700 40px/1 "AcuminLCS",
    sans-serif;
  margin: 0 0 12px;
}
.root-service {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: stretch;
}
.root-service .visual {
  background: linear-gradient(135deg, #111322, #252e53);
  color: #fff;
  padding: 28px;
  border-radius: 28px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.price-grid .card {
  padding: 24px;
}
.price-title {
  margin: 0 0 10px;
  font:
    700 32px/1 "AcuminLCS",
    sans-serif;
}
.case-card {
  padding: 28px;
}
.case-card h3 {
  margin: 0 0 16px;
  font:
    700 30px/1.1 "AcuminLCS",
    sans-serif;
}

/* seo article */
.article-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
}
/* PC画面を縮小 */
@media (max-width: 1024px) {
  .article-toc {
    position: fixed;
    left: 5px;
    bottom: 300px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid #ddd;
    opacity: 0.05;
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
    z-index: 999;
  }

  /* マウスを乗せたら不透明に */
  .article-toc:hover {
    opacity: 1;
  }
}

/* --- フルスクリーンでは元の位置に戻す --- */
@media (min-width: 1024px) {
  .article-toc {
    position: sticky;
    top: 112px;
    align-self: start;
    opacity: 1;
    background: #fff;
    border: none;
  }
}
.article-content h2 {
  margin: 44px 0 14px;
  font:
    700 clamp(28px, 4vw, 42px)/1.1 "AcuminLCS",
    sans-serif;
}
.article-content h3 {
  margin: 26px 0 10px;
  font:
    700 26px/1.1 "AcuminLCS",
    sans-serif;
}
.article-content p,
.article-content li {
  font-size: 18px;
}
.article-content ul {
  padding-left: 1.2em;
}
@media (max-width: 1024px) {
  .home-hero__grid,
  .message-box,
  .root-service,
  .article-wrap,
  .step-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .news-item {
    grid-template-columns: 1fr;
  }
  .gallery .media-box,
  .gallery .media-box.large {
    grid-column: span 12;
  }
}

/*ROOT DX用 */
.section--DXline {
  padding: 40px 0;
  background: #f9f9f9;
}

.section-DXtitle {
  text-align: center;
  font-size: 24px;
  margin-bottom: 30px;
  color: #333;
}

.h2,
.section-DXtitle {
  margin: 0 0 18px;
  font:
    700 clamp(34px, 5.5vw, 62px)/1.02 "AcuminLCS",
    sans-serif;
}
