@charset "utf-8";
/*
Template: jstork19
Theme Name: stork19_custom
Theme URI:http://open-cage.com/stork19/
Version: 1.3.0
Author: opencage
Author URI: https://open-cage.com/
*/

/***************************************/
/* reCAPTCHAバッジの非表示化 */
.grecaptcha-badge { visibility: hidden; }

/***************************************/
/* お問い合わせフォーム */
.wpcf7-form {
  padding: 20px;
  border-radius: 8px;  /* 角丸 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);  /* ボックスシャドウ */
  max-width: 600px;  /* PCでは最大幅を制限 */
  margin: 0 auto;  /* 中央寄せ */
  transition: box-shadow 0.3s; /* ホバー時に滑らかに変化 */
}

/* ホバー時のシャドウ効果 */
.wpcf7-form:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* テーブルスタイル */
.wpcf7-form table {
  width: 100%;
  border-collapse: collapse;
}

.wpcf7-form table th,
.wpcf7-form table td {
  padding: 10px;
  border: 1px solid #ddd;
}

.wpcf7-form table th {
  background: linear-gradient(to bottom, #fffcf2, #f8f4e6);
}

.wpcf7-form table td {
  background: white !important;
}

/* 入力フィールド */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

/* 入力時にシャドウが強調される */
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  box-shadow: 0 0 8px rgba(100, 150, 255, 0.5);
  outline: none;
}

/* 送信ボタン */
.wpcf7-form input[type="submit"] {
  background: linear-gradient(to bottom, #f26c6c, #e44e4e);
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s;
}

.wpcf7-form input[type="submit"]:hover {
  background: linear-gradient(to bottom, #e44e4e, #c93434);
}

/* スマホ対応 */
@media only screen and (max-width: 480px) {
  .wpcf7-form {
    width: 100%;
    padding: 15px;  /* スマホではパディングを小さく */
    box-shadow: none;  /* シャドウを除去してシンプルに */
  }
  
  .wpcf7-form table th,
  .wpcf7-form table td {
    display: block;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
  }
	
  .wpcf7-form table th {
    background: linear-gradient(to bottom, #fffcf2, #f8f4e6);
  }

  .wpcf7-form table td {
    background: white !important;
  }

  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="email"],
  .wpcf7-form textarea {
    width: 100%;
  }
}

/***************************************/
/* メニューの余白 */
@media only screen and (max-width: 767px) {
  .ul__g_nav .menu-item:first-child {
    padding-left: 0.2em;
  }
  .ul__g_nav .menu-item {
    padding-right: 0.1em;
  }
}

/***************************************/
/* アフィリエイトリンク */
/* 日本 */
.affiliate-japan {
  position: relative;
  max-width: 300px;
  min-width: 100px;
  margin: 16px 0 16px 0;
  border-radius: 0px;
  overflow: visible;
}

.button-overlay-vertical {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 70%;                           /* 縦中央 */
  right: 10px;                       /* 画像右からはみ出す位置 */
  transform: translateY(-20%);        /* 縦中央調整 */
  align-items: flex-start;            /* 左寄せでボタンが画像に重なるように */
  box-sizing: border-box;
  gap: 0px;
  line-height: 1.0;
}

.amazon-btn,.rakuten-btn {
    display: block;
    max-width: 100%;
    min-width: 90px;
    background-size: 100% 200%;
    margin: 0;
    padding: .8em .8em;
    color: #fff;
    border-radius: 6px;
    border: none;
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    font-size: clamp(.8em,1.0vw,1.0em);
    transition: background-position .3s ease
}

.amazon-btn {
  background-image: linear-gradient(to bottom, #ffcb7f, #f19000);
}

.rakuten-btn {
  background-image: linear-gradient(to bottom, #ff7474, #bf0000);
}

.amazon-btn:hover,
.rakuten-btn:hover {
  background-position: bottom center;
  opacity: 0.9;
}

/* 海外 */
.affiliate-foreign {
  position: relative;
  display: inline-block;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.affiliate-foreign img {
  width: 100%;
  height: auto;
  display: block;
}

.affiliate-btn {
  position: absolute;
  bottom: 0%;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  background-image: linear-gradient(to bottom, #13AAB8, #184191);
  background-size: 100% 200%;
  padding: 0.2em 0.6em;
  color: #fff;
  font-size: clamp(0.8em, 1.2vw, 1em);
  border: none;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  transition: background-position 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.affiliate-btn:hover {
  background-position: bottom center;
  opacity: 0.9;
}
