/*
Theme Name: 株式会社林田製作所専用子テーマ
Theme URI: https://hayashida-bookmobile.com/
Template: arkhe
Author: LOOS,Inc.
Author URI: https://hayashida-bookmobile.com/
Description:
Tags:
Version: 1.10.0.1756895903
Updated:

*/

h1,
h2,
h3,
h4,
h5,
li,
p {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 600 !important;
}

li,
p {
  font-weight: 500;
}

/* ---------- トップヘッダー ---------- */
@media (min-width: 1000px) {
  [data-sidebar="on"] .l-main {
    background-color: #fff;
    padding: 20px;
  }
}

/* ---------- トップヘッダー ---------- */
/*[data-scrolled="false"] .l-header {
  background: transparent;
}
div#n2-ss-2 .n2-ss-slider-1 {
  margin-top: -15px;
}
.n2-ss-slider .n2-ow{
  margin-top: -15px;
}
*/

.top_newsbox1.wp-block-snow-monkey-blocks-box {
  border-top: 8px solid #FFF462;
}

/* ---------- ページヘッダー ---------- */
.c-pageTitle__main {
  color: #333;
}

@media (min-width: 1000px) {
  ul.c-gnav {
    width: 97% !important;
  }
}

@media (min-width: 768px) {
  a.contact_button {
    border-radius: 50px !important;
  }

  .c-pageTitle__main {
    text-align: justify;
  }

  .p-topArea {
    margin-top: -35px;
  }
}

/* ---------- スマホ メインメニュー ---------- */
[data-btns="r-l"] .l-header__body {
  grid-template-columns: var(--ark-searchW) calc(15% - var(--ark-searchW)) 70% calc(15% - var(--ark-drawerW)) var(--ark-drawerW);
}

.p-drawer {
  background: #0c4da2e6;
}

.c-drawerNav {
  border: 0px !important;
}

.c-drawerNav .menu-item {
  border-bottom: 1px dotted #0b2e5c;
}

/* ---------- メインメニュー ---------- */
h2.smb-section__title {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333333;
}

h2.smb-section__title::before,
h2.smb-section__title::after {
  width: 3px;
  height: 40px;
  background-color: #333;
  content: '';
}

h2.smb-section__title::before {
  transform: rotate(-35deg);
  margin-right: 30px;
}

h2.smb-section__title::after {
  transform: rotate(35deg);
  margin-left: 30px;
}

h3.wp-block-heading {
  position: relative;
  padding: 0.5em 1em 0.5em;
  background: #E7F2F3;
}

h3.wp-block-heading::before {
  position: absolute;
  content: '';
  top: 100%;
  left: 0;
  border: none;
  border-bottom: solid 15px transparent;
  border-right: solid 20px rgb(149, 158, 155);
}

h2.h2_title1 {
  position: relative;
  background: #dfefff;
  box-shadow: 0px 0px 0px 5px #dfefff;
  border: dashed 2px white;
  padding: 0.2em 0.5em;
  color: #454545;
}

h2.h2_title1:after {
  position: absolute;
  content: '';
  left: -7px;
  top: -7px;
  border-width: 0 0 15px 15px;
  border-style: solid;
  border-color: #fff #fff #a8d4ff;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15);
}

/* ---------- メインメニュー ---------- */

