/*
Theme Name: Nano Child
Theme URI: 
Description: NANOの子テーマ
Author: 
Template: nano_tcd065
Version: 1.0
*/

/* カスタムCSSの追加 */

ul.wp-block-list {
	list-style: none;
}

/* TOPページ */
.top-heading {
	    font-family: "Times New Roman", "游明朝", "Yu Mincho", "游明朝体", "YuMincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "HiraMinProN-W3", "HGS明朝E", "ＭＳ Ｐ明朝", "MS PMincho", serif;
    font-weight: 500;
	font-size: 46px !important;
}
@media screen and (max-width: 767px) {
	.top-heading  {
			font-size: 26px !important;
	}
}
.home .l-contents {
	margin-top: 50px;
} 
.home h2 {
	display: flex;
    align-items: center;
    text-align: center;
	width: fit-content;
	margin-inline: auto;
}
.home h2::before,
.home h2::after {
  content: '';
  width: 20px;
  border-bottom: 1px solid #035abf;
  margin: 0 5px;
}
.home .l-contents {
	border-top: none !important;
}
@media screen and (min-width: 768px){
	.home h2::before,
	.home h2::after {
		width: 40px;	
}
}
/* 私たちについて */
.top-about-wrapper p {
	text-align: left;
}
@media screen and (min-width: 768px){
.top-about-wrapper {
	max-width: 650px;
	margin-inline: auto;
}	
	.top-about-wrapper p {
		text-align: center;
	}
}
/* 事業案内 */
.p-three-box {
    gap: 20px;
}
.p-index-content04 {
    background: #e9f1fb !important;
}
.p-index-content04 .p-article12__title {
	font-weight: 600;
}
/* お知らせ */

.p-article04 {
    background: none;
    border: none;
    border-bottom: 1px solid #a1cdff;
}
/* 会社概要 */
.p-article06__content {
    border-left: 4px solid #035abf;
}
.p-article06__title a {
	color:#035abf !important;
}
/* .p-cb__item {
    margin-bottom: 0;
} */
/* 会社概要 */
.postid-37 .wp-block-table tbody tr td:first-child {
  background-color: #035abf; 
  color: #ffffff; 
  font-weight: bold; 
  padding: 12px 15px; 
  vertical-align: middle; 
  border: 1px solid #e0e0e0; 
}
.postid-37 .wp-block-table tbody tr td:last-child {
  padding: 12px 15px;
  border: 1px solid #e0e0e0; 
  background-color: #ffffff; 
  vertical-align: middle; 
}
.postid-37 .wp-block-table tbody tr td {
  word-break: break-word; /* 長い単語でも改行 */
}
/* 沿革 */
.timeline {
  padding: 20px;
}

.timeline-list {
  list-style: none;
  padding: 0;
}

.timeline-list dt {
  font-weight: bold;
  margin-bottom: 5px;
}

.timeline-list dd {
  margin-left: 0;
  margin-bottom: 15px;
  padding-left: 15px;
  border-left: 2px solid #ccc; 
}

/* スマホ表示 */
@media screen and (max-width: 767px) {
  .timeline-list dt,
  .timeline-list dd {
    display: block;
  }

  .timeline-list dd {
    padding-left: 0;
    border-left: none;
    margin-left: 0;
  }
}

/* PC表示 */
@media screen and (min-width: 768px) {
  .timeline-list {
    display: grid;
    grid-template-columns: 120px 1fr; 
    gap: 10px 20px;
  }

  .timeline-list dt {
    grid-column: 1;
    text-align: right;
    padding-right: 10px;
  }

  .timeline-list dd {
    grid-column: 2;
    border-left: 2px solid #ccc;
    padding-left: 15px;
  }
}

.timeline-list dt {
  color: #333;
}
.timeline-list dd {
  color: #555;
  line-height: 1.6;
}
/* 取り扱いメーカー */

.page-id-76 .p-cover {
/* 	height: 0; */
}

