/* =============================
   下層ページ共通CSS（ニュース、コンタクト含む）
============================= */

/* ---------- Hero Section ---------- */
/* 下層ページでは強制表示 */
.hero-section.subpage-hero .hero-title,
.hero-section.subpage-hero .hero-lead {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}
.hero-section.subpage-hero {
  background-size: cover;
  background-position: center;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: visible !important;
}

/* クリック実体＋見た目（矢印） */
.hero-section.subpage-hero .hero-scroll {
  position: absolute;
  bottom: -37.5px;
  left: 50%;
  transform: translateX(-50%);
  width: 75px;
  height: 75px;
  z-index: 11;
  display: block;
}
.hero-section.subpage-hero .hero-scroll::before {
  content: "";
  position: absolute; inset: 0;
  background: url(../../assets/images/hero_scroll_down.webp) no-repeat center/contain;
}
@media (max-width: 768px){
  .hero-section.subpage-hero .hero-scroll { display: none; }
}

.hero-section.service-hero {
  background-image: url('../../assets/images/service_hero.webp');
}

.hero-section.ai-hero {
  background-image: url('../../assets/images/ai_hero.webp');
}

.hero-section.pv-hero {
  background-image: url('../../assets/images/pv_hero.webp');
}

.hero-section.company-hero {
  background-image: url('../../assets/images/company_hero.webp');
}

.hero-section.news-hero {
  background-image: url('../../assets/images/news_hero.webp');
}

.hero-section.contact-hero {
  background-image: url('../../assets/images/contact_hero.webp');
}

.subpage-hero .l-inner {
  z-index: 2;
  padding: 0 2rem;
  margin-top: 4rem;
}

.subpage-hero .hero-title {
  font-size: clamp(2rem, 5vw, 3.375rem);
  font-weight: bold;
  margin-bottom: 2rem;
  line-height: 1.4;
  text-shadow: 0px 4px 4px rgba(0,0,0,0.5);
  font-family: var(--font-family-serif);
}

.subpage-hero .hero-lead {
  font-size: 1.25rem;
  line-height: 1.9;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 0px 4px 4px rgba(0,0,0,0.5);
  text-align: left;
}

.subpage-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  gap: 4rem;
}

.subpage-text {
  flex: 1;
  max-width: 900px;
}

@media (max-width: 768px) {

  .hero-section.subpage-hero.contact-hero{
    background-position: bottom;
  }

  .hero-section.subpage-hero::after{
    display: none;
  }

  .hero-section.service-hero {
    background-image: url('../../assets/images/service_hero_sp.webp');
  }

  .hero-section.company-hero {
    background-image: url('../../assets/images/company_hero_sp.webp');
  }

  .hero-section.ai-hero {
    background-image: url('../../assets/images/ai_hero_sp.webp');
  }

  .hero-section.pv-hero {
    background-image: url('../../assets/images/pv_hero_sp.webp');
  }

  .hero-section.news-hero {
    background-image: url('../../assets/images/news_hero_sp.webp');
  }

  .hero-section.contact-hero {
    background-image: url('../../assets/images/contact_hero_sp.webp');
  }

  .subpage-hero .hero-title {
    font-size: 1.48rem;
    font-weight: bold;
    margin-bottom: 2rem;
    line-height: 1.4;
    text-shadow: 0px 4px 4px rgba(0,0,0,0.5);
    }

  .subpage-hero .hero-lead {
    font-size: 1.0rem;
    line-height: 1.7;
    /* max-width: 800px; */
  }

  .subpage-content {
    gap: 2rem;
  }

  .subpage-text {
    width: 100%;
  }

}

/* ---------- Company Info Section ---------- */
.introduction-info {
  background-color:  var(--color-background-light);
  padding: 3rem 1rem;
  text-align: center;
  z-index: 1;
}

.introduction-logo {
  max-width: 240px;
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
  margin: 0 auto;
}

.introduction-description {
  font-size: 1rem;
  line-height: 2;
  max-width: 760px;
  margin: 0 auto;
  color: #333;
  font-weight: bold;
  text-align: left;
  margin-top: 2rem;

}
@media (max-width: 768px) {

}


/* ---------- Product Card List ---------- */

.service-cards {
  padding: 6rem 0;
  background-color: #fff;
}

.product-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}


.product-item {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  height: 100%;
  position: relative;
}

.product-item:not(.alt-style)::after {
  content: '';
  width: 30px;
  height: 30px;
  background: url('../../assets/images/product-card_icon.webp') no-repeat center/contain;
  position: absolute;
  bottom: 0;
  right: 0;
}

