/* ================================================================
   ケーエムシステム — トップページスタイル
   top.css  /  Mobile First
   ================================================================ */


/* ================================================================
   HEADER
   ================================================================ */
.header {
  /* position: sticky;
  top: 0; */
  left: 0;
  right: 0;
  z-index: 100;
  background-image: url(../images/index_image_firstview_sp.png);
  background-size: cover;
  background-position: center -100px;
  background-repeat: no-repeat;
  width: 100%;
  height: 730px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

/* SP: モバイルレイアウト */
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  height: 60px;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo img {
  height: 20px;
  width: auto;
}

.header__telephone_number {
  display: flex;
  align-items: center;
}

.header__telephone_number img {
  height: auto;
  max-width: 150px;
}

/* SP: ナビ非表示 */
.header__nav {
  display: none;
}

/* コンテンツエリア */
.fv__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  padding-top: 350px; /* ヘッダー高さ分下げる */
}
/* ================================================================
   IMAGE STRIP
   ================================================================ */
.image-strip {
  margin: -100px auto 0 auto;
  overflow: hidden;
  line-height: 0;
}

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


/* ================================================================
   SECTIONS PARALLELOGRAM WRAPPER
   ABOUT + BUSINESS を囲む斜め背景コンテナ
   ================================================================ */
.sections-parallelogram {
  position: relative;
  overflow: hidden;
}

/* インラインSVGで実装した平行四辺形をコンテナ全体に敷く */
.sections-parallelogram__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

/* 内包セクションを背景の前面に出す */
.sections-parallelogram > section {
  position: relative;
  z-index: 1;
}


/* ================================================================
   ABOUT
   ================================================================ */

.about__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* リード文 */
.about__lead, .business__desc {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.6;
  margin-left: 20px;
  margin-top: 13px;
  letter-spacing: 0.03em;
}

/* 本文段落 */
.about__desc {
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text);
  margin-top: 13px;
  margin-bottom: 13px;
}

.about__desc p {
  margin-bottom: 15px;
}

.about__desc + .about__desc {
  margin-top: 13px;
}

/* 会社写真 */
.about__img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background-color: var(--color-bg-alt);
}

/* PC用画像は非表示 */
.about__image-col--pc {
  display: none;
}

/* ================================================================
   BUSINESS
   ================================================================ */
.business {
  padding: var(--section-py-sp) 0 200px 0;
  background-image: url(../images/index_bg_parallelogram.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: -100px;
}

.section-header__title {
  margin-top: 50px;
  padding-top: 50px;
}

/* SPのみ: ABOUT・BUSINESS・COMPANYセクションの画像を重ねて配置 */
@media (max-width: 767px) {
  .about .section-header {
    text-align: left;
  }

  .about .section-header__title,
  .business .section-header__title,
  .company .section-header__title {
    position: relative;
    height: 60px;
  }

  .about .section-header__title {
    justify-content: flex-start;
  }

  .business .section-header__title,
  .company .section-header__title {
    justify-content: center;
  }

  .about .section-header__title picture,
  .business .section-header__title picture,
  .company .section-header__title picture {
    position: absolute;
  }

  .about .section-header__title picture {
    left: 0;
    transform: none;
  }

  .business .section-header__title picture,
  .company .section-header__title picture {
    left: 50%;
    transform: translateX(-50%);
  }

  .about .section-header__title picture:first-child,
  .business .section-header__title picture:first-child,
  .company .section-header__title picture:first-child {
    z-index: 2;
  }

  .about .section-header__title picture:last-child {
    z-index: 1;
    transform: scale(1.8);
  }

  .business .section-header__title picture:last-child,
  .company .section-header__title picture:last-child {
    z-index: 1;
    transform: translateX(-50%) scale(1.8);
  }

  .about .section-header__ja {
    position: relative;
    z-index: 3;
    margin-top: 10px;
    text-align: left;
  }

  .business .section-header__ja,
  .company .section-header__ja {
    position: relative;
    z-index: 3;
    margin-top: 10px;
  }
}

.business__body {
  text-align: center;
  margin-bottom: 24px;
}

.telephone_number__text {
  text-align: left;
}

/* 3カラムグリッド（SP: 1カラム） */
.business__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* カード */
.business-card {
  background-color: #F5F5F5;
  overflow: hidden;
}

/* カード画像エリア */
.business-card__img-wrap {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--color-bg-alt);
}

.business-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.business-card:hover .business-card__img {
  transform: scale(1.04);
}

/* カードテキストエリア */
.business-card__body {
  padding: 20px 24px 28px;
}

.business-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.business-card__text {
  font-size: 14px;
  color: var(--color-subtext);
  line-height: 1.8;
}

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

.business-card__item {
  font-size: 16px;
  color: var(--color-text);
  line-height: 2;
  padding-left: 1em;
  position: relative;
}


.business-card__item::before {
  content: '・';
  position: absolute;
  left: 0;
}

.business-card__item-small {
  font-size: 11px;
  white-space: nowrap;
  display: block;
  margin-top: -4px;
}

