/*
Theme Name: Astra Child Tokuya
Template: astra
Version: 1.0.0
*/

/* =========================
   Tokuya Corporate Site
   Child theme stylesheet
========================= */
.fv{
    position:relative;
}

.fv img{
    width:100%;
    display:block;
}

.fv-copy{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    text-align:center;
}

.fv-copy h1{
    font-size:32px;
    color:#000;
    line-height:1.5;
}
/* メインヘッダー */
.ast-above-header.ast-above-header-bar{
    background:#90C700;
}

/* メインメニュー */
.ast-builder-menu-1 .menu-item > a {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.ast-above-header.ast-above-header-bar a:hover{
    opacity:.8;
}

/* メインメニュー文字 */
.ast-builder-menu-1 .menu-item > a{
    color:#fff;
    font-weight:600;
}

.ast-builder-menu-1 .menu-item > a:hover{
    opacity:0.8;
}
/* 下ヘッダー（サブメニュー） */
.ast-below-header-bar {
  background: #fff;
  border-top: none;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: none;
}

/* サブメニュー文字 */
.ast-builder-menu-2 .menu-item > a,
.ast-below-header-bar .menu-link {
  color: #555;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* サブメニューホバー */
.ast-below-header-bar .menu-link:hover {
  color: #90C700;
}

/* サブメニュー区切り線 */
.ast-below-header-bar .menu-item{
    position:relative;
}

.ast-below-header-bar .menu-item:not(:last-child)::after{
    content:"";
    position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);
    width:1px;
    height:16px;
    background:#90C700;
}

/* PCのみ：メニュー区切り */
@media (min-width: 922px){

  .main-header-menu > .menu-item:not(:last-child)::after{
    content:"";
    position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);
    width:1px;
    height:16px;
    background:#90C700;
  }

  .main-header-menu > .menu-item > a{
    padding-left:20px;
    padding-right:20px;
  }

  /* 固定ヘッダー */
  #masthead{
    position:fixed !important;
    top:0;
    left:0;
    right:0;
    width:100%;
    z-index:99999;
  }

  body{
    padding-top:120px;
  }

}

/* 管理バー対策 */
body.admin-bar #masthead{
  top:32px;
}

/* SPではヘッダーを追従表示 */
@media (max-width:921px){
  #masthead{
    position:sticky !important;
    top:0;
    z-index:99999;
  }

  .sp-header-contact{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:38px;
    min-width:38px;
    height:38px;
    min-height:38px;
    padding:0;
    box-sizing:border-box;
    color:#fff !important;
    font-size:16px;
    font-weight:700;
    line-height:1;
    text-decoration:none !important;
    background:#0878d1;
    border-radius:999px;
  }

  .sp-header-contact i{
    line-height:1;
  }

  .sp-header-contact:hover,
  .sp-header-contact:focus{
    color:#fff !important;
    background:#0668b7;
  }

  body{
    padding-top:0;
  }
}

/* WordPress管理バー表示時のSP位置調整 */
@media (max-width:782px){
  body.admin-bar #masthead{
    top:46px;
  }
}


