/* =========================================================
   Catal Company Site
   style.css（手動統合版）
   2025-11-06
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap');
/* ------------------------------
   基本設定
------------------------------ */
html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}
body {
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  color: #000000;
  line-height: 1.8;
  font-size: 1.6rem;
  background: #FAF7F5;
  margin: 0;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}
a {
  color: #000;
  text-decoration: none;
  transition: 0.3s ease;
}
a:hover {
  opacity: 0.7;
}
figure {
  margin: 0;
}
.container {
  width: 90%;
  max-width: 1440px;
  margin: 0 auto;
}
/* ------------------------------
   レイアウト共通
------------------------------ */
.section-label {
  font-size: 1.4rem;
  color: #999;
  margin-bottom: 8px;
}
.section-title {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 24px;
}
.section-title span {
  color: #000;
}
.section-desc {
  font-size: 1.6rem;
  line-height: 1.8;
  margin-bottom: 32px;
}
/* ------------------------------
   ボタン
------------------------------ */
.btn {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}
.btn:hover {
  opacity: 0.8;
}
.btn-outline {
  background: transparent;
  color: #333;
  border: 1px solid #aaa;
}
.btn-outline:hover {
  background: #333;
  color: #fff;
}
/* ------------------------------
   ヘッダー
------------------------------ */
.header {
  position: relative; /* ← ロゴ部分は通常フローに */
  width: 100%;
  padding: 0;
  background: transparent;
}
.header__inner {}
/* ▼ ナビゲーションだけ固定にする */
.header__nav {
  position: fixed;
  top: 0;
  right: 10px; /* 余白を合わせる */
  z-index: 1000;
  background: transparent;
  padding: 10px 20px;
}
.header__logo {
  width: 60%;
  margin: 0;
  z-index: 100;
  position: relative;
}
.header__logo a {
  font-size: 2.4rem;
  font-weight: 700;
}
.header__nav ul {
  list-style: none;
  gap: 16px;
}
.header__nav a {
  font-size: 1.8rem;
  line-height: 1.5;
  color: #000;
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
}
.header__nav a.is-active {
  font-weight: 700;
  text-decoration: underline;
}
/* ------------------------------
   ヒーローエリア（2カラム）
------------------------------ */
.hero {
  width: 100%;
  padding-top: 60px; /* ロゴとの余白 */
  padding-bottom: 0;
}
.hero__inner {
  display: flex;
  align-items: flex-start; /* 画像を上、テキストを少し下げる */
  justify-content: space-between;
  gap: 60px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}
.hero__sub {
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  color: #BCBBB9;
  font-size: 4.1rem;
  font-weight: 600;
  padding: 0 5%;
  position: relative;
  z-index: 99;
}
.hero__text {
  flex: 0 1 45%;
  padding-top: 60px; /* ロゴ下に少し下げる */
}
.hero__image {
  flex: 0 1 90%;
  text-align: right;
  margin-top: -250px; /* ロゴの下に少し入り込む */
}
.hero__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
/* ------------------------------
   テキスト装飾
------------------------------ */
.hero__lead {
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 40px;
}
.hero__desc {
  font-size: 1.6rem;
  line-height: 1.8;
  margin-bottom: 24px;
}
.btn-outline {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid #000;
  border-radius: 24px;
  font-size: 1.4rem;
  color: #000;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-outline:hover {
  background: #000;
  color: #fff;
}
/* ------------------------------
   スマホ対応
------------------------------ */
@media screen and (max-width: 768px) {
  .hero__inner {
    flex-direction: column;
    gap: 40px;
    padding: 0 20px;
  }
  .hero__text {
    padding-top: 0;
  }
  .hero__lead {
    font-size: 3.6rem;
  }
  .hero__desc {
    font-size: 1.4rem;
  }
}


/* ==========================
   Section EdTech
========================== */
.section-edtech {
  padding: 6rem 0;
}
.section-edtech .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.edtech__visual {
  flex: 1;
  text-align: center;
}
.edtech__visual img {
  width: 100%;
  max-width: 520px;
  height: auto;
}
.edtech__content {
  flex: 1;
}
.section-label {
  font-size: 1.6rem;
  color: #BCBBB9;
  font-weight: 700;
  margin-bottom: 12px;
}
.section-title {
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
}
.section-title span.edtech__edtech {
  font-size: 8rem;
  font-weight: 600;
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  line-height: 1;
}
.section-title span.edtech__system {
  font-size: 8rem;
  font-weight: 400;
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  line-height: 1;
}
.section-title small {
  display: block;
  font-size: 3.2rem;
  font-weight: 600;
  margin-top: 6px;
}
.section-desc {}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #333;
  padding: 10px 24px;
  border-radius: 24px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-outline::after {
  content: "→";
  font-size: 0.9em;
}
.btn-outline:hover {
  background: #333;
  color: #fff;
}
/* ==========================
   Responsive
========================== */
@media screen and (max-width: 1024px) {
  .section-edtech .container {
    gap: 40px;
  }
}
@media screen and (max-width: 768px) {
  .section-edtech .container {
    flex-direction: column;
  }
  .edtech__visual img {
    max-width: 400px;
    margin: 0 auto 0px;
  }
  .section-title span {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .section-edtech .container {
    display: flex;
    flex-direction: column;
  }

  .edtech__content {
    order: 1; /* テキストを先に */
  }

  .edtech__visual {
    order: 2; /* 画像を後に（下へ） */
    margin-top: 24px; /* 少し余白を足す */
  }
  .section-edtech {
      padding: 60px 0;
  }
}

/* ------------------------------
   Curriculum セクション
------------------------------ */
.section-curriculum {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.curriculum__images {
  display: flex;
  flex: 1;
}
.curriculum__images figure {
  width: 50%;
  overflow: hidden;
  margin: 0;
}
.curriculum__images img {
  width: 100%;
  height: auto;
}
.curriculum__text {
  position: absolute;
  bottom: 8%;
  left: 5%;
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
}
.curriculum__text h2 {
  font-family: "Geist", sans-serif;
  font-size: 7rem;
  font-weight: 600;
  line-height: 1;
}

@media (max-width: 768px) {
.curriculum__text h2 {
  font-size: 5rem;
}
.curriculum__text {
  bottom:35%;
}
}

/* ------------------------------
   Case Study Section
------------------------------ */
.section-case {
  padding: 6rem 8% 0 0;
  overflow: hidden;
}

.case__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  margin-bottom: 60px;
}
.case__desc {
  width: 60%;
}
.case__desc p {
  margin-bottom: 20px;
}
/* Swiper core layout */
.caseSwiper {
  position: relative;
  padding-bottom: 80px;
}
.swiper-slide {
  height: auto;
}
.case-item {
  padding: 32px;
}
.case-item__icon img {
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
  border-radius: 50%;
}
.case-item__name {
  font-size: 1.6rem;
  color: #666;
  margin-bottom: 8px;
}
.case-item__title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111;
}
.case-item__desc {
  color: #444;
  line-height: 1.8;
  margin-bottom: 16px;
}
.case-item__link {
  font-weight: 700;
  color: #000;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.case-item__link::before {
  content: "↗";
  display: inline-flex;        /* ← これが重要 */
  align-items: center;         /* 縦中央 */
  justify-content: center;     /* 横中央 */

  font-size: 0.9rem;
  color: #fff;
  background-color: #000;
  border-radius: 50%;
  width: 20px;
  height: 20px;

  margin-right: 0px;           /* テキストとの間隔 */
}