/* 2段表示を維持しつつ、メニューを等幅表示 */
@media (min-width: 1000px) {

  /* ヘッダー全体を2段表示にする */
  .l-header__body {
    display: flex;
    flex-direction: column;
    /* 縦方向にレイアウトを維持 */
    align-items: center;
  }

  /* 1段目のロゴ部分 */
  .l-header__center {
    max-width: 1200px;
    /* 固定幅1200px */
    width: 100%;
    text-align: left;
    /* 左揃え */
    margin: 0 auto;
    /* 中央揃え */
  }

  /* 2段目のメニュー部分 */
  .l-header__right {
    max-width: 1200px;
    /* 固定幅1200px */
    width: 100%;
    text-align: right;
    /* 右揃えの要素を保持 */
    margin: 0 auto;
    /* 中央揃え */
    background-color: #fff462;
    padding-top: 10px;
    margin-top: 5px;
    border-radius: 30px;
    margin-bottom: -30px;
  }

  /* ナビゲーションのラップ（中央揃え、固定幅1200px） */
  .c-gnavWrap {
    width: 1200px;
    /* 固定幅1200px */
    margin: 0 auto;
    /* 中央揃え */
  }

  /* ナビゲーションメニューの等幅表示 */
  .c-gnav {
    display: flex;
    justify-content: space-between;
    /* 各メニューを等間隔に配置 */
    padding: 0;
    margin: 0;
    list-style: none;
    /* リストのデフォルトスタイルを削除 */
    width: 100%;
    /* ナビゲーション全体を100%幅に */
  }

  /* 各メニューアイテムの等幅設定 */
  .c-gnav__li {
    flex: 1;
    /* メニュー項目を等幅に表示 */
    text-align: center;
    /* テキストを中央に配置 */
  }

  /* メニューリンクのスタイル */
  .c-gnav__a {
    display: block;
    padding: 10px 0;
    /* クリックしやすいパディング */
  }

  /* l-header__center の中で logo と header_info を横並びに */
  .l-header__center {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* 横幅全体を使用 */
  }

  .header_info {
    width: 515px;
    /* header_info の幅を 700px に設定 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 20px;
    /* ロゴとのスペースを確保 */
  }

  .tel_info {
    display: flex;
    flex-direction: column;
    margin-right: 15px;
    /* TEL番号と営業時間を縦並びに */
  }

  .tel_number {
    font-size: 2.05rem;
    /* TEL番号を適度に大きく */
    background-color: transparent;
    /* 背景は無色 */
    font-weight: 600 !important;
    color: #00008b;
    line-height: 120%;

  }

  .tel_number .svg-inline--fa {
    margin-right: 5px;
  }

  .business_hours {
    font-size: 0.7rem;
    /* 営業時間を小さく表示 */
  }

  /*.contact_button {
        background-color: #ea5550;
        color: #fff;
        padding: 10px 20px;
        text-decoration: none;
        border-radius: 5px;
        font-size: 1.2rem;
        display: inline-block;
        font-weight: 500 !important;
    }
    .contact_button:hover {
        background-color: #e96560;
    }*/

  a.contact_button {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: auto;
    max-width: 280px;
    padding: 10px 35px;
    font-family: "Noto Sans Japanese";
    text-decoration: none;
    color: #00008b;
    line-height: 1.8;
    transition: 0.3s ease-in-out;
    font-weight: 500;
    border: 1px solid #00008b;
    font-weight: 700;
    background-color: #ffffffa6;
  }

  a.contact_button:after {
    content: "";
    position: absolute;
    top: 50%;
    bottom: 0;
    right: 1.4rem;
    font-size: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.3s;
    width: 6px;
    height: 6px;
    border-top: solid 2px currentColor;
    border-right: solid 2px currentColor;
    transform: translateY(-50%) rotate(45deg);
  }

  a.contact_button:hover {
    background: #ffa500;
    color: #FFF;
    border: 1px solid #ff8c00;
  }

  a.contact_button:hover:after {
    right: 1.1rem;
  }

  /*svg:not(:host).svg-inline--fa,
    svg:not(:root).svg-inline--fa {
        margin-right: 5px;
    }*/

  ul.c-gnav {
    padding-bottom: 8px;
  }

  ul.c-gnav li {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  /*
    ul.c-gnav li:last-child {
        border-right: 1px solid #ddd;
    }*/

  /*.c-gnav__li>a.c-gnav__a:first-child {
    border-left: 1px solid #01439A;
  }*/

  .c-gnav__li>.c-gnav__a {
    padding: 0px 12px !important;
  }

  /*.menu_last a {
    border-right: 1px solid #01439A;
  }*/
}

@media (min-width: 1000px) {
  ul.c-gnav li {
    /*    font-family: 'ヒラギノ明朝 Pro W3', 'Hiragino Mincho Pro', '游明朝', 'Yu Mincho', '游明朝体', 'YuMincho', 'ＭＳ Ｐ明朝', 'MS PMincho', serif;*/
    font-size: 1rem !important;
    font-weight: 500;
  }

  /*ul.c-gnav li {
        position: relative;
    }

    ul.c-gnav li::before {
        content: '';
        position: absolute;
        top: 7px;
        left: 20px;
        width: 1px;
        height: 70%;
        background-color: #1E7200;
        transform: rotate(45deg);
        transform-origin: top left;
        pointer-events: none;
    }

    ul.c-gnav li:last-child::after {
        content: '';
        position: absolute;
        top: 7px;
        right: 0;
        width: 1px;
        height: 70%;
        background-color: transparent;
        border-right: 1px solid #1E7200;
        transform: rotate(45deg);
        transform-origin: top right;
    }
    .c-gnav .__mainText {
        font-size: inherit;
        font-size: 1rem;
        font-weight: 700;
    }*/
}


@media (max-width: 999px) {
  .header_info {
    display: none;
  }
}

@media (min-width: 768px) {
  .chukai_menu .__mainText {
    font-size: 0.8rem !important;
    margin-top: -3px;
  }

  .chukai_menu .__subText {
    font-size: 0.5rem;
  }
}

/* ---------- スマホTEL ---------- */
@media (min-width: 751px) {
  a[href*="tel:"] {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
    color: #000;
  }
}

.mainimg_box1 strong {
  font-size: 120%;
  color: #FAEE00;
}

.mainimg_box2 strong {
  color: #FAEE00;
}

/* ---------- トップ ---------- */
.hysd_sec1 .smb-section__background {
  border-radius: 50px !important;
}

.hysd_sec1 .wp-block-media-text__media img {
  border: 5px solid #fff;
  border-radius: 20px;
}

.hysd_sec1 h3 {
  font-size: 1.8rem !important;
}

.chuisec1 .wp-image-2528 {
  vertical-align: middle;
}

ul.siyou_list1 {
  display: flex;
  flex-wrap: wrap;
}

ul.siyou_list1 li {
  width: 50%;
}

@media (max-width: 680px) {
  .n2-ss-slider .n2-ss-layer-with-background {
    font-size: 0.5rem !important;
  }
}

/* ---------- 固定ページ ---------- */

.company_table1 .smb-information__item__label em {
  width: 100%;
  border-bottom: 1px dotted #555;
}

@media (min-width: 768px) {
  .smb-step__item__title>span {
    font-size: 1.6rem;
  }
}

@media (max-width: 680px) {
  .smb-section__background-text__text {
    font-size: 4rem;
    top: -30px;
  }
}


/* ---------- アーカイブ ---------- */

body.category-1 .p-postList.-type-card .p-postList__thumb {
  width: 100%;
  display: none;
}

body.category-1 .p-postList .p-postList__title {
  border-left: 15px solid #009CD3;
  padding-left: 10px;
}

/* ---------- ボタン ---------- */
a.btn_b1 {
  display: block;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  width: 240px;
  margin: auto;
  padding: 1rem 2rem;
  font-weight: bold;
  background-image: linear-gradient(to right, #27acd9 0%, #b4e12b 100%);
  border-radius: 100vh;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
  -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
  transition: 0.5s;
}

a.btn_b1:hover {
  color: #fff;
  background-image: linear-gradient(to left, #27acd9 0%, #b4e12b 100%);
}

.btn_p1 {
  position: relative;
  margin-top: -15px !important;
  z-index: 100;
}

/* ---------- NEWSマークがつく記事一覧 ---------- */
/* 記事のリスト全体のスタイル */
.custom-post-list {
  list-style-type: none;
  padding: 0;
  margin: 20px 0;
}

.custom-post-list li {
  margin: .9em 0;
}

/* 各記事のスタイル */
.custom-post-list .post-item {
  display: flex;
  justify-content: flex-start;
  /* 項目を左揃えに */
  align-items: flex-start;
  /* 項目を上揃えに */
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
}

/* 日付のスタイル */
.custom-post-list .post-date {
  font-size: 0.9em;
  color: #666;
  margin-right: 10px;
  min-width: 100px;
  align-self: center;
}

/* コンテンツ部分のスタイル */
.custom-post-list .post-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* 記事タイトルのリンクスタイル */
.custom-post-list .post-title a {
  font-size: 1em;
  text-decoration: none;
  color: #333;
  transition: color 0.2s;
}

.custom-post-list .post-title a:hover {
  color: #0073aa;
}

/* NEWマークのスタイル */
.custom-post-list .new-label {
  background-color: red;
  color: #fff;
  padding: 2px 6px;
  border-radius: 1px;
  font-size: 0.6em;
  margin-left: 10px;
  align-self: center;
  /* NEWマークを中央揃え */
  vertical-align: 2px;
}

/* 詳細部分のスタイル */
.custom-post-list .post-details {
  font-size: 0.85em;
  color: #999;
  margin-top: 5px;
}

@media (max-width: 680px) {
  .custom-post-list .post-date {
    display: block;
  }

  .custom-post-list li {
    border-bottom: 1px dotted #999;
    padding-bottom: 5px;
  }
}

/* ---------- サイド ---------- */

#sidebar {
  background-color: #f8f8f8;
  padding: 30px 20px;
}

#sidebar h2 {
  background-color: #fff;
  padding: 10px;
  border-left: 5px solid #9b9645;
  font-size: 1rem !important;
  font-weight: normal;
  box-shadow: 2px 2px 4px #eee;
}

.wp-block-search__label {
  background-color: #fff;
  padding: 10px;
  border-left: 5px solid #9b9645;
  font-size: 1rem !important;
  width: 100%;
  display: block;
  margin-bottom: 10px;
  box-shadow: 2px 2px 4px #eee;
}

@media (max-width: 680px) {
  #sidebar {
    padding: 15px;
  }
}

