/*
Theme Name: Hidaka Denki
Theme URI: https://hidakadenki.com
Author: 日高電気株式会社
Description: 日高電気株式会社 カスタムテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: hidaka-denki
*/

/* =============================================
   Base / Reset
============================================= */
html {
  font-size: 55%;
  scroll-behavior: smooth;
}
@media screen and (min-width: 960px) {
  html { font-size: 62.5%; }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-size: 1.4rem;
  line-height: 2.1254;
  letter-spacing: 0.22rem;
  font-weight: 400;
  color: #333;
  font-family: 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dt, dd {
  margin: 0; padding: 0;
}

ul { list-style: none; }
img { max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: 0.3s ease-in-out;
  display: block;
  position: relative;
}

h2, h3, h4, h5 { line-height: 1.5; }

.sp-br { display: block; }
.ps-br { display: none; }
@media screen and (min-width: 560px) {
  .sp-br { display: none; }
  .ps-br { display: block; }
}

/* =============================================
   Animations
============================================= */
.fadein {
  opacity: 0;
  transform: translate(0, 40px);
  transition: opacity 1.4s, transform 0.8s;
}
.fadein.scrollin {
  opacity: 1;
  transform: translate(0, 0);
}

.motion-txt {
  display: inline-block;
  position: relative;
  overflow: hidden;
  padding: 10px;
}
.motion-txt::after {
  content: '';
  position: absolute;
  opacity: 1;
  left: 0; top: 0; bottom: 0;
  width: 100%;
  background: #FFFD02;
  transform: translate3d(-101%, 0, 0);
}
.js-scroll.show .motion-txt::after {
  transition: transform 0.8s, opacity 0.8s;
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
  transform: translate3d(0, 0, 0);
}
.js-scroll.done .motion-txt::after {
  transition: transform 0.8s;
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
  transform: translate3d(103%, 0, 0);
}
.motion-txt .motion-inner {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s cubic-bezier(0.37, 0, 0.63, 1);
}
.js-scroll.done .motion-txt .motion-inner {
  clip-path: inset(0);
}

/* =============================================
   Layout Utilities
============================================= */
.wrap {
  max-width: 1230px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 0 0 10rem;
}

.material-icons {
  display: inline-flex;
  vertical-align: middle;
}

/* =============================================
   Header
============================================= */
#head_wrap {
  position: sticky;
  top: 0;
  z-index: 100;
}

.l-header {
  position: relative;
  background-color: #fff;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  padding: 0 15px;
}

.l-header__logo {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 10px 0;
}
.l-header__logo img { vertical-align: text-bottom; width: auto; }

@media screen and (min-width: 560px) {
  .l-header__logo {
    flex: 0 0 17%;
    max-width: 17%;
    padding: 0;
  }
  .l-header__logo a:hover { opacity: 0.6; }
}

.l-header__list {
  display: none;
}
@media screen and (min-width: 560px) {
  .l-header__list {
    display: flex;
    align-items: center;
  }
}

.l-header__link {
  padding: 22px 10px;
  font-weight: 500;
  text-align: center;
  font-size: 1.5rem;
}
@media screen and (min-width: 560px) {
  .l-header__link { position: relative; }
  .l-header__link:hover { color: #FFFD02; }
  .l-header__link::before {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    width: 100%; height: 4px;
    background-color: #FFFD02;
    transform: scale(0, 1);
    transform-origin: center;
    transition: transform 0.2s;
  }
  .l-header__link:hover::before { transform: scale(1); }
}

.l-conversion__button {
  padding: 2px;
  border-radius: 8px;
  transition: 0.3s;
}
.l-conversion__button a {
  padding: 8px 14px;
  background: #FFFD02;
  font-weight: bold;
  font-size: 1.3rem;
  text-align: center;
  border-radius: 8px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 4px;
}
.l-conversion__button a:hover {
  background: radial-gradient(circle, rgba(222,0,41,1) 0%, rgba(249,221,0,1) 100%);
  color: #fff;
}

/* Hamburger */
.menu {
  display: none;
}
@media screen and (max-width: 559px) {
  .menu {
    display: block;
    margin-left: auto;
    padding-right: 15px;
    z-index: 11;
    cursor: pointer;
  }
  .menu .bar {
    width: 30px; height: 2px;
    background: #333;
    border-radius: 5px;
    opacity: 1;
    transition: 0.3s ease;
    transform-origin: left;
  }
  .menu .bar1 { margin-bottom: 8px; }
  .menu .bar3 { margin-top: 8px; }
  .menu.toggle .bar1 { transform: rotate(45deg); }
  .menu.toggle .bar2 { opacity: 0; visibility: hidden; }
  .menu.toggle .bar3 { transform: rotate(-45deg); }

  .l-header__navigation {
    flex-direction: column;
    position: fixed;
    top: 0; left: 100%;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.95);
    margin-top: 62px;
    transition: 0.4s ease-out;
    display: flex;
    z-index: 99;
  }
  .l-header__list {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    height: 80%;
  }
  .menu.toggle + .l-header__navigation {
    transform: translateX(-100%);
  }
}