/* 電話番号エリア */
.telephone_number {
  margin-top: 40px;
  text-align: center;
}

.telephone_number picture {
  display: inline-block;
  margin-bottom: 20px;
}

.telephone_number__text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  text-align: left;
  padding-left: 10px;
}


/* ================================================================
   CTA TEL
   ================================================================ */
.cta-tel {
  background-color: var(--color-brand);
  padding: var(--section-py-sp) 0;
  color: #fff;
}

/* SP: 縦積み・中央揃え */
.cta-tel__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

/* 見出しテキスト */
.cta-tel__heading {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.7;
}

/* 右側コンテンツ（電話 + ボタン）のまとまり */
.cta-tel__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* 電話番号ブロック */
.cta-tel__tel-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cta-tel__tel-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.cta-tel__tel {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  display: block;
  line-height: 1.1;
}

.cta-tel__hours {
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

/* CTAボタン（画像使用） */
.cta-tel__btn {
  display: inline-block;
  transition: opacity 0.2s;
}

.cta-tel__btn:hover {
  opacity: 0.8;
}

.cta-tel__btn img {
  height: 52px;
  width: auto;
  display: block;
}


/* ================================================================
   COMPANY
   ================================================================ */
.company {
  /* padding: var(--section-py-sp) 0 20px 0; */
  background-color: var(--color-bg);
}

.company .section-header__title {
  padding-top: 0px;
}

/* SP: テーブルを画面幅に収める */
.company__table-wrap {
  width: 100%;
  margin: 0;
  overflow-x: visible;
}

.company-table {
  width: 100%;
  table-layout: fixed;
}

.company-table tr {
  border-bottom: 2px solid white;
}

.company-table tr:last-child {
  border-bottom: none;
}

/* 見出しセル（SP: 幅とサイズを小さく） */
.company-table__th {
  background-color: var(--color-table-th);
  font-weight: 700;
  font-size: 11px;
  padding: 10px 8px;
  width: 28%;
  vertical-align: middle;
  text-align: left;
  word-wrap: break-word;
  white-space: normal;
  border-right: 3px solid white;
}

/* データセル（SP: フォントサイズとパディングを小さく） */
.company-table__td {
  background-color: var(--color-table-td);
  font-size: 11px;
  padding: 10px 8px;
  vertical-align: middle;
  line-height: 1.6;
  word-wrap: break-word;
}

/* PC: 通常サイズに戻す */
@media (min-width: 768px) {
  .company__table-wrap {
    width: calc(100% + 80px);
    margin: 0 -40px;
    max-width: none;
  }
  
  .company-table {
    width: 1000px;
    margin: 0 auto;
    table-layout: auto;
  }

  .company-table__th {
    font-size: 15px;
    padding: 20px 32px;
    width: 200px;
    white-space: nowrap;
    border-right: 3px solid white;
  }

  .company-table__td {
    font-size: 15px;
    padding: 20px 32px;
    line-height: 1.8;
  }
}


/* ================================================================
   MAP
   ================================================================ */
.map {
  line-height: 0;
  display: flex;
  justify-content: center;
  padding: 0 20px 40px 20px;
}

.map__inner {
  width: 1000px;
  max-width: 100%;
}

.map__iframe {
  width: 100%;
  height: 343px;
  border: 0;
  display: block;
  margin-bottom: 12px;
}

/* Google MAP ボタン */
.map__button {
  display: flex;
  justify-content: flex-end;
}

.map__button a {
  display: block;
  transition: opacity 0.3s;
}

.map__button a:hover {
  opacity: 0.8;
}

.map__button img {
  height: auto;
  width: 140px;
  display: block;
}


/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background-color: var(--color-footer-bg);
  padding: 48px 0 28px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

/* ロゴエリア */
.footer__logo-wrap {
  display: flex;
  justify-content: center;
}

.footer__logo {
  height: 28px;
  width: auto;
}

/* ナビゲーション */
.footer__nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
}

.footer__nav-link {
  font-family: var(--font-title);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--color-text);
  transition: color 0.2s;
}

.footer__nav-link:hover {
  color: var(--color-brand);
}

/* コピーライト */
.footer__copy {
  font-size: 11px;
  color: var(--color-subtext);
  letter-spacing: 0.05em;
  display: block;
}

/* ページトップボタン */
.footer__toplink {
  position: fixed;
  bottom: 20px;
  right: 5px;
  z-index: 100;
}

.footer__toplink__link {
  display: block;
  transition: opacity 0.3s;
}

.footer__toplink__link:hover {
  opacity: 0.8;
}

.footer__toplink img {
  width: 60px;
  height: 60px;
  display: block;
}


/* ================================================================
   PC STYLES（768px 以上）
   ================================================================ */