/* Swiper Navigation */
.case-button-prev, .case-button-next {
  position: absolute;
  bottom: 0;
  background: #fff;
  border: 1px solid #111;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}
.case-button-prev:hover, .case-button-next:hover {
  background: #111;
  color: #fff;
}
.case-button-prev {
  left: calc(50% - 250px);
}
.case-button-next {
  left: calc(50% + 120px);
}
/* Pagination */
.case-pagination {
  text-align: center;
  margin-top: 40px;
  font-weight: 600;
  color: #666;
}
/* Swiper dots */
.swiper-pagination-bullet {
  background: #ccc;
}
.swiper-pagination-bullet-active {
  background: #111;
}
/* Responsive */
@media (max-width: 768px) {
  .case__header {
    gap: 0;
  }
  .case__desc {
      width: 100%;
  }
  .case__header {
    flex-direction: column;
  }
  .caseSwiper {
    padding-bottom: 60px;
  }
  .case-button-prev, .case-button-next {
    display: none;
  }
}
/* Swiper Navigation Group */
.case-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  position: relative;
}
/* Prev / Next Buttons */
.case-button-prev, .case-button-next {
  background: #fff;
  border: 1px solid #111;
  width: 148px;
  height: 33px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #111;
  cursor: pointer;
  transition: all 0.3s ease;
}
.case-button-prev:hover, .case-button-next:hover {
  background: #111;
  color: #fff;
}
/* Pagination (fraction type) */
.case-pagination {
  min-width: 80px;
  text-align: center;
  font-weight: 600;
  font-size: 1.4rem;
  color: #666;
}
/* Swiper fraction のデザイン調整 */
.swiper-pagination-current {
  color: #111;
  font-weight: 700;
  margin-right: 4px;
}
.swiper-pagination-total {
  color: #aaa;
  margin-left: 4px;
}
/* Responsive */
@media (max-width: 768px) {
  .case-navigation {
    gap: 16px;
  }
  .case-button-prev, .case-button-next {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
/* ==========================
   Section Technology
========================== */
.section-technology {
  padding: 13rem 8% 0 0;
}
.section-technology .container {
  display: flex;
  gap: 80px;
}
.technology__visual {
  flex: 0 1 50%; /* 画像を広めに */
  text-align: center;
}


.technology__visual img {
  width: 100%;
  height: auto;
}
.technology__content {
  flex: 0 1 45%;
}
.section-technology h2 {
  font-size: 8rem;
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  line-height: 1;
  margin-top: 0;
  margin-bottom: 0;
}

.section-technology h3 {
  display: block;
  font-size: 3.2rem;
  font-weight: 600;
  margin-top: 6px;
  line-height: 1.3;
}

.section-techteam h3 {
  display: block;
  font-size: 3.2rem;
  font-weight: 600;
  margin-top: 6px;
  line-height: 1.3;
}
/* ==========================
   Responsive
========================== */
@media screen and (max-width: 1024px) {
  .section-technology .container {
    gap: 40px;
  }
}
@media screen and (max-width: 768px) {
  .section-technology .container {
    display: block;
  }
  .technology__visual img {
    max-width: 400px;
    margin: 0 auto 40px;
  }
  .section-technology h2 {
    font-size: 4.4rem;
  }
.section-technology h3 {
    font-size: 2.4rem;

  }
  .section-techteam h3 {
    font-size: 2.4rem;
  }
  .technology__content {
    flex: auto;
  }
  .section-technology {
    padding: 0;
    margin-top: 30px;
  }
  .section-techteam {
    padding: 0 !important;
  }
  
  .section-technology .container {
    display: flex;
    flex-direction: column;
  }
  
  .technology__content {
    order: 1; /* テキストを先に */
  }
  
  .technology__visual {
    order: 2; /* 画像を後に（下へ） */
    margin-top: 24px; /* 少し余白を足す */
  }
}
/* ------------------------------
   News Section
------------------------------ */
.section-news {
  padding: 60px 0;
}
.section-news .container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}
.news__wrap {
  display: flex;
  align-items: flex-start;
  gap: 180px;
}
/* 左：カテゴリ */
.news__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.news__nav li {
  margin-bottom: 10px;
}
.news__nav a {
  color: #777;
  text-decoration: none;
  transition: color 0.3s ease;
}
.news__nav li.active a, .news__nav a:hover {
  color: #111;
  font-weight: 600;
}
/* 右：記事一覧 */
.news__list {
  flex: 1;
}
.news__item {
  display: grid;
  grid-template-columns: 120px 120px 1fr 40px;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #ddd;
}
.news__date {
  font-weight: 600;
  color: #111;
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
}
.news__cat {
  background: #c5c1cd;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  text-align: center;
  font-size: 0.75em;
}
.news__title {
  color: #111;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}
.news__title:hover {
  color: #555;
}
.news__arrow {
  font-size: 1.4rem;
  color: #fff;
  background-color: #000;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  text-align: center;
}
.news__more {
  margin-top: 30px;
}
/* ------------------------------
   Responsive
------------------------------ */
@media (max-width: 768px) {
  .section-news .container {
    padding: 0 30px;
  }
  .news__wrap {
    flex-direction: column;
  }
  .news__item {
    grid-template-columns: 100px 1fr;
    grid-template-rows: auto auto;
    row-gap: 8px;
  }
  .news__date {
    grid-column: 1 / 2;
  }
  .news__cat {
    grid-column: 2 / 3;
    justify-self: start;
  }
  .news__title {
    grid-column: 1 / 3;
  }
  .news__arrow {
    display: none;
  }
  .news__wrap {
      gap: 0;
  }
  .news__nav ul {
      display: ruby;
  }
  .news__nav a {
display: block;
      padding: 4px 8px;
  }
}
/* ------------------------------
   Contact セクション
------------------------------ */
.section-contact {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 60px 0;
}
.section-contact .container {
  margin: 0 auto;
  padding: 0 40px;
}
.contact__content {
  display: flex;
  justify-content: space-between;
  gap: 260px;
}
.contact__text h2 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 0;
}
.contact__text p {
  margin-bottom: 0;
}
/* ボタンスタイル（既存btn-outlineを上書き） */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  border: 1px solid #111;
  border-radius: 50px;
  padding: 14px 8px 14px 20px;
  text-decoration: none;
  color: #111;
  font-weight: 700;
  transition: all 0.3s ease;
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
}
.btn-outline::after {
  content: "→";
  /*content: "↗";*/
  font-size: 1rem;
  color: #fff;
  background: #BCBBB9;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-outline:hover {
  background: #111;
  color: #fff;
}
.btn-outline:hover::after {
  background: #fff;
  color: #111;
}

