/*
Theme Name: Thanksgakki-onlineshop
Description: サンクス楽器ECサイト
Author: 蜂須賀聖人
Version: 1.0
*/

/*body*/
body {
	font-family:
    "Inter",
    "Noto Sans JP",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Hiragino Sans",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
	background-color: #f7f7f7;
  }
#home {
	background-color: #f7f7f7;
}
.wrapper {
	padding: 0 3%;
}
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
  }
  
/*hero*/
.logo {
	width: 80px;
	display: flex;
	align-items: center;
}
.logo img {
	width: 100%;
}
.hero {
	display: flex;
	gap: 13px;
	background-color: #0000ff;
	align-items: center;
	height: 40px;
}
.hero h1 {
	font-size: 1rem;
	text-align: center;
	white-space: nowrap;
	line-height: 1.4rem;
}
.hero h1 a {
	color: #fff;
	text-decoration: none;
}
/*検索窓*/
.search {
	display: flex;
	gap: 10px;
	margin: 20px 5px 0;
	align-items: center;
}
.search form {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 auto; /* ← これが中央寄せの正体 */
  }
  
  .search input[type="search"] {
	width: 240px;
  }
.search-window {
	display: block;
	position: relative;
	width: 100%;
	height: 32px;
	border: solid 1px #4b4b4b;
	background-color: #fff;
}
.search-window-image {
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
}

.search-icon img {
	width: 20px;
}
.search form {
	background-color: #fff;
	border: solid 1px #999;
	padding: 4px 8px;
}

.search-window-image img {
	width: 20px;
}
.shop-cart {
	position: relative;
	margin-right: 20px;
}
.shop-cart img {
	width: 30px;
}
.number-of-items {
	border-radius: 50%;
	display: block;
	width: 20px;
	height: 20px;
	position: absolute;
	right: -20px;
	top: -7px;
	background-color: #e64a00;
	color: white;
	text-align: center;
	line-height: 20px;
}
/*ピックアップ商品*/
.pickup {
  padding: 25px 0;
}

.pickup-slider {
  width: 100%;
}

