@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ----------------------------------------------------------------------
 その他
---------------------------------------------------------------------- */
h2 {font-size: 2.5em !important;}
h3 {font-size: 1.75em !important;}
h4 {font-size: 1.375em !important;}
.footer_btn {color: #333;}
.is-style-balloon_box {background-color: #333;}
.is-style-balloon_box::before {border-top-color: #333;}
/* YouTubeレスポンシブ */
.container-youtube {
    position: relative;
    width: 100%;
    padding-top: calc( 100% * calc(9 / 16) );
}
.container-youtube iframe {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
}
/* span内で改行しない */
.span-nowrap span {
    display: inline-block;
    white-space: nowrap;
}
@media (max-width: 599px) {
    .span-nowrap br {
        display: none;
    }
}
/* カラムブロック内のボタン幅を100%に */
.wp-block-column .swell-block-button a,
.swell-block-columns .swell-block-button a {
    width: 100%;
}
/* YouTubeサムネイルに再生マークをオーバーレイ */
.fancybox-youtube {
	position: relative;
	display: inline-block;
	transition: all .25s;
}
.fancybox-youtube:hover {
	opacity: .8;
}
.fancybox-youtube img {
	display: block;
}
.fancybox-youtube::after {
	content: "▶";
	font-size: 48px;
	color: white;
	text-shadow: 0 2px 6px rgba(0,0,0,0.6);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

/* ----------------------------------------------------------------------
 ホーム
---------------------------------------------------------------------- */
/* メインビジュアル内ブログパーツ */
.p-mainVisual__textLayer .p-blogParts {
	position: absolute;
	top: 2em;
	max-width: 600px;
}
.p-mainVisual__textLayer {
	text-shadow: 0px 0px 10px rgb(0, 0, 0) !important;
}

/* フローティングバナー */
#floating-banner {
    display: none;
    /* 初期状態では非表示 */
    position: fixed;
    top: 50%;
    right: 2rem;
	-webkit-;transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
	z-index: 9999;
    width: 160px;
}
.floating-banner_inner {
	border-radius: 10px;
	padding: 10px;
	background-color: #0099a1;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.25));
    transition: all .25s;
}
.floating-banner_inner:hover {
    transform: translateY(-4px);
    filter: drop-shadow(2px 6px 4px rgba(0, 0, 0, 0.25));
}
#close-banner {
    position: absolute;
    top: -10px;
    right: -10px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    border-radius: 100%;
    background-color: white;
    color: #0099a1;
}
#close-banner i {
    display: block;
    height: 20px;
    width: 20px;
}
.floating-banner_inner a {
	display: flex;
	flex-direction: column;
	text-align: center;
	color: #fff;
}
.floating-banner_inner a img {
	width: 160px;
	height: auto;
}
.floating-banner_inner a span {
	display: block;
	margin-bottom: .25em;	
	font-weight: bold;
	line-height: 1.5;
}

/* お困りごと別製品ラインアップ */
.lineup_inner > .swell-block-columns__inner > .swell-block-column {
	display: flex; flex-wrap: wrap; align-content: space-between;
}
.lineup_inner > .swell-block-columns__inner > .swell-block-column .wp-block-columns,
.lineup_inner .swell-block-button {
	width: 100%;
}
.lineup_inner .swell-block-button a {
	line-height: 1.8;
}

/* アプリケーション */
.application_box .wp-block-snow-monkey-blocks-box {
	padding: 0;
}
.application_box .wp-block-snow-monkey-blocks-box .wp-block-group {
	padding: .375em;
}
.application_box .smb-box {
	transition: all .25s;
}
.application_box .smb-box:hover {
	opacity: .8;
}

/* ----------------------------------------------------------------------
 Contact Form 7
---------------------------------------------------------------------- */
/* --- CF7デフォルト調整 --- */
.wpcf7-list-item {
  margin: 0 !important;
}

/* --- カタログ選択 --- */
.catalog-container .wpcf7-form-control {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  margin: 2em -1em 0;
}
.wpcf7-list-item {
  width: calc(25% - 2em);
  text-align: center;
}
@media (max-width: 800px) {
  .wpcf7-list-item {
    width: calc(50% - 2em);
  }
}
@media (max-width: 480px) {
  .wpcf7-list-item {
    width: 100%;
  }
}
.wpcf7-list-item input[type="checkbox"] {
  display: none;
}
.wpcf7-list-item-label {
  display: block;
  position: relative;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
}
.wpcf7-list-item-label::before {
  content: "";
  display: block;
  height: 240px;
  margin-bottom: .75em;
  border: 2px solid transparent;
  border-radius: 6px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s, border 0.2s, box-shadow 0.2s;
}
.wpcf7-list-item:hover .wpcf7-list-item-label::before {
  transform: scale(1.03);
}
.wpcf7-list-item input[type="checkbox"]:checked + .wpcf7-list-item-label::before {
  border-color: #0099a1;
  box-shadow: 0 0 6px rgba(0, 153, 161, 0.5);
}
.wpcf7-list-item input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  background: #0099a1;
  color: #fff;
  border-radius: 50%;
}

