@charset "UTF-8";

/* ========================================
   Style CSS - Koseikai Group
   Design System & Global Styles
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --color-primary: #2a7a82;
  --color-primary-dark: #1f5c62;
  --color-primary-light: #e8f4f4;
  --color-accent: #c5a55a;
  --color-accent-light: #f5f0e0;
  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-bg-gray: #f7f7f7;
  --color-bg-hero-overlay: rgba(0, 0, 0, 0.15);
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --color-border: #dddddd;
  --color-border-light: #eeeeee;
  --color-required: #e05050;
  --color-footer-bg: #f5f3ef;

  /* Typography */
  --font-primary: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
  --font-english: "Cormorant Garamond", "Times New Roman", serif;
  --font-mincho: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

  /* Font sizes */
  --fs-xs: 1.1rem;
  --fs-sm: 1.2rem;
  --fs-base: 1.4rem;
  --fs-md: 1.5rem;
  --fs-lg: 1.6rem;
  --fs-xl: 1.8rem;
  --fs-2xl: 2.0rem;
  --fs-3xl: 2.4rem;
  --fs-4xl: 2.8rem;
  --fs-5xl: 3.2rem;
  --fs-6xl: 3.6rem;

  /* Layout */
  --max-width: 1100px;
  --header-height: 80px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

html {
  font-size: 62.5%;
  /* 1rem = 10px */
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-bg);
  font-size: var(--fs-base);
  line-height: 1.8;
  letter-spacing: 0.05em;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 4rem;
}

/* ========================================
   Header (TOP page specific: sticky below hero)
   ======================================== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-white);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__logo-img {
  height: 40px;
  width: auto;
}

.header__logo-text {
  font-family: var(--font-mincho);
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-text);
}

.header__nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.header__contact {
  display: flex;
  justify-content: flex-end;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 3.2rem;
}

.header__nav-item {
  position: relative;
}

.header__nav-link {
  font-size: var(--fs-base);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text);
  transition: color var(--transition-fast);
  padding: 0.8rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.header__nav-link:hover,
.header__nav-link--active {
  color: var(--color-primary);
}

.header__nav-icon {
  width: 10px;
  height: 6px;
  transition: transform var(--transition-fast);
}

.header__nav-item:hover .header__nav-icon {
  transform: translateY(2px);
}

/* Header Dropdown (Elegant Design) */
.header__nav-item--has-dropdown:hover .header__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.header__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: 260px;
  background-color: var(--color-white);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  padding: 1.6rem 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
  list-style: none;
}

/* Triangle pointer for the dropdown */
.header__dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background-color: var(--color-white);
  border-left: 1px solid rgba(0, 0, 0, 0.04);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.header__dropdown li {
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.header__dropdown li:last-child {
  border-bottom: none;
}

.header__dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2.4rem;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--color-text);
  text-align: left;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  background-color: transparent;
}

/* Elegant arrow that appears on hover */
.header__dropdown a::after {
  content: '→';
  font-family: var(--font-mincho);
  font-size: 1.4rem;
  color: var(--color-primary);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header__dropdown a:hover {
  color: var(--color-primary);
  padding-left: 3.2rem;
  background-color: #fafbfa; /* Very subtle tint */
}

.header__dropdown a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Ensure the hover area is continuous */
.header__nav-item--has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
}

.header__contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.0rem 2.4rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: var(--fs-sm);
  font-weight: 500;
  border-radius: 4px;
  transition: background-color var(--transition-fast);
}

.header__contact-btn:hover {
  background-color: var(--color-primary-dark);
}

/* ========================================
   Hero Section (TOP page)
   ======================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg-hero-overlay);
}

.hero__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  width: 100%;
}

.hero__catch {
  font-family: var(--font-mincho);
  font-size: 3.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 2.0;
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero__scroll {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  gap: 0.8rem;
}

.hero__scroll-text {
  font-family: var(--font-english);
  font-size: 1.0rem;
  letter-spacing: 0.2em;
  color: var(--color-white);
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background-color: var(--color-white);
  animation: scrollDown 2s infinite cubic-bezier(0.77, 0, 0.175, 1);
}

@keyframes scrollDown {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(200%);
  }
}

/* ========================================
   Section Common
   ======================================== */
.section {
  padding: 8.0rem 0;
}

.section--gray {
  background-color: var(--color-bg-gray);
}

.section__title {
  font-family: var(--font-mincho);
  font-size: var(--fs-3xl);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 5rem;
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 1.6rem;
}

