/*
Theme Name: Lightning Child
Template: lightning
*/

/*
  Cleaned version.
  - Removed large unused commented CSS blocks.
  - Moved global font-size from * to body.
  - Added safer responsive rules for top about/category.
  - Kept existing class names and page structure.
*/

/* =========================
   Common
========================= */
.page-header {
  display: none;
}

.section-block {
  padding: 90px 0;
}

.section-en {
  margin: 0 0 4px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: #0076bd;
}

.section-ja {
  margin: 0 0 50px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.company-inner {
  width: min(1180px, 92%);
  margin: 0 auto;
}

body {
  color: #222;
  font-size: 15px;
  line-break: normal;
}

a:hover {
  opacity: 0.8;
  color: #0076bd;
}

/* =========================
   CONTACT
========================= */

.contact {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: #0076bd;
  color: #fff;
  padding: 56px 0;
}

.contact__inner {
  width: min(1120px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}

.contact__title {
  flex: 0 0 260px;
}

.contact .section-en {
  color: #fff;
}

.contact .section-ja {
  color: #fff;
  margin: 0;
}

.contact__message {
  flex: 1;
}

.contact__message p {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

.contact__button-wrap {
  flex: 0 0 300px;
  display: flex;
  justify-content: flex-end;
}

.contact__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  padding: 0 28px;
  background: #fff;
  color: #222;
  text-decoration: none;
  border-radius: 4px;
  font-size: 17px;
  font-weight: 700;
}

.contact__button:hover {
  color: #0076bd;
}

.contact__form {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.contact__caution {
  font-size: 11.5px;
  color: #808080;
  margin-top: 50px;
}

/* スマホ・タブレット */
@media (max-width: 991px) {
  .contact {
    padding: 56px 0;
  }

  .contact__inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .contact__title,
  .contact__message,
  .contact__button-wrap {
    flex: none;
    width: 100%;
  }

  .contact__button-wrap {
    justify-content: center;
  }

  .contact__button {
    width: 90%;
    max-width: 360px;
  }

  .contact__message p {
    font-size: 16px;
  }
}

/* =========================
   Top about us
========================= */
.about-section {
  padding: 20px 0 100px;
}

/*.about-section {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s;
}

.about-section.show {
  opacity: 1;
  transform: translateY(0);
}*/

.about-inner,
.top-category .company-inner {
  width: 100%;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 60px;
  align-items: stretch;
}

.about-text-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-lead {
  margin: 0 0 40px;
  font-size: 21px;
  font-weight: bold;
  line-height: 2;
}

.company-about__text {
  margin: 0 0 40px;
}

.company-about__text p {
  margin: 0 0 20px;
}

.about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;

  text-decoration: none;
  border-radius: 6px;
  width: 240px;
  height: 60px;

  background: #0076bd;
  color: #fff !important;
  text-decoration: none !important;

  font-size: 16px;
  font-weight: 560;
  margin-bottom: 0;
}

.about-image-area {
  display: flex;
  justify-content: center;
}

.about-image {
  max-width: 520px;
  height: auto;
  display: block;
  border-radius: 40px;
}

@media (max-width: 767px) {
  .about-inner {
    padding: 0 20px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-lead {
    margin-bottom: 28px;
    font-size: 16px;
    font-weight: 700;
  }

  .company-about__text {
    margin-bottom: 32px;
  }

  .about-image {
    max-width: 100%;
  }
}

/* 上帯 */
.oem-needs__head {
  display: inline-block;
  background: #fff;
  border-radius: 999px;
  padding: 16px 80px;
  font-size: 22px;
  font-weight: 700;
  color: #0076bd;
  margin: 20px 0px 20px;
}

/* 見出し */
.oem-needs__title {
  font-size: 24px;
  color: #0076bd;
  margin: 0px 0px 24px;
  letter-spacing: 0.04em;
  font-weight: 700;
}

/* カード */
.oem-needs__cards {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.oem-card {
  margin-top: 20px;
  width: 340px;
  background: #ffffff;
  box-shadow: 0 6px 8px rgba(32, 51, 117, 0.08);
}

.oem-card img {
  width: 100%;
  display: block;
}

.oem-card p {
  padding: 10px;
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 700;
}

.oem-needs {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: #eaf6ff;
  padding: 30px 0px 30px;
  text-align: center;
  z-index: 1;
  overflow: hidden;
  clear: both;
  box-sizing: border-box;
}

/* スマホ */
@media (max-width: 767px) {
  .oem-needs__head {
    margin: 0 auto 20px auto;
    font-size: 16px;
    padding: 16px 32px;
  }

  .oem-needs__title {
    padding: 12px 0;
    letter-spacing: 0.04em;
    font-size: 16px;
  }
}


/* =========================
   Top Category
========================= */
.top-category {
  width: min(1200px, 100%);
  margin: 70px auto 70px;
}

.top-category__head {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start; 
  gap: 100px;
  margin-bottom: 30px;
}

.top-category__lead {
  margin-top: 0;
  margin-left: 0;
  padding-top: 0;
  font-size: 18px;
  line-height: 2;
  font-weight: 700;
  letter-spacing: 0.06em;
  max-width: 600px;
}

.top-category__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: start;
}

.top-category__item {
  text-align: center;
}

.top-category__card {
  display: block;
  line-height: 0; /* ←これ効く */
}

.top-category__card img {
  display: block;
  width: 100%;
}

.top-category__item h4 {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.top-category__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  min-height: 56px;
  background: #0076bd;
  color: #fff !important;
  text-decoration: none !important;

  border-radius: 6px;
  font-size: 16px;
  font-weight: 560;
  margin-top: 50px;
}

@media (max-width: 991px) {
  .top-category__head {
    flex-direction: column;
    gap: 24px;
  }

  .top-category__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .top-category__lead {
    margin: 0;
    max-width: none;
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .top-category {
    padding: 0 20px;
  }

  .top-category__lead {
  font-size: 16px;
  line-height: 2;
  font-weight: 700;
  }

  .top-category__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* デザインのみのご相談 */
.top-designer {
  padding: 100px 0;
  border-top: 1px solid #d9d9d9;
  margin-bottom: 70px;
}

.top-designer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 0 40px;
}

.top-designer__image img {
  border-radius: 40px;
}

.top-designer__lead {
  margin-top: 0;
  margin-left: 0;
  padding-top: 0;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 700;
  letter-spacing: 0.06em;
  color:  #0076bd;
}

@media (max-width: 991px) {
  .top-designer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .top-designer__lead {
  font-size: 16px;
  }
}

/* =========================
   OEM Page
========================= */

/* 全体 */
.oem-page {
  text-align: center;
  animation: fadeText 1.5s ease forwards;
}

/* タイトル */
.oem-hero__lead {
  line-height: 2;
  margin-bottom: 30px;
}

/* 検索 */
.oem-search {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.oem-search input,
.oem-search select {
  width: 248px;
  height: 48px;
  border-radius: 24px;
  border: #808080 solid 1px;
  color: #222;
}

.oem-search button {
  background: #0076bd;
  color: #fff;
  width: 91px;
  height: 48px;
  border-radius: 24px;
  border: #0076bd solid 1px;
}

/* 商品 */
.oem-products {
  padding: 60px 0;
  border-bottom: 1px solid #d9d9d9;
}

.oem-more {
  margin-top: 40px;
}

/* PACKAGE */
.oem-package {
  padding: 80px 0;
  border-bottom: 1px solid #d9d9d9;
}

.oem-package__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 0 40px;
}

.package__item {
  text-align: left;
  margin-bottom: 28px;
}

.package__item:last-child {
  margin-bottom: 0;
}

.package__item h4 {
  position: relative;
  margin: 0 0 6px;
  padding-left: 24px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.package__item h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 14px;
  height: 14px;
  background: #222;
  border-radius: 50%;
}

.package__item p {
  margin: 0;
  padding-left: 24px;
}

/* =========================
   OEM Flow
========================= */

.flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: left;
  padding-top: 28px;
  gap: 28px;
}

.flow-column {
  display: flex;
  flex-direction: column;
}

.flow-step {
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 28px;
  align-items: start;
}

.flow-step__icon {
  width: 65px;
  display: flex;
  flex-direction: column;
  align-items: center;
  vertical-align: bottom;
}

.flow-step__icon > img:first-child {
  width: 65px;
  height: auto;
  display: block;
}

.flow-step__line {
  width: 3px;
  height: 112px;
  object-fit: cover;
  margin-top: 0;
  display: block;
}

.flow-step__content h3 {
  margin: 12px 0 14px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.flow-step__content p {
  margin: 0;
  line-height: 2;
  width: 80%;
}

/* =========================
   WooCommerce
========================= */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: none !important;
}

.cart-contents {
  display: none !important;
}

.oem-contact-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 250px;
  min-height: 70px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  transition: 0.3s;
  background: #0076bd;
  color: #fff !important;
  margin-top: 20px;
}

/* 商品説明タブ内のタイトルを非表示 */
.woocommerce div.product .woocommerce-Tabs-panel--description > h2 {
  display: none;
}

/* =========================
   商品スペックテーブル
========================= */

.product-spec {
  margin-top: 40px;
}

.product-spec__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.product-spec__table th,
.product-spec__table td {
  border: 1px solid #ddd;
  padding: 14px 16px;
  vertical-align: top;
}

.product-spec__table th {
  width: 30%;
  background: #f5f5f5;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.product-spec__table td {
  background: #fff;
  line-height: 1.8;
}

/* =========================
   Company Page
========================= */
.company-about {
  animation: fadeText 1.5s ease forwards;
}

/* ABOUT */
.company-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 72px;
  align-items: center;
}

/* テキスト */
.company-about__text {
  text-align: justify;
  line-height: 2.2;
  font-size: 16px;
}

/* 段落 */
.company-about__text p {
  margin: 0 0 32px;
}

/* 最後だけ余白なし */
.company-about__text p:last-child {
  margin-bottom: 0;
}

/* 画像 */
.company-about__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 画像サイズ */
.company-about__image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

@media (max-width: 991px) {
  .company-about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .company-about__image img {
    max-width: 350px;
    margin: 0 auto;
  }
}

/* =========================
   Department Slider
========================= */

.department-slider.section-block {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: #eaf6ff;
  padding: 56px 0 80px;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.department-slider__head {
  margin-bottom: 56px;
}

.department-slider__wrap {
  display: flex;
  align-items: center;
  gap: 32px;
}

.department-slider__track {
  flex: 1;
  overflow: hidden;
}

.department-slider__list {
  display: flex;
  transition: transform 0.5s ease;
}

.department-slide__item {
  flex: 0 0 50%;
  box-sizing: border-box;
  padding: 0 28px;
  text-align: left;
}

.department-slide__item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin-bottom: 18px;
}

.department-slide__item h3 {
  margin: 0 0 12px;
  color: #0076bd;
  font-size: 24px;
  font-weight: 700;
}

.department-slide__item p {
  margin: 0;
  text-align: justify;
}

.department-slider__arrow {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #0076bd;
  color: #fff;
  font-size: 32px;
  line-height: 0.8;
  cursor: pointer;
  flex: 0 0 44px;
}

/* SP */
@media (max-width: 767px) {

  .department-slider.section-block {
    padding: 56px 0 64px;
  }

  .department-slider__head {
    margin-bottom: 40px;
  }

  .department-slider__wrap {
    gap: 12px;
  }

  .department-slide__item {
    flex: 0 0 100%;
    padding: 0;
  }

  .department-slide__item h3 {
    font-size: 18px;
  }

  .department-slider__arrow {
    width: 36px;
    height: 36px;
    font-size: 26px;
    flex: 0 0 36px;
  }
}

/* =========================
   Company OEM Recommend
========================= */

.company-oem-recommend__body {
  display: flex;
  align-items: flex-start;
  gap: 56px;
  margin: 64px 0 0;
}

.company-oem-recommend__image {
  flex: 1;
}

.company-oem-recommend__image img {
  width: 100%;
  display: block;
}

.company-oem-recommend__text {
  flex: 1;
  text-align: justify;
}

.company-oem-recommend__text h3 {
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #0076bd;
  color: #0076bd;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

/* スマホ */
@media (max-width: 767px) {
  .company-oem-recommend__head {
    margin-bottom: 40px;
    font-size: 16px;
  }

  .company-oem-recommend__label {
    padding: 12px 24px;
    letter-spacing: 0.04em;
  }

  .company-oem-recommend__body {
    flex-direction: column;
    gap: 32px;
  }

  .company-oem-recommend__text h3 {
    font-size: 18px;
    text-align: center;
  }
}

/* =========================
   Company Profile
========================= */

.company-profile__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: start;
}

.company-profile__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* =========================
   FAQ Page
========================= */
.faq-page {
  animation: fadeText 1.5s ease forwards;
}

.faq-page__head {
  text-align: center;
  margin-bottom: 72px;
}

.faq-page__lead {
  margin: 0;
  line-height: 2;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.faq-item {
  border-bottom: 1px solid #d9d9d9;
}

.faq-question {
  list-style: none;
  width: 100%;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question__left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.faq-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

.faq-icon--q {
  background: #0076bd;
  color: #fff;
}

.faq-icon--a {
  background: #fff;
  color: #0076bd;
  border: 2px solid #0076bd;
}

.faq-question__text {
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.faq-arrow {
  width: 14px;
  height: 14px;
  border-right: 2px solid #0076bd;
  border-bottom: 2px solid #0076bd;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-left: auto;
  flex: 0 0 14px;
}

.faq-item[open] .faq-arrow {
  transform: rotate(-135deg);
}

.faq-answer {
  padding: 0 0 28px;
}

.faq-answer__inner {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
}

.faq-answer__text {
  text-align: left;
  padding-right: 28px;
}

/* =========================
   RECRUIT
========================= */
.recruit__title {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  text-align: center;
  background: #0076bd;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 18px 0;
}

.recruit__table {
  margin: 30px auto 50px auto;
}

.entry__button-wrap {
  flex: 0 0 300px;
  display: flex;
  justify-content: center;
  margin: 50px auto;
}

.entry__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 266px;
  min-height: 64px;
  padding: 0 28px;
  background: #0076bd;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 17px;
  font-weight: 700;
}

.entry__button:hover {
  opacity: 0.9;
  color: #fff;
}

/* =========================
   Privacy Policy
========================= */
.privacy-page {
  animation: fadeText 1.5s ease forwards;
}

.privacy-inner {
  width: min(820px, 92%);
  margin: 0 auto;
}

.privacy-head {
  text-align: center;
  margin-bottom: 72px;
}

.privacy-content {
  text-align: left;
}

.privacy-content h3 {
  margin: 64px 0 20px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.privacy-content ul {
  margin: 0 0 28px;
  padding-left: 1.2em;
}

/* =========================
   Responsive Tablet
========================= */

@media (max-width: 991px) {
  .section-block {
    padding: 72px 0;
  }

  .section-en,
  .contact__section-en {
    font-size: 32px;
  }

  .section-ja,
  .contact__section-ja {
    font-size: 24px;
  }

  .oem-package__grid,
  .company-profile__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .flow-grid {
    grid-template-columns: 1fr;
    gap: 0px;
  }
}

/* =========================
   Responsive Mobile
========================= */

@media (max-width: 767px) {
  .section-block {
    padding: 56px 0;
  }

  .section-en,
  .contact__section-en {
    font-size: 26px;
  }

  .section-ja {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .contact__section-ja {
   font-size: 18px;
  }

  .oem-search {
    flex-direction: column;
    align-items: center;
  }

  .oem-package__grid {
   margin-top: 36px;
  }

  .flow-grid {
    grid-template-columns: 1fr;
    margin-top: 36px;
    margin-bottom: 0;
  }
}

/* ===== グロナビ固定（変化させない） ===== */
/* 注意: 最後のメニュー項目を問い合わせボタン化しています。メニュー順を変える場合は要確認。 */

.site-header,
.site-header.header_scrolled {
  height: auto !important;
  padding: 14px 0 !important;
}

/* ヘッダーの左右余白をなくす */
.site-header .container {
  max-width: 98% !important;
}

.header-contact {
  background: #0076bd;
  display: flex;
  align-items: center;    /* 縦中央 */
  border-radius: 4px;     /* ←四角（少しだけ角丸） */
}

.header-contact > a {
  color: #fff !important;       /* ナビの高さに合わせる */
  font-weight: 700;
  margin: 10px 20px;
}

.header-contact:hover {
  opacity: 0.8;
  color: #fff !important;
}

.header-faq > a {
  margin-right: 20px;
}

/* =========================
   Footer Layout
========================= */

/* フッターメニュー */
.footer-menu > a {
  font-size: 16px;
  padding: 50px;
}

/* Powered byだけ消す */
.site-footer-copyright p:last-child {
  display: none;
}

/* SP */
@media (max-width: 767px) {
  .footer-menu > a {
  padding-left: 0;
  margin-left: 0;
  }
}




.ltg-slide-text-set {
  top: 52% !important;
	left: 48% !important;
}

.ltg-slide-text-title,
.ltg-slide-text-caption {
  opacity: 0;
}

.ltg-slide-text-title {
	font-size: 28px;
  line-height: 1.4 !important;
  animation: fadeText 1s ease forwards;
  font-family: 'Zen Kaku Gothic New', sans-serif;
}

.ltg-slide-text-caption {
  animation: fadeText 0.8s ease forwards;
  animation-delay: 0.4s;
}


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

.ltg-slide-text-caption {
	font-size: 20px;
  margin-top: 20px !important;
  line-height: 2 !important;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (max-width: 767px) {

  .ltg-slide-text-set {
		left: 34% !important;
    top: 14% !important;
    transform: scale(1.6) !important;
    transform-origin: center center;
  }

  .ltg-slide-text-title {
	  font-size: 18px;
  }

  .ltg-slide-text-caption {
	font-size: 12px;
  line-height: 1.8 !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  }
}