.product-item.alt-style .product-link {
  display: inline-flex;
  align-self: center;
  margin-top: 2rem;
  background-color: var(--color-primary);
  color: #fff;
  font-weight: bold;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.product-item.alt-style .product-link:hover {
  background-color: var(--color-primary-light-2);
}
.product-image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-meta {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  justify-content: left;
}

.product-eyecatch {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.product-title {
  font-size: clamp(1.2rem, 1.2vw + 1rem, 1.375rem);
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--color-background-dark);
}

.product-desc {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: #333;
}

.product-link {
  margin-top: auto;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  background-color: var(--color-primary);
  color: #fff;
  font-weight: bold;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
  display: none;
}

.product-link:hover {
  background-color: var(--color-primary-light-2);
}

.product-link span {
  position: relative;
  padding-right: 1.2em;
}

.product-link span::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.0em;
}

/* ------------------------------
 alt-style（横長ボタン中央配置）
------------------------------ */
.product-item.alt-style {
  text-align: left;
}

.product-item.alt-style .product-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.product-item.alt-style .product-link {
  margin: 2rem auto 0;
  align-self: center;
}

/* ------------------------------
 レスポンシブ対応（SP）
------------------------------ */
@media (max-width: 1024px) {
  .product-list {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .product-list {
    grid-template-columns: 1fr;
    gap: 6.25rem;
  }

  .product-item {
    flex-direction: column;
    padding: 0 0 1.5rem;
  }

  .product-title {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
  }

  .product-link {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }

  .product-item.alt-style .product-link {
    margin-top: 1.5rem;
  }
}


/* ---------- AI Section ---------- */
.ai-section {
  padding: 6rem 0;
  background-color: #fff;
}

.ai-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.ai-card {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.ai-card-title {
  font-size: clamp(1.25rem, 1.4vw + 1rem, 1.5rem);
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--color-primary);
  text-align: center;
}

.ai-card-image {
  margin-bottom: 1.5rem;
}

.ai-card-image img {
  width: 100%;
  height: auto;
  display: block;
}

.ai-card-subheading {
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  text-align: center;
}

.ai-card-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ai-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .ai-card-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ai-section {
    padding: 3rem 1rem;
  }
}

/* ---------- プライバシーポリシー ---------- */
.pv-section{
  padding-top: 6rem;
  background-color: #fff;
}
.pv-content {
  margin-top: 4rem;
  color: #333;
  font-size: 1rem;
  line-height: 1.8;
}

.pv-list {
  counter-reset: pv-counter;
  list-style: none;
  padding-left: 0;
  margin-top: 2rem;
}

.pv-list > li {
  margin-bottom: 2.5rem;
}

.pv-list > li > strong {
  display: block;
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.pv-list > li p {
  position: relative;
  padding-left: 2.25em;
  text-indent: 0;
}

.pv-list > li p::before {
  content: "■";
  color: var(--color-primary);
  font-size: 0.625rem;
  position: absolute;
  left: 0.6rem;
  top: 0.6rem;
  line-height: 1;
}

.pv-sublist {
  counter-reset: pv-counter;
  list-style: none;
  padding-left: 0;
  margin-top: 2rem;
}

.pv-sublist > li {
  margin-bottom: 2.5rem;
}

.pv-sublist > li > strong {
  display: block;
  font-weight: bold;
  font-size: 1.375rem;
  margin-bottom: 1rem;
}


.pv-sublist > li > strong {
  display: block;
  font-weight: bold;
  font-size: 1.375rem;
  margin-bottom: 1rem;
}

.pv-sublist > li p {
  position: relative;
  padding-left: 3.75rem;
  text-indent: 0;
}

.pv-sublist > li p::before {
  content: "■";
  color: var(--color-primary);
  font-size: 0.625rem;
  position: absolute;
  left: 2rem;
  top: 0.6rem;
  line-height: 1;
}

.pv-sublist {
  margin-top: 1.25rem;
  padding-left: 1.5rem;
}

.pv-sublist li {
  margin-bottom: 1rem;
}

.pv-date {
  margin-top: 3rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #111;
  text-align: right;
}

@media (max-width: 768px) {

  .pv-section {
    padding: 3rem 1rem;
  }

  .pv-content {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-top: 2rem;
  }

  .pv-list > li {
    margin-bottom: 2rem;
  }

  .pv-list > li > strong {
    font-size: clamp(0.875rem, 1vw + 0.5rem, 1.375rem);
    margin-bottom: 0.75rem;
  }

  .pv-list > li p {
    padding-left: 1.75em;
    font-size: clamp(0.875rem, 1vw + 0.5rem, 1.375rem);
  }

  .pv-list > li p::before {
    left: 0.3rem;
    top: 0.4rem;
    font-size: 0.5rem;
  }

  .pv-sublist {
    padding-left: 0;
    margin-top: 1rem;
  }

  .pv-sublist > li {
    margin-bottom: 1.5rem;
  }

  .pv-sublist > li > strong {
    font-size: clamp(0.875rem, 1vw + 0.5rem, 1.375rem);
    margin-bottom: 0.5rem;
  }

  .pv-sublist > li p {
    padding-left: 2.25rem;
    font-size: clamp(0.875rem, 1vw + 0.5rem, 1.375rem);
  }

  .pv-sublist > li p::before {
    left: 0.8rem;
    top: 0.4rem;
    font-size: 0.5rem;
  }

  .pv-date {
    font-size: clamp(0.875rem, 1vw + 0.5rem, 1.375rem);
    line-height: 1.6;
    margin-top: 4rem;
  }

}


/* 公表事項ページのテーブル共通ラッパー */
.pv-table-wrap {
  overflow-x: auto;
  margin-bottom: 3rem;
}

.pv-subtitle{
  font-size: 1.25rem;
  font-weight: bold;
  margin: 1.25rem 0;
}

/* テーブル共通スタイル */
.pv-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  table-layout: fixed;
}