.pickup-item img {
  width: 100%;
  display: block;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.swiper .swiper-pagination-bullet {
    width: 15px;
    height: 15px;
    background-color: #0000ff;
    margin: 7px 7px !important;
}
/* paginationを画像の下に出す */
.pickup-slider .swiper-pagination {
	position: static;   /* absolute を解除 */
	margin-top: 10px;   /* 画像との間隔 */
	text-align: center; /* ドットを中央寄せ */
  }

/*階層メニュー*/
.menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.category-menu {
  position: relative;
}
.category-menu-title {
	display: block;
	text-align: center;
	background-color: #e64a00;
	line-height: 2.5rem;
}
.category-menu-title h2 {
	color: #fff;
	font-size: 1rem;
}
/* 第1階層 */
.level-1 > li {
  position: relative;
  padding: 0;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.level-1 > li:last-child {
	border-bottom: none;
}

/* 第2・3階層 */
.level-2,
.level-3 {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 10;
  padding-left: 2rem;
}
.level-2 > li,
.level-3 > li {
  padding: 0;
  position: relative;
  white-space: nowrap;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.level-2 > li:last-child,
.level-3 > li:last-child {
  border-bottom: none;
}
.level-2 > li:first-child,
.level-3 > li:first-child {
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.level-2 a,
.level-3 a,
.menu-label {
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  min-height: 44px; /* ← 超重要（Apple推奨） */
  padding: 12px 40px 12px 12px;
  cursor: pointer;
}
/*＞マーク*/
.toggle-btn {
	position: absolute;
	right: 10px;
	top: 0;
	width: 44px;
	height: 44px;
	border: none;
	background: none;
	cursor: pointer;
  }
  
  .toggle-btn::after {
	content: "＞";
	font-size: 0.8rem;
	color: #999;
	transition: transform 0.2s ease;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
  }

  .has-child.open > .toggle-btn::after {
	transform: translate(-50%, -50%) rotate(90deg);
  }

/* 選択中（1〜3階層 共通） */
.level-1 > li:hover > a,
.level-2 > li:hover > a,
.level-3 > li:hover > a {
  color: #e64a00;
}

/*新入荷商品*/
.new-arrivals {
	margin-top: 60px;
}
.new-arrivals h2 {
	text-align: center;
	font-size: 1.7rem;
	line-height: 1.7rem;
	color: #e64a00;
}
.new-arrivals h2 span {
	font-size: 1rem;
	color: #333;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.product-card {
	display: block;
	text-decoration: none;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.product-image {
	width: 100%;
	aspect-ratio: 1/1;
	background-color: #fff; /* 余白対策（重要） */
	display: flex;
	align-items: center;
	justify-content: center;
}
.product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.product-description {
	background-color: #fff;
}
.product-name {
	font-size: 0.8rem;
	color: #333;
	padding: 5px 8px 2px;
	line-height: 1rem;
	height: calc(1.15rem * 3);
	overflow: hidden;
}
.product-price {
	font-size: 1.1rem;
	text-align: center;
	color: #e64a00;
	padding-bottom: 7px;
	font-family: 'Poppins', sans-serif;
}
.page-numbers_container {
	display: flex;
	justify-content: center;
	margin-top: 40px;
	align-items: center;
	gap: 8px;
}
.page-numbers {
	padding: 6px 10px;
	border: 1px solid #ccc;
	text-decoration: none;
	border-radius: 4px;
	font-size: 14px;
}

.page-numbers.current {
	background: #333;
	color: #fff;
	border-color: #333;
}

/*フッター*/
footer {
	margin-top: 50px;
	padding: 50px 20px 70px;
	background-color: #333;
}
.footer-menu {
	margin-bottom: 40px;
}
.footer-menu-line {
	border-left: 0.8px solid #dedede;
	margin: 0.4rem 0 0.6rem 1rem;
}
.footer-menu ul {
	list-style: none;
}
.footer-menu ul li {
	line-height: 1.6rem;
}
.footer-menu ul li a,
.footer-menu a {
	color: #dedede;
	text-decoration: none;
	padding-left: 0.7rem;
}
.footer-logo {
	display: block;
	width: 30%;
	margin: 0 auto;
}
.footer-logo img {
	width: 100%;
	height: auto;
}
#copyright {
	padding-top: 10px;
	text-align: center;
}
#copyright p {
	color: #dedede;
}
/********************/
/*商品ページ*/
.breadcrumb-container {
	padding: 10px 7% 0;
}
.product-images-container,
.product-summary-container,
.product-detail-container {
	padding: 0 7%;
}
/*商品画像*/
.flex-control-nav li {
	padding: 4px;
}
.woocommerce-product-gallery__image {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background-color: #fff;
	min-height: 40vh;
	padding: 20px;
}
.woocommerce-product-gallery__image img {
	display: block !important;
	max-width: 100% ;
	max-height: 80vh;
	object-fit: contain ;
}

/*タイトル・価格*/
.product_title {
	font-size: 1.4rem;
	color: #333;
	line-height: 1.4;
}
.woocommerce-Price-amount {
	font-size: 1.2rem;
	color: #e64a00;
	font-family: 'Poppins', sans-serif;
}
/* 商品ページ：お買い物かごに追加 */
.single-product .single_add_to_cart_button.button {
	background-color: #e64a00 !important; /* 例：深い緑 */
	color: #fff !important;
	border: none !important;
	width: 100% !important;
	text-align: center;
  }
  
  .single-product .single_add_to_cart_button.button:hover {
	background-color: #ff5500 !important;
	color: #fff !important;
  }
.single-product .stock {
	color: #333 !important;
	padding: 0.8rem 0;
}
/* 商品コードとカテゴリーを2行にする */
.single-product .product_meta {
	display: block;
  }
  
  .single-product .sku_wrapper,
  .single-product .posted_in {
	display: block;
	margin-bottom: 6px; /* 行間を空けたい場合 */
  }
/*カード会社ロゴ*/
.payment-methods {
	margin-top: 20px;
	display: flex;
	gap: 10px;
}
.payment-methods-image {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.payment-methods-image img {
	width: auto;
	max-height: 100%;
}
/*説明*/
.woocommerce-Tabs-panel--description p {
	line-height: 1.5rem;
}
#tab-title-description {
	display: none;
}
/****/
/*買い物カゴページ*/
.wp-block-woocommerce-cart,
.wc-block-components-sidebar-layout,
.woocommerce-order {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 0;
}
/*注文を確定ボタン*/
.wc-block-components-checkout-place-order-button {
	background-color: #e64a00; /* ボタンの背景色を #e64a00 に設定 */
	color: white; /* 文字色を白に設定 */
	font-size: 1.2rem; /* フォントサイズを少し大きく */
	font-weight: bold; /* 太字にして強調 */
	padding: 15px 30px; /* ボタンに余白を追加 */
	border: none; /* 境界線なし */
	border-radius: 5px; /* 角を丸く */
	box-shadow: 0px 4px 10px rgba(255, 69, 0, 0.3); /* ボックスシャドウで浮き上がる効果 */
	transition: background-color 0.3s, transform 0.2s; /* 背景色とアニメーション効果 */
  }
  
  .wc-block-components-checkout-place-order-button:hover {
	background-color: #ff5500; /* ホバー時に少し暗く */
	transform: scale(1.05); /* 少し大きくなる効果 */
  }
.woocommerce-column--billing-address {
	margin-bottom: 25px;
} 
/****/
/*特定商取引法*/
#trade-description h1,
#privacy h1
#guide h1 {
	font-size: 1.5rem;
	margin: 10px auto;
}
main {
	padding: 20px;
	background-color: #fff;
	margin-top: 25px;
  }
  
  .trade-description-table table {
	width: 100%;
	border-collapse: collapse;
  }
  
  .trade-description-table th,
  .trade-description-table td {
	padding: 10px;
	border: 1px solid #ccc;
	display: block;
  }
  
  .trade-description-table th {
	background-color: #f0f0f0;
  }
  .trade-description-table td {
	line-height: 1.5rem;
  }
/****/
/*プライバシーポリシー*/
.privacy-top,
.privacy,
.guide {
	line-height: 1.6rem;
}
.privacy-top h2,
.privacy h2,
.guide-container h2 {
	font-size: 1.2rem;
	border-bottom: 1px solid #ccc;
	margin-bottom: 0.5rem;
	padding-bottom: 0.2rem;
	margin-top: 1rem;
}
.privacy {
	margin: 1.6rem 0;
}
.privacy ul {
	padding: 1rem 0 1rem 1rem;
}
.privacy ul li {
	padding-bottom: 0.5rem;
}
/****/
/*お買い物ガイド*/
.guide h3 {
	padding: 0.3rem 0 0.3rem 1rem;
	display: block;
	border: 2px dotted #ccc;
	white-space: nowrap;
	margin-bottom: 0.5rem;
}
.guide {
	padding: 0.6rem 0;
}
.guide-container {
	margin-bottom: 50px;
}
/*カード会社ロゴ*/
.guide-payment-methods {
	display: flex;
	gap: 8px;
	margin-top: 20px;
}
.guide-payment-methods-image {
	height: 35px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.guide-payment-methods-image img {
	width: auto;
	max-height: 100%;
}
/**/
.secure {
	background-color: #e64a00;
	margin-top: 20px;
	display: block;
}
.secure p {
	color: white;
	font-size: 1.7rem;
	text-align: center;
	padding: 10px 5px 7px;
	font-weight: bold;
}
.secure p span {
	font-size: 0.9rem;
	line-height: 0.9rem;
}
.guide ul li {
	margin-left: 1rem;
	font-size: 0.9rem;
}
.guide table {
	width: 100%;
	border-collapse: collapse;
	margin: 0.8rem 0;
}
.guide table th {
	background-color: #f0f0f0;
	border: 1px solid #ccc;
	padding: 5px 0;
}
.guide table td {
	padding: 5px 0 5px 1rem;
	border: 1px solid #ccc;
}
.komidashi {
	font-weight: bold;
}

/**/
/*お問い合わせ*/
#contact-page_description-ec,
#contact-tel-ec {
	padding-bottom: 40px;
}
.contact-page_title-ec h1 {
	padding: 20px 0 0.4rem;
	text-align: center;
	font-size: 1.6rem;
}
.contact-title-ec h2 {
	font-size: 1.2rem;
	border-bottom: 1px solid #ccc;
	margin-bottom: 0.5rem;
	padding-bottom: 0.2rem;
	margin-top: 1rem;
}
.contact-page_text-ec p,
#contact-tel-ec p,
#contact-form p {
	line-height: 1.5rem;
}

/**/
/*コンタクトフォーム*/
#contact-form {
    margin-bottom: 80px;
}
.contact-form {
    padding: 0 1rem;
}
/* 各フォームブロック */
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
}
/* テキスト・メール・電話・テキストエリア共通 */
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #fafafa;
  transition: all 0.2s ease;
}
/* フォーカス時 */
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e64a00;
  background-color: #fff;
  box-shadow: 0 0 4px rgba(255,90,5,0.3);
}
/* 送信ボタン */
.form-submit {
  text-align: center;
  margin-top: 30px;
}
.form-submit .contact-button {
  background-color: #e64a00;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 12px 40px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.form-submit .contact-button:hover {
  background-color: #ff5500;
}
.required {
  font-size: 0.8em;
  padding: 3px;
  background: #e64a00;
  color: #ffffff;
  border-radius: 2px;
  margin-right: 10px;
  margin-bottom: 2px;
  display: inline-block;
}
.wpcf7-spinner {
    display: none !important;
  }  