.btn-outline.btn-ja {
  height: 56px !important;
}
/* ------------------------------
   Responsive
------------------------------ */
@media (max-width: 768px) {
  .contact__content {
    flex-direction: column;
    gap: 10px;
  }
  .contact__text h2 {
    font-size: 2.6rem;
    line-height: 1;
  }
  .btn-outline {
    padding: 12px 28px;
  }
  .contact__content {
    align-items: start;
  }
}
/* ------------------------------
   Footer
------------------------------ */
.footer {
  padding: 45px 0;
}
.footer .container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 0px;
}
/* --- Top area --- */
.footer__block {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
}
.footer__lead {
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111;
}
.footer__logo {
  width: 78%;
}
/* --- Links area --- */
.footer__links {
  display: flex;
  justify-content: flex-end;
  gap: 60px;
  margin-bottom: 60px;
  width: 100%;
}
.footer__col h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__col ul li {
}
.footer__col a {
  color: #111;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1.4rem;
  line-height: 1.3
}
.footer__col a:hover {
  color: #555;
}
/* --- Bottom area --- */
.footer__bottom {
  display: flex;
  justify-content: flex-end; /* 右寄せ */
  align-items: center;
  gap: 28px;
}
.footer__sns {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  text-decoration: none;
  color: #111;
  font-size: 3.2rem;
  transition: all 0.3s ease;
}
.footer__sns a:hover {
  background: #111;
  color: #fff;
}
.footer__copy {
  font-size: 1.3rem;
}
/* ------------------------------
   Responsive
------------------------------ */
@media (max-width: 1024px) {
  .footer__links {
    gap: 40px;
  }
}
@media (max-width: 768px) {
  .footer {
    padding: 30px 0 60px 0;
  }
  .footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  .footer__lead {
    font-size: 1.6rem;
  }
  .footer__logo img {
    width: 180px;
  }
  .footer__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}


@media (max-width: 768px) {

  /* ------------------------------
      footer 全体を縦レイアウトへ
  ------------------------------ */
  .footer .container {
    display: flex;
    flex-direction: column;
  }

  /* ------------------------------
      PCの横並びレイアウトを無効化（最重要）
  ------------------------------ */
  .footer__block {
    display: block !important;
    width: 100% !important;
    float: none !important;
  }

  /* ------------------------------
      footer__top（大見出しのブロック）
      → SPでは完全に縦並びへ
  ------------------------------ */
  .footer__top {
    display: block !important;
    width: 100% !important;
    float: none !important;
    order: 99 !important;
    margin-top: 40px !important;
    text-align: left !important;
  }



  /* 大見出し（テクノロジー〜） */
  .footer__lead {
    font-size: 3.4rem !important;
    line-height: 1.45 !important;
    margin: 0 !important;
    padding: 5% !important;
    display: block !important;
    width: 90% !important;
  }

  /* ------------------------------
      最上部ロゴ（footer__top 外側）
  ------------------------------ */
  .footer__logo {
    order: 1;
    text-align: center;
    margin-bottom: 32px;
  }
  .footer__logo img {
    width: 260px;
  }

  /* ------------------------------
      メニュー（About/Tech/Service/News）
  ------------------------------ */
  .footer__links {
    order: 2;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    width: 90% !important;
    margin-bottom: 40px !important;
    padding: 5%;
  }

  /* ------------------------------
      SNS / コピーライト
  ------------------------------ */
  .footer__bottom {
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }

  .footer__sns {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
  }

  .footer__copy {
    font-size: 1.4rem;
    text-align: center;
    margin-top: 8px;
  }
}

@media (max-width: 768px) {

  /* 大見出しを一番下に移動 */
  .footer__top {
    order: 99 !important;   /* 最後尾に移動 */
  }

  /* footer__bottom の直前に置く */
  .footer__lead {
    order: 98 !important;   /* footer__top 内の最終要素 */
  }
}



.header__logo.header--sub {
  width: 12%;
  padding: 1%;
  line-height: 1;
}
/* 下層ページ共通ヒーロー */
.hero--sub {}
.hero--sub .hero__content {
  text-align: left;
}
.hero--sub .hero__title {
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  font-size: 9.6rem;
  font-weight: 600;
  margin: 0 0 1rem;
  line-height: 1;
}
.hero--sub .hero__subtitle {
  font-size: 2rem;
  font-weight: 500;
}
.hero--sub .hero__image {
  margin-top: 0;
  display: flex;
  justify-content: flex-end; /* 左寄せ配置 */
  margin-top: -50px;
  margin-left: 20%;
}
.hero--sub .hero__image img {
  width: 100%;
  display: block;
  margin: 0 auto;
}
@media (max-width: 768px) {
.hero--sub {
  padding-top: 45px !important;
}
}

