/*
 Theme Name:   Generic Child
 Theme URI:    http://example.com/generic-child/
 Description:  Generic WordPress Theme Child
 Author:       allit
 Author URI:   http://office-totalit.com
 Template:     generic
 Version:      1.0.0
*/


@import url("../generic/style.css");
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200..900&display=swap');

/* あなたのカスタマイズスタイルをここに追加 */

@media (prefers-color-scheme: dark) {
    body, #container {
        background: #fff;
    }
}

body {
  background-image: url(img/bg.jpg);
  font-family: "Noto Sans JP", sans-serif;
  color: #000;
}

.entry-content ul li, .widget-container ul li, .comment-body ul li {list-style-type: disc !important;}
.entry-content ul, .widget-container ul, .comment-body ul,
.entry-content ol, .widget-container ol, .comment-body ol {
  list-style-type: disc !important;
  margin: 2em !important;
}

#container, #footer {
  padding: 30px 3%;
}

.main-img img {
  width: 100%;
}

#container {
  margin: 60px auto;
  max-width: 1200px;
}

.w-1100px {
  max-width: 1100px;
  margin: 0 auto;
}

/*GN*/

#menu a {
  color: #252525;
  font-size: 18px;
  font-weight: 600;
  font-family: "Noto Serif JP", serif;
}

#menu a:hover {
  color: #1f3774;
}

#menu .btn-orange a,
.btn-orange .wp-block-button__link {
  color: #fff;
  background: rgb(247,189,83);
  background: linear-gradient(180deg, rgba(247,189,83,1) 0%, rgba(247,189,83,1) 50%, rgba(246,182,63,1) 50%, rgba(246,182,63,1) 100%);
  padding: 13px; /* 内側のパディングを調整して境界線のスペースを確保 */
  width: 180px;
  text-align: center;
  position: relative; /* 擬似要素の位置を相対的にするために必要 */
  border: 2px solid #fff; /* 内側の白い境界線 */
  border-radius: 0;
}

#menu .btn-orange a::before,
.btn-orange .wp-block-button__link::before {
  content: url('img/mail.png');
  margin-right: 8px; /* アイコンとテキストの間にスペースを追加 */
  display: inline-block;
  vertical-align: text-top;
}

#menu .btn-orange a:hover,
.btn-orange .wp-block-button__link:hover {
  background: linear-gradient(180deg, rgba(255,153,0,1) 0%, rgba(255,153,0,1) 50%, rgba(255,140,0,1) 50%, rgba(255,140,0,1) 100%);
}

#menu .btn-orange a::after,
.btn-orange .wp-block-button__link::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid #f6b63f;
  pointer-events: none; /* 境界線の上のクリックを無効にする */
}

.btn-line .wp-block-button__link {
  color: #fff;
  background: rgb(26,192,26);
  background: linear-gradient(180deg, rgba(26,192,26,1) 0%, rgba(26,192,26,1) 50%, rgba(0,185,0,1) 50%, rgba(0,185,0,1) 100%);
  padding: 7px;
  width: 180px;
  text-align: center;
  position: relative;
  border: 2px solid #fff;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-line .wp-block-button__link::before {
  content: url('img/icon-line.png');
  margin-right: 8px;
  display: inline-block;
}

.btn-line .wp-block-button__link:hover {
  background: linear-gradient(180deg, rgba(19,179,19,1) 0%, rgba(19,179,19,1) 50%, rgba(0,170,0,1) 50%, rgba(0,170,0,1) 100%);
}

.btn-line .wp-block-button__link::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid #0fa00f;
  pointer-events: none;
}

.btn-arrow .wp-block-button__link {
  color: #1f3774;
  background: #fff;
  padding: 10px 20px;
  text-align: center;
  position: relative;
  border: 2px solid #1f3774;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-arrow .wp-block-button__link::before {
  content: url('img/arrow-navy.png');
  margin-right: 8px;
  display: inline-block;
  padding-bottom: 3px;
}

.btn-arrow .wp-block-button__link:hover {
  background: #cbdaff;
}

/*common*/

.page #content p, .single-post #content p {
  line-height: 1.5;
}

.d-box {
 border: 1px solid #1f3774;
 padding: 70px 30px;
 padding-top: 80px;
}

/*cta*/

.cta {
  background-image: url(img/banri.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
  display: flex;
  justify-content: center;
  padding: 6em 0;
}

.cta-t {
  font-family: "Noto Serif JP", serif;
  text-align: center;
  color: #1f3774;
  font-weight: 600;
  position: relative;
  padding: 10px 0; /* 上下の余白を追加 */
  display: inline-block; /* インラインブロックにして、斜線をテキストに近づける */
  font-size: 40px;
  line-height: 1.5em;
  color: #fff;
}

.page #content .cta-t {
  font-size: 40px;
  line-height: 1.5em;
  color: #fff;
}