.section__title span {
  display: inline-block;
  position: relative;
}

/* ========================================
   News Section
   ======================================== */
/* --- 共通カラー設定（カンプから抽出した色） --- */
:root {
  --news-main-color: #006666;
  /* ティールグリーン */
  --news-text-color: #333;
  --news-date-color: #888;
  --news-border-color: #e0e0e0;
  /* お知らせリストの薄いグレー境界線 */
  --pagination-border-color: #e6eded;
  /* ページネーションの非常に薄いティールグレー枠線 */
}

/* --- お知らせリスト（修正・確認） --- */
.news-container {
  max-width: 900px;
  /* カンプに合わせて少し広く */
  margin: 0 auto;
  padding: 40px 20px;
  /* 上下の余白を確保 */
}

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

.news-item {
  border-bottom: 1px solid var(--news-border-color);
  /* 薄いグレーの線 */
}

.news-link {
  display: block;
  padding: 24px 0;
  /* 各項目の上下余白を少し広く */
  text-decoration: none;
  color: var(--news-text-color);
  transition: background-color 0.3s ease;
}

.news-link:hover {
  background-color: #fafafa;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  /* 日付とカテゴリの間隔 */
  margin-bottom: 10px;
  /* カテゴリとタイトルの間隔を少し広く */
}

.news-date {
  font-size: 0.9rem;
  /* 少し大きく */
  color: var(--news-date-color);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  /* 数字用にサンセリフ */
}

.news-category {
  background-color: var(--news-main-color);
  color: #fff;
  font-size: 0.75rem;
  /* 少し大きく */
  padding: 3px 12px;
  /* 少し広く */
  border-radius: 12px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.news-title {
  font-size: 1rem;
  line-height: 1.7;
  /* 行間を少し広くして読みやすく */
  margin: 0;
  font-weight: 500;
  color: var(--news-text-color);
}

.news-page {
  padding-bottom: 8.0rem;
}

/* --- お知らせ個別記事 --- */
.news-single {
  max-width: 900px;
  margin: 0 auto;
}

.news-single__header {
  margin-bottom: 4.0rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--news-border-color);
}

.news-single__title {
  font-family: var(--font-mincho);
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: 1.6;
  color: var(--news-text-color);
  margin-top: 1.6rem;
}

.news-single__content {
  font-size: var(--fs-base);
  line-height: 2.0;
  color: var(--news-text-color);
}

.news-single__content p {
  margin-bottom: 2.0rem;
}

.news-single__content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 2.0rem 0;
}

/* --- WordPress標準ページネーション対応 --- */
.navigation.pagination {
  display: flex;
  justify-content: center;
  margin: 60px 0;
}

.navigation.pagination .nav-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #c2d6d6;
}

.navigation.pagination .nav-links a,
.navigation.pagination .nav-links span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #f7fbfb;
  border: none;
  border-right: 1px solid #c2d6d6;
  text-decoration: none;
  color: #006666;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.navigation.pagination .nav-links > *:last-child a,
.navigation.pagination .nav-links > *:last-child span,
.navigation.pagination .nav-links a:last-child,
.navigation.pagination .nav-links span:last-child {
  border-right: none;
}

.navigation.pagination .nav-links span.current {
  background-color: #006666;
  color: #fff;
  border-color: #006666;
  position: relative;
  z-index: 1;
}

.navigation.pagination .nav-links span.dots {
  background-color: #f7fbfb;
  color: #888;
}

.navigation.pagination .nav-links a:hover {
  background-color: #e6eded;
}

/* --- ページネーション（全面的修正） --- */
/* ページネーション全体のコンテナ */
.pagination-container {
  display: flex;
  justify-content: center;
  margin: 60px 0;
}

.pagination-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
  /* 隙間をゼロにする */
  border-radius: 20px;
  overflow: hidden;
  /* 両端の角丸を子要素に適用 */
  border: 1px solid #c2d6d6;
  /* コンテナ全体に外枠をつけることで角の丸みにも線を描画 */
}

.page-item a,
.page-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #f7fbfb;
  /* カンプに近い非常に薄いティール */
  border: none;
  /* 上下の二重線を防ぐため一旦リセット */
  border-right: 1px solid #c2d6d6;
  /* アイテム間の区切り線のみ設定 */
  text-decoration: none;
  color: #006666;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