@media (min-width: 768px) {

  /* ---- ヘッダー ---- */
  .header {
    background-image: url(../images/index_image_firstview_pc.jpg);
    background-position: center;
  }

  .header__inner {
    justify-content: flex-start;
    padding-left: 0;
    padding-right: 0;
    margin-left: 96px;
    height: 80px;
  }

  .header__logo img {
    height: 32px;
  }

  .header__telephone_number {
    margin-left: 40px;
  }

  .header__telephone_number img {
    max-width: 239px;
  }

  /* PC: ナビ表示 */
  .header__nav {
    display: flex;
    align-items: center;
    margin-left: auto;
  }

  .header__nav-list {
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 36px;
    white-space: nowrap;
  }

  .header__nav-link {
    font-family: var(--font-title);
    font-size: 16px;
    letter-spacing: 0.1em;
    color: var(--color-text);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s;
    white-space: nowrap;
  }

  /* ホバー下線アニメーション */
  .header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-brand);
    transition: width 0.2s ease;
  }

  .header__nav-link:hover {
    color: var(--color-brand);
  }

  .header__nav-link:hover::after {
    width: 100%;
  }

  /* お問い合わせ：塗りボタン */
  .header__nav-link--cta {
    background-color: var(--color-brand);
    color: #fff;
    padding: 8px 20px;
    font-size: 13px;
    letter-spacing: 0.1em;
    transition: background-color 0.2s;
  }

  .header__nav-link--cta::after {
    display: none; /* 下線は不要 */
  }

  .header__nav-link--cta:hover {
    background-color: var(--color-brand-dark);
    color: #fff;
  }

  /* ---- IMAGE STRIP ---- */
  .image-strip {
    margin: 0 auto;
  }

  /* ---- FIRST VIEW ---- */
  .fv__content {
    padding-top: 450px;
  }

  /* ---- ABOUT ---- */
  .about {
    padding: var(--section-py-pc) 0;
  }

  /* PC: 横2カラム（テキスト左・画像右） */
  .about__inner {
    flex-direction: row;
    align-items: center;
    gap: 80px;
  }

  .about__text-col {
    flex: 1;
  }

  /* SP用画像を非表示 */
  .about__image-col--sp {
    display: none;
  }

  /* PC用画像を表示 */
  .about__image-col--pc {
    display: block;
    flex: 1;
  }

  .about__img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    background-color: transparent;
  }

  .about__lead, .business__desc {
    font-size: 31px;
  }

  .about__desc {
    font-size: 15px;
  }


  /* ---- BUSINESS ---- */
  .business {
    padding: var(--section-py-pc) 0 200px 0;
    background-size: 100% 100%;
    margin-top: -200px;
  }

  /* PC: 3カラム */
  .business__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  /* PC: リストを左寄せ配置 */
  .business-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 8px 28px;
  }

  .business-card__list {
    text-align: left;
    display: inline-block;
  }

  .business-card__item {
    font-size: 15px;
    line-height: 1.6;
  }

.business-card__item-small {
  font-size: 11px;
  white-space: nowrap;
  display: block;
  margin-top: -4px;
}


  /* ---- CTA TEL ---- */
  .cta-tel {
    padding: 80px 0;
  }

  /* PC: 左テキスト・右 [電話+ボタン] の横並び */
  .cta-tel__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 40px;
  }

  .cta-tel__heading {
    font-size: 24px;
    flex: 1;
  }

  /* PC: 右側コンテンツを横並びに */
  .cta-tel__right {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }

  .cta-tel__tel-block {
    align-items: flex-start;
  }

  .cta-tel__tel {
    font-size: 44px;
  }

  .telephone_number__text {
    padding-left: 220px;
  }


  /* ---- COMPANY ---- */
  .company {
    padding: var(--section-py-pc) 0 40px 0;
  }

  .company-table__th {
    font-size: 15px;
    padding: 20px 32px;
    width: 200px;
  }

  .company-table__td {
    font-size: 15px;
    padding: 20px 32px;
  }


  /* ---- MAP ---- */
  .map__iframe {
    height: 343px;
  }


  /* ---- FOOTER ---- */
  .footer {
    padding: 56px 0 32px;
  }

  .footer__logo {
    height: 36px;
  }

  .footer__nav-list {
    gap: 16px 40px;
  }

  .footer__nav-link {
    font-size: 16px;
  }

}


/* ================================================================
   MEDIUM PC STYLES（768px 〜 999px）
   中間サイズでナビゲーションを調整
   ================================================================ */
@media (min-width: 768px) and (max-width: 999px) {

  .header__inner {
    padding-right: 20px;
    margin-left: 40px;
  }

  .header__telephone_number {
    margin-left: 20px;
  }

  .header__telephone_number img {
    max-width: 180px;
    height: auto;
  }

  .header__nav-list {
    gap: 20px;
  }

  .header__nav-link {
    font-size: 14px;
    letter-spacing: 0.05em;
  }

}


/* ================================================================
   LARGE PC STYLES（1024px 以上）
   フォントサイズの微調整
   ================================================================ */
@media (min-width: 1024px) {

  .fv__title {
    font-size: 52px;
  }

  .about__lead, .business__desc {
    font-size: 24px;
  }

  .cta-tel__heading {
    font-size: 26px;
  }
}