.cta-btn {
  margin-top: 45px;
  display: flex;
  justify-content: center;
  gap: 65px;
}

.cta-btn .btn-orange,
.cta-btn .btn-line {
    border-radius: 5px;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.3);
}

.cta-btn .btn-orange .wp-block-button__link,
.cta-btn .btn-line .wp-block-button__link {
  font-size: 26px;
  width: 400px;
  padding: 28px 0;
}

.btn-orange .wp-block-button__link::before,
.btn-line .wp-block-button__link::before {
  padding-right: .5em;
}

/*footer*/

.f-cta .cta {
  border: none;
  background-color: transparent;
}

.f-cta .cta-t {
  display: none;
}

.f-logo {
  background: #1f3774;
  padding: 3em 0;
  text-align: center;
}

.f-logo a {
  text-align: center;
  width: 240px;
  margin: 0 auto;
  display: block;
}

.f-navi {
  display: flex;
  justify-content: center;
  background: #1f3774;
  font-family: "Noto Serif JP", serif;
}

.f-navi ul li {padding-top: 1em;}

#footer {padding: 0;}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.footer-menu li {margin: 0 10px;}

.footer-menu a {
  text-decoration: none;
  color: #fff; /* リンクの色 */
  font-size: 14px;
  font-weight: 500;
}

.footer-menu a:hover {
  color: #0073aa;
}

#copyright {
  background: #1f3774;
  border-top: 1px solid #63739e;
  color: #fff;
  font-size: 15px;
  padding: 15px 0;
}

h2 {
  color: #000;
  padding: 10px 20px;
  position: relative;
  font-size: 36px;
  font-family: "Noto Serif JP", serif;
}

.h-orange {
  background: #f6b63f;
  color: #fff;
}

.h-orange::before {
  border: 3px solid #f6b63f;
}

h2.orange::after {
  border: 1px solid #fff;
}

h3 {
  font-family: "Noto Serif JP", serif;
  border-bottom: 1px solid #a6a6a6;
  padding-bottom: 15px;
}

h4 {
  font-family: "Noto Serif JP", serif;
  color: #1f3774;
  background: #e6edfe;
  font-size: 18px;
  padding: 12px;
  border-bottom: 2px solid #1f3774;
}

/*header*/

#header {
  position: relative;
  background-color: #fff;
  padding: 20px 30px;
}

#logo-container {
  height: 90px;
  margin-bottom: 0;
}

/*固定ページ共通*/

.page h1, .category h1 {
  background: #1f3774;
  border: 4px double; #fff;
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-size: 2em;
  margin-top: 1em !important;
  padding: .5em;
}

.page h2 {
  background: #f3f6fe;
  font-size: 1.8em;
  padding: .5em;
  border-bottom: solid 3px #000;
}

.page-id-2 #site-title h1 {
  background: transparent;
  border: none;
  margin-top: 0;
  padding: 0;
}

.page-id-2 .page h2 {
  background: transparent;
  padding: 1em 0 .2em 0;
}

#container {border-top: 4px #1f4188 solid;}


/*home／トップ*/

.home #content {
  width: 100%;
  padding: 0;
}

.home #container {
  border: none;
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin-bottom: 0;
}

.home h2 {
  text-align: center;
  font-size: 36px;
  border: none;
}

.home strong {
  text-decoration: underline;
  color: #1f3774;
}

.page-id-2 .entry-title {
  display: none;
}

#news {
  background: url(img/bg.jpg);
  padding-bottom: 60px;
}

.news-inner {
  border-top: 4px #1f4188 solid;
  background: #fff;
  padding: 30px;
}

.h-news {
  position: relative;
}

.h-news .btn {
  position: absolute;
  top: 0;
  right: 10px;
  z-index: 111;
}

.h-news .btn-arrow .wp-block-button__link {
  background-color: #1f3774;
  color: #fff;
  font-size: 15px;
  padding: 5px 15px;
}

.h-news .btn-arrow .wp-block-button__link:hover {
  opacity: .7;
}

.h-news .btn-arrow .wp-block-button__link::before {
  content: none;
}

#news h2 {
    background: #fff;
    color: #000;
    position: relative;
    font-size: 24px;
    font-family: "Noto Serif JP", serif;
    border: none;
    text-align: left;
    padding: 0;
    margin: 0;
}

#news h2:after {
  content: none;
}