/* ---------- 制作過程 ---------- */
.step_box1 h3 {
  position: relative;
  padding-left: 25px;
  margin-bottom: 30px;
}

.step_box1 h3:before {
  position: absolute;
  content: '';
  bottom: -3px;
  left: 0;
  width: 0;
  height: 0;
  border: none;
  border-left: solid 15px transparent;
  border-bottom: solid 15px #3E85CD;
}

.step_box1 h3:after {
  position: absolute;
  content: '';
  bottom: -3px;
  left: 10px;
  width: 100%;
  border-bottom: solid 3px #3E85CD;
}

.smb-step__item__number {
  --_font-size-level: 2;
}

.smb-step__item__number {
  background-color: #3E85CD;
}

@media (min-width: 768px) {
  .smb-step__item__title>span {
    margin-top: -15px;
  }

  .step_box2 {
    padding: 40px;
  }
}

/* ---------- HISTORY BOOK ---------- */

.hb_box1 .wp-block-image.is-style-img-frame img {
  margin-top: -38px;
  width: 95%;
  float: right;
}

/* ---------- イラスト ---------- */

.illust_sec1 .smb-box__background {
  border: var(--smb-box--border-width) var(--smb-box--border-style) #c5c5c5;
  border-radius: 10px;
}

.illust_sec1 .smb-box {
  padding: 10px !important;
}