.pv-table th,
.pv-table td {
  border: 1px solid #ddd;
  padding: 1rem;
  text-align: left;
  font-size: 1.25remrem;
  line-height: 1.6;
  word-wrap: break-word;
}

.pv-table th {
  background-color: var(--color-primary);
  color: #fff;
  font-weight: bold;
  text-align: center;
}

.pv-table td {
  background-color: #f9f9f9;
}

/* 特定テーブル用：列幅調整付き */
.pv-table.is-purpose-col-variation {
  table-layout: fixed;
}

.pv-table.is-purpose-col-variation th:nth-child(1),
.pv-table.is-purpose-col-variation td:nth-child(1) {
  width: 40%;
}

.pv-table.is-purpose-col-variation th:nth-child(2),
.pv-table.is-purpose-col-variation td:nth-child(2) {
  width: 45%;
}

.pv-table.is-purpose-col-variation th:nth-child(3),
.pv-table.is-purpose-col-variation td:nth-child(3) {
  width: 15%;
  text-align: center;
}

/* 開示対象個人情報の利用目的：カラム比率調整 */
.pv-table.is-purpose-disclosure {
  table-layout: fixed;
}

.pv-table.is-purpose-disclosure th:nth-child(1),
.pv-table.is-purpose-disclosure td:nth-child(1) {
  width: 35%;
}

.pv-table.is-purpose-disclosure th:nth-child(2),
.pv-table.is-purpose-disclosure td:nth-child(2) {
  width: 65%;
}



/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .pv-table th,
  .pv-table td {
    font-size: 0.875rem;
    padding: 0.75rem;
  }

  .pv-table-wrap {
    margin-bottom: 2rem;
  }
}


.pv-certification {
  text-align: center;
  margin: 4rem 0;
}

.pv-certification-image {
  max-width: 587px;
  margin: 0 auto;
  height: auto;
}

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

  .pv-certification {
    margin: 2rem 0;
  }
  .pv-certification-image {
    max-width: 230px;
    margin: 0 auto;
    height: auto;
  }
}

/* ---------- 会社案内 ---------- */
.philosophy-title2 {
  font-size: 3.5rem ;
  white-space: nowrap;
  white-space: nowrap;
  font-weight: bold;
  color: var(--color-primary);
}

/* リード文エリア */
.philosophy-lead {
  max-width: 800px;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 30px 55px;
  font-size: 1rem;
  line-height: 2;
  color: #333;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  margin-bottom: 2rem;
}

.philosophy-arrow {
  text-align: center;
}

.philosophy-arrow img {
  width: 75px;
  height: auto;
}