/* ------------------------------
   Philosophy
------------------------------ */
.section-philosophy {
  padding: 6rem 0;
}
.section-philosophy .section-label {
  color: #999;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 2rem;
}
.section-philosophy .section-title {
  font-size: 6.8rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 5rem;
}
.philosophy__content {
  margin-left: 20%;
}
.philosophy__content p {
  font-size: 1.6rem;
  line-height: 2;
  color: #333;
  margin-bottom: 2.4rem;
}
.philosophy__mission {
  margin-top: 6rem;
  padding-top: 3rem;
}
.philosophy__mission p {
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.8;
  color: #000; /* 赤→黒に変更 */
}
@media (min-width: 900px) {
.philosophy__mission .philosophy__content p {
  margin-top: -1em;
}
}
/* SP対応 */
@media (max-width: 768px) {
  .section-philosophy {
    padding: 6rem 0;
  }
  .section-philosophy .section-title {
    font-size: 3.2rem;
  }
}
/* ------------------------------
   CEO Message
------------------------------ */
.section-message {
  padding: 6rem 0;
}
.section-message .section-label {
  color: #999;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 2rem;
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
}
.section-message .section-title {
  font-size: 5.4rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  color: #000; /* 赤 → 黒 */
}
.message__name {
  font-size: 1.6rem;
  font-weight: 400;
}
.message__name span {
  font-size: 1.8rem;
  font-weight: 600;
}
.message__content {
  margin-left: 20%;
  margin-right: 20%;
}
.message__image {
  margin: 0 0 30px;
}
.message__image img {
  width: 100%;
  display: block;
}
.message__text {
  flex: 1 1 55%;
}
.message__text p {
  font-size: 1.6rem;
  line-height: 2;
  color: #333;
  margin-bottom: 2.4rem;
}
.btn-outline.small {
  display: inline-block;
  padding: 0.8rem 2.4rem;
  font-size: 1.4rem;
  border: 1px solid #333;
  border-radius: 2rem;
  text-decoration: none;
  color: #333;
  transition: 0.3s;
}
.btn-outline.small:hover {
  background: #333;
  color: #fff;
}
/* SP対応 */
@media (max-width: 768px) {
  .message__content {
    flex-direction: column;
  }
  .message__image, .message__text {
    width: 100%;
  }
}
.about-edtech {
  margin-right: 8%;
}
/* ------------------------------
   Team Photo Section
------------------------------ */
.section-photo {
  padding: 30px 0;
}
.container-photo {
  width: 90%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start; /* 左寄せ配置 */
}
.photo-full .container-photo {
  width: 100%;
  max-width: 2400px;
}
.photo__image {
  flex: 0 1 80%; /* 右側に20%の余白を確保 */
}
.photo__image img {
  width: 100%;
  height: auto;
  display: block;
}
/* SP対応 */
@media (max-width: 768px) {
  .photo__image {
    flex: 1 1 100%;
  }
}


.section-photo.photo-90 .container-photo {
    position: relative;
    width: 100%;
    height: 544px;
    overflow: hidden;
    max-width: 2400px;
}

.section-photo.photo-90 .container-photo .photo__image {
    flex: 0 1 85%;
}


@media (max-width: 768px) {
  .section-photo.photo-90 .container-photo {
      /* position: relative; */
      width: 100%;
      height: auto;
      overflow: hidden;
      max-width: 2400px;
  }
  .section-photo.photo-90 .container-photo .photo__image {
      flex: 1 1 85%;
  }
}
/* ------------------------------
   Board Members
------------------------------ */
.section-members {
  padding: 6rem 0;
}
.section-members .section-label {
  color: #999;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 2rem;
}
.section-members .section-title {
  font-size: 3.6rem;
  font-weight: 700;
  margin-bottom: 5rem;
}
.members__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2rem;
  margin-left: 20%;
  margin-top: -10rem;
  margin-right: 10%;
}
.member-card {
  text-align: left;
}
.member-photo {
  margin: 0 0 15px;
}
.member-photo img {
  width: 100%;
  display: block;
}
.member-name {
  font-size: 1.6rem;
  color: #000;
  margin-top: 1rem;
  font-weight: 400;
  margin-bottom: 10px;
}
.member-name strong {
  font-weight: 600;
}
.member-card h4 {
  margin: 0;
  margin: 0 0 10px;
}
/* SP対応 */
@media (max-width: 768px) {
  .section-members {
      padding: 6rem 0;
  } 
  .members__grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}
/* ------------------------------
   Company Profile
------------------------------ */
.section-company {
  padding: 6rem 0;
}
.section-company .section-label {
  color: #999;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 2rem;
}
.section-company .section-title {
  font-size: 3.6rem;
  font-weight: 700;
  margin-bottom: 5rem;
}
.company-table {
  display: block;
  border-top: 1px solid #ccc;
  margin-left: 20%;
  margin-top: -10rem;
  margin-right: 10%;
}
.company-row {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #ccc;
  padding: 2rem 0;
}
.company-row dt {
  width: 25%;
  font-weight: 700;
  font-size: 1.6rem;
  color: #000;
}
.company-row dd {
  width: 75%;
  font-size: 1.6rem;
  margin: 0;
  color: #333;
  line-height: 1.8;
}
/* SP対応 */
@media (max-width: 768px) {
  .company-row dt, .company-row dd {
    width: 100%;
  }
  .company-row dt {
    margin-bottom: 0.5rem;
  }
}
/* ===========================
   Technology Team Section
=========================== */
.section-techteam {
  padding: 6rem 8% 6rem 0;
}
.section-techteam .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 60px;
}