/* 最後の要素の右側の線を消す（コンテナに右枠線があるため） */
.page-item:last-child a,
.page-item:last-child span {
  border-right: none;
}

/* 現在のページ（アクティブ） */
.page-item.active a {
  background-color: #006666;
  color: #fff;
  border-color: #006666;
  /* アクティブの右隣の要素の左線を消す効果 */
  position: relative;
  z-index: 1;
}

/* 省略記号 */
.page-item.dots span {
  background-color: #f7fbfb;
  color: #888;
}

/* ホバー */
.page-item a:hover:not(.active a) {
  background-color: #e6eded;
}

.btn-wrap {
  text-align: center;
  margin-top: 5.0rem;
}

.btn-wrap--right {
  text-align: right;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  font-size: var(--fs-sm);
  letter-spacing: 0.1em;
  transition: all var(--transition-base);
}

.btn-line-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 10.0rem 1.0rem;
  font-size: var(--fs-sm);
  color: var(--color-text);
  letter-spacing: 0.1em;
  border-bottom: 1px solid #bbbbbb;
  transition: all var(--transition-fast);
}

.btn-line-center::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 24px;
  height: 1px;
  background-color: #bbbbbb;
  transform-origin: right bottom;
  transform: rotate(25deg);
  transition: background-color var(--transition-fast);
}

.btn-line-center:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.btn-line-center:hover::after {
  background-color: var(--color-primary);
}

.btn--round {
  padding: 1.6rem 5.0rem;
  background-color: #1a6f6f;
  color: var(--color-white);
  border-radius: 40px;
  font-weight: 500;
  gap: 1.0rem;
}

.btn--round:hover {
  background-color: var(--color-primary-dark);
}

.btn__arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.btn--round:hover .btn__arrow {
  transform: translateX(4px);
}

/* ========================================
   About Section
   ======================================== */
.about__text {
  text-align: center;
  font-size: var(--fs-lg);
  line-height: 2.2;
  margin-bottom: 4.0rem;
}

/* ========================================
   Group Section
   ======================================== */
.group__list {
  display: flex;
  flex-direction: column;
  gap: 6.0rem;
}

.group__item {
  display: flex;
  gap: 4.0rem;
  align-items: center;
}

.group__item:nth-child(even) {
  flex-direction: row-reverse;
}

.group__item-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
}

.group__item-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.group__item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.group__item-title {
  font-family: var(--font-mincho);
  font-size: var(--fs-xl);
  color: var(--color-primary);
  margin-bottom: 2.0rem;
  display: inline-block;
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 0.8rem;
  padding-right: 4.0rem;
}

.group__item-desc {
  font-size: var(--fs-base);
  margin-bottom: 2.4rem;
}

.group__item-content .text-link {
  align-self: flex-end;
  margin-top: auto;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  font-size: var(--fs-sm);
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
  position: relative;
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 0.4rem;
  padding-right: 3.2rem;
}

.text-link__arrow {
  display: inline-block;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 1px;
  background-color: currentColor;
  transition: right var(--transition-fast);
}

.text-link__arrow::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 1px;
  background-color: currentColor;
  transform: rotate(25deg);
  transform-origin: right bottom;
}

.text-link:hover .text-link__arrow {
  right: -8px;
}

.text-link--gray {
  color: var(--color-text);
  border-bottom-color: #bbbbbb;
  padding-right: 32.0rem;
}

.text-link--gray:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ========================================
   Page Header (Common Subpage Header)
   ======================================== */
.page-header {
  position: relative;
  width: 100%;
  height: 350px;
  background: linear-gradient(45deg, #ffffff 0%, #d1e9e7 100%);
  display: flex;
  align-items: center;
  margin-bottom: 8.0rem;
}

.page-header__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 4rem;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.page-header__title {
  font-family: var(--font-mincho);
  font-size: 3.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #1a1a1a;
  margin-bottom: 2.0rem;
  position: relative;
  display: inline-block;
}

.page-header__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.8rem;
  width: 100%;
  height: 1px;
  background-color: var(--color-primary);
  /* または var(--color-border) 。カンプを見るとティールっぽい線 */
}

.page-header__subtitle {
  font-family: var(--font-english);
  font-size: var(--fs-base);
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--color-text-light);
  text-transform: uppercase;
}

.breadcrumb {
  position: absolute;
  bottom: 2.0rem;
  right: 4rem;
  font-size: var(--fs-sm);
  color: var(--color-primary-dark);
}