.illustrations_box2{
   padding: 30px !important;
}

/* ---------- 関連記事 ---------- */

h2.c-bottomSection__title {
  background-color: #F4F6FB;
  font-size: 1rem;
  padding: 10px 20px;
}

/* ---------- スライドショー ---------- */
.custom-slideshow {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.custom-slideshow-track {
  display: flex;
  transition: transform 0.5s ease;
}

.custom-slideshow .slide {
  flex: 0 0 auto;
}

.custom-slideshow img {
  width: 100%;
  height: auto;
  display: block;
}

.custom-slideshow .slide {
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  /* 横16:縦9 の比率で揃える */
  overflow: hidden;
  margin-right: 8px;
  /* 画像間の隙間 */
}

.custom-slideshow .slide:last-child {
  margin-right: 0;
  /* 最後だけ余白なし */
}

.custom-slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 高さ揃えと組み合わせ可 */
  display: block;
}

/* ------------ AD ------------ */
.bfb_closed {
  display: none !important;
}

[id^="bfb_content_"].bfb_view_pc.bfb_imgBanner.bfb_view_pc img {
  border: 5px solid #FFF462;
  border-radius: 10px;
}

[id^="bfb_content_"].bfb_view_pc.bfb_imgBanner.bfb_view_pc img {
  max-width: 330px !important;
}

.wp-block-spacer {
  margin: 0px !important;
}

/* ------------ プライバシーポリシー ------------ */
.pp_1 {
  padding: 20px 0;
}

.pp_sec1 {
  background-color: #fff;
  padding: 40px;
}

.pp_sec1 h2 {
  font-size: 1.2rem;
  margin: 20px 0 10px;
}

/* ------------ 問い合わせフォーム ------------ */
.contact_sec1 .smb-section__lede-wrapper,
.process_sec1 .smb-section__lede-wrapper {
  width: 360px;
  margin-top: 10px !important;
  margin: auto;
  background-color: #E7F2F3;
  padding: 5px;
}