/* =============================================
   Hero / Slider
============================================= */
.p-top__hero { position: relative; }

.swiper-wrap {
  margin: 0 calc(50% - 50vw);
  max-width: 100vw;
  position: relative;
  overflow: hidden;
}

@keyframes zoom-in {
  0%   { transform: scale(1); }
  100% { transform: scale(1.2); }
}
.swiper-slide-active .slide-img,
.swiper-slide-duplicate-active .slide-img,
.swiper-slide-prev .slide-img {
  animation: zoom-in 10s linear 0s 1 normal both;
}

.slide-img img {
  object-fit: cover;
  height: 60vh;
  width: 100vw;
}
@media screen and (min-width: 560px) {
  .slide-img img { height: 100vh; }
}

.p-top__hero--block {
  color: #fff;
  position: absolute;
  z-index: 1;
  bottom: 20%;
  left: 5%;
  text-align: left;
}
.p-top__hero--block p {
  text-shadow: 0 0 11px rgba(0,0,0,0.47);
  font-size: 1.8rem;
}

.p-top__hero--catch {
  font-size: 4rem;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 10px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  font-family: 'Oswald', sans-serif;
  text-shadow: 0 0 11px rgba(0,0,0,0.47);
  margin-top: 3rem;
}
@media screen and (min-width: 560px) {
  .p-top__hero--catch { margin-top: 0; }
}
@media screen and (min-width: 1280px) {
  .p-top__hero--catch { font-size: 5.188vw; }
}
.p-top__hero--catch span { padding: 6px; }