.breadcrumb a {
  color: var(--color-primary-dark);
  transition: opacity var(--transition-fast);
}

.breadcrumb a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ========================================
   About Page Components
   ======================================== */
.section-title--line {
  font-family: var(--font-mincho);
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 5.0rem;
  border-bottom: 1.5px solid var(--color-primary);
  padding-bottom: 1.6rem;
  width: 100%;
}

.about-vision__text {
  font-size: var(--fs-base);
  line-height: 2.2;
}

.about-vision__text p {
  margin-bottom: 2.4rem;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2.0rem;
  border-top: 1px solid #d1e1df;
  /* Top border */
}

.company-table th {
  width: 30%;
  background-color: #b0c9ca;
  color: #333333;
  font-weight: 500;
  text-align: left;
  padding: 2.0rem 2.4rem;
  border-bottom: 1px solid #ffffff;
  border-right: 1px solid #ffffff;
  vertical-align: middle;
  font-size: var(--fs-sm);
  letter-spacing: 0.1em;
}

.company-table td {
  background-color: #ffffff;
  color: #333333;
  width: 70%;
  padding: 2.0rem 2.4rem;
  border-bottom: 1px solid #d1e1df;
  line-height: 1.6;
  vertical-align: middle;
  font-size: var(--fs-sm);
}

.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  /* 縦棒の基準位置 */
}

/* 左側の縦棒 */
.history-list::before {
  content: "";
  position: absolute;
  left: 130px;
  /* 年号の幅に合わせて調整 */
  top: 10px;
  bottom: 10px;
  width: 1px;
  background-color: #d1e1df;
  /* テーブルの境界線と合わせると統一感が出ます */
}

.history-item {
  display: flex;
  align-items: flex-start;
  position: relative;
  margin-bottom: 30px;
  /* 項目間の余白 */
}

/* 年号の部分 */
.history-date {
  width: 120px;
  flex-shrink: 0;
  font-size: 14px;
  color: #333;
  padding-top: 2px;
  white-space: nowrap;
}

/* 中央のドット */
.history-item::after {
  content: "";
  position: absolute;
  left: 127px;
  /* 縦棒の中心に配置 */
  top: 10px;
  width: 7px;
  height: 7px;
  background-color: #5b8a87;
  /* カンプのアクセントカラー */
  border-radius: 50%;
  z-index: 1;
}

/* テキスト部分 */
.history-text {
  margin: 0;
  padding-left: 40px;
  /* 縦棒からの距離 */
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

/* グリッドレイアウト（2カラム） */
.group-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 横に2つ並べる */
  gap: 30px;
  /* カード同士の間隔 */
  margin-top: 40px;
}

/* カード全体の基本設定 */
.group-card {
  display: block;
  position: relative;
  /* 白いボックスの基準位置 */
  text-decoration: none;
  overflow: hidden;
  /* 画像がはみ出ないように */
}

/* 画像部分 */
.group-image {
  aspect-ratio: 4 / 3; /* 16/9 → 4/3 に変更（画像を縦長に） */
  overflow: hidden;
}

.group-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 比率を維持したまま全体を埋める */
  transition: transform 0.3s ease;
  /* ホバー時の動き */
}

/* 白い情報ボックス（重なり部分） */
.group-info {
  position: absolute;
  bottom: 0; /* 15px → 0 に変更（ボックスを底辺に密着） */
  left: 0;   /* 15px → 0 */
  right: 0;  /* 15px → 0 */
  background-color: rgba(255, 255, 255, 0.95);
  padding: 20px 24px; /* 上下20px、左右24px */
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease;
}

.group-name {
  font-size: 16px;
  color: #5b8a87; /* #333 → #5b8a87 */
  margin: 0 0 16px 0; /* 8px → 16px */
  font-weight: 500;
  font-family: var(--font-mincho);
  padding-bottom: 14px; /* ← 追加 */
  border-bottom: 1px solid #5b8a87; /* ← 追加（横線） */
}

.group-link {
  font-size: 12px;
  color: #5b8a87;
  /* サイトのアクセントカラー */
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid #5b8a87;
  padding-bottom: 2px;
}

/* ホバー時の演出（エンジニアらしいこだわり） */
.group-card:hover .group-image img {
  transform: scale(1.05);
  /* 画像を少し拡大 */
}

.group-card:hover .group-info {
  background-color: rgba(255, 255, 255, 1);
}