.inframe {
  width: 100%;
  background-color: #FFFFFF;
  height: 200px;
  overflow: auto;
  overflow-y: scroll;
  overflow-x: hidden;
  background-color: #f9f9f9;
  padding: 20px;
}

.inframe h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  border-bottom: 1px dotted #555;
}

.inframe p {
  font-size: 0.9rem;
}

.if_1 {
  margin-top: 15px;
}

.wpcf7 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0px solid #ddd !important;
  background: #fff !important;
  font-size: auto !important;
}

.wpcf7 form {
  margin: 0 !important;
}

.textbox1 input.wpcf7-form-control.wpcf7-text {
  width: 240px;
  margin-left: 5px;
}

#form1 {
  overflow: hidden;
}

#form1 table {
  background-color: #fff;
}

#form1 th,
#form1 td {
  padding: 20px !important;
}

#form1 th {
  position: relative;
  width: 25%;
  text-align: left;
  font-weight: normal;
  vertical-align: middle;
}

div.wpcf7 .wpcf7-spinner {
  display: block;
}

#form1 .form_1 {
  background-color: #f39800;
  padding: 10px;
  color: #fff;
  text-align: center !important;
  margin-bottom: 20px;
}

#form1 .color-botton01 {
  width: 220px;
  margin: 20px auto;
  padding: 15px 5px;
  background-color: #f39800;
  text-align: center;
  border-radius: 30px;
}

#form1 .color-botton01 a {
  color: #fff;
}

.wpcf7 {
  margin: 0px auto !important;
  padding: 0px !important;
  padding-bottom: 0px !important;
}

span.wpcf7-list-item {
  display: block !important;
  margin: 0 0 0 1em;
  width: 100%;
}

.must {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 40px;
  height: 20px;
  margin-top: -10px;
  padding: 0;
  background: #DD0000;
  text-align: center;
  line-height: 20px;
  color: #FFF;
  font-size: 12px;
  font-weight: normal;
}

.free {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 40px;
  height: 20px;
  margin-top: -10px;
  padding: 0;
  background: #999;
  text-align: center;
  line-height: 20px;
  color: #FFF;
  font-size: 12px;
  font-weight: normal;
}

.free1 {
  width: 40px;
  padding: 2px 7px;
  background: #999;
  text-align: center;
  color: #FFF;
  font-size: 12px;
  margin: 0 5px;
}

input.wpcf7-form-control.wpcf7-text,
textarea.wpcf7-form-control.wpcf7-textarea {
  width: 100%;
  padding: 8px 15px;
  margin-right: 10px;
  margin-top: 10px;
  border: 1px solid #d0d5d8;
  border-radius: 3px;
}

textarea.wpcf7-form-control.wpcf7-textarea {
  height: 200px;
}

input.wpcf7-submit {
  padding: 10px 80px;
  background: #ff7b00;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.formb1 {
  padding: 30px;
  margin-top: 20px;
  font-size: 0.9rem;
  background-color: #f4faff;
  text-align: center;
}

.formb2,
.formb3 {
  margin-top: 10px;
  text-align: center;
}

span.wpcf7-not-valid-tip,
.wpcf7-response-output.wpcf7-validation-errors {
  color: red;
  font-weight: 600;
}

.wpcf7-form-control.wpcf7c-btn-confirm {
  width: 350px;
  padding: 15px !important;
  color: #fff;
  font-size: 30px !important;
  font-weight: 600;
  border-radius: 50px !important;
  margin-top: 30px !important;
  background: #ffc86a !important;
  background: -moz-linear-gradient(top, #ffc86a 0%, #f39800 100%) !important;
  background: -webkit-linear-gradient(top, #ffc86a 0%, #f39800 100%) !important;
  background: linear-gradient(to bottom, #ffc86a 0%, #f39800 100%) !important;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffc86a', endColorstr='#f39800', GradientType=0) !important;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: #ff0000;
  background-color: #ff0000;
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 1.4rem;
}

@media (min-width: 768px) {
  .wpcf7 {
    width: 100% !important;
  }

  .request_po1 {
    text-align: center;
  }
}

@media only screen and (max-width:480px) {
  #form1 {
    margin: 0 -10px;
  }

  #form1 th,
  #form1 td {
    width: 100% !important;
    display: block;
    border-top: none;
  }

  #form1 tr:first-child th {
    border-top: 1px solid #ddd;
  }

  .kojin_box {
    padding: 10px !important;
  }
}