.swiper-pagination-bullet {
  width: 30px !important;
  height: 4px !important;
  background: #fff !important;
  border-radius: 0 !important;
  margin: 0 6px !important;
}
.swiper-pagination-bullet-active { background: #FFFD02 !important; }

/* =============================================
   Common Headline
============================================= */
.c-common__headline {
  position: relative;
  margin-bottom: 7.2rem;
}

.p-items__headline {
  font-size: 14.4vw;
  font-family: 'Oswald', sans-serif;
  line-height: 1;
  letter-spacing: 1rem;
}
@media screen and (min-width: 960px) {
  .p-items__headline { font-size: 10rem; }
}

.p-common__headline {
  font-size: 1.6rem;
  line-height: 1.4;
  letter-spacing: 0.3rem;
  color: #585858;
  margin-top: 1.5rem;
}

.common-headline {
  font-size: 2.4rem;
  text-align: center;
  letter-spacing: 0.4rem;
  position: relative;
}
@media screen and (min-width: 960px) {
  .common-headline { font-size: 3.2rem; }
}
.common-headline span {
  display: block;
  font-size: 1.4rem;
  letter-spacing: 0.7rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 900;
}
.common-headline::after {
  content: '';
  background-color: #42455e;
  width: 80px; height: 2px;
  position: absolute;
  bottom: -20px;
  left: 0; right: 0;
  margin: 0 auto;
}

/* =============================================
   Technology / Service Section
============================================= */
.p-technology__inner { text-align: center; }
.c-technology__inner { margin-bottom: 2.8rem; }

.p-technology__headline {
  padding-bottom: 19px;
  margin-bottom: 28px;
  width: 100%;
  font-size: 22px;
  font-family: 'Oswald', sans-serif;
  text-align: center;
  background-image: linear-gradient(90deg, #c7c7c7 0%, #c7c7c7 45%, #FFFD02 45%, #FFFD02 55%, #c7c7c7 55%, #c7c7c7 100%);
  background-size: 100% 5px;
  background-repeat: no-repeat;
  background-position: center bottom;
}

.p-common__inner {
  margin-bottom: 4rem;
}
@media screen and (min-width: 560px) {
  .p-common__inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 0;
  }
}

.p-technology__block {
  border: 1px solid #e6e6e6;
}
@media screen and (min-width: 560px) {
  .p-technology__block { width: calc(100% / 3); }
}
.p-technology__block ul { padding: 15px; }
.p-technology__block ul li { font-size: 1.2rem; }

.p-works__headline {
  font-size: 2rem;
  position: relative;
  margin: 1rem 0 14px;
  padding-bottom: 5px;
}
.p-works__headline::after {
  content: '';
  background: #FFFD02;
  width: 40px; height: 3px;
  position: absolute;
  bottom: -12px;
  left: 0; right: 0;
  margin: 0 auto;
}

/* =============================================
   News / Blog Section
============================================= */
.p-blog__inner {
  position: relative;
  margin-top: 6rem;
}
.p-blog__inner::before {
  content: '';
  background: #f1f1f1;
  max-width: 80%;
  width: 100%;
  height: 50%;
  position: absolute;
  top: 50px;
  right: 0;
}

.p-block__content {
  background: #fff;
  padding: 20px;
  z-index: 2;
  position: relative;
  box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.p-works__list { border-bottom: 1px solid #d6d5d5; }
.p-blog__link {
  display: block;
  position: relative;
}
@media screen and (min-width: 560px) {
  .p-blog__link::before {
    content: '';
    display: block;
    position: absolute;
    width: 0; bottom: 0; height: 2px;
    margin: -5px 0;
    left: 0;
    background-color: #FFFD02;
    transition: width 0.4s ease-in;
  }
  .p-blog__link:hover::before { width: 100%; }
}
.p-blog__block { padding: 16px; }
.p-blog__date { color: #999; font-size: 1.2rem; }
.p-blog__headline { margin-top: 0.5rem; }

.p-blog__button { margin-top: 2.4rem; text-align: right; }
.p-link__block { display: inline-block; }
.c-common__link { text-align: right; color: #333; font-weight: bold; }
.c-common__link i { font-size: 16px; }

/* Archive (news list page) */
.blog-common-ttl {
  color: #333;
  font-size: 2.4rem;
  border-bottom: 4px solid #FFFD02;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}
.blog-date {
  color: #999;
  font-size: 1.3rem;
  text-align: right;
  margin-bottom: 4rem;
}

/* =============================================
   Company Section
============================================= */
.p-company__inner {
  max-width: 1230px;
  margin: 0 auto 10rem;
  padding: 0 15px;
}
@media screen and (min-width: 560px) {
  .p-company__block {
    flex: 0 0 48%;
    max-width: 48%;
  }
}

.p-access__table {
  text-align: left;
  width: 100%;
}
.p-access__table tr {
  display: flex;
  margin-bottom: 10px;
  border-bottom: 1px solid #e6f0f8;
  padding-bottom: 10px;
}
.p-access__table th { flex: 0 0 25%; max-width: 25%; font-weight: 500; }
.p-access__table td { flex: 0 0 70%; max-width: 70%; }

/* =============================================
   Recruit Section
============================================= */
.recruit-content {
  background-image: url('/wp-content/themes/hidaka-theme/images/recruit-bg.jpg');
  background-size: cover;
  padding: 0 5px 80px;
  color: #fff;
  margin-bottom: 10rem;
  position: relative;
}
.recruit-content::before {
  content: '';
  background: #fff;
  position: absolute;
  left: 0; top: 0;
  height: 40px; width: 100%;
}
@media screen and (min-width: 560px) {
  .recruit-content { padding: 0 20px 100px; }
}

.recruit-content__headline {
  display: inline-block;
  background: #333;
  color: #FFFD02;
  font-size: 1.8rem;
  text-align: center;
  padding: 0 10px;
  font-weight: bold;
  margin-bottom: 2rem;
  opacity: 0.8;
}
.recruit-content__body { margin-bottom: 2.4rem; }

.common-btn {
  background-color: #FFFD02;
  max-width: 500px;
  color: #333;
  height: 64px;
  line-height: 64px;
  border-radius: 4px;
  text-align: center;
  margin: 4rem auto 8rem;
  font-weight: bold;
  display: block;
}
.common-btn:hover { background-color: #333; color: #FFFD02; }

/* Recruit Page Specific */
.p-common__title {
  background: #333;
  color: #fff;
  font-size: 2.6rem;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 180px;
  margin-bottom: 60px;
}
@media screen and (min-width: 560px) {
  .p-common__title { font-size: 3.2rem; padding: 0 40px; }
}

.p-recruit__inner {
  margin: 5rem auto 4rem;
  text-align: center;
}
.p-recruit__headline {
  font-size: 2.4rem;
  margin-bottom: 2.5rem;
  display: inline-block;
  background: #222;
  font-style: italic;
  color: #fff;
  line-height: 1;
  padding: 10px;
  text-align: center;
  margin: 0 auto 2.5rem;
  display: block;
}
.p-recruit__body {
  line-height: 1.65;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: bold;
  padding: 5px 10px;
}
.u-recruit__point { margin-bottom: 3rem; }

.col-5 {
  text-align: center;
  margin-bottom: 15px;
  border: 1px solid #999;
}
@media screen and (min-width: 560px) {
  .col-5 {
    flex: 0 0 18.91%;
    max-width: 18.91%;
    margin-bottom: 0;
  }
}

.p-common__point {
  background-color: #FFFD02;
  padding: 5px 10px;
  font-size: 1.8rem;
  font-weight: bold;
  color: #333;
}

.p-recruit__image img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.corporate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6rem auto;
  max-width: 960px;
}
.corporate-table tbody { display: block; width: 100%; }
.corporate-table tr {
  border-bottom: 1px solid #cecece;
  display: flex;
  padding: 2rem 1.5rem;
}
.corporate-table tr:first-child { border-top: 1px solid #cecece; }
.corporate-table th { width: 30%; font-weight: 500; }
.corporate-table td { width: 70%; }
@media screen and (min-width: 960px) {
  .corporate-table tr { padding: 3rem 1.5rem; }
  .corporate-table th, .corporate-table td { padding: 1rem 3rem; }
}

.interview__inner { }
@media screen and (max-width: 559px) {
  .interview__inner { display: block !important; }
  .interview-headline {
    font-weight: bold !important;
    font-size: 1.8rem;
    background-color: #FFFD02;
    padding: 5px;
    margin-bottom: 10px;
    display: block !important;
    width: 100% !important;
  }
  .interview__description { display: block !important; width: 100% !important; }
}

/* Common Title Block (inner pages) */
.common-ttl__block {
  font-size: 4.2rem;
  letter-spacing: 0.5rem;
  color: #fff;
  background-image: url('/wp-content/themes/hidaka-theme/images/recruit-mv.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  line-height: 1.4;
  padding: 8rem 0;
  margin-bottom: 8rem;
  position: relative;
  z-index: 0;
}
@media screen and (min-width: 960px) {
  .common-ttl__block { font-size: 6.4rem; padding: 12rem 0; }
}
.common-ttl__block h2 .jp { display: block; font-size: 1.4rem; }
.common-ttl__block::after {
  content: '';
  background-color: #000;
  opacity: 0.1;
  z-index: -1;
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
}

/* =============================================
   Contact Section
============================================= */
.p-contact__inner { position: relative; }
.p-contact__inner::after {
  content: '';
  background: #f1f1f1;
  max-width: 80%;
  width: 100%;
  height: 65%;
  position: absolute;
  top: 40px;
  right: 0;
  z-index: -1;
}

.p-contact__tel {
  background: #FFFD02;
  color: #333;
  font-size: 1.3rem;
  text-align: center;
  max-width: 500px;
  margin: 1.5rem auto 8rem;
  padding: 20px;
}
.p-contact__body { text-align: center; font-weight: bold; }
.p-contact__link {
  font-size: 3.2rem;
  font-family: 'Oswald', sans-serif;
  line-height: 1.1;
}
.p-contact__caption { font-size: 1.2rem; color: #666; }

/* Form */
.mw_wp_form, .wpcf7 {
  margin: 4rem auto 0;
  width: 100%;
}
@media screen and (min-width: 560px) {
  .mw_wp_form, .wpcf7 { max-width: 960px; margin: 0 auto; }
}

.cform { width: 100%; text-align: left; }
.cform tr {
  display: block;
  margin-bottom: 4.8rem;
}
@media screen and (min-width: 560px) {
  .cform tr {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}
.cform th {
  display: block;
  margin-bottom: 1rem;
  text-align: left;
}
@media screen and (min-width: 560px) {
  .cform th {
    margin-bottom: 0;
    margin-right: 1rem;
    max-width: 20rem;
    width: 100%;
    align-self: flex-start;
    display: flex;
    justify-content: space-between;
  }
  .cform td {
    flex: 1;
    display: block;
    width: 100%;
  }
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  background-color: #fff;
  border: 1px solid #c3d4e0;
  padding: 5px 10px;
  margin-bottom: 5px;
  width: 100%;
  border-radius: 4px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.4rem;
}
.wpcf7 textarea { min-height: 200px; }

.wpcf7 input[type="submit"] {
  cursor: pointer;
  background: #FFFD02;
  padding: 24px 32px;
  color: #333;
  font-weight: bold;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 60px;
  display: block;
  letter-spacing: 0.25rem;
  transition: 0.3s;
  border: none;
  font-size: 1.6rem;
  border-radius: 4px;
}
.wpcf7 input[type="submit"]:hover {
  background-color: #333;
  color: #fff;
}

.required-srt {
  display: inline-block;
  background-color: #333;
  color: #fff;
  padding: 5px 0.5em;
  font-size: 1.1rem;
  margin-left: 1rem;
  line-height: 1;
}

.contact-agreement__body {
  text-align: center;
  margin: 2rem 0;
}
.contact-agreement__body a {
  display: inline-block;
  text-decoration: underline;
}

/* =============================================
   Footer
============================================= */
footer {
  background-color: #333;
}
copyright {
  background-color: #333;
  color: #fff;
  text-align: center;
  display: block;
  font-size: 1.2rem;
  padding: 15px 10px;
}

.c-pagetop {
  position: fixed;
  bottom: 0; right: 0;
  z-index: 3;
}
.c-pagetop__button {
  background-color: #333;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  width: 40px; height: 140px;
  writing-mode: vertical-lr;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
@media screen and (min-width: 560px) {
  .c-pagetop__button { width: 60px; height: 150px; }
}
.c-pagetop__button:hover { background-color: #FFFD02; color: #333; }

/* =============================================
   Archive / Single Post
============================================= */
.page-content-wrap {
  max-width: 960px;
  margin: 0 auto 10rem;
  padding: 0 15px;
}
.single-post-date {
  color: #999;
  font-size: 1.3rem;
  text-align: right;
  margin-bottom: 4rem;
}
.single-post-body { line-height: 2; }
.single-post-body p { margin-bottom: 1.5rem; }
.single-post-body img { margin: 1.5rem 0; }
.single-post-body h2 {
  font-size: 2rem;
  border-bottom: 4px solid #FFFD02;
  padding-bottom: 8px;
  margin: 3rem 0 1.5rem;
}

.archive-item {
  border-bottom: 1px solid #d6d5d5;
}
.archive-item a {
  padding: 16px;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  transition: color 0.3s;
}
.archive-item a:hover { color: #FFFD02; background: #f9f9f9; }
.archive-item .date { color: #999; font-size: 1.2rem; white-space: nowrap; }
.archive-item .title { font-size: 1.4rem; }

.back-link {
  display: inline-block;
  margin-top: 4rem;
  font-size: 1.3rem;
  color: #666;
  border-bottom: 1px solid #ccc;
  padding-bottom: 2px;
}
.back-link:hover { color: #333; }

.pagination { text-align: center; margin: 4rem 0; }
.pagination a, .pagination span {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  font-size: 1.4rem;
  border: 1px solid #ddd;
}
.pagination .current { background: #FFFD02; border-color: #FFFD02; }