/* 背景オーバーレイ */
.wpcf7 form.sent::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
  }
/*メッセージ送信完了中央固定*/
  .wpcf7-response-output {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 2rem 3rem;
    border-radius: 8px;
    font-size: 1.1rem;
    z-index: 9999;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    width: 90%;
  }
  
  /* デフォルトの下余白を消す */
  .wpcf7 form .wpcf7-response-output {
    margin: 0;
  }

/*微調整*/
/*カテゴリページ*/
.attachment-woocommerce_thumbnail {
	height: 200px !important;
	object-fit: contain !important;
}
	
@media (max-width: 767px) {
	.pc {
		display: none !important;
	}
	.level-2,
	.level-3 {
	  position: static;
	  display: none;
	  padding-left: 15px;
	}
  
	.has-child.open > .level-2,
	.has-child.open > .level-3 {
	  display: block;
	}
}

@media (min-width: 768px) {


	.footer-menu_container {
		display: flex;
		justify-content: center;
		gap: 10%;
	}
	.footer-logo {
		max-width: 150px;
		align-items: center;
		display: flex;
		min-width: 100px;
	}
	.footer-menu {
		margin: 0;
	}
	.footer-menu ul li {
		white-space: nowrap;
	}
	.footer-menu a {
		line-height: 2.2rem;
	}
	




	.mb {
		display: none !important;
	}
	/*hero*/
	.hero {
		height: 50px;
	}
	.logo {
		width: 100px;
	}
	/*検索窓*/
	.search {
		margin: 25px 25% 0;
	}
	.search input[type="search"] {
		width: 400px;
	  }
	/*サーチエリア*/
	.search-area {
		display: flex;
		gap: 40px;
		padding: 40px 0;
		width: 100%;
		margin: 0 auto;
	}
	.category-menu {
	  width: 35%;
	}
	.new-arrivals {
	  width: 65%;
	}
	/*階層メニュー*/
	.level-1 > li:hover > .level-2 {
		display: block;
	}
	.level-2 > li:hover > .level-3 {
	  display: block;
	}
	.level-2 li,
	.level-3 li {
		width: 20vw;
	}
	
	/*新入荷商品*/
	.new-arrivals {
		margin-top: 30px;
	}
	.new-arrivals h2 {
		font-size: 2rem;
	}
	.product-grid {
		grid-template-columns: repeat(4,1fr);
	}
	/*フッター*/
	footer {
		margin-top: 80px;
		padding: 80px 20% 100px;
	}
	.footer-menu ul li {
		line-height: 2.2rem;
	}
	#copyright {
		padding-top: 80px;
	}
	/********/
	/*商品ページ*/
	.single-product .product {
		margin: 40px auto;
		padding: 40px;
	  }
	  .single-product .summary.entry-summary {
		padding-right: 5%;
	  }
	  .woocommerce-Price-amount {
		font-size: 1.2rem;
	  }
	  .price {
		padding-top: 16px;
	  }
	.woocommerce-breadcrumb {
		text-align: center;
	}
	.search {
		margin: 20px 20% 10px;
	}
	.single-product .single_add_to_cart_button.button {
		padding: 20px;
		font-size: 1.2rem;
	}
	.product_title {
		font-size: 1.6rem;
		line-height: 1.6;
		font-weight: normal;
	}
	/*説明*/
	.woocommerce-Tabs-panel--description p {
	    line-height: 1.7rem;
    }
	/*レビュー*/
	.shop-reviews-section {
		margin-top: 100px;
	}

	/****/
	/*買い物カゴ*/
	.wp-block-woocommerce-cart,
	.wc-block-components-sidebar-layout,
	.woocommerce-order {
		padding-top: 100px;
	  }
	/****/
	/*特定商取引法*/
	#trade-description h1,
	#privacy h1,
	#guide h1 {
		margin: 20px auto;
		font-size: 2rem;
		font-weight: initial;
	}
	main {
		padding: 50px 20%;
	  }
	  .trade-description-table th {
		display: table-cell;
		font-weight: initial;
		min-width: 8rem;
		padding: 20px 25px;
	  }
	  .trade-description-table td {
		padding: 20px 25px;
		display: table-cell;
	  }
	/****/
	/*プライバシーポリシー*/
	.privacy-top h2,
	.privacy h2,
	.guide-container h2 {
		font-weight: initial;
		font-size: 1.3rem;
		margin-bottom: 0.7rem;
	}
	.privacy-top,
	.privacy,
	.guide {
		line-height: 1.8rem;
		padding-bottom: 30px;
	}
	.privacy {
		margin: 2.5rem 0;
	}
	/****/
	/*お買い物ガイド*/
	.secure {
		width: 50%;
	}
	.guide table {
		width: 50%;
	}
	.guide-container h2 {
		font-size: 1.7rem;
	}
	/**/
	/*お問い合わせ*/
	#contact-page_description-ec,
	#contact-tel-ec {
		padding-bottom: 80px;
	}
	.contact-page_title-ec h1 {
		padding: 40px 0 0.8rem;
		text-align: center;
		font-size: 2rem;
		font-weight: normal;
	}
	.contact-title-ec h2 {
		font-size: 1.6rem;
		margin-top: 1rem;
		font-weight: normal;
	}
	.contact-page_text-ec p,
	#contact-tel-ec p,
	#contact-form p {
		font-size: 1.1rem;
		line-height: 2.2rem;
		padding-top: 1rem;
	}
	/**/
	/*コンタクトフォーム*/
    .form-group {
        margin-bottom: 30px;
    }
    .form-group label {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
    .form-group input,
    .form-group textarea {
        font-size: 1.2rem;
    }
    .form-submit .contact-button {
        font-size: 1.3rem;
    }
    .required {
        font-size: 1rem;
    }
    .wpcf7-response-output {
        width: auto;
    }
}