/**
Theme Name: ichinohehome
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ichinohehome
Template: astra
*/

/*----------------------------------------
  iOS端末でアクセス時に横スワイプできてしまう不具合への対応
  意図せず横方向にスワイプできる問題を防止
----------------------------------------*/
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/*----------------------------------------
// iOS端末で改行せず、スクロールしてしまうバグ対応
//--------------------------------------*/
.elementor-popup-modal .elementor-widget-text-editor {
  white-space: normal;
  word-break: break-word;
}

/*----------------------------------------
// アイキャッチ画像がTOPに出てしまう問題
//--------------------------------------*/
.entry-header {
  display: none;
}

/*----------------------------------------
// テキストウィジェット内の段落のマージンを無効化
//--------------------------------------*/
.no-margin-p p {
  margin-bottom: 0;
}

/*----------------------------------------
// under 10px text
//--------------------------------------*/
.size9-txt{
  display:block;
  font-size: 10px;
  transform: scale(0.9);
}
.size8-txt{
  display:block;
  font-size: 10px;
  transform: scale(0.8);
}
.size7-txt{
  display:block;
  font-size: 10px;
  transform: scale(0.7);
}
.size6-txt{
  display:block;
  font-size: 10px;
  transform: scale(0.6);
}
.size5-txt{
  display:block;
  font-size: 10px;
  transform: scale(0.5);
}

/*----------------------------------------
// mouse selection styles
//--------------------------------------*/
::-moz-selection {
  color: #fff !important
  background-color: #CDA97D !important
}
::selection {
  color: #fff !important;
  background-color: #CDA97D !important
}

/*----------------------------------------
// display
//--------------------------------------*/
/* pc only new line */
.br-pc {
  display: block;
}
@media (max-width: 767px) {
  .br-pc {
    display: none;
  }
}
/* mobile only new line */
.br-sp {
  display: none;
}
@media (max-width: 767px) {
  .br-sp {
    display: block;
  }
}
/* mobile only delete */
.delete-sp {
  display: inline-block;
}
@media (max-width: 767px) {
  .delete-sp {
    display: none;
  }
}

/*----------------------------------------
// bg dot
//--------------------------------------*/
.bg-dot1 {
  background-image: radial-gradient(#CDA97D 30%, transparent 30%);
  background-size: 8px 8px;
}

/*----------------------------------------
// marker
//--------------------------------------*/
.marker-theme {
  background: linear-gradient(transparent 90%, #CDA97D 90%);
}

/*----------------------------------------
// underline
//--------------------------------------*/
.underline-dotted {
  background-image : linear-gradient(to right, #CDA97D 8px, transparent 8px);
  background-size: 18px 1px;
  background-repeat: repeat-x; 
  background-position: left bottom;
}

/*----------------------------------------
// container link
//--------------------------------------*/
.box-link {
  text-decoration: none !important;
}

/*----------------------------------------
// Loop GridのPost Titleを固定
// PC:2行、モバイル:3行
//--------------------------------------*/
.custom-post-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2; /* デフォルトで2行に制限 */
  min-height: 3em; /* 行間に応じて調整：1.5em × 2行 */
  line-height: 1.5;
  font-size: 1rem;
}

/* モバイル（幅768px以下）では3行に制限し高さも調整 */
@media (max-width: 768px) {
  .custom-post-title {
    -webkit-line-clamp: 3;
    min-height: 4.5em; /* 1.5em × 3行分 */
  }
}

/*----------------------------------------
// news widget styles
//--------------------------------------*/
/* pagenation */
.page-numbers {
  padding: 8px 12px !important;
  border: 1px solid #1A1A1A;
  border-radius: 4px;
  color: #1A1A1A;
  background: #CDA97D;
}
.page-numbers:hover {
  color: #CDA97D;
  background-color: #1A1A1A;
  border: 1px solid #1A1A1A;
}
.current {
  color: #CDA97D;
  background-color: #1A1A1A;
  border: 1px solid #1A1A1A;
  border-radius: 4px;
}
.current:hover {
  color: #CDA97D;
  background-color: #1A1A1A;
  border: 1px solid #1A1A1A;
}
.elementor-pagination {
  letter-spacing: 0px !important;
}

/*----------------------------------------
// tag bg style
//--------------------------------------*/
.tag-txt {
  background:#CDA97D;
  padding: 0.3rem 1rem;
  border-radius: 20px;
}

/*----------------------------------------
// Post Info内のカテゴリ部分にスタイルを適用
//--------------------------------------*/
.custom-post-category .elementor-icon-list-items .elementor-post-info__item {
  background: #CDA97D;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  display: inline-block;
}
.custom-post-category .elementor-icon-list-items .elementor-post-info__item a {
  color: #fff;
  text-decoration: none;
}

/*----------------------------------------
// Elementor Form Widget
// checkbox, radio, acceptanceのカスタム配色
//--------------------------------------*/
/* 共通スタイル（checkbox & radio） */
.custom-form input[type="checkbox"],
.custom-form input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0;
  border: 2px solid #7A7A7A;
  background-color: #fff !important; /* 常に白背景 */
  position: relative;
  cursor: pointer;
  vertical-align: middle;
  transition: all 0.2s ease-in-out;
  display: inline-block;
}

/* ✓マークのスタイル（checkbox & acceptance） */
.custom-form input[type="checkbox"]:checked::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: 14px;
  line-height: 1;
  color: #CDA97D;
}

/* radio専用スタイル */
.custom-form input[type="radio"] {
  border-radius: 50%;
}

.custom-form input[type="radio"]:checked::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #CDA97D;
  border-radius: 50%;
}

/* ラベル整列と見た目調整 */
.custom-form .elementor-field-option {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.custom-form .elementor-field-option label {
  cursor: pointer;
  margin: 0;
  color: #333;
}

/* フォーカス時のアクセント */
.custom-form input[type="checkbox"]:focus,
.custom-form input[type="radio"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(205, 169, 125, 0.4);
}

/*----------------------------------------
// animation button
//--------------------------------------*/
.down-button {
  animation-name:updown1;
  animation-delay:0s;
  animation-duration: 2.4s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite; 
}
@keyframes updown1 {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}