.entry-content .latest-posts-list {
    list-style-type: none;
    padding: 0;
    border-top: 1px solid #ddd;
    margin: 30px 0 0 0;
}

.entry-content .latest-posts-list li {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    margin: 0;
}

.entry-content .latest-posts-list li:last-child {
  border: none;
}

.latest-posts-list .post-date {
    color: #888;
    margin-right: 50px;
}

.latest-posts-list a {
    color: #000;
    text-decoration: none;
}

.latest-posts-list a:hover {
    text-decoration: underline;
}


.slash {
  color: #f5b540;
  font-size: 1.25em;
  padding: 0 10px;
}

.sub-t {
  font-size: 16px;
  font-family: "Noto Sans JP";
  color: #1f3774;
}


#navi {
  background-image: url(img/sun.png), url(img/navy-texture.jpg);
  background-repeat: no-repeat, no-repeat;
  background-position: calc(50% - 600px) top, center center;
  background-size: 218px, cover;
  padding: 70px;
}


.home h2::after {
  content: "";
  display: block;
  width: 200px;
  height: 2px;
  background-color: #2f3e75;
  margin: 45px auto 30px;
}

#value {
  background-image: url(img/bg-texture.jpg);
  background-repeat: repeat;
  background-position: center center;
  padding: 45px 0 90px;
}

.points {
  background: #fbf9f4;
  padding: 15px;
  border: 1px solid #f6b63f;  
}

.points h3 {
  color: #000;
  text-align: center;
  border-color: #f6b63f;
}

.page #content .points p,
.page #content #about p {
  font-size: 16px;
}

#about {
  background-image: url(img/bg-white.jpg);
  background-position: center center;
  background-repeat: repeat;
  padding: 45px 90px;
}

.img-desc {
  border: 1px solid #1f3774;
  background-color: #fff;
}

.img-desc div:first-child {
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  border: 15px solid #fff;
}

.img-desc div:nth-child(2) {padding: 30px 0 30px;}

/*ブログ一覧*/

.page-id-17 h2 a {
  color: #1f3774;
  display: block;
  text-decoration: none;
}

.page-id-17 h2 a:hover {
  color: #000;
}

.category h2 {padding: 0;}
.category h2 a, .single h1.entry-title a {
  background: #f3f6fe;
  color: #1f3774;
  display: block;
  text-decoration: none;
  font-size: 24px !important;
  padding: .5em;
  border-bottom: solid 3px #000;
  margin-top: 30px;
}

.post-edit-link {
  display: none;
}

.qna-layer {
  border: 1px solid #1f3774;
  margin: 1em 0;
}

.qna-qtxt {
  background-image: url(../../uploads/2025/02/q.png);
  background-repeat: no-repeat;
  background-position: center left;
  border-bottom: 2px solid #ececec;
  padding: 1em 1em 1em 3.6em;
  margin: 1em !important;
}

.qna-atxt {
  background: url('../../uploads/2025/02/a.png');
  background-repeat: no-repeat;
  background-position: top 20px left;
  padding: 1em 1em 1em 3.6em;
  margin: 1em !important;
}

.tb-contact {
  margin-top: 3em;
  margin-bottom: 0;
}
.tb-contact p {margin-top: 0;}
.tb-contact th {
  background: #f6f6f6;
  font-weight: 600;
  vertical-align: middle;
  text-align: left;
  width: 34%;
}

.tb-contact th strong {
  background: #1f3774;
  color: #fff;
  display: inline-block;
  font-size: 14px;
  float: right;
  padding: 0 10px;
  margin-left: 10px;
}

.tb-contact th, .tb-contact td {
  border: 1px solid #eee;
  padding: 1em;
}

.table-wrapper {
  overflow-x: auto;
  max-width: 100%;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  table-layout: fixed;
}

.custom-table th, .custom-table td {
  padding: 1em .5em;
  border: 1px solid #ddd;
  text-align: center;
  word-break: break-word;
  vertical-align: middle;
}

.custom-table thead {
  background-color: #f5f5f5;
  font-weight: bold;
}

.custom-table tbody tr:nth-child(even) {background-color: #f9f9f9;}

.custom-table th {background-color: #f0f0f0;}

select,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100% !important;
  margin: 0 !important;
}

input[type="submit"] {
  font-family: "Noto Sans CJK JP",
  "Helvetica Neue",
  Arial,
  "Hiragino Kaku Gothic ProN",
  "Hiragino Sans",
  Meiryo,
  sans-serif;
  background: #1f3774;
  border: 4px double #fff;
  margin-bottom: 40px;
  padding: 20px 80px;
}

.google-maps {
  position: relative;
  padding-bottom: 55%;
  height: 0;
  overflow: hidden;
}

.google-maps iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

#block-14 {
  border: 1px solid #eee;
  padding: 1em;
  margin: 0;
}