/* アコーディオン全体 */
.philosophy-accordion {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.accordion-item {
  margin-bottom: 3.125rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* アコーディオンタイトル */
.accordion-title {
  width: 100%;
  height: 90px;
  background-color: #e60033;
  color: #fff;
  padding: 1rem 1.5rem;
  font-weight: bold;
  cursor: pointer;
  text-align: left;
  border: none;
  position: relative;
  font-size: 2rem;
  position: relative;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-title::after {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 2rem;
  background-image: url('../../assets/images/company_philosophy_close.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-left: 0.5rem; /* テキストとの間隔 */
  transition: transform 0.3s ease;
  position: absolute;
  right: 1.5rem;
}

.accordion-title.open::after {
  transform: rotate(180deg); /* 開いたときに反転 */
}

.accordion-title,
.accordion-content {
  word-break: break-word;  /* 長い文で崩れない */
  overflow-wrap: break-word;
}


/* アコーディオン内容 */
.accordion-content {
  padding: 2.5rem 1.75rem;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.8;
  font-size: 1.2rem;
  font-weight: bold;
  display: block; /* ← 初期展開状態 */

}

/* テーブルレイアウト */
.history-table,
.cp-table
 {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* 各行 */
.history-row,
 .cp-row{
  display: flex;
  flex-wrap: wrap;
  background-color: #fff;
  border-top: 1px solid #ccc;
  padding: 1.5rem 1rem;
  align-items: flex-start;
}

/* 年月 */
.history-date,
 .cp-name{
  display: flex;
  align-items: center;
  width: 15%;
  min-width: 120px;
  font-size: 1rem;
  color: #000;
}

.date-marker,
.cp-marker,
.access-marker{
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  margin-right: 0.5rem;
  border-radius: 1px;
}

/* 内容 */
.history-text,
.cp-text {
  width: 70%;
  font-size: 1rem;
  line-height: 1.6;
  color: #000;
}

/* 最終行の下線 */
.history-row:last-child,
.cp-row:last-child{
  border-bottom: 1px solid #ccc;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .history-row,
  .cp-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .history-date,
  .history-text,
  .cp-name,
  .cp-text{
    width: 100%;
  }

  .history-date,
  .cp-name {
    margin-bottom: 0.5rem;
  }
}


@media (max-width: 768px) {

  .philosophy-arrow img {
    width: 40px;
  }


  .philosophy-accordion {
    width: 90%;

  }

  .accordion-item {
    margin-bottom: 1.5rem;
  }

  .philosophy-lead{
    padding: 1rem;
    /* margin: 2rem; */
  }

  .accordion-title {
    width: 100%;
    height: 50px;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    letter-spacing: 0.1em;

  }

  .accordion-title::after {
    width: 1rem;
    height: 1rem;
    right: 1.5rem;
  }

  .accordion-title.open::after {
    transform: rotate(180deg); /* 開いたときに反転 */
  }

  /* アコーディオン内容 */
  .accordion-content {
    padding: 1.25rem;
    line-height: 1.8;
    font-size: 0.875rem;


  }

}
/* 特例サイズ幅 */
@media (max-width: 510px){
  .and-title {
    font-size: clamp( 0.9rem, 0.8vw, 1.125rem);
    letter-spacing: -0.04em;

  }

}

.company-access {
  padding: 5rem 0;
  background: #fff;
}

.section-heading-wrap {
  text-align: center;
  margin-bottom: 2rem;
}

.access-map {
  width: 100%;
  margin: 0 auto;
  max-width: 100%;
  margin: 0 auto;
}

.access-map iframe {
  width: 100%;
  height: 290px;
  display: block;
  border: none;
}

.access-info {
  margin: 1rem auto 0;
  text-align: center;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.access-address {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.access-divider {
  width: 3px;
  height: 120px;
  background-color: #e53950;
  margin: 1rem auto 2rem;
  border: none;
}

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

.access-lines li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

/* 特例サイズ幅 */
@media (max-width: 1080px){
  .access-info{
    flex-direction: column;
    align-items: flex-start;
  }

  .access-address {
    margin: 0;
  }

  .access-divider {
    width: 100%;
    height: 3px;
    margin: 1.5rem auto;
  }
}
@media (max-width: 768px){
  .access-address {
    font-size: 0.875rem;
  }
}

/* ===== Sitemap（.sitemap配下のみ） ===== */

.sitemap-section{
margin: 10rem 0;

}
.sitemap .sitemap-head {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}

.sitemap .sitemap-title {
  font-size: clamp(1.8rem, 1.4vw + 1.4rem, 2.4rem);
  font-weight: 800;
}

.sitemap .sitemap-lead {
  color: #666;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.sitemap .sitemap-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

/* セクションブロック */
.sitemap .sitemap-block {
  display: flex;
  justify-content: space-around;
  padding: 2rem;
  border-top: 1px solid var(--color-gray-lighter);
}

.sitemap .sitemap-block:last-child {
  border-top: 1px solid var(--color-gray-lighter);
  border-bottom: 1px solid var(--color-gray-lighter)

}

/* 見出し：既存の.section-headingを壊さないようスコープ限定 */
.sitemap .section-heading {
  display: flex;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  width: 50%;
}

.sitemap .section-heading-icon {
  width: 22px;
  height: auto;
  flex: 0 0 22px;
}

/* 2カラム（SPは1カラム） */
.sitemap .sitemap-links {
  display: grid;
  /* grid-template-columns: repeat(2, minmax(0, 1fr)); */
  gap: 8px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 50%;
}

@media (max-width: 768px) {
  .sitemap-section{
    margin: 5rem 0;
  }

  .sitemap .sitemap-links {
    width: 62%;
  }
  .sitemap .sitemap-block{
  padding: 2rem 0;
}

.sitemap .section-heading {
  width: 38%;
  font-size: 1rem;
}

}

/* 各リンク */
.sitemap .sitemap-link-item {
  margin: 0;
  padding: 0;
}

.sitemap .sitemap-link-item a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px dotted #ccc;
}

.sitemap .sitemap-link-item a:hover {
  color: var(--color-primary, #b3203a);
  border-bottom-color: currentColor;
}