/* --- 各カタログ画像設定 --- */
.wpcf7-list-item:nth-of-type(1) .wpcf7-list-item-label::before { background-image: url('/wp-content/uploads/catalog_01.jpg'); }
.wpcf7-list-item:nth-of-type(2) .wpcf7-list-item-label::before { background-image: url('/wp-content/uploads/catalog_02.jpg'); }
.wpcf7-list-item:nth-of-type(3) .wpcf7-list-item-label::before { background-image: url('/wp-content/uploads/catalog_03.jpg'); }
.wpcf7-list-item:nth-of-type(4) .wpcf7-list-item-label::before { background-image: url('/wp-content/uploads/catalog_04.jpg'); }
.wpcf7-list-item:nth-of-type(5) .wpcf7-list-item-label::before { background-image: url('/wp-content/uploads/catalog_05.jpg'); }
.wpcf7-list-item:nth-of-type(6) .wpcf7-list-item-label::before { background-image: url('/wp-content/uploads/catalog_06.jpg'); }
.wpcf7-list-item:nth-of-type(7) .wpcf7-list-item-label::before { background-image: url('/wp-content/uploads/catalog_07.jpg'); }
.wpcf7-list-item:nth-of-type(8) .wpcf7-list-item-label::before { background-image: url('/wp-content/uploads/catalog_08.jpg'); }

/* --- 入力フォーム全体 --- */
.form-fields {
  width: 900px;
  max-width: 100%;
  margin: 0 auto;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.8em;
}
.form-row label {
  font-weight: bold;
  margin-bottom: 6px;
}
.required {
  background-color: #e74c3c;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  margin-left: 5px;
  border-radius: 3px;
}

/* 入力欄 */
.form-input,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  transition: border 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.form-input:focus,
.wpcf7 input:focus,
.wpcf7 select:focus {
  border-color: #0099a1;
  box-shadow: 0 0 4px rgba(0,153,161,0.4);
  outline: none;
}

/* 氏名・カナ 横並び */
.name-fields {
  display: flex;
  gap: 10px;
  width: 100%;
}
.name-fields .form-input {
  flex: 1;
}
.name-fields br {
  display: none !important;
}

/* 都道府県セレクト幅調整 */
select[name="prefecture"] {
  width: 300px;
}

/* エラーメッセージ */
.wpcf7-not-valid-tip {
  color: #e74c3c;
  font-size: 13px;
  font-weight: bold;
  margin-top: 5px;
  display: block;
}
.wpcf7-not-valid {
  border-color: #e74c3c !important;
}

/* 確認画面整形 */
.confirm-list p strong::after {
  content: "\A";
  white-space: pre;
}
.confirm-list p {
  margin: 1em 0;
  line-height: 1.7;
}
.step-confirm h3 {
  margin-bottom: 1.5em;
}

/* ボタン共通 */
.btn-confirm,
.btn-back,
.btn-submit {
  background: #0099a1;
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn-confirm:hover,
.btn-back:hover,
.btn-submit:hover {
  background: #007b85;
}

/* --- ボタン配置（最終安定版） --- */
.form-buttons {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 2em;
  text-align: center;
}

/* 各ボタンブロックを縦並び（ボタン上・スピナー下）に */
.form-buttons > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* CF7の自動生成<p>をフラット化 */
.form-buttons p {
  margin: 0;
  padding: 0;
  display: contents; /* <p>をDOM的に無効化 */
}

/* ボタン共通デザイン */
.btn-confirm,
.btn-back,
.btn-submit {
  background: #0099a1;
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn-confirm:hover,
.btn-back:hover,
.btn-submit:hover {
  background: #007b85;
}

/* スピナーをボタン直下・中央に固定 */
.wpcf7 .wpcf7-spinner {
  display: block !important;
  margin: 0 auto !important;
  position: static !important;
  float: none !important;
  order: 2;
}

/* --- スマホ対応：縦並び --- */
@media (max-width: 600px) {
  .form-buttons {
    flex-direction: column;
    gap: 16px;
  }
}