.icon-external {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 6px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232a7a82" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}


.container--narrow {
  max-width: 800px;
}

/* ========================================
   Privacy Policy
   ======================================== */
.privacy-content {
  padding-bottom: 8.0rem;
}

.privacy-title {
  text-align: left;
  margin-bottom: 3.0rem;
  font-size: 2.8rem;
}

.privacy-intro {
  font-size: var(--fs-base);
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 5.0rem;
  text-align: left;
}

.privacy-article {
  text-align: left;
  margin-bottom: 4.0rem;
}

.privacy-article:last-of-type {
  margin-bottom: 6.0rem;
}

.privacy-article__title {
  font-size: var(--fs-md);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 1.6rem;
  padding-bottom: 1.0rem;
  border-bottom: 1px solid #e0e0e0;
}

.privacy-article__text {
  font-size: var(--fs-base);
  color: var(--color-text);
  line-height: 1.8;
}

.privacy-article__list {
  margin-top: 1.0rem;
  padding-left: 1.5rem;
  font-size: var(--fs-base);
  color: var(--color-text);
  line-height: 1.8;
}

.privacy-article__list--disc {
  list-style-type: disc;
  padding-left: 2.0rem;
}

.privacy-cta {
  text-align: center;
  margin-top: 6.0rem;
}

.privacy-btn {
  display: inline-flex;
  justify-content: center;
}

/* ========================================
   Contact Section
   ======================================== */
.contact__text {
  text-align: center;
  font-size: var(--fs-lg);
  line-height: 2.0;
  margin-bottom: 2.0rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background-color: var(--color-white);
  padding: 8.0rem 0 3.0rem;
  border-top: 1px solid #dcdcdc;
}

.footer__inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4.0rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 4rem;
  margin-bottom: 2.0rem;
}

.footer__logo-img {
  width: 220px;
  height: auto;
}

.footer__nav {
  /* No specific width needed, elements take space contextually */
}

.footer__nav-list {
  display: flex;
  align-items: flex-start;
  gap: 4.0rem;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.footer__nav-item>a {
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.footer__nav-item>a:hover {
  color: var(--color-primary);
}

.footer__sub-nav {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer__sub-nav a {
  color: var(--color-text-light);
  font-size: 1.2rem;
  font-weight: 400;
  transition: color var(--transition-fast);
}

.footer__sub-nav a:hover {
  color: var(--color-primary);
}

.footer__bottom {
  text-align: center;
  padding-top: 3.0rem;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.0rem;
}

.footer__privacy a {
  color: var(--color-text-muted);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.footer__privacy a:hover {
  color: var(--color-text);
}

/* ========================================
   Contact Page
   ======================================== */
.form-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 100px;
}

/* ========== タイトル ========== */
.form-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #4a9090;
  padding-bottom: 12px;
  border-bottom: 1px solid #4a9090;
  margin-bottom: 28px;
  letter-spacing: 0.06em;
}

/* ========== リード文・注記 ========== */
.form-intro {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 6px;
}

.form-intro a {
  color: #4a9090;
  text-decoration: underline;
}

.form-note {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ========== フォーム行（2カラム） ========== */
.form-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: start;
  gap: 12px;
  margin-bottom: 24px;
}

/* ========== ラベル ========== */
.form-label {
  font-size: 1rem;
  color: #333333;
  padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========== 必須バッジ ========== */
.badge-required {
  font-size: 0.6875rem;
  color: #c04040;
  border: 1px solid #c04040;
  padding: 1px 5px;
  border-radius: 2px;
  white-space: nowrap;
  font-weight: 400;
}

/* ========== テキスト入力・セレクト ========== */
.form-input {
  width: 100%;
  height: 40px;
  border: 1px solid #4a9090;
  border-radius: 2px;
  padding: 0 12px;
  font-size: 1rem;
  color: #333333;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: #4a9090;
  box-shadow: 0 0 0 3px rgba(74, 144, 144, 0.12);
}

/* ========== テキストエリア ========== */
textarea.form-input {
  height: 180px;
  padding: 10px 12px;
  resize: vertical;
}

.textarea-note {
  margin-bottom: 0;
  margin-top: 8px;
}

/* ========== ラジオボタングループ ========== */
.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  padding-top: 8px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  accent-color: #4a9090;
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ========== プライバシーポリシー同意 ========== */
.privacy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 28px;
  padding-left: 192px;
}

.privacy-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #4a9090;
  cursor: pointer;
  flex-shrink: 0;
}

.privacy-row label {
  font-size: 1rem;
  cursor: pointer;
}

.privacy-row a {
  color: #4a9090;
  text-decoration: underline;
}

/* ========== Contact Form 7 互換用スタイル ========== */
.form-row .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
span.wpcf7-not-valid-tip {
  font-size: 0.85rem;
  color: #c04040;
  display: block;
  margin-top: 4px;
}
div.wpcf7-response-output {
  margin: 24px 0 0;
  border-radius: 4px;
}
.radio-group .wpcf7-form-control.wpcf7-radio {
  display: contents;
}
.radio-group .wpcf7-list-item {
  margin: 0;
}
.radio-group .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  cursor: pointer;
}
.radio-group .wpcf7-list-item input[type="radio"] {
  accent-color: #4a9090;
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}
.privacy-row .wpcf7-form-control-wrap {
  display: contents;
}
.privacy-row .wpcf7-list-item {
  margin: 0;
}
.privacy-row .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ========== 送信ボタン ========== */
.submit-wrap {
  padding-left: 192px;
}

