@charset "UTF-8";
/*
 Theme Name:   sakakiya
 Description:  コーポレートサイト
 Version:      1.0.0
 Author:       Your Name
 Text Domain:  sakakiya
*/
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.wp-block-post-title {
  margin-top: 120px !important;
}

.contact-title h2 {
  font-size: 32px !important;
  padding-bottom: 4px;
}
.contact-title img {
  width: 34px;
}

@media screen and (max-width: 440px) {
  .contact-title h2 {
    font-size: 25px !important;
    padding-top: 2px;
    padding-bottom: 0;
  }
  .contact-title img {
    width: 30px !important;
  }
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 0.3s ease;
  z-index: 100;
}

/* 隠すとき */
.header-hidden {
  transform: translateY(-100%);
}

.headercontainer {
  height: 78px;
}

.sub-header-container {
  position: relative;
}
.sub-header-container .task-and-logo {
  background-image: url("imges/header-image-cut.png");
  background-repeat: no-repeat;
}

.header-item {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 78px;
  width: 167px;
  cursor: pointer;
}
.header-item .wp-block-button {
  width: 100%;
  height: 100%;
}
.header-item a {
  display: block;
  height: 78px;
  text-decoration: none;
  transition: transform 0.5s ease;
}
.header-item:hover {
  background-color: #502c26;
}
.header-item:hover a {
  color: #ffffff !important;
}

.contact {
  width: 230px;
  height: 78px;
  transition: background-color 0.6s ease;
  cursor: pointer;
}
.contacta {
  width: 230px;
  height: 78px;
}
.contact .wp-block-button {
  height: 100%;
  width: 100%;
}
.contact:hover {
  background-color: #d5aba3 !important;
}
.contact a {
  transition: transform 1s;
}
.contact a:hover {
  transform: scale(1.1) translateY(-2px);
}

.header-contact {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-self: center;
}

.menu-wrapper {
  position: relative;
  display: none;
}

.menu-icon {
  width: 32px;
  height: 32px;
  position: fixed; /* ← fixedにして常に左上固定 */
  top: 13px;
  right: 20px;
  cursor: pointer;
  z-index: 999;
  display: inline-block;
  background-color: #FAF1DD;
  padding: 10px;
  border-radius: 10px;
}

.menu-icon span {
  display: block;
  height: 4px;
  width: 30px;
  margin: 6px 0;
  background: #502C26;
  border-radius: 2px;
  transition: 0.4s;
}

/* ハンバーガーがXに変形 */
#menu-toggle:checked + .menu-icon span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

#menu-toggle:checked + .menu-icon span:nth-child(2) {
  width: 0;
}

#menu-toggle:checked + .menu-icon span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* オーバーレイ背景 */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
  z-index: 1;
}

#menu-toggle:checked ~ .overlay {
  opacity: 1;
  pointer-events: auto;
}

/* メニュー本体（左から出す） */
.menu {
  position: fixed;
  top: 0;
  right: -250px; /* ← 初期位置を左へ */
  width: 250px;
  height: 100%;
  background: #faf1dd;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
  transition: left 0.4s ease;
  z-index: 998;
}

#menu-toggle:checked ~ .menu {
  right: 0; /* ← 開いたときは左0へ */
}

.menu ul {
  list-style: none;
  padding: 60px 20px;
}

.menu li {
  margin: 20px 0;
}

.menu a {
  text-decoration: none;
  color: #502C26;
  font-size: 1.2rem;
  font-weight: 500;
  transition: color 0.3s;
}

.menu a:hover {
  color: #007bff;
}

/* 1000px 以下 */
@media (max-width: 1000px) {
  .header-item {
    width: 100px;
  }
}
/* 794px 以下 */
@media (max-width: 794px) {
  .contact {
    width: 160px;
  }
}
/* 713px 以下 */
@media (max-width: 713px) {
  .task-bar {
    display: none !important;
  }
  .menu-wrapper {
    display: block;
  }
}
.hearo-image-container {
  position: relative;
}
.hearo-image-container .hearo-image {
  height: 1150px;
  overflow: hidden;
}
.hearo-image-container .hearo-image img {
  height: 1150px;
  width: 100%;
  object-fit: cover;
  filter: blur(2px);
  transform: scale(1.05);
  animation: zoomUp 50s linear infinite;
}
.hearo-image-container .hearo-text {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 704px;
  max-width: 100%;
}

@keyframes zoomUp {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}
/* 599px以下のスマホ・タブレット向け調整 */
@media screen and (max-width: 599px) {
  /* コンテナ（画像の外枠）の高さを固定 */
  .hearo-image-container .hearo-image {
    height: 332px;
  }
  /* 中の画像自体の高さを固定し、歪まないように調整 */
  .hearo-image-container .hearo-image img {
    height: 332px;
  }
  /* テキストの位置を調整 */
  .hearo-image-container .hearo-text {
    top: 60%;
    font-size: 30px !important;
    line-height: 1.3 !important;
  }
}
/* 400px以下の小さなスマホ向け調整 */
@media screen and (max-width: 400px) {
  .hearo-image-container .hearo-text {
    font-size: 27px !important;
  }
}
@media screen and (max-width: 599px) {
  .company-description-child {
    margin-top: 39px !important;
    margin-bottom: 28px !important;
  }
  .company-description-title {
    display: none;
  }
}
.product-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-self: center;
  gap: 10px;
}