.maker-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.maker-item {
  display: flex;
  flex-direction: column;
  width: 100%;
/*   background: #f7f9fc; */
  padding: 20px;
  border-radius: 8px;
  box-sizing: border-box;
}

.maker-image {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 6px;
}

.maker-text h2 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #035abf;
}

.maker-text p {
  font-size: 14px;
  line-height: 1.6;
}

/* 768px以上で2列表示＋画像とテキスト横並び */
@media screen and (min-width: 768px) {
  .maker-item {
    flex-direction: row;
	  align-items: flex-start;
    width: calc(50% - 15px); /* gap=30px に対応 */
  }

  .maker-image {
    width: 180px;
    height: auto;
    margin-right: 20px;
    margin-bottom: 0;
  }

  .maker-text {
    flex: 1;
  }
}
/* お問い合わせフォーム */
/* フォーム全体 */
.wpcf7 {
    max-width: 100%;
    padding: 20px;
/*     background-color: #e9f1fb; */
	 background-color: #fff;
    border: none;
    border-radius: 8px;
    box-sizing: border-box;
}
.page-id-112 .p-cover__inner {
	justify-content: end;
	 margin-top: -20%;
}

/* ラベルのスタイル */
.wpcf7 label {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
	margin-bottom: -30px;
}

/* 入力フィールドのスタイル */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
/* 	background: #eee; */
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}
.wpcf7 select {
 width: 60%;
}
/* テキストエリアのスタイル */
.wpcf7 textarea {
    height: 200px; /* 高さを調整 */
    resize: vertical;
}
/* 必須項目の * に赤背景 */
.wpcf7 .required {
    color: #800020; 
	margin: 5px 0 0 3px;
}


/* 送信ボタンのスタイル */
.wpcf7 input[type="submit"] {
    background-color: #035abf;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    transition: background-color 0.3s;
}

/* 送信ボタンホバー時 */
.wpcf7 input[type="submit"]:hover {
    background-color: #0056b3;
}

/* PC */
@media (min-width: 768px) {
    .wpcf7 {
        max-width: 800px; /* フォームの最大幅を設定 */
		margin-inline: auto !important;
		padding:40px;
    }
	.wpcf7 input[type="submit"] {
    max-width: 400px ;
    transition: background-color 0.3s;
}
    .contact-wrapper {
        max-width: 700px;
        margin-inline: auto !important;
        margin-bottom: 30px;
        line-height: 1.6;
    }
}
.wpcf7-not-valid-tip {
    margin-top: -10px;
}

/* 確認画面 */
.page-id-172 .wpcf7 label {
   margin-bottom: 8px !important;
}
@media (min-width: 768px) {
  /* 横並びのベーススタイル */
  .page-id-172 .form-group {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  /* ラベル用のp（1番目のp）にスタイルを当てるが、submit系を除外 */
  .page-id-172 .form-group p:first-child:not(:has(.wpcf7-submit)):not(:has(.wpcf7-previous)) {
    width: 180px;
    margin: 0;
    padding: 0;
    text-align: right;
  }

  /* 内容表示用のp（2番目のp）に左揃えを当てるが、submit系を除外 */
  .page-id-172 .form-group p:last-child:not(:has(.wpcf7-submit)):not(:has(.wpcf7-previous)) {
    margin: 0;
    padding-left: 20px;
  }
}
.form-group.comfirm {
	justify-content: center;
}

/* 会社案内 */
/* .p-company-header__title {
	background: rgba(3, 90, 191, 0.6); 
	padding-top: 30px;
	padding-bottom: 30px;
}
 */
.p-article05__desc {
	font-weight: 400;
}
.p-article05:not(:last-of-type) {
	margin-bottom: 20px;
}
/* フッターウィジェット */
.p-footer-widgets__item {
    border-right: none;
}
.p-footer-widgets__item {;
	width:30%;
}
/* 事業案内 */
.business-intro {
  padding: 2em 1em;
  text-align: center;
}

.business-intro h1 {
  font-size: 1.8em;
  color:　#035abf;
  margin-bottom: 0.5em;
}

.business-intro h2 {
  font-size: 1.2em;
  margin-bottom: 1em;
}

.business-intro p {
  font-size: 0.95em;
  line-height: 1.8;
}

.business-list {
  list-style: none;
  padding: 0;
  margin: 2em 0;
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.business-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1em;
  background: #f7f9fc;
  border-radius: 8px;
}

.business-item img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1em;
}