.btn-submit {
  background: #4a9090;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  border: none;
  border-radius: 4px;
  padding: 14px 60px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-submit:hover {
  background: #3a7a7a;
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ========================================
   Responsive (SP - Smartphone)
   ======================================== */
.header__hamburger {
  display: none;
}

@media screen and (max-width: 768px) {

  /* Layout & Container */
  .container {
    padding: 0 5%;
  }

  /* Header & Navigation */
  .header__inner {
    padding: 0 5%;
  }

  .header__nav,
  .header__contact {
    display: none;
    /* Hide PC nav */
  }

  .header__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 17px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }

  .header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: all var(--transition-fast);
  }

  /* Hamburger Active Animation */
  .header__hamburger.is-active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .header__hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }

  .header__hamburger.is-active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  /* SP Navigation Menu styling */
  .header__nav.is-active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-white);
    padding: 3.0rem 5%;
    z-index: 1000;
    overflow-y: auto;
  }

  .header__nav.is-active .header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.0rem;
    width: 100%;
  }

  /* SP Dropdown Adjustments */
  .header__nav-item--has-dropdown {
    width: 100%;
  }

  .header__dropdown {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    background-color: transparent;
    padding: 0;
    margin-top: 1.0rem;
    opacity: 1;
    visibility: visible;
    display: none;
    transition: none;
  }

  .header__nav-item--has-dropdown.is-open .header__dropdown {
    display: block;
    transform: none;
  }

  /* Disable hover behavior on mobile to enforce click/tap */
  .header__nav-item--has-dropdown:hover .header__dropdown {
    display: none;
  }
  
  .header__nav-item--has-dropdown.is-open:hover .header__dropdown {
    display: block;
  }

  .header__dropdown li {
    border-bottom: 1px solid #f0f0f0;
  }

  .header__dropdown a {
    padding: 1.2rem 1.6rem 1.2rem 3.2rem;
    font-size: 1.4rem;
    color: var(--color-text);
    background-color: #fafafa;
  }

  .header__dropdown a:hover {
    padding-left: 3.2rem;
    background-color: #fafafa;
  }

  .header__dropdown::before {
    display: none;
  }

  .header__dropdown a::after {
    display: none;
  }

  .header__nav-item--has-dropdown::after {
    display: none;
  }

  /* Hero Section */
  .hero__catch {
    font-size: 2.2rem;
    line-height: 2.0;
  }

  /* Section Common & Headings text-align: left */
  .section {
    padding: 6.0rem 0;
  }

  .section__title,
  .section-title--line {
    font-size: 2.0rem;
    margin-bottom: 4.0rem;
  }

  .about-vision__text {
    text-align: left !important;
  }

  /* News Section */
  .news__item {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.6rem 0;
  }

  .news__item-meta {
    width: 100%;
    margin-bottom: 0.8rem;
  }

  .news__item-title {
    width: 100%;
  }

  /* Group Section */
  .group__list {
    gap: 6.0rem;
  }

  .group__item,
  .group__item:nth-child(even) {
    flex-direction: column;
    gap: 2.4rem;
  }

  .group__item-image {
    width: 100%;
  }

  .group__item-content {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .group__item-title {
    font-size: var(--fs-lg);
    margin-bottom: 1.6rem;
  }

  .group__item-desc {
    margin-bottom: 2.0rem;
    text-align: left !important;
  }

  .text-link {
    align-self: flex-end;
    /* Align link to the right in SP */
  }

  /* Contact Section */
  .contact__text {
    font-size: var(--fs-base);
  }

  .contact__text br {
    display: none;
  }

  /* Footer */
  .footer {
    padding: 6.0rem 0 3.0rem;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 4.0rem;
    margin-bottom: 4.0rem;
  }

  .footer__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.0rem;
  }

  .footer__sub-nav {
    align-items: flex-start;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1.2rem;
  }

  /* Removed main text-align: center for left-alignment across mobile */

  /* 1. ヘッダータイトル */
  .page-header {
    height: auto;
    padding: 60px 20px;
    margin-bottom: 4.0rem;
  }

  .page-header__inner {
    padding: 0;
    align-items: center;
  }

  .page-header__title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
  }

  .page-header__subtitle {
    text-align: center;
    white-space: nowrap;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .breadcrumb {
    position: relative;
    right: auto;
    bottom: auto;
    justify-content: flex-start;
    font-size: 10px;
    margin-top: 30px;
    text-align: left;
  }

  .section-title--line {
    font-size: 1.8rem;
    margin-bottom: 3.0rem;
  }

  /* 2. 会社概要（テーブル）のスタック化 */
  .company-table tr {
    display: block;
    margin-bottom: 0;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
    text-align: left;
    border-right: none;
  }

  .company-table th {
    padding: 10px;
    background-color: #b0c9ca;
    border-bottom: 1px solid #fff;
  }

  .company-table td {
    padding: 15px 20px 25px;
    border-bottom: 1px solid #d1e1df;
  }

  /* 3. スマホ表示の沿革（タイムライン）調整 */
  .history-list {
    position: relative;
    padding-left: 30px;
    /* 線を引くためのスペース */
    margin: 20px 0;
    list-style: none;
    text-align: left;
  }

  .history-list::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #d1e1df;
    z-index: 0;
  }

  .history-item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 0;
  }

  .history-item::after {
    /* User specified ::before but keeping ::after as it replaces the previous dot nicely, logic remains same */
    content: "";
    position: absolute;
    left: -28px;
    /* 親のpadding-left(30px)分を戻す計算 */
    top: 5px;
    width: 8px;
    height: 8px;
    background-color: #5b8a87;
    border-radius: 50%;
    z-index: 1;
  }

  .history-date {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #666;
    margin-bottom: 4px;
    padding-left: 0;
  }

  .history-text {
    font-size: 14px;
    color: #333;
    margin: 0;
    padding-left: 0;
    display: block;
  }

  /* 4. グループ一覧（縦積み ＆ 番号追加） */
  .group-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    counter-reset: group-counter;
  }

  .group-card {
    counter-increment: group-counter;
    margin-top: 30px;
  }

  .group-card::before {
    content: "#0" counter(group-counter);
    display: block;
    text-align: left;
    color: #5b8a87;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
  }

  .group-info {
    width: auto;
    max-width: 85%;
    padding: 15px 20px;
    bottom: 10px;
    left: 0;
    right: auto;
    text-align: left !important;
  }

  /* Privacy Policy (SP) */
  .privacy-content {
    padding-bottom: 5.0rem;
    padding-top: 1.0rem;
  }

  .privacy-cta {
    margin-top: 4.0rem;
  }

  .privacy-btn {
    width: 100%;
    max-width: 300px;
  }

  /* 5. お問い合わせ・ボタン */
  .contact__text {
    text-align: left !important;
  }

  .contact .btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  /* Contact Form (SP) */
  .form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .radio-group {
    grid-template-columns: 1fr;
  }

  .privacy-row,
  .submit-wrap {
    padding-left: 0;
    justify-content: flex-start;
  }

  /* 6. フッター */
  .footer__inner {
    align-items: stretch;
  }

  .footer__logo {
    align-self: center;
    text-align: center;
    margin-bottom: 2.0rem;
  }

  .footer__logo-img {
    margin: 0 auto;
    display: block;
  }

  .footer__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .footer__nav-item {
    text-align: left;
    width: 100%;
  }

  .footer__sub-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0;
  }
}