.product-name {
  border-left: 6px solid #545454;
}

.product-introduce-container {
  position: relative;
  clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
}
.product-introduce-container .priduct-introduce-image {
  width: 312px !important;
  height: 250px;
  overflow: hidden;
}
.product-introduce-container .priduct-introduce-image img {
  object-fit: cover;
  height: 250px !important;
}
.product-introduce-container .product-introduce-exp {
  max-width: 436px;
  width: 100%;
}

@media (max-width: 850px) {
  .product-container {
    gap: 27px;
  }
}
@media (max-width: 789px) {
  .product-introduce-container {
    padding: 62px 0;
  }
  .product-container {
    flex-direction: column;
    gap: 40px;
  }
  .product-container.rigth {
    flex-direction: column-reverse;
    margin-top: 37px;
  }
  .product-introduce-exp {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .product-introduce-exp .product-name,
  .product-introduce-exp .product-exp {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .wp-container-core-group-is-layout-3fa1b8d3 {
    margin-bottom: 27px !important;
  }
}
@media (max-width: 358px) {
  .product-introduce-container .priduct-introduce-image {
    width: 270px !important;
  }
}
.notification-icon {
  width: 76px;
}

.notice-article li {
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.5s;
}
.notice-article li:hover {
  transform: scale(1.05);
}
.notice-article li a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* 透明な膜を一番上に持ってくる */
  z-index: 10;
}
.notice-article li h2 {
  margin-top: 0px !important;
}

.wp-block-query-pagination.is-layout-flex {
  gap: 13px;
}

.wp-block-query-pagination-numbers {
  display: flex;
  gap: 13px;
}
.wp-block-query-pagination-numbers .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgb(255, 255, 255);
  border: 1px solid #D4AF76;
  border-radius: 11px;
  text-decoration: none;
  transition: transform 0.5s;
}
.wp-block-query-pagination-numbers .page-numbers.current {
  background-color: #7A524C;
  border-color: #7A524C;
  color: aliceblue;
}
.wp-block-query-pagination-numbers .page-numbers:hover {
  transform: scale(1.1);
}

.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  text-decoration: none;
  background-color: #ffffff;
  border: 1px solid #D4AF76;
  border-radius: 11px;
  transition: transform 0.5s;
}
.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover {
  transform: scale(1.1);
}
.wp-block-query-pagination-previous .wp-block-query-pagination-next-arrow,
.wp-block-query-pagination-previous .wp-block-query-pagination-previous-arrow,
.wp-block-query-pagination-next .wp-block-query-pagination-next-arrow,
.wp-block-query-pagination-next .wp-block-query-pagination-previous-arrow {
  display: inline-block;
  margin: 0;
  padding: 0;
}

@media screen and (max-width: 599px) {
  .new-article li h2 {
    padding-left: 0.5rem !important;
  }
}
.contact-us {
  height: 100%;
  background-color: #fff9e5;
}

.phone-card,
.mail-card {
  max-width: 393px;
  width: 100%;
  height: 190px;
  box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.25);
}
.phone-card .mail-mark,
.phone-card .phone-mark,
.mail-card .mail-mark,
.mail-card .phone-mark {
  width: 40px;
  border-radius: 50%;
}

@media screen and (max-width: 460px) {
  .contact-us-card {
    flex-direction: column;
  }
  .contact-us {
    margin-bottom: 70px;
    height: 835px;
  }
}
.privacy {
  position: relative;
}
.privacy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 564px;
  transform: translateX(-50%);
  height: 1px;
  background-color: #314158;
}

.site-map-item .wp-block-group {
  cursor: pointer;
}
.site-map-item .wp-block-group a {
  text-decoration: none;
}
.site-map-item .wp-block-group:hover {
  background-color: rgb(255, 255, 255);
}

.privacy {
  cursor: pointer;
}
.privacy p:hover {
  background-color: rgb(255, 255, 255);
}
.privacy p a {
  text-decoration: none;
}

/* ==========================================
   フッター・レスポンシブ調整
   ========================================== */