.business-content h3 {
  font-size: 1.2em;
  color: #035abf;
  margin-bottom: 0.5em;
}

.business-content p {
  font-size: 0.95em;
  margin-bottom: 1em;
}

.business-link {
  display: inline-block;
  padding: 0.5em 1.2em;
  background-color: #035abf;
  color: #fff !important;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.business-link:hover {
  background-color: #2d71bf;
}

/* PC用レイアウト */
@media screen and (min-width: 768px) {
  .business-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .business-item {
    flex-direction: row;
    text-align: left;
    width: 100%;
    max-width: 100%;
  }

  .business-item img {
    width: 40%;
    margin: 0;
    margin-right: 2em;
  }

  .business-content {
    flex: 1;
  }
}
@media screen and (min-width: 768px) {
  .business-item.reverse {
    flex-direction: row-reverse;
  }

  .business-item.reverse img {
    margin-right: 0;
    margin-left: 2em;
  }
}
/* 自動販売機ベンディングサービス */
/* === 投稿ID33限定のスタイル === */
.postid-33 .wp-block-heading {
  font-weight: bold;
  color: #035abf;
  margin-top: 2em;
  margin-bottom: 0.8em;
}

.postid-33 .wp-block-heading h2,
.postid-33 .wp-block-heading h3 {
  font-size: 1.2em;
  line-height: 1.4;
}

.postid-33 p {
  font-size: 1em;
  line-height: 1.8;
  margin-bottom: 1.5em;
/*   color: #333; */
}

.postid-33 strong {
  font-weight: 600;
  color: #2d71bf;
}

.postid-33 .wp-block-list {
  padding-left: 1.2em;
  margin-bottom: 1.5em;
}

.postid-33 .wp-block-list li {
  margin-bottom: 0.8em;
  line-height: 1.6;
  position: relative;
  padding-left: 1em;
}

.postid-33 .wp-block-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: #035abf;
  font-weight: bold;
}

/* === PCスタイル（768px以上） === */
@media screen and (min-width: 768px) {
  .postid-33 .wp-block-heading h2 {
    font-size: 1.8em;
  }

  .postid-33 .wp-block-heading h3 {
    font-size: 1.4em;
  }

  .postid-33 p {
    font-size: 1.05em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .postid-33 .wp-block-list {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
}
/* 提携企業 */
.partner-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 1rem;
}

.partner-box {
  background-color: #f8f9fb;
  padding: 1.5rem;
  border-left: 5px solid #035abf;
  border-radius: 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.partner-tagline {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0.5rem;
}

.partner-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 0.8rem;
}

.partner-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #035abf;
  color: #fff !important;
  text-decoration: none;
  border-radius: 0.3rem;
  transition: background-color 0.3s ease;
}

.partner-link:hover {
  background-color: #00479b;
}

/* PC版：2カラムレイアウト */
@media screen and (min-width: 768px) {
  .partner-section {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
  }

  .partner-box {
    width: calc(50% - 1rem);
  }
}
/* @media screen and (min-width: 768px) {
	.p-company-header__title {
    color: #fff;
    font-size: 32px;
  background: rgba(0, 0, 0, 0.3);
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
}
} */
.p-footer-widgets__item {
    width: 100%;
}
/* お問い合わせ完了 */
.page-id-174 .contact-wrapper {
	margin-top: -300px;
}
@media screen and (max-width: 767px) {
	.page-id-174 .contact-wrapper {
	margin-top: -200px;
}
}
.pc-only {
	display: none;
}
@media screen and (min-width: 768px) {
	.pc-only {
	display: block;
}
}