/* ページ全体の幅 */
/* 通常ページの本文幅 */
body:not(.home) .entry-content > * {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* TOPは広めに使う */
.home .entry-content > *:not(.alignfull):not(.contact-section) {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* 全幅セクションは制限しない */
.entry-content > .alignfull,
.entry-content > .contact-section {
  max-width: none;
}

/* 見出し共通 */
.entry-content h2{
  text-align:center;
  font-size:32px;
  font-weight:700;
  margin-top:30px;
  margin-bottom:40px;
}

.entry-content h2::after{
  content:"";
  display:block;
  width:48px;
  height:3px;
  background:#90C700;
  margin:16px auto 0;
}

/* H3：固定ページ用 */
.entry-content h3 {
  color: #333;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 48px;
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 4px solid #90C700;
}
/* TOPの4つの強み内H3は線なし */
.home .strength-section h3 {
  border-left: none;
  padding-left: 0;
  color: #333;
  font-size: 24px;
  margin-top: 0;
}
.entry-content p{
  margin-bottom:20px;
}


/* TOP用セクション */
.home .entry-content .wp-block-media-text {
  margin-bottom:56px;
  padding-bottom:56px;
  border-bottom:1px solid #e5e5e5;
}

.home .entry-content .wp-block-media-text__media img {
  width:100%;
  height:220px;
  object-fit:cover;
}
.section-heading{
  text-align:center;
  margin-bottom:48px;
}

.section-heading .section-label{
  color:#90C700;
  font-size:13px;
  font-weight:700;
  letter-spacing:.16em;
  margin-bottom:8px;
}

.entry-content .section-heading h2{
  font-size:20px;
  line-height:1.6;
  font-weight:700;
  margin-top:0 !important;
  margin-bottom:0 !important;
}

.section-heading h2 span{
  font-size:32px;
}

.entry-content .section-heading h2::after{
  content:none !important;
}

.section-heading::after{
  content:"";
  display:block;
  width:48px;
  height:3px;
  background:#90C700;
  margin:16px auto 0;
}
/* 英字ラベル */
.section-label{
  color:#90C700;
  font-size:14px;
  font-weight:700;
  letter-spacing:.12em;
  text-align:center;
  margin-bottom:8px;
}


/* 4つの強み */
.strength-section .wp-block-media-text{
  margin-bottom:56px;
  padding-bottom:56px;
  border-bottom:1px solid #e5e5e5;
}

.strength-section .wp-block-media-text:last-child{
  margin-bottom:0;
  padding-bottom:0;
  border-bottom:none;
}

.strength-section .wp-block-media-text__media img{
  width:100%;
  height:320px;
  object-fit:cover;
  display:block;
}

.strength-section .wp-block-media-text__content{
  padding:24px 36px;
}

.strength-num{
  color:#90C700;
  font-size:42px;
  font-weight:700;
  line-height:1;
  margin-bottom:16px;
}

.strength-section h3{
  color:#333;
  font-size:24px;
  margin-top:0;
  margin-bottom:16px;
}
.section-label{
  color:#90C700;
  font-size:13px;
  font-weight:700;
  letter-spacing:.16em;
  text-align:center;
  margin-bottom:8px;
}

.entry-content h2{
  text-align:center;
  font-size:30px;
  font-weight:700;
  margin-bottom:48px;
}

.entry-content h2::after{
  content:"";
  display:block;
  width:48px;
  height:3px;
  background:#90C700;
  margin:16px auto 0;
}

/* 会社概要テーブル */
.entry-content table,
.entry-content tr,
.entry-content th,
.entry-content td{
  border:none !important;
}

.entry-content th{
  color:#90C700;
  font-weight:700;
}

.entry-content td{
  padding:16px 0;
  border-bottom:1px solid #e5e5e5 !important;
}

.entry-content tr:last-child th,
.entry-content tr:last-child td{
  border-bottom:none;
}

/* =========================
   会社概要
========================= */

.company-profile-section {
  margin-bottom: 30px;
}

.company-profile-section,
.company-license-section {
  padding-top: 0;
  padding-bottom: 0;
}

/* グループ内のブロック間隔 */
.company-profile-section,
.company-license-section {
  gap: 40px;
}

/* スマートフォン */
@media (max-width: 767px) {
  .company-profile-section {
    margin-bottom: 30px;
  }

  .company-profile-section,
  .company-license-section {
    gap: 30px;
  }
}
/* Access */
iframe{
  width:100%;
  border:0;
  margin-top:20px;
}


/* ボタン */
.wp-block-button__link{
  background:#90C700;
  color:#fff;
  border-radius:999px;
  padding:14px 36px;
  font-weight:700;
}

.wp-block-button__link:hover{
  opacity:.85;
}


/* ニュース */
.news-list{
  max-width:800px;
  margin:0 auto;
  background:#fff;
  padding:8px 36px;
}

.news-list p{
  border-bottom:1px solid #e5e5e5;
  padding:16px 0;
  margin:0;
}

.news-list p:last-child{
  border-bottom:none;
}


/* CONTACT */
.contact-section{
  background:#90C700;
  color:#fff;
  text-align:center;
}

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

.contact-section h2::after{
  background:#fff;
}

.contact-section .wp-block-button__link{
  background:#fff;
  color:#90C700;
}
/* Contact Form 7 */
.contact-form {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.contact-form__field {
  margin-bottom: 24px;
}

.contact-form__field--postal {
  max-width: 320px;
}

.contact-form label,
.contact-form legend {
  display: block;
  color: #333;
  font-weight: 700;
  line-height: 1.6;
}

.contact-form .wpcf7-form-control-wrap {
  display: block;
  margin-top: 8px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  color: #333;
  background: #fff;
  border: 1px solid #cfd5dc;
  border-radius: 6px;
  font: inherit;
}

.contact-form select {
  min-height: 48px;
}

.contact-form textarea {
  min-height: 200px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #90c700;
  outline: none;
  box-shadow: 0 0 0 3px rgba(144, 199, 0, 0.16);
}

.form-required,
.form-optional {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 11px;
  line-height: 1.4;
  vertical-align: middle;
}

.form-required {
  color: #fff;
  background: #90c700;
}

.form-optional {
  color: #66717d;
  background: #edf0f2;
}

.contact-form__choice {
  padding: 0;
  border: 0;
}

.contact-form__choice .wpcf7-list-item {
  margin: 8px 24px 0 0;
}

.contact-form__choice input,
.contact-form__acceptance input {
  width: auto;
  margin-right: 6px;
}

.contact-form__acceptance {
  margin: 4px 0 28px;
}

.contact-form__acceptance a {
  color: #689800;
  text-decoration: underline;
}

.contact-form__submit {
  text-align: center;
}

.contact-form input[type="submit"] {
  min-width: 220px;
  padding: 14px 36px;
  color: #fff;
  background: #1d2b43;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.contact-form input[type="submit"]:hover {
  opacity: 0.85;
}

.contact-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 13px;
}

.contact-form + .wpcf7-response-output,
.wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 12px 16px;
  border-radius: 6px;
}

@media (max-width: 767px) {
  .contact-form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form__field,
  .contact-form__field--postal {
    max-width: none;
    margin-bottom: 20px;
  }

  .contact-form textarea {
    min-height: 180px;
  }

  .contact-form input[type="submit"] {
    width: 100%;
    max-width: 280px;
  }
}

/* SP調整 */
@media(max-width:921px){

  .entry-content{
    max-width:100%;
  }

  .entry-content h2{
    font-size:26px;
    margin-top:56px;
    margin-bottom:32px;
  }

  .home-section{
    padding:60px 20px;
  }

  .strength-section .wp-block-media-text{
    margin-bottom:44px;
    padding-bottom:44px;
  }

  .strength-section .wp-block-media-text__media img{
    height:220px;
  }

  .strength-section .wp-block-media-text__content{
    padding:24px 0 0;
  }

  .strength-num{
    font-size:34px;
  }

  .strength-section h3{
    font-size:21px;
  }

  .news-list{
    padding:0 20px;
  }

}
/* CONTACTが内側グループに入っていても全幅にする */
.contact-section {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}
/* =========================
   NEWS / お知らせ
========================= */

.news-section {
  padding: 72px 24px;
  background: #f7f7f7;
  box-sizing: border-box;
}

.news-section > * {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.news-section .wp-block-query {
  max-width: 800px;
  margin: 0 auto;
}

.news-section .wp-block-post-template {
  display: block;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
  list-style: none;
  background: #fff;
  border: 1px solid #e7ebdf;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(23, 35, 60, 0.05);
  box-sizing: border-box;
}

.news-section .wp-block-post {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 20px;
  grid-template-areas: "meta title arrow";
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid #e5e5e5;
}

.news-section .wp-block-post > .wp-block-group {
  margin: 0;
  padding: 0;
}

.news-section .wp-block-post > .wp-block-group:first-child {
  grid-area: meta;
  padding: 0 !important;
  border: none !important;
}

.news-section .wp-block-post > .wp-block-group:first-child > .wp-block-group {
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0 !important;
  border: none !important;
}

.news-section .wp-block-post > .wp-block-group:nth-child(2) {
  grid-area: title;
  gap: 0;
}

.news-section .wp-block-post:last-child {
  border-bottom: none;
}

.news-section .wp-block-post::after {
  content: "›";
  grid-area: arrow;
  color: #90c700;
  font-size: 24px;
  line-height: 1;
  text-align: right;
  align-self: center;
}

/* 余計なカテゴリー表示を非表示 */
.news-section .wp-block-post-terms {
  display: none;
}

/* NEXTなどのページネーションを非表示 */
.news-section .wp-block-query-pagination {
  display: none;
}

/* 装飾マーク */
.news-section .wp-block-post p.wp-block-paragraph {
  margin: 0;
  color: #90c700;
  font-size: 12px;
  line-height: 1;
  text-align: center;
}

/* 日付 */
.news-section .wp-block-post-date {
  margin: 0;
  color: #90c700;
  font-size: 14px;
  font-weight: 700;
}

/* 投稿タイトル */
.news-section .wp-block-post-title {
  margin: 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  text-align: left;
}

/* 投稿タイトルのH2下線を消す */
.news-section .wp-block-post-title::after {
  content: none;
}

.news-section .wp-block-post-title a {
  color: #333;
  text-decoration: none;
}

.news-section .wp-block-post-title a:hover {
  color: #90C700;
}

@media (max-width: 767px) {
  .news-section {
    padding: 48px 20px;
  }

  .news-section .wp-block-post-template {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .news-section .wp-block-post {
    grid-template-columns: minmax(0, 1fr) 18px;
    grid-template-areas:
      "meta arrow"
      "title arrow";
    gap: 6px 8px;
    padding: 18px 0;
  }

  .news-section .wp-block-post-date {
    font-size: 12px;
  }

  .news-section .wp-block-post-title {
    font-size: 15px;
    line-height: 1.6;
  }

  .news-section .wp-block-post::after {
    font-size: 22px;
  }

}
/* 共通CONTACT */
.contact-tel-box p{
  margin-bottom:0;
}

.contact-tel{
  font-size:32px;
  font-weight:700;
  line-height:1.3;
  margin:8px 0 4px !important;
}

.contact-time{
  font-size:14px;
  line-height:1.6;
  margin:0 !important;
}
.contact-free-dial{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  font-size:32px;
  font-weight:700;
  line-height:1.3;
  color:#fff;
}

.contact-free-dial-icon{
  width:42px;
  height:auto;
  display:block;
}

@media(max-width:767px){
  .contact-free-dial{
    font-size:26px;
    gap:10px;
  }

  .contact-free-dial-icon{
    width:36px;
  }
}
/* 4つの強み：アイコン */
.strength-icon{
  color:#90C700;
  font-size:22px;
  margin-right:10px;
  vertical-align:middle;
}

/* SPではアイコンを上に */
@media(max-width:767px){
  .strength-icon{
    display:inline-block;
    font-size:22px;
    margin:0 8px 0 0;
    line-height:1;
    vertical-align:-0.08em;
  }


  .home .strength-section h3{
    text-align:left;
  }
}
@media (max-width: 767px) {
  .home .home-intro-section {
    padding: 48px 20px;
  }

  .home .strength-section {
    padding: 48px 20px;
  }
#ast-hf-mobile-menu .current-menu-item > .menu-link {
  color: #17233C;
  background-color: rgba(144, 199, 0, 0.12);
}
/* SP時の画像サイズ・コピー幅・文字サイズ */
  .fv img {
    height: 320px;
    object-fit: cover;
  }

  .fv-copy {
    width: min(86%, 360px);
    padding: 14px 16px;
    box-sizing: border-box;
  }

  .fv-copy h1 {
    font-size: 22px;
    line-height: 1.6;
    letter-spacing: 0.01em;
  }
}
@media (max-width: 767px) {
  .fv-copy {
    width: calc(100% - 48px);
  }

  .fv-copy h1 {
    margin: 0;
    padding: 12px 16px;
    color: #17233c;
    font-size: 20px;
    line-height: 1.45;
    background: rgba(255, 255, 255, 0.78);
    border-radius: 4px;
  }
}
/* ホームのデザイン調整 */
@media (max-width: 767px) {
  .home .strength-section .wp-block-media-text,
  .home .strength-section .wp-block-media-text:last-child {
	position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 0px;
    background: #fff;
    border: 1px solid #e3e9d8;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(23, 35, 60, 0.06);
  }

  .home .strength-section .wp-block-media-text:last-child {
    margin-bottom: 0;
  }

  .home .strength-section .wp-block-media-text__media img {
    border-radius: 10px 10px 0 0;
  }

  .home .strength-section .wp-block-media-text__content,
  .home .strength-section .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
    padding: 20px;
  }

  .home .strength-section h3 {
    position: absolute;
    z-index: 1;
    top: 220px;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    transform: translateY(-100%);
    margin: 0;
    padding: 48px 20px 16px;
    color: #fff;
    font-size: 18px;
    line-height: 1.5;
    text-align: left;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    background: linear-gradient(
      to bottom,
      rgba(23, 35, 60, 0),
      rgba(23, 35, 60, 0.88)
    );
  }

  .home .strength-section p {
    font-size: 15px;
    line-height: 1.8;
  }
}
@media (min-width: 922px) {
  .home .strength-section .wp-block-media-text__content,
  .home .strength-section .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
    padding: 24px 36px;
  }
}
/* 問合せフォームのデザイン調整 */
.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 24px;
}