#block-14 ul li::marker {content: none !important;}

#block-14 ul li {
  color: #000;
  font-size: 16px;
  text-decoration: none;
  text-align: left;
  padding: .8em 1em;
  margin: 0;
  list-style: none !important;
}

#block-14 ul {
  margin: 0 !important;
  margin-top: 1em;
}

#block-14 h3 {
  border-top: none;
  border-bottom: 2px solid #1f4188;
  padding: .5em;
  text-align: left;
  margin-bottom: .5em;
}

#block-14 h3:before {display: none;}

.align-c {text-align: center;}
.mobile-img, .mobile-txt {display: none;}

.pagenavi-layer {
  width: 100%;
  margin: 0 auto 2em 0;
  overflow: hidden;
  text-align: center;
}

.wp-pagenavi {
  padding: 2em 0 1em 0;
  width: 100%;
  overflow: hidden;
}

.wp-pagenavi a, .wp-pagenavi span {
  background: #fff;
  border: 1px solid #1f3774;
  color: #1f3774;
  display: inline-block;
  padding: .8em 1.3em !important;
}

.wp-pagenavi a:hover, .wp-pagenavi span.current {
  background: #1f3774;
  color: #fff;
}

.wp-pagenavi span.current {border: none;}


@media(max-width: 1252px) {

  #logo-container {text-align: center;}
  #branding {
    position: unset;
    width: 100%;
  }

  #menu {
    float: none;
    display: flex;
    width: 100%;
    overflow: hidden;
    padding: 1em 0;
    align-items: center;
    justify-content: center;
  }

  #menu a {font-size: 15px;}
  #menu-item-22 a {margin-right: 0;}

}


@media(max-width: 1024px) {

  .cta, #news, #value {
    display: block;
    padding: 2em 3% !important;
  } 


}

@media(max-width: 940px) {

  #menu {display: none;}


}


@media(max-width:769px) {

  .page h1, .category h1 {font-size: 1.7em;}
  .home h2, .page h2 {font-size: 1.6em;}
  h3 {font-size: 1.4em;}
  h4 {font-size: 1.3em;}
  h5 {font-size: 1.2em;}
  h6 {font-size: 1.1em;}

  .tb-contact th, .tb-contact td {
    display: block;
    width: 100% !important;
  }

  #news h2 {padding: .5em 0 1em 0;}
  .h-news .btn {
    top: 10px;
    right: 0;
  }
  
  .news-inner {padding: 1em;}
  .entry-content .latest-posts-list {margin: 0 !important;}
  .entry-content .latest-posts-list li {display: block;}
  .latest-posts-list .post-date {
    margin-right: 5px;
    font-size: 14px;
  }

  .latest-posts-list a {
    display: block;
    padding: 5px 0;
  }

  #about {padding: 45px 3%;}
  #content {padding-bottom: 2em;}

  .img-desc div:nth-child(2) {padding: 0 0 30px 0;}

  .cta-btn .btn-orange, .cta-btn .btn-line {box-shadow: none;}
  .cta-btn {display: block !important;}
  .cta-btn .btn-orange .wp-block-button__link,
  .cta-btn .btn-line .wp-block-button__link {
    font-size: 1em;
    width: 100%;
    padding: 1em 0;
  }

  .btn-orange, .btn-line {
    display: block !important;
    margin: .8em 0 !important;
  }

  .cta-t, .page #content .cta-t {font-size: 1.3em;}

  .footer-menu {display: block;}
  .footer-menu li {margin: 0 !important;}

  .f-navi, .f-logo {
    display: block !important;
    overflow: hidden;
  }

  .f-navi ul li {
    border-bottom: 1px solid #63739e !important;
    float: left;
    padding: .5em 0 !important;
    width: 50%;
  }

  .f-navi ul li:first-child {width: 100%;}

  .img-desc div:first-child {border-bottom: none;}

  .desktop-img {display: none;}
  
  .mobile-img, .mobile-txt {
    display: block;
    width: 100%;
  }

  .table-wrapper {
    overflow-x: auto;
    max-width: 100%;
    margin-top: 1em;
  }

  .table-wrapper .custom-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    table-layout: fixed; 
    white-space: nowrap;
  }

  .custom-table th, .custom-table td {
    border: 1px solid #ddd;
    font-size: 13px;
    text-align: center;
    padding: 10px;
  }


  
}