/* 780px以下 */
@media screen and (max-width: 780px) {
  .privacy::before {
    width: 459px;
  }
}
/* 552px以下 */
@media screen and (max-width: 552px) {
  .privacy::before {
    width: 390px;
  }
  .wp-container-core-group-is-layout-363b54b0 {
    gap: 67px !important;
  }
}
/* 447px以下 */
@media screen and (max-width: 447px) {
  .privacy::before {
    width: 350px;
  }
  .wp-container-core-group-is-layout-363b54b0 {
    gap: 12px !important;
  }
  .privacy {
    flex-direction: column;
    gap: 5px;
  }
}
@media screen and (max-width: 375px) {
  .privacy::before {
    width: 320px;
  }
}
.company-container {
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.company-item {
  width: 100%;
  max-width: 850px;
  align-items: stretch;
}
.company-item .company-title {
  height: 100%;
  width: 193px;
  flex-shrink: 0;
}
.company-item .company-contents {
  flex: 1;
  overflow-wrap: break-word;
  width: 100%;
  max-width: 608px;
}
.company-item .company-title,
.company-item .company-contents {
  border-bottom: 1px solid #B1B1B1;
}

@media screen and (max-width: 640px) {
  .company-item {
    flex-direction: column;
  }
  .company-title {
    width: 100% !important;
    height: 62px !important;
    min-height: 62px !important;
  }
}
.product-item {
  width: 250px;
}
.product-item .product-text {
  overflow-wrap: break-word;
}
.product-item .product-item-img figure {
  overflow: hidden;
  height: 200px !important;
}
.product-item .product-item-img figure img {
  height: 200px !important;
  width: 100%;
  object-fit: cover;
}

.productshandled {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 20px;
  box-sizing: border-box;
  justify-content: center; /* グリッド全体を中央に */
  justify-items: center; /* 中のカード自体も中央に */
}

/* 845px以下の時（2列） */
@media screen and (max-width: 845px) {
  .productshandled {
    grid-template-columns: repeat(2, 1fr);
    /* 隙間が少し狭い方が綺麗なら、ここでgapも調整できます */
    gap: 20px 15px;
    width: 536px;
  }
}
/* ついでにスマホ用：500px以下（1列） */
@media screen and (max-width: 567px) {
  .product-handle-container h2 {
    padding-top: 2px;
  }
  .productshandled {
    grid-template-columns: 1fr;
    width: 250px !important;
  }
  .product-handle-title {
    justify-content: center;
    padding-left: 0 !important;
  }
  .product-handle-title h2 {
    font-size: 20px !important;
    padding-top: 6px;
  }
  .product-item {
    min-height: 263px !important;
  }
}
.Contact-button a {
  transition: transform 0.5s ease;
  display: inline-block;
  text-decoration: none;
}
.Contact-button:hover a {
  transform: scale(1.1);
}

.contact-form-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* フォーム全体の幅調整 */
.contact-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

/* 各項目の上下余白 */
.form-item {
  margin-bottom: 24px;
}

/* タイトルのデザイン */
.form-label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
  font-size: 15px;
}

/* 必須ラベル */
.required {
  background: #a35d5b; /* ボタンの色に合わせると統一感が出ます */
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

/* 入力欄（input/select/textarea）の共通デザイン */
.contact-form-wrapper input[type=text],
.contact-form-wrapper input[type=email],
.contact-form-wrapper input[type=tel],
.contact-form-wrapper select,
.contact-form-wrapper textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  font-size: 16px; /* スマホでズームされないための最小サイズ */
  box-sizing: border-box;
}

/* 送信ボタンのカスタマイズ */
.form-submit {
  position: relative;
  text-align: center;
  margin-top: 40px;
}

.wpcf7-spinner {
  position: absolute !important; /* 物理的なスペースを消滅させる */
  margin: 0 !important; /* 左右の余白を強制排除 */
  right: 20px; /* ボタンに被らないよう右側に逃がす */
}

.form-submit input[type=submit] {
  background-color: #a35d5b;
  color: #fff;
  border: none;
  padding: 15px 60px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
}

.form-submit input[type=submit]:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* 1. メッセージ全体の枠（共通の初期化） */
.wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 15px !important;
  border-radius: 8px !important;
  border: 2px solid transparent !important; /* デフォルトの線を消す */
  font-weight: bold;
  text-align: center;
}

/* 2. 送信成功した時（緑っぽく） */
.wpcf7 form.sent .wpcf7-response-output {
  background-color: #e6f4ea !important;
  border-color: #57a473 !important;
  color: #1e4620 !important;
}

/* 3. 入力エラーがある時（赤っぽく） */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unconfirmed .wpcf7-response-output {
  background-color: #fce8e6 !important;
  border-color: #d93025 !important;
  color: #a50e0e !important;
}

/* 4. 入力欄のすぐ下に出るエラー（赤文字） */
.wpcf7-not-valid-tip {
  color: #d93025 !important;
  font-size: 0.9em;
  margin-top: 5px;
  display: block;
}

@media (max-width: 900px) {
  .contact-form-title {
    height: 27px !important;
  }
  .contact-form-title h3 {
    font-size: 18px !important;
    line-height: 1.1;
    height: 23px !important;
  }
}
@media (max-width: 599px) {
  .contact-form-title h3 {
    padding-top: 8px;
  }
}

/*# sourceMappingURL=style.css.map */
