/*
Theme Name: Yamashige
Theme URI: https://yamashige-tline.com/
Author: Sugimoto
Description: 自作テーマ
Version: 1.0
*/

/* 一般設定 */
body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: black;
  color: white;
  margin: 0;
  padding: 0;
  padding-top: 126px;
  font-size: 1.2rem;
}

body h1,
body h2,
body p {
  text-align: center;
  margin-inline-start: 1rem;
  margin-inline-end: 1rem;
  margin-block-start: 1rem;
  margin-block-end: 1rem;
}

body.admin-bar header {
  top: 32px;
  /* WP管理バーの高さ分だけ下げる */
}


/* ヘッダー設定 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #000;
  z-index: 9999;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  padding: 0 0 0 8rem;
  margin: 0 auto;
  box-sizing: border-box;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  font-size: 1.2rem;
}

/* メニューのスタイル */
.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.global-nav li a,
.recruit-button a {
  text-decoration: none;
  color: white;
}

.recruit-button {
  display: flex;
  align-items: center;
  height: 126px;
  background-color: #1e1ac2;
  padding: 0rem 2rem;
  margin-left: 2rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s ease;
}

.recruit-button:hover {
  background-color: #4f46e5;
}

.logo {
  max-width: 120px;
  height: auto;
  display: block;
}
.main-logo {
  max-width: 100%;
}
.keyvisual {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.keyvisual-sp {
  display: none;
}

.section-contents h1 {
  font-size: 2.3rem;
  font-weight: normal;
  margin: 10rem auto 3rem;
}

.section-contents p {
  font-size: 1.2rem;
  margin: 2rem auto 10rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 10000;
}

.hamburger span {
  display: block;
  height: 3px;
  background: white;
  border-radius: 2px;
}

/* レシポンシブ設定 */
@media screen and (max-width: 768px) {
  body.admin-bar header {
    top: 46px;
    /* WP管理バーの高さ分だけ下げる */
  }

  body {
    padding-top: 85px;
    font-size: 1rem;
  }

  .header-inner {
    display: flex;
    align-items: center;
    padding: 0rem 3rem;
    gap: 3rem;
  }

  .hamburger {
    display: flex;
  }
  .header-nav {
    display: none;
    position: absolute;
    top: 90px;
    right: 0;
    background: black;
    width: 100%;
    z-index: 999;
  }
  .header-nav.active {
    display: block;
  }
  .recruit-button {
  display: block;
  height: 60px;
  margin: 0 auto;
  text-align: center;
  align-content: center;
}
.recruit-button a {
  text-decoration: none;
  color: white;
}

  .global-nav ul {
    flex-direction: column;
    padding: 10px;
    gap: 0.5rem;
  }

  .global-nav li {
    margin: 10px auto;
  }
  .logo-header,
  .logo {
    display: inline-block;
    max-width: 80px;
  }

  .keyvisual-sp {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }

  .keyvisual {
    display: none;
  }
  .section-contents h1 {
  font-size: 1.5rem;
  font-weight: normal;
  margin: 7rem 0.5rem 3rem;
}
.section-contents p {
  font-size: 1rem;
  margin: 2rem 1rem 7rem;
}
}


/* About-usセクション */
.aboutus-section {
  background-image: url('https://yamashige-tline.com/wp-content/uploads/2025/05/aboutus-background.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 4rem 2rem;
}

.section-title {
  max-width: 300px;
  margin: 0 auto;
}

.section-title h2 {
  margin-bottom: 6rem;
  font-size: 2.3rem;
  font-weight: normal;
}

.aboutus-text {
  max-width: 850px;
  margin: 2rem auto;
}

.aboutus-text p {
  text-align: left;
  margin-bottom: 1rem;
}

.more-button {
  text-align: center;
  margin-top: 8rem;
  margin-bottom: 5rem;
}

.button-link {
  display: inline-block;
  text-decoration: none;
  padding: 1rem 3rem;
  border-radius: 30px;
  margin: 0 4px;
  background-color: #1e1ac2;
  color: white;
}

.button-link:hover {
  background-color: #4f46e5;
  transition: background-color 0.3s ease;
}

/* お知らせセクション */
.news-section {
  padding: 4rem 2rem;
}

.news-text-area {
  margin: 10px auto;
  padding: 10px 10px;
  max-width: 1000px;
  background-color: white;
  border-radius: 30px;
}

.recent-posts {
  list-style: none;
  padding: 10px;
  margin: 10px auto;
  max-width: 800px;
  text-align: left;
  color: #4a4a4a;
}

.recent-posts li {
  border-bottom: 2px solid #ccc;
  padding: 10px 0;
}

.recent-posts a {
  text-decoration: none;
  color: #4a4a4a;
}

.recent-posts a:hover {
  text-decoration: underline;
  color: #4f46e5;
}

.full-width-line {
  border: none;
  border-top: 1px solid #ccc;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  transform: translateX(-50%);
}

/* 採用情報セクション */
.recruit-section {
  background-image: url('https://yamashige-tline.com/wp-content/uploads/2025/05/recruit-background.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 4rem 0.5rem;
}

.recruit-text p {
  text-align: center;
  margin-bottom: 1rem;
}

/* トップページレシポンシブ設定 */
@media screen and (max-width: 768px) {
.aboutus-section {
  padding: 4rem 0.5rem;
}

}
/* フッター設定 */
footer {
  background-color: #4a4a4a;
  padding: 0.5rem 1rem;
  text-align: center;
  color: white;
}

.footer-contents {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  padding: 0 1rem;
  margin: 0 auto;
}

.footer-contents-contact {
  flex: 0.6;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer-contents-sitemap {
  flex: 1;
  min-width: 200px;
}

.enterprise-logo {
  max-width: 150px;
  height: auto;
  display: block;
  margin: auto 0 auto auto;
  flex: 1;
}

.enterprise-logo img {
  max-width: 100%;
}

.enterprise-detail {
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 2rem 0 0;
  flex: 2;
}

.sns-link {
  display: flex;
  justify-content: flex-end;
  flex-wrap: nowrap;
  margin: 1em auto;
  gap: 20px;
}

.sns-icon img {
  max-width: 40px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

footer ul li {
  padding: 0 1rem;
  position: relative;
}

footer ul li:not(:first-child)::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background-color: #999;
}

.footer-nav li a {
  text-decoration: none;
  color: white;
}

.divider {
  width: 1px;
  height: 260px;
  background-color: #999;
}

.contact-message p {
  margin-block-start: 0.5;
  margin-block-end: 0.5;
}

.contact-button-f {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 2rem;
  color: #4f46e5;
}

.button-link-contact {
  display: inline-block;
  background-color: #1e1ac2;
  color: white;
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.button-link-contact:hover {
  background-color: #4f46e5;
}

/* フッターレシポンシブ設定 */
@media screen and (max-width: 768px) {
  .footer-contents,
  .footer-contents-contact,
  .footer-nav ul {
    display: block;
    padding: 0 0;
  }
  .footer-nav ul {
    text-decoration: underline;
  }
  .enterprise-logo {
  margin: 2rem auto 0;
}
  .enterprise-detail {
  margin: 0 auto;
}
  .sns-link {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    margin: 1em auto;
    gap: 20px;
  }

  .divider {
    display: none;
  }
  .footer-contents-sitemap {
    margin: 2rem auto;
    font-size: 0.9rem;
}
  footer ul li:not(:first-child)::before {
    display: none;
  }

  footer ul li {
    margin-bottom: 1rem;
  }
}


/* 個別ページカスタム設定 */
.page-header {
  position: relative;
  width: 100%;
  max-height: 400px;
  overflow: hidden;
}

.page-header img {
  width: 100%;
  height: auto;
}

.page-title-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2.5rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
  margin: 0;
  padding: 0;
}

/* 個別ページ　レシポンシブ設定 */
@media screen and (max-width: 768px) {
  .page-header img {
    width: auto;
}
.page-title-overlay {
  font-size: 2rem;
}
}

/* 会社概要 */
.page-id-9 {
  background-color: white;
  color: #4a4a4a;
}

.company-page {
  margin: 0 auto;
  padding: 0 3rem 8rem;
  justify-content: center;
}
.bg-company-sp {
  display: none;
}

.content-title {
  max-width: 900px;
  margin: 8rem auto 2rem;
}

.content-title h2 {
  font-weight: normal;
  text-align: left;
}

.divided-line {
  border: none;
  border-top: 4px solid #1e1ac2;
  width: 100%;

}

.comment-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.comment-text p {
  text-align: left;
}

.company-info,
.company-branch {
  margin: 1rem auto;
  align-items: center;
  text-align: left;
}

.company-info ul,
.company-branch ul {
  list-style: none;
  padding-inline-start: 0;
  padding-bottom: 2em;
  margin: 1em auto;
  max-width: 900px;
}

.company-info li {
  display: flex;
  padding: 1em 0;
  border-bottom: 1px solid #1e1ac2;
  flex-wrap: nowrap;
}

.company-info .label {
  color: #1e1ac2;
  width: 200px;
}

.company-info .value {
  flex-grow: 1;
}
.company-branch li {
  display: flex;
  padding: 1em 0;
  border-bottom: 1px solid #1e1ac2;
  flex-wrap: wrap;
}
.company-branch .label {
  color: #1e1ac2;
  width: 200px;
  text-align: center;
  line-height: 70px;
}

@media screen and (max-width: 768px) {
  .company-page {
   padding: 1rem;
}
  .bg-company {
  display: none;
  }
  .bg-company-sp {
  display: block;
  max-width: 100%;
  height: auto;
  width: auto;
  }
  .content-title {
    margin: 6rem auto 2rem;
}
  .company-info {
    margin: 0 auto;
    padding: 0;
  }
  .company-info ul,
  .company-branch ul {
    padding: 1rem;
  }
  .company-info .label {
  width: 100px;
  min-width: 100px;
}
.company-branch .label {
  width: -webkit-fill-available;
}
}

/* 事業案内 */
.page-id-11 {
  background-color: white;
  color: #4a4a4a;
}

.business-page {
  margin: 0 auto;
  padding: 0 3rem 8rem;
  justify-content: center;
}

.service-text {
  margin: 0 auto;
  max-width: 800px;
}

.chara-point {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  column-gap: 3rem;
  justify-items: center;
  font-size: 1rem;
  max-width: 1400px;
  margin: 3rem auto;
  margin-bottom: 1rem;
}

.point {
  max-width: 450px;
  margin: 0 auto;
}

.service-text p,
.point p {
  text-align: left;
}

.point h2 {
  font-size: 1.2rem;
}

.point-img {
  max-width: 50%;
  height: auto;
  display: block;
  margin: 30px auto;
}

.chara-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.truck-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  column-gap: 3rem;
  justify-items: center;
  font-size: 1rem;
  max-width: 1200px;
  margin: 3rem auto;
  margin-bottom: 1rem;
}

.truck-spec {
  max-width: 600px;
  margin: 0 auto;
}

.truck-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.truck-spec p {
  text-align: left;
}

@media screen and (max-width: 768px) {
.business-page {
   padding: 1rem;
}
.chara-point,
.truck-list {
  display: block;
}
.point,
.truck-spec {
  margin: 5rem auto;
}

}

/* 採用情報 */
.page-id-17 {
  background-color: white;
  color: #4a4a4a;
}

.recruit-page {
  margin: 0 auto;
  padding: 5rem 3rem 8rem;
  justify-content: center;
}
.bg-recruit-sp {
  display: none;
}
.blue-text {
  color: #1e1ac2;
}

.app-guide-info {
  margin: 1rem auto;
  align-items: center;
  text-align: left;
}

.app-guide-info ul {
  list-style: none;
  padding-inline-start: 0;
  padding-bottom: 2em;
  margin: 1em auto;
  max-width: 900px;
}

.app-guide-info li {
  display: flex;
  padding: 1em 0;
  border-bottom: 1px solid #1e1ac2;
  flex-wrap: nowrap;
}

.app-guide-info .label {
  color: #1e1ac2;
  width: 200px;
}

.app-guide-info .value {
  flex-grow: 1;
}

.appeal-point-text {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  column-gap: 3rem;
  justify-items: center;
  font-size: 1rem;
  max-width: 1400px;
  margin: 3rem auto;
  margin-bottom: 1rem;
}

.appeal-point-img {
  max-width: 400px;
  margin: 0 auto;
}
.appeal-img {
  width: 100%;
  height: auto;
}

.job-flow-img {
  max-width: 900px;
  margin: 5rem auto 0;
}

.time-schedule {
  max-width: 100%;
}
.time-schedule-sp {
  display: none;
}

.faq-list {
  margin: 1rem auto;
  align-items: center;
}

.faq-list ul {
  list-style: none;
  padding-inline-start: 0;
  padding-bottom: 2em;
  margin: 1em auto;
  max-width: 900px;
}

.faq-list li {
  display: flex;
  padding: 1em 0;
  border-bottom: 1px solid #1e1ac2;
  flex-wrap: wrap;
}

.faq-list h2 {
  color: #1e1ac2;
}

.faq-list .label {
  width: 90px;
  margin: auto 3rem auto 1rem;
}


.faq-list .value h2 {
  text-align: left;
  font-size: 1.2rem;
}

.faq-list .value p {
  text-align: left;
}

.faq-img {
  max-width: 100%;
}

.faq-contact p {
  color: red;
}
.faq-button {
  text-align: center;
}
.phone-number {
  width: 275px;
  border-radius: 5px;
  margin: 1rem auto;
  background-color: #ff914d;
  color: white;
}
.phone-number p{
 text-align: center;
 padding: 0.7rem;
 font-size: 1.2rem;
 font-weight: bold;
}

@media screen and (max-width: 768px) {
.bg-recruit {
   display: none;
}
.bg-recruit-sp {
  display: block;
  max-width: 100%;
  height: auto;
  width: auto;
}
.recruit-page {
  padding: 1rem;
}
.top-comment{
  margin-top: 3rem;
}
.top-comment p{
  margin-inline-start: 0rem;
  margin-inline-end: 0rem;
}
.appeal-point-text {
  display: block;
}
.app-guide-info .label {
  width: 100px;
  min-width: 100px;
}
.faq-list li {
    padding: 2rem 0;
}
.faq-list .label {
  margin: auto;
}
.job-flow-img {
  max-width: 800px;
  margin: 5rem auto 0;
}

.time-schedule {
  display: none;
}
.time-schedule-sp {
  display: block;
  max-width: 100%;;
}
.faq-contact-area{
  margin-bottom: 5rem;
}
.phone-number {
  max-width: 240px;
}
}




/* お知らせ */
.archive-main {
  background-color: white;
  color: white;
  padding: 8rem;
}
.archive-header {
  position: relative;
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  background-color: white;
}
.archive-header img {
  width: 100%;
  height: auto;
}
.bg-news-sp {
  display: none;
}
.category-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2.5em;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
  margin: 0;
}
.archive-posts {
  background-color: #4a4a4a;
  border-radius: 20px;
  padding: 2rem 5rem;
  max-width: 800px;
  margin: 0 auto;
}
.archive-post {
  margin-bottom: 1rem;
  border-bottom: 1px solid #ccc;
  font-size: 1rem;
  color: white;
}
.archive-post h2 {
  font-size: 1rem;
  text-align: left;
}
.archive-post a {
  text-decoration: none;
  color: white;
}

.archive-post a:hover {
  text-decoration: underline;
  color: white;
}
@media screen and (max-width: 768px) {
  .archive-header img {
    width: auto;
  }
  .category-title {
  font-size: 2rem;
  }
  .bg-news {
   display: none;
  }
  .bg-news-sp {
    display: block;
    max-width: 100%;
    height: auto;
    width: auto;
  }
  .archive-main {
     padding: 5rem 1rem;
  }
  .archive-posts {
  padding: 2rem 2rem;
  }
}

/* お問い合わせ */
.page-id-15 {
  background-color: white;
  color: #4a4a4a;
}
.bg-contact-sp {
  display: none;
}
.contact-page {
  margin: 0 auto;
  padding: 5rem 3rem 8rem;
  justify-content: center;
}
.company-add-map {
  display: flex;
  margin: 0 auto;
  max-width: 1400px;
  flex-wrap: wrap;
}

.company-address {
  margin: 1rem auto;
  align-items: center;
  max-width: 600px;
}

.company-address ul {
  list-style: none;
  padding-inline-start: 0;
  padding-bottom: 2rem;
  margin: 1em 0;
  max-width: 100%;
}

.company-address li {
  display: flex;
  padding: 1rem 2rem 1rem 0;
  border-bottom: 1px solid #4a4a4a;
  flex-wrap: nowrap;
}
.company-address .label {
  width: 80px;
  margin: auto 3rem auto 1rem;
}
.company-address h2 {
  margin: 5rem auto 0 1rem;
  text-align: left;
}
.company-map {
  margin: 8rem auto 0;
  max-width: 600px;
}
.google-map {
  max-width: 100%;
}
.contact-form {
  text-align: left;
}
.contact-form p{
  margin-block-start: 0.5em;
  margin-block-end: 0.5em;
}
.form-inner {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  box-sizing: border-box;
  text-align: left;
}
.input-box {
  display: flex;
  align-items: center;
  margin-bottom: 1em;
  flex-wrap: wrap;
}
.label-area {
  display: inline-block;
  width: 170px;
  font-weight: bold;
}
.input-area {
  flex: 1;
}
.input-area input,
.input-area textarea {
  width: 100%;
  padding: 0.5em;
  font-size: 1rem;
  border: 1px solid #ccc; /* 境界線を設定 */
  border-radius: 5px;     /* 角を丸める（任意） */
}
@media screen and (max-width: 768px) {
  .bg-contact {
  display: none;
  }
  .bg-contact-sp {
  display: block;
  max-width: 100%;
  height: auto;
  width: auto;
  }
  .contact-page {
    padding: 1rem;
  }
  .company-add-map {
  display: block;
  }
  .company-map {
  margin: 2rem auto 5rem;
  max-width: 400px;
  }
  .google-map {
  max-width: 100%;
  }
  .input-box {
  display: block;
}
  .form-inner {
    margin: 5rem auto;
    padding: 0rem;
  }
  .label-area {
    width: -webkit-fill-available;
    text-align: left;
  }
  .company-address .label {
  width: 80px;
  min-width: 80px;
  margin: auto 1rem;
}
  .company-address h2 {
    margin: 5rem auto 0 1rem;
}
}

.post-content {
  margin: 8rem auto;
}
.privacy-text{
  margin: 8rem auto;
  max-width: 800px;
}