@media (min-width: 1024px) {
  .tech-container {
    display: flex;
    gap: 40px;
  }

  .tech-box {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
}

.techteam__content {
  flex: 1;
}
.title-tech, .title-team {
  font-size: 7rem;
  font-weight: 400;
  line-height: 1;
  display: block;
}
.title-tech {
  font-weight: 600;
}
/* インタビュー領域 */
.techteam__interview {
  display: flex;
  align-items: center;
  margin-top: 30px;
  gap: 20px;
  margin-bottom: 30px;
}
.interview__img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
}
.interview__title {
  font-weight: 600;
  line-height: 1.4;
  font-size: 2.4rem;
  margin-bottom: 0.8em;
}
.interview__text i {
  color: #BCBBB9;
  font-size: 135%;
}
.interview__name {
  margin: 8px 0 4px;
  font-weight: 700;
}
.interview__name span {
  font-weight: 400;
  color: #555;
}
.interview__link {
  color: #000;
  font-weight: 600;
}
/* --- 右側ビジュアル --- */
.techteam__visual {
  flex: 1;
  text-align: center;
}
.techteam__visual img {
  max-width: 100%;
  height: auto;
}
/* ===========================
   下段 3カラム
=========================== */
.techteam__boxes {
  display: flex;
  gap: 24px;
}
.tech-box {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.tech-box h3 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  margin: 0;
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
}
.tech-box p {
  font-size: 1.6rem;
  line-height: 1.8;
  margin-left: 10%;
}
/* --------------------------
   SPレスポンシブ
--------------------------- */
@media (max-width: 900px) {
  .techteam__top {
    flex-direction: column;
  }
  .techteam__visual img {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  .techteam__boxes {
    flex-direction: column;
  }
  .interview__title {
    font-size: 1.8rem;
  }
  
}
.hero--sub.hero--service .hero__image {
  margin-top: -250px;

}

  @media (max-width: 768px) {
.section-title span.title-tech {
    font-size: 4.4rem;
}
.section-title span.title-team {
  font-size: 4.4rem;
}
}

/* ===========================
   Benefit Section
=========================== */
.section-benefit {
  padding: 6rem 8% 6rem 0;
}
.benefit__layout {
  display: flex;
  justify-content: space-between;
  gap: 60px;
}
/* 左側タイトル */
.benefit__left {
  width: 35%;
}
.benefit__left .section-title {
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.5;
}
/* 右側メリットボックス */
.benefit__right {
  width: 65%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.benefit-item {
  display: flex;
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  gap: 32px;
  align-items: flex-start;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.benefit-number {
  font-size: 2rem;
  font-weight: 700;
  min-width: 50px;
}
.benefit-text h3 {
  margin-bottom: 12px;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}
.benefit-text p {
  font-size: 1.6rem;
  line-height: 1.8;
  color: #333;
}
@media (min-width: 900px) {
.benefit__right {
  margin-top: 85px;
}
}
/* SP対応 */
@media (max-width: 900px) {
  .section-benefit {
    padding: 6rem 0;
  }
  .benefit__layout {
    flex-direction: column;
    gap: 0;
  }
  .benefit__left, .benefit__right {
    width: 100%;
  }
  .benefit-item {
    flex-direction: column;
    gap: 0;
  }
  .benefit-number {
    min-width: auto;
  }
}
/* ===========================
   Services Section
=========================== */
.section-services {
  padding: 6rem 8% 6rem 0;
}
.section-services .section-title {
  font-size: 3.6rem;
  margin-bottom: 60px;
}
/* 各サービスブロック */
.service-block {
  background: #fff;
  border-radius: 24px;
  padding: 60px;
  margin-bottom: 3rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}
/* 上段レイアウト */
.service-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
}
.service-left {
  flex: 1;
}
.service-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-mainimg, .rewrites-imgs img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.service-logo {
  width: 200px;
  margin-bottom: 24px;
}
.service-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #000;
}
.service-desc {
  font-size: 1.6rem;
  line-height: 1.7;
  max-width: 520px;
}
/* 映像3つ横並び */
.rewrites-imgs {
  display: flex;
  gap: 16px;
}
/* 下段説明ボックス */
.service-details {
  display: flex;
  gap: 40px;
}
.detail-box {
  flex: 1;
}
.detail-box h4 {
  font-size: 2.0rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.detail-box p {
  font-size: 1.6rem;
  line-height: 1.7;
}
.service-details {
  display: flex;
  gap: 60px;
  justify-content: space-between;
  margin-top: 60px;
}
.detail-box {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.rewrites-details .detail-box {
  display: block;
}

.rewrites-details .detail-box h4 {
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
}

/* PC：横並びにしたときの矢印 */
@media (min-width: 1024px) {
  .rewrites-details {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    position: relative;
  }

  .rewrites-details .detail-box {
    flex: 1;
    position: relative;
    padding: 0 20px;
  }

  /* 各ボックスの右側に矢印を描画（最後だけ除外） */
  .rewrites-details .detail-box:not(:last-child)::after {
    content: '▶';
    color: #BCBBB9;
    font-size: 16px;
    position: absolute;
    right: -20px; /* 位置調整 */
    top: 40%;    /* 見出し高さに合わせる */
  }
}

/* SP：縦並びで下矢印を挿入 */
@media (max-width: 1023px) {
  .rewrites-details .detail-box {
    position: relative;
    margin-bottom: 40px;
  }

  /* 最後以外に下矢印 */
  .rewrites-details .detail-box:not(:last-child)::after {
    content: '▼';
    color: #BCBBB9;
    font-size: 18px;
    display: block;
    text-align: center;
    margin-top: 20px;
  }
}


/* テキスト部分を囲む */
.detail-box .text-area {
  flex: 1;
}
/* 画像サイズ調整 */
.detail-box img {
  width: 200px;
  height: auto;
  object-fit: contain;
}
/* Developer Voice wrapper */
.developer-voice {
  margin-top: 3rem;
  position: relative;
  display: flex;
  border-top: solid 1px #ddd;
  padding-top: 3rem;
}
/* ラベルを写真と同じ高さに */
.developer-label {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 20px;
  transform: translateY(15px);
  margin-left: 0;
  width: 20%;
  margin-top: 0;
}
/* Developer Box layout */
.developer-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}
/* Photo */
.dev-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
/* Text */
.dev-content {
  flex: 1;
}
.dev-title {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 12px;
}
.dev-name {
  font-weight: bold;
  font-size: 18px;
}
.dev-name span {
  margin-left: 10px;
  font-weight: normal;
  color: #666;
  font-size: 14px;
}
/* READ MORE を右端に固定 */
.btn-outline {
  margin-left: auto;
  white-space: nowrap;
  height: 40px;
}

/* Team Photo（Serviceページの写真切り替え用） */
.section-photo.photo-full .container-photo {
  position: relative;
  width: 100%;
  height: 544px; /* ← 必要。値は好みで調整 */
  overflow: hidden;
}

@media (max-width: 768px) {
  .section-photo.photo-full .container-photo {
    height: 300px; /* SP用高さ */
  }
}

.slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 最初に表示する画像 */
.slideshow .slide.active {
  opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .section-services {
      padding: 6rem 0;
  }
  .service-top {
    flex-direction: column;
  }
  .service-details {
    flex-direction: column;
  }
  .rewrites-imgs {
    flex-direction: column;
  }
  .developer-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .dev-btn {
    margin-left: 0;
  }
  .service-block {
    padding: 30px;
  }
  .detail-box {
    display: block;
  }
  .dev-title {
    font-size: 1.6rem;
  }
  .service-top {
      display: flex;
      justify-content: space-between;
      gap: 0;
      margin-bottom: 30px;
  }
  .service-logo {
      width: 200px;
      margin-bottom: 0;
  }
  .service-title {
      font-size: 2.4rem;
      line-height: 1.4;
  }
  .service-details {
      gap: 30px;
      margin-top: 30px;
  }
  .detail-box img {
    width: auto;
  }
  .developer-voice {
    display: block;
  }
  .developer-label {
    width: 100%;
    margin-bottom: 15px;
    transform: none;
  }
}
/* ----------------------------------------------------
   News Archive Page
---------------------------------------------------- */
.news-archive {
  padding: 60px 8% 120px 0;
}
.news-title {
      font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
      font-size: 9.6rem;
      font-weight: 600;
      margin: 0 0 1rem;
      line-height: 1;
}
.news-sub {
  font-size: 2rem;
  font-weight: 500;
}
/* ---- Category Nav ---- */
.news-cat-nav {
  display: flex;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin-bottom: 50px;
  margin-left: 0;
}
.news-cat-nav a {
  font-size: 1.4rem;
  color: #222;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.news-cat-nav a.active {
  border-color: #000;
  font-weight: 600;
}
/* ---- Grid ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 24px;
}
/* ---- Card ---- */
.news-card a {
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: #000;
  transition: 0.3s;
}
.news-card a:hover {
  opacity: 0.8;
}
/* Thumbnail */
.news-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #eee;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-thumb.noimg {
  display: flex;
  justify-content: center;
  align-items: center;
}
.news-thumb.noimg img {
  width: 40%;
  opacity: 0.6;
}
/* Body */
.news-body {
  padding: 14px 10px 20px;
}
.news-title-txt {
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
/* Meta */
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.news-date {
  font-size: 1.4rem;
  color: #000;
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
}
.news-tag {
  font-size: 1.1rem;
  padding: 2px 15px;
  border-radius: 20px;
  background: #BCBBB9;
  color: #fff;
}
/* ---- Pagination ---- */
.news-pagination {
  margin-top: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}
.news-pagination ul {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
}
.news-pagination a {
  color: #000;
  font-size: 1.4rem;
}
.news-pagination a.active {
  border-bottom: 2px solid #000;
  font-weight: 600;
}
.prev, .next {
  font-size: 2rem;
}


@media (max-width: 768px) {
    .news-cat-nav a {
        display: block;
        padding: 4px 8px;
    }
}
@media (max-width: 768px) {
    .news-archive{
        padding-top: 45px !important;
    }
    .news-body {
        padding: 0;
    }
    .news-card {
      margin-bottom: 30px;
    }
    
}
/* ---------------------------------------------
   Single Article 2 Column Layout
--------------------------------------------- */
.article-body {
  padding-bottom: 50px;
}
.article-single {
  padding: 40px 0;
  margin-right: 8%;
}
.article-grid {
  display: grid;
  grid-template-columns: 20% 1fr;
  gap: 60px;
}
/* ---- Left Column ---- */
.article-left {
  position: sticky;
  top: 40px;
  height: fit-content;
}
.article-tag {
  font-size: 1.1rem;
  padding: 2px 15px;
  border-radius: 20px;
  background: #BCBBB9;
  color: #fff;
}
.article-title {
  font-size: 2.8rem;
  line-height: 1.5;
  font-weight: 700;
  margin-bottom: 20px;
}
.article-date {
  font-size: 1.4rem;
  color: #000;
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  margin-right: 0.8em;
}
/* ---- Right Column ---- */
.article-visual img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 40px;
}
/* Profile */
.article-profile {
  border: 1px solid #ddd;
  padding: 24px 30px;
  margin-bottom: 50px;
}
.profile-name {
  font-size: 1.8rem;
  margin-bottom: 12px;
  margin: 0;
}
.profile-desc {
  font-size: 1.4rem;
  line-height: 2;
  margin-bottom: 0;
}
/* Body */
.article-body h2 {
  font-size: 2rem;
  margin-top: 40px;
  margin-bottom: 16px;
}
.article-body p {
  font-size: 1.5rem;
  line-height: 2;
}
.article-back {
  margin-top: 60px;
}
.article-back a {
  font-size: 1.5rem;
  color: #000;
}
.article-image {
  margin: 40px;
}

.btn-archive::before {
    content: "←";
    /* content: "↗"; */
    font-size: 1rem;
    color: #fff;
    background: #000;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}


/* ---- Responsive (SP) ---- */
@media (max-width: 900px) {
  .article-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .article-left {
    position: static;
  }
  .article-single {
      padding: 40px 0;
      margin-right: 0;
  }
  .article-visual img {
    margin-bottom: 0;
  }
}
/* =========================================================
   About Page Responsive Fix (SP)
   2025-11-17
========================================================= */
@media (max-width: 768px) {
  .container {
    width: auto;
    padding: 0 15px;
  }
  /* ------------------------------------
   MENU
------------------------------------ */
  .header__logo.header--sub {
    width: 40%;
    padding: 3%;
  }
  /* ------------------------------------
     HERO
  ------------------------------------ */
  .hero {
    padding-top: 0;
  }
  .hero__sub {
    font-size: 1.8rem;
    padding: 0 5%;
  }
  .hero--sub .hero__title {
    font-size: 6.2rem;
    line-height: 1;
  }
  .hero--sub .hero__subtitle {
    font-size: 1.8rem;
    line-height: 1.4;
  }
  .hero--sub .hero__image {
    margin-top: 20px; /* PCの -50px をキャンセル */
    margin-left: 0; /* PCの 20% 左余白を無効化 */
    justify-content: center;
  }
  .hero__image {
    margin-top: 0;
  }
  .curriculum__images {
    display: block;
  }
  .curriculum__images figure {
    width: 100%;
    height: 260px;
    overflow: hidden;
  }
  /* ------------------------------------
     Philosophy
  ------------------------------------ */
  .philosophy__content {
    margin-left: 0; /* 左寄せ解除 */
  }
  .section-philosophy .section-title {
    font-size: 3.2rem;
    margin-bottom: 3rem;
  }
  .philosophy__mission p {
    font-size: 2.4rem;
    line-height: 1.5;
  }
  .section-title span.edtech__edtech {
    font-size: 4.4rem;
  }
  .section-title span.edtech__system {
    font-size: 4.4rem;
  }
  .section-title small {
    font-size: 2.6rem;
  }
  /* ------------------------------------
     CEO Message
  ------------------------------------ */
  .message__content {
    margin-left: 0;
    margin-right: 0;
  }
  .section-message .section-title {
    font-size: 2.6rem;
  }
  /* ------------------------------------
     Team Photo
  ------------------------------------ */
  .container-photo {
    justify-content: center;
  }
  .photo__image {
    flex: 1 1 100%;
  }
  /* ------------------------------------
     Members
  ------------------------------------ */
  .members__grid {
    margin-left: 0;
    grid-template-columns: 1fr;
    margin-top: 0;
  }
  .member-card {
    text-align: left;
  }
  .member-name {
    text-align: left;
  }
  /* ------------------------------------
     Company Profile
  ------------------------------------ */
  .company-table {
    margin-left: 0;
    margin-top: 0;
  }
  .company-row dt, .company-row dd {
    width: 100%;
  }
  /* ------------------------------------
     EdTech（About内）
  ------------------------------------ */
  .about-edtech {
    margin-right: 0;
  }
  .section-techteam .container {
    display: block;
  }
  .tech-box {
    margin-bottom: 15px;
  }
  .hero--sub.hero--service .hero__image {
    margin-top: 0;
  }
  .news-archive {
    padding: 0;
  }
  .news-grid {
    display: block;
  }
  .news-cat-nav {
    display: ruby;
  }
}
/* ------------------------------
   SP MENU (Hamburger)
------------------------------ */
.hamburger-btn {
  display: none; /* PCでは消す */
}
/* SP only */
@media (max-width: 768px) {
  /* MENUボタン */
  .hamburger-btn {
    display: block;
    position: fixed;
    top: 15px;
    right: 10px;
    z-index: 2000;
    color: #000;
    padding: 10px 18px;
    border: none;
    border-radius: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    background-color: transparent;
  }
  /* ナビゲーション初期状態（非表示） */
  .header__nav {
    position: fixed;
    top: 60px;
    right: 0;
    width: 70%;
    background: #fff;
    padding: 20px;
    display: none;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  .header__nav ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  /* OPEN時 */
  .header__nav.is-open {
    display: flex;
  }
}
/* =============================
   Mobile Menu
============================= */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #FAF7F5;
  z-index: 9999;
  overflow-y: auto;
  padding: 40px 24px;
  transform: translateX(100%);
  transition: 0.4s ease;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2rem;
  font-weight: 700;
}
.mobile-menu__inner {
}
.mobile-menu__block {
}
.mobile-menu__block h3 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  font-weight: 700;
}
.mobile-menu__block ul li {
  margin-bottom: 14px;
  font-size: 1.8rem;
}
.mobile-menu__sns {
  display: flex;
  gap: 20px;
  font-size: 2.4rem;
  margin: 40px 0;
}
.mobile-menu__contact {
  border-top: 1px solid #ccc;
  padding-top: 20px;
  margin-top: 20px;
}
.mobile-contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 2rem;
  margin-top: 10px;
}

