/*
Theme Name: Futaba Mobility
Theme URI: https://futaba-mobility.jp
Author: Futaba Mobility
Description: Futaba Mobility corporate website theme
Version: 1.0.0
Text Domain: futaba-mobility
*/

/* ========================================
   Base Styles
   ======================================== */
html {
  scroll-behavior: smooth;
}

/* Container utility */
.container {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
@media (min-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.max-w-8xl {
  max-width: 1720px;
}

/* Fade-in animation */
.fadein {
  opacity: 0;
  transform: translateY(50px);
}

/* Hero image clipping */
.img-clipped {
  width: 80%;
}
@media (min-width: 768px) {
  .img-clipped {
    width: 75%;
    clip-path: polygon(80px 0, 100% 0, calc(100% - 80px) 100%, 0 100%);
  }
}

/* ========================================
   TemplatePage Article Styles
   ======================================== */
article.template-page h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  margin-bottom: 2rem;
  color: #fff;
  background-color: #006837;
  padding: 1rem;
}

article.template-page h3 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  margin-bottom: 2rem;
  border-top: 2px solid #006837;
  border-bottom: 2px solid #006837;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

article.template-page h4 {
  font-size: 1.125rem;
  line-height: 1.75rem;
  margin-bottom: 2rem;
  background-color: #EBF5DE;
  padding: 1rem;
  color: #006837;
}

article.template-page h5 {
  font-size: 1.125rem;
  line-height: 1.75rem;
  margin-bottom: 2rem;
  position: relative;
  padding-left: 1.25rem;
}
article.template-page h5::before {
  content: "\25A0";
  color: #006837;
  position: absolute;
  top: 0;
  left: 0;
}

article.template-page p {
  margin-bottom: 2rem;
}
/* グリッドカード内のpはマージンリセット */
article.template-page .grid p {
  margin-bottom: 0;
}

article.template-page a {
  color: #006837;
  text-decoration: underline;
}
/* ボタン風リンクはarticleスタイルを除外 */
article.template-page a.rounded-full,
article.template-page a.rounded-xl {
  color: inherit;
  text-decoration: none;
}

article.template-page ul {
  margin-bottom: 2rem;
  list-style: none;
  padding-left: 0;
}
article.template-page ul li {
  padding-left: 1.25rem;
  margin-bottom: 0.25rem;
  position: relative;
}
article.template-page ul li::before {
  content: "\25CF";
  color: #006837;
  position: absolute;
  top: 0;
  left: 0;
}

article.template-page ol {
  margin-bottom: 2rem;
  counter-reset: count;
  list-style: none;
  padding-left: 0;
}
article.template-page ol li {
  padding-left: 1.25rem;
  margin-bottom: 0.25rem;
  position: relative;
  counter-increment: count;
}
article.template-page ol li::before {
  content: counter(count);
  color: #006837;
  font-weight: 700;
  position: absolute;
  top: 0;
  left: 0.25rem;
}

article.template-page table {
  margin-bottom: 2rem;
  width: 100%;
}
article.template-page table th,
article.template-page table td {
  padding: 0.5rem;
  text-align: left;
  border: 1px solid #d1d5db;
}
article.template-page table th {
  width: 10%;
  background-color: #e5e7eb;
}
article.template-page table p,
article.template-page table ul,
article.template-page table li,
article.template-page table table {
  margin-bottom: 0;
}

/* Table: c-table-none */
article.template-page table.c-table-none th,
article.template-page table.c-table-none td {
  padding: 0;
  border: none;
}
article.template-page table.c-table-none th {
  background-color: transparent;
}

/* Table: c-table-responsive */
article.template-page table.c-table-responsive {
  display: block;
  width: 100%;
  border-bottom: 1px solid #d1d5db;
}
article.template-page table.c-table-responsive tbody,
article.template-page table.c-table-responsive tr,
article.template-page table.c-table-responsive th,
article.template-page table.c-table-responsive td {
  display: block;
  width: 100%;
}
@media (min-width: 768px) {
  article.template-page table.c-table-responsive {
    display: table;
    border-bottom: none;
  }
  article.template-page table.c-table-responsive tbody {
    display: table-row-group;
    width: auto;
  }
  article.template-page table.c-table-responsive tr {
    display: table-row;
    width: auto;
  }
  article.template-page table.c-table-responsive th,
  article.template-page table.c-table-responsive td {
    display: table-cell;
  }
  article.template-page table.c-table-responsive th {
    width: 250px;
  }
  article.template-page table.c-table-responsive td {
    width: auto;
  }
}

/* Table: c-table-fix */
article.template-page table.c-table-fix {
  display: block;
  border-bottom: 1px solid #d1d5db;
}
article.template-page table.c-table-fix th,
article.template-page table.c-table-fix td {
  display: block;
  border-top: none;
}
@media (min-width: 768px) {
  article.template-page table.c-table-fix {
    display: table;
    border-bottom: none;
  }
  article.template-page table.c-table-fix th,
  article.template-page table.c-table-fix td {
    display: table-cell;
    border-top: 1px solid #d1d5db;
  }
}

/* Table scroll */
article.template-page .c-table-scroll {
  overflow-x: auto;
  margin-bottom: 2rem;
}
article.template-page .c-table-scroll::before {
  content: "\2192\30B9\30AF\30ED\30FC\30EB\3067\304D\307E\3059\3002";
}
@media (min-width: 768px) {
  article.template-page .c-table-scroll::before {
    content: none;
  }
}
article.template-page .c-table-scroll table {
  margin-bottom: 0;
  width: 600px;
}
@media (min-width: 640px) {
  article.template-page .c-table-scroll table {
    width: 800px;
  }
}
@media (min-width: 768px) {
  article.template-page .c-table-scroll table {
    width: 100%;
  }
}

/* Jump list */
article.template-page .c-list-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
article.template-page .c-list-jump li {
  padding: 0.25rem;
  padding-left: 1.25rem;
}
article.template-page .c-list-jump li::before {
  content: url('assets/img/page/arrow.svg');
  margin-right: 0.25rem;
}

/* Form elements */
article.template-page input,
article.template-page select,
article.template-page textarea {
  width: 100%;
}

/* ========================================
   Block Table Style Variants
   core/table のブロックスタイル用セレクタ
   （figure.is-style-* > table をターゲット）
   ======================================== */

/* レスポンシブテーブル (is-style-responsive) */
article.template-page figure.is-style-responsive table {
  display: block;
  width: 100%;
  border-bottom: 1px solid #d1d5db;
}
article.template-page figure.is-style-responsive table tbody,
article.template-page figure.is-style-responsive table tr,
article.template-page figure.is-style-responsive table th,
article.template-page figure.is-style-responsive table td {
  display: block;
  width: 100%;
}
@media (min-width: 768px) {
  article.template-page figure.is-style-responsive table {
    display: table;
    border-bottom: none;
  }
  article.template-page figure.is-style-responsive table tbody {
    display: table-row-group;
    width: auto;
  }
  article.template-page figure.is-style-responsive table tr {
    display: table-row;
    width: auto;
  }
  article.template-page figure.is-style-responsive table th,
  article.template-page figure.is-style-responsive table td {
    display: table-cell;
  }
  article.template-page figure.is-style-responsive table th {
    width: 250px;
  }
  article.template-page figure.is-style-responsive table td {
    width: auto;
  }
}

/* 固定テーブル (is-style-fixed) */
article.template-page figure.is-style-fixed table {
  display: block;
  border-bottom: 1px solid #d1d5db;
}
article.template-page figure.is-style-fixed table th,
article.template-page figure.is-style-fixed table td {
  display: block;
  border-top: none;
}
@media (min-width: 768px) {
  article.template-page figure.is-style-fixed table {
    display: table;
    border-bottom: none;
  }
  article.template-page figure.is-style-fixed table th,
  article.template-page figure.is-style-fixed table td {
    display: table-cell;
    border-top: 1px solid #d1d5db;
  }
}

/* ボーダーなしテーブル (is-style-borderless) */
article.template-page figure.is-style-borderless table th,
article.template-page figure.is-style-borderless table td {
  padding: 0;
  border: none;
}
article.template-page figure.is-style-borderless table th {
  background-color: transparent;
}

/* ========================================
   Splide overrides
   ======================================== */
.splide__arrows {
  display: none;
}

/* ========================================
   Preline hamburger toggle
   ======================================== */
.hs-collapse-open .hs-collapse-open\:hidden {
  display: none;
}
.hs-collapse-open .hs-collapse-open\:block {
  display: block;
}