.contact-form-field--full {
  grid-column: 1 / -1;
}

.contact-form-field label,
.contact-form-field legend {
  font-weight: 700;
}

.contact-form-field input,
.contact-form-field select,
.contact-form-field textarea {
  margin-top: 8px;
}

.contact-form-field fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-form-field .wpcf7-list-item:first-child {
  margin-left: 0;
}

.form-required,
.form-optional {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 5px;
  border-radius: 2px;
  font-size: 11px;
  line-height: 1.2;
}

.form-required {
  background: #90C700;
  color: #fff;
}

.form-optional {
  background: #eef1f3;
  color: #66707a;
}

.contact-form-consent,
.contact-form-submit {
  text-align: center;
}

.contact-form-submit input[type="submit"] {
  min-width: 240px;
  border-radius: 999px;
  background: #172640;
  font-weight: 700;
}

@media(max-width:921px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-form-field--full {
    grid-column: auto;
  }
}
/* お問い合わせページ
 * FV、リード文、フォームの左右を揃え、各入力欄は割り当てられた
 * カラムいっぱいに表示する。フォーム側の2カラム指定はそのまま活かす。
 */
body:not(.home) .entry-content:has(.wpcf7) > .wp-block-image,
body:not(.home) .entry-content:has(.wpcf7) > p,
body:not(.home) .entry-content:has(.wpcf7) > .wpcf7 {
  width: 100%;
  max-width: 760px;
  box-sizing: border-box;
}

body:not(.home) .entry-content:has(.wpcf7) > .wp-block-image img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.wpcf7 input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
/* 個別投稿：SP余白・タイトル調整 */
@media (max-width: 767px) {
  .single-post #primary {
    margin: 0 !important;
    padding: 16px 0 24px !important;
  }

  .single-post #primary article.ast-article-single {
    padding: 24px 16px !important;
  }

  .single-post .entry-title {
    font-size: 24px;
    line-height: 1.4;
  }
}
/* 各セクション間の余白を縮める */
.company-section,
.license-section {
  padding-top: 30px;
  padding-bottom: 30px;
}

/* 見出しと内容の距離 */
.company-section h2,
.license-section h2 {
  margin-bottom: 45px;
}

/* 表を読みやすくする */
.company-section table,
.license-section table {
  width: 100%;
  font-size: 15px;
  line-height: 1.8;
  color: #405066;
}
/* 下層固定ページ：SPのみAstraの左右パディングを解除 */
@media (max-width: 767px) {
  body.page:not(.home) .entry-content > .wp-block-group,
  body.page:not(.home) .entry-content > .wp-block-cover,
  body.page:not(.home) .entry-content > .wp-block-columns {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
}