/* =============================
   Mobile Menu（Figma B 再現）
============================= */

/* ヘッダー（ロゴ + CLOSE） */
.mobile-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.mobile-menu__logo img {
  height: 34px;
}

.mobile-close {
  position: static;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 4px 0;
  background: none;
  border: none;
}

/* グリッド（2×2） */
.mobile-menu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 40px;
}

.mobile-menu__block h3 {
  font-size: 2rem;
  margin-bottom: 12px;
  font-weight: 700;
}
.mobile-menu__block ul {
  padding-left: 0;
}
.mobile-menu__block ul li {
  margin-bottom: 10px;
  font-size: 1.4rem;
  line-height: 1.3;
  list-style: none;
}

/* SNS */
.mobile-menu__sns {
  display: flex;
  gap: 18px;
  font-size: 2.4rem;
  margin: 40px 0;
}

/* Contact */
.mobile-menu__contact {
  margin-top: 24px;
  border-top: 1px solid #ccc;
  padding-top: 20px;
}

.mobile-menu__contact h4 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.mobile-contact-link {
  font-size: 1.8rem;
  display: block;
  padding: 0;
}


/* ---------------------------------------------------
   Contact Form（CF7）
   /company/contact/ 専用
--------------------------------------------------- */

.c-contact-form {
  max-width: 640px;
  margin: 40px auto 80px;
  padding: 32px 24px;
  background-color: #f7f7f9; /* サイト全体の淡いグレーに寄せたイメージ */
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  font-size: 15px;
}