/* ========================================
   About Page - New Sections
   ======================================== */

.about-vision__intro,
.about-section__intro {
  text-align: center;
  margin-bottom: 4.0rem;
}

.about-vision__catch,
.about-section__catch {
  font-family: var(--font-mincho);
  font-size: var(--fs-xl);
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 1.6rem;
}

.about-section__desc {
  font-size: var(--fs-base);
  line-height: 1.8;
  text-align: center;
}

.about-vision__text {
  text-align: center;
  font-size: var(--fs-base);
  line-height: 2.2;
}

/* Core Values */
.core-values__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.2rem;
}

.core-value__card {
  background-color: var(--color-white);
  padding: 3.2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--color-primary);
}

.core-value__num {
  font-family: var(--font-english);
  font-size: var(--fs-3xl);
  color: var(--color-primary-light);
  margin-bottom: 1.6rem;
  line-height: 1;
}

.core-value__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 1.6rem;
}

.core-value__desc {
  font-size: var(--fs-sm);
  line-height: 1.8;
}

/* Business Domains Tabs & Accordion */
.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

.domain-tabs__list {
  display: flex;
  list-style: none;
  gap: 1.6rem;
  margin-bottom: 3.2rem;
  justify-content: center;
}

.domain-tabs__item {
  padding: 1.6rem 2.4rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.domain-tabs__item:hover {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.domain-tabs__item.active {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.domain-tabs__content {
  display: none;
  background-color: var(--color-white);
  padding: 4.0rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border-light);
}

.domain-tabs__content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.domain-content__title {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 0.8rem;
}

.domain-content__desc {
  font-size: var(--fs-base);
  margin-bottom: 2.4rem;
  line-height: 1.8;
}

.domain-content__list {
  list-style: none;
  padding-left: 0;
}

.domain-content__list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 1.2rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.domain-content__list li::before {
  content: '・';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
}

/* SP Accordion */
.domain-accordion {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.domain-accordion__item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.domain-accordion__title {
  padding: 1.6rem 2.0rem;
  font-weight: 500;
  color: var(--color-primary);
  cursor: pointer;
  position: relative;
  list-style: none; /* Hide default arrow */
}

.domain-accordion__title::-webkit-details-marker {
  display: none; /* Hide default arrow in webkit */
}

.domain-accordion__title::after {
  content: '+';
  position: absolute;
  right: 2.0rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.0rem;
  transition: transform var(--transition-fast);
}

.domain-accordion__item[open] .domain-accordion__title::after {
  content: '-';
}

.domain-accordion__item[open] .domain-accordion__title {
  background-color: var(--color-primary-light);
  border-bottom: 1px solid var(--color-border);
}

.domain-accordion__content {
  padding: 2.4rem 2.0rem;
}

/* Our Strengths */
.strengths__content {
  background-color: var(--color-white);
  padding: 4.0rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 0 auto;
}

.strengths__list {
  list-style: none;
  padding: 0;
  margin-bottom: 3.2rem;
}

.strengths__list li {
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--color-primary-dark);
  padding: 1.6rem 2.0rem;
  background-color: var(--color-primary-light);
  margin-bottom: 1.2rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.strengths__closing {
  text-align: center;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--color-primary);
  border-top: 1px solid var(--color-border-light);
  padding-top: 2.4rem;
}

/* ========================================
   Concept Images (Group Pages)
   ======================================== */
.concept__images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4.0rem;
  margin-top: 6.0rem;
}

.concept__image-item {
  text-align: center;
}

.concept__image-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.6rem;
  background-color: var(--color-bg-gray);
}

.concept__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.concept__image-wrap:hover img {
  transform: scale(1.05);
}

.concept__image-text {
  font-family: var(--font-mincho);
  font-size: var(--fs-md);
  color: var(--color-text);
  letter-spacing: 0.1em;
}

/* ========================================
   Brand Card (Group-Kabu Page)
   ======================================== */
.brand-card-list {
  align-items: stretch;
}

.brand-card-wrap {
  aspect-ratio: auto !important;
  min-height: 160px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.2rem !important;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.brand-card-wrap:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary-light) !important;
  background-color: #fff !important;
}

/* ========================================
   Container Narrow
   ======================================== */
.container--narrow {
  max-width: 900px;
}

/* ========================================
   Responsive Overrides
   ======================================== */
@media screen and (max-width: 768px) {
  .pc-only {
    display: none;
  }
  .sp-only {
    display: block;
  }

  .core-values__grid {
    grid-template-columns: 1fr;
  }

  .about-vision__catch,
  .about-section__catch {
    font-size: var(--fs-lg);
  }

  .strengths__content {
    padding: 2.4rem 1.6rem;
  }

  .concept__images {
    grid-template-columns: 1fr;
    gap: 3.0rem;
  }
}