/* custom.css - Flexbox版（HTMLに合わせた） */
/* フキダシ＆猫アイコン - Flexbox + レスポンシブ版 */

/* マスコット全体 */
.mascot-section {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  margin-top: 40px;
}

/* フキダシ */
.speech-bubble {
  flex: 1 1 auto;
  min-width: 200px;
  max-width: none;
  background-color: #ffffff;
  border: 2px solid #333;
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.speech-bubble p {
  margin: 0;
  font-size: 15px;
  text-align: center;
  word-break: keep-all;
}

.speech-bubble a {
  color: #46e0cc;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
  display: inline-block;
}

.speech-bubble a:hover {
  color: #aefe7c;
  text-decoration: underline;
}

/* フキダシの三角形（黒い枠線） */
.speech-bubble::before {
  content: '';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid #333;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  z-index: 0;
}

/* フキダシの三角形（白） */
.speech-bubble::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid #ffffff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  z-index: 1;
}

/* 猫アイコン */
.cat-icon {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  background-image: url(../images/dot_drnk.png);
  background-size: 120px 120px;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated !important;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* たぬきアイコン */
.col:last-of-type {
  position: relative;
}

.tanu-icon {
  position: absolute;
  right: 20px;
  bottom: 40px;
  width: 120px;
  height: 120px;
  background-image: url(../images/dot_tanu.png);
  background-size: 120px 120px;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated !important;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* ========================================== */
/* レスポンシブ対応 */
/* ========================================== */

/* タブレット横向き（768px～991px） */
@media screen and (max-width: 991px) and (min-width: 768px) {
  .mascot-section {
    gap: 10px;
    margin-top: 30px;
  }

  .speech-bubble {
    flex: 1 1 auto;
    min-width: 160px;
    max-width: 100%;
    padding: 16px 20px;
    font-size: 14px;
  }

  .speech-bubble p {
    font-size: 14px;
  }

  .speech-bubble::before {
    right: -14px;
    border-left: 14px solid #333;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
  }

  .speech-bubble::after {
    right: -11px;
    border-left: 11px solid #ffffff;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
  }

  .cat-icon {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    background-size: 100px 100px;
  }

  .tanu-icon {
    right: 120px;
    bottom: 40px;
    width: 100px;
    height: 100px;
    background-size: 100px 100px;
  }
}

/* スマートフォン（600px～767px） */
@media screen and (max-width: 767px) {
  .mascot-section {
    margin-top: 30px;
    gap: 8px;
  }

  .speech-bubble {
    flex: 1 1 auto;
    min-width: 150px;
    max-width: none;
    padding: 12px 16px;
    font-size: 13px;
    border-radius: 15px;
  }

  .speech-bubble p {
    font-size: 13px;
  }

  .speech-bubble::before {
    right: -14px;
    border-left: 14px solid #333;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
  }

  .speech-bubble::after {
    right: -10px;
    border-left: 10px solid #ffffff;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
  }

  .cat-icon, .tanu-icon {
    flex: 0 0 85px;
    width: 85px;
    height: 85px;
    background-size: 85px 85px;
  }


}

/* 小型スマートフォン（～599px） */
@media screen and (max-width: 599px) {
  .mascot-section {
    margin-top: 20px;
    gap: 6px;
  }

  .speech-bubble {
    min-width: 120px;
    padding: 10px 14px;
    font-size: 12px;
    border-radius: 12px;
    border-width: 1px;
  }

  .speech-bubble p {
    font-size: 12px;
  }

  .speech-bubble a {
    font-size: 11px;
  }

  .speech-bubble::before {
    right: -12px;
    border-left: 12px solid #333;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
  }

  .speech-bubble::after {
    right: -9px;
    border-left: 9px solid #ffffff;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
  }

  .cat-icon {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    background-size: 70px 70px;
  }

  .tanu-icon {
    right: 15px;
    bottom: 20px;
    width: 70px;
    height: 70px;
    background-size: 70px 70px;
  }
}

/* 超小型スマートフォン（～479px） */
@media screen and (max-width: 479px) {
  .mascot-section {
    margin-top: 15px;
    gap: 5px;
  }

  .speech-bubble {
    min-width: 100px;
    padding: 8px 12px;
    font-size: 11px;
    border-radius: 10px;
  }

  .speech-bubble p {
    font-size: 11px;
  }

  .speech-bubble a {
    font-weight: 400;
    font-size: 10px;
  }

  .speech-bubble::before {
    right: -10px;
    border-left: 10px solid #333;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
  }

  .speech-bubble::after {
    right: -8px;
    border-left: 8px solid #ffffff;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
  }

  .cat-icon {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    background-size: 60px 60px;
  }

  .tanu-icon {
    right: 10px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background-size: 60px 60px;
  }
}

/* ========================================== */
/* 言語切り替えボタン（右下フロート） */
/* ========================================== */

/* PC画面時のみ html の高さを固定 */
@media screen and (min-width: 768px) {
  html {
    height: 100vh;
    overflow: hidden;
  }
}

.lang-switch {
  position: fixed;
  right: 20px;
  bottom: 20px;
  margin: 0;
  font-size: 13px;
  white-space: nowrap;
  background-color: #ffffff;
  border: 2px solid #46e0cc;
  border-radius: 20px;
  padding: 8px 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.lang-switch a {
  color: #46e0cc;
  text-decoration: none;
  font-weight: 400;
  transition: 0.3s;
  display: inline-block;
  margin: 0 3px;
}

.lang-switch a:hover {
  color: #aefe7c;
}

/* 言語切り替えのレスポンシブ対応 */
@media screen and (max-width: 767px) {
  .lang-switch {
    right: 15px;
    bottom: 80px;
    font-size: 12px;
  }
}

@media screen and (max-width: 479px) {
  .lang-switch {
    right: 10px;
    bottom: 70px;
    font-size: 11px;
    padding: 6px 10px;
  }
}

/* ========================================== */
/* 更新履歴トグルリンク - 右寄せ */
/* ========================================== */

.toggle-history {
  display: block;
  text-align: right;
  color: #46e0cc;
  text-decoration: none;
  font-size: 13px;
  margin: 10px 0;
  transition: 0.3s;
}

.toggle-history:hover {
  color: #aefe7c;
  text-decoration: underline;
}

/* ========================================== */
/* SVGアイコン共通スタイル */
/* ========================================== */

svg.icon {
  display: inline-block;
  vertical-align: -0.125em;
  width: 1em;
  height: 1em;
  margin-right: 0.5em;
    vertical-align: middle;  /* ← middle を試す */
}

/* ホバー時のアニメーション */
a svg.icon {
  transition: color 0.2s, transform 0.2s;
}

a:hover svg.icon {
  color: #ff6b6b;
  transform: scale(1.1);
}

/* 特定のコンテキスト別スタイル */
.contact svg.icon {
  color: inherit;
}

.nav svg.icon {
  width: 1.2em;
  height: 1.2em;
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
  svg.icon {
    color: #e0e0e0;
  }
}