@media (min-width: 768px) {
  .c-contact-form {
    padding: 40px 40px;
  }
}

.c-contact-form__lead {
  margin: 0 0 24px;
  line-height: 1.8;
  color: #333;
}

.c-contact-form__required-note {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  color: #999;
}

.c-contact-form__row {
  margin-bottom: 20px;
}

.c-contact-form__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #222;
}

.c-contact-form__required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 11px;
  border-radius: 999px;
  background-color: #e63946; /* 必須マーク用アクセント（赤系） */
  color: #fff;
}

/* input / textarea 共通 */
.c-contact-form__input,
.c-contact-form__textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background-color: #fff;
  font-size: 15px;
  line-height: 1.6;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
              background-color 0.2s ease;
}

.c-contact-form__textarea {
  min-height: 160px;
  resize: vertical;
}

.c-contact-form__input::placeholder,
.c-contact-form__textarea::placeholder {
  color: #bbb;
}

/* フォーカス */
.c-contact-form__input:focus,
.c-contact-form__textarea:focus {
  outline: none;
  border-color: #2252a1;         /* コーポレートのブルー系イメージ */
  box-shadow: 0 0 0 3px rgba(34, 82, 161, 0.15);
}

/* エラーメッセージ（CF7標準のクラスを上書き） */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.sent .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  background-color: #fff3f3;
  border: 1px solid #f5b5b5;
  color: #b00020;
}

.wpcf7 form.sent .wpcf7-response-output {
  background-color: #f0f8ff;
  border: 1px solid #b5d4ff;
  color: #2252a1;
}

/* CF7 バリデーションメッセージ */
.wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 12px;
  color: #b00020;
}

/* 送信ボタン */
.c-contact-form__row--submit {
  margin-top: 28px;
  text-align: center;
}

.c-contact-form__submit {
  display: inline-block;
  min-width: 180px;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(
    to right,
    #203a6f 0%,
    #2658a8 50%,
    #203a6f 100%
  ); /* サイトの落ち着いたブルー系に寄せたグラデーション */
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

/* CF7 の input[type=submit] を上書き */
.c-contact-form__submit.wpcf7-submit {
  -webkit-appearance: none;
  appearance: none;
}

.c-contact-form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  opacity: 0.95;
}

.c-contact-form__submit:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}


/* ================================
   Contact Form コンパクト版
================================ */

.section-contact {
  padding: 60px 0 60px; /* 全体余白を縮める */
}

.contact-form-wrapper {
  max-width: 740px;     /* ← 横幅を狭くして上品に */
  margin: 0 auto;
}

/* カードボックス */
.c-contact-form {
  background: #fff;      /* ← 白背景に変更 */
  padding: 28px 24px;    /* ← 余白を小さめに */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid #eee;   /* うすい枠で“引き締め” */
}

/* ラベル */
.c-contact-form__label {
  margin-bottom: 4px;
  font-size: 14px;
  color: #333;
}

/* 必須マーク */
.c-contact-form__required {
  background: #e63946;
  font-size: 10px;
  padding: 1px 5px;
}

/* input / textarea */
.c-contact-form__input,
.c-contact-form__textarea {
  padding: 10px 12px;        /* ← 余白をさらにコンパクトに */
  font-size: 14px;           /* 小さめで上品に */
  border-radius: 6px;
}

/* textarea 高さを調整 */
.c-contact-form__textarea {
  min-height: 120px;        /* ← 高さもコンパクトに */
}

/* 行間短縮 */
.c-contact-form__row {
  margin-bottom: 18px;
}

/* 送信ボタン */
.c-contact-form__submit {
  padding: 12px 32px;
  font-size: 15px;
  border-radius: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.c-contact-form__row--submit {
  margin-top: 24px;
  text-align: center;
}


/*最終調整*/
.global-nav li a {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}

.global-nav li.is-external a::after {
  content: "↗";
  font-size: 0.9em;
  margin-left: 6px;
  position: relative;
  top: -1px; /* 微調整 */
}
.global-nav li.is-external a::after {
  content: "↗";
  font-family: inherit;
}

.footer__col h3 a {
  display: inline-flex;
  align-items: center;
}

.footer__col h3.is-external a::after {
  content: "↗";
  font-size: 0.85em;
  margin-left: 6px;
  position: relative;
  top: -1px;
}


.news__arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.news__arrow::before {
  content: "↗";
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
.news__item:hover .news__arrow {
  background: #222;
}

.news__item:hover .news__arrow::before {
  transform: translate(1px, -1px);
  transition: transform 0.2s ease;
}

.contact__btn {
  display: flex;
  align-items: flex-end;   /* 横方向：右寄せ（不要なら削除） */
  justify-content: flex-end; /* 縦方向：下寄せ */
}


/* ==============================
  Hero（TOP専用）
============================== */

.hero--home {
  position: relative;
  overflow: visible;
}

.hero--home .hero__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  overflow: visible;
}

.hero--home .hero__image {
  position: sticky;
  top: 80px;
  align-self: flex-start;
  width: 50%;
  margin-right: calc(50% - 50vw);
}

/* フェードKV */
.hero--home .hero__image--fade {
  min-height: 520px;
  overflow: hidden;
}

.hero--home .hero__image--fade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero--home .hero__image--fade img.is-active,
.hero--home .hero__image--fade img:first-child {
  opacity: 1;
}


@media (max-width: 768px) {
  .hero--home {
    min-height: auto;
  }

  .hero--home .hero__inner {
    flex-direction: column;
  }

  .hero--home .hero__image {
    position: relative;
    top: auto;
    margin-right: 0;
    width: 100%;
    min-height: 300px;
  }
}
/* ==============================
  Hero（下層ページ）
============================== */


/* 画像だけ擬似フルブリード */
.hero--sub .hero__image {
  position: relative;
  margin-right: calc(50% - 50vw);
  overflow: hidden;
}

/* 画像の基本 */
.hero--sub .hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


@media (max-width: 768px) {
  .hero--sub .container {
    flex-direction: column;
    gap: 24px;
  }

  .hero--sub .hero__content,
  .hero--sub .hero__image {
    width: 100%;
    margin-right: 0;
  }

  .hero--sub .hero__image {
  }
}


/* ==============================
  Technology：左フルブリード
============================== */

.technology__visual {
  position: relative;
  margin-left: calc(55% - 50vw);
  overflow: hidden;
}

.technology__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .technology__inner {
    flex-direction: column;
    gap: 32px;
  }

  .technology__visual {
    width: 100%;
    margin-left: 0;
    min-height: 240px;
  }
}


/*公開前*/
@media (min-width: 768px) {
main {
    margin-top: 72px;
}
.header__logo.header--sub {
    position: fixed;
    top: 0;
    left: 0;
}
}


/* Home header logo */
.header__logo--home {
  position: fixed;
  top: 0;
  left: 0;
}

.hero__sub {
  margin-top: 300px;
}
.logo--small {
  display: none;
  height: 35px; /* 好きなサイズに */
  margin-left: 20px;
}

.logo--large {
  transition: opacity .3s ease;
}

/* スクロール後 */
.header.is-scrolled .logo--large {
  display: none;
}

.header.is-scrolled .logo--small {
  display: inline-block;
}


.company-table ul {
  margin: 0;
  padding-left: 1em;
}


.why__visual img {
  height: auto !important;
}

.mobile-menu__block ul {
    margin-left: 0;
}
.mobile-menu {
  padding: 15px;
}

.technology__inner {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.why__visual {
  position: sticky;
  top: 120px; /* ヘッダー高さに合わせて調整 */
}

.case__header {
  margin-bottom: 0;
}

.case-item__header {
  display: flex;
  align-items: center;
  gap: 12px; /* アイコンとテキストの間隔 */
  margin-bottom: 0;
}

.case-item__icon img {
  width: 60px;   /* デザインに合わせて調整 */
  height: auto;
  display: block;
  border: solid 10px #fff;
  margin-bottom: 0;
}

.case-item__name {
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
  color: #000;
}

@media (max-width: 768px) {
.section-company {
    padding: 3rem 0;
}
.company-table {
  margin-right: 0;
}

.philosophy__content br {
  display: none;
}
.hero--sub .hero__subtitle {
  margin-top: 0;
}
.section-philosophy {
    padding: 6rem 0 0;
}
.section-desc  br {
  display: none;
}
.why__visual {
  display: none;
}
.section-photo.photo-full .container-photo {
    height: auto;
}
    .rewrites-details .detail-box {
    margin-bottom: 0;
}
.detail-box h4 {
  margin-top: 0;
}
.section-services {
    padding: 6rem 0 0;
}
.news-title {
  font-size: 6.2rem;
  line-height: 1;
}
.hero__sub {
    margin-top: 85px;
}
.section-case .section-title {
  font-size: 2.8rem;
}
}



input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="range"], input[type="date"], input[type="month"], input[type="week"], input[type="time"], input[type="datetime"], input[type="datetime-local"], input[type="color"], textarea {
  padding: 10px;
}
textarea {
  font-size: 1.6rem;
}

.news-card {
  position: relative;
}

.external-icon {
  position: absolute;
  right: 0;
  bottom: 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;

  background: #000;
  border-radius: 50%;
  z-index: 2;
}

.external-icon i {
  color: #fff;
  font-size: 13px;
  line-height: 1;

  transform: rotate(-135deg) translate(1px, -1px);
}


.news__title {
  position: relative;
}

.news__title .external-icon {
  position: absolute;
  right: 0;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 18px;
  height: 18px;
  margin-left: 6px;

  background: #000;
  border-radius: 50%;
  vertical-align: middle;
}

.news__title .external-icon i {
  color: #fff;
  font-size: 10px;
  line-height: 1;
  transform: rotate(-135deg);
}

