/*
Theme Name: okuyami Child
Theme URI: 
Template: okuyami
Description: 
Author: 
Tags: 
Version: 0.6.0
*/

/**********基本構成**********/
/*はみ出し禁止*/
* {
  -webkit-box-sizing: border-box !important;
  -moz-box-sizing: border-box !important;
  -o-box-sizing: border-box !important;
  -ms-box-sizing: border-box !important;
  box-sizing: border-box !important;
}

p {
  font-size: 18px;
}
@media screen and (max-width: 767px) {
  p {
    font-size: 16px;
  }
}

h1,
h2,
h3,
h4,
h5 {
  border: none;
  margin: 0 0 16px 0;
  padding: 0 0 0 0;
}

h1::after,
h2::after,
h3::after,
h4::after,
h5::after {
  border-bottom: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

li {
  margin-bottom: 16px;
}

dl {
  margin: 0;
  padding: 0;
}
dt {
  margin: 0;
  padding: 0;
  border: none;
}
dd {
  margin: 0;
  padding: 0;
  border: none;
}
/*スマホで表示*/
@media (min-width: 767px) {
  .only-sp {
    display: none !important;
  }
}

/*pcで表示*/
@media (max-width: 767px) {
  .only-pc {
    display: none !important;
  }
}

/**********メインcss**********/
h1.ttl {
  font-weight: bold;
  font-size: 20px;
}
@media screen and (max-width: 767px) {
  h1.ttl {
    font-size: 20px;
    font-weight: bold;
  }
}

.button-box {
  text-align: center;
  display: flex;
  justify-content: space-evenly;
}

form button.form-button {
  width: 25%;
  color: #fff;
  background-color: #007bff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1rem 1rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  border-radius: 0.5rem;
  border-color: #007bff;
}

@media screen and (max-width: 767px) {
  form button.form-button {
    width: 45%;
  }
}

.form-button:hover,
a.form-button:hover {
  color: #007bff;
  background: #fff;
}

div.box {
  margin-top: 1em;
  margin-bottom: 1em;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  background-color: #f9f9f9;
}

div.att_box {
}

div.att_box ul li {
  color: red;
  font-weight: bold;
  font-size: 20px;
}

div.box h3.hit_msg {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 0.5em;
}

.hit_msg.msg1 span {
  color: red;
}

div.box h3.hit_msg:nth-last-of-type(1) {
  border-bottom: 2px dotted #000;
  padding-bottom: 0.5em;
  margin-bottom: 0.5em;
}

section form {
  margin-bottom: 20px;
}

.name-checker-results-wrapper {
  /* display: flex;
  flex-wrap: wrap; */
}

/* 一致メッセージのヘッダー部分 */
.result-header {
  border-bottom: 1px solid #ddd; /* 下線 */
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.result-header h3 {
  margin: 5px 0; /* メッセージ間の余白を調整 */
}

@media screen and (max-width: 767px) {
  .result-header h3 {
    font-size: 20px;
  }
}

/* 右カラムの左側に区切り線を追加 */
.column-right {
  /* border-left: 1px solid #ddd; */
}

li.menu-item-type-post_type {
  background: #007bff;
  margin: 0 5px;
}

.siteHeader .gMenu a {
  color: #fff;
}

.form-group.honeypot {
  display: none;
  visibility: hidden;
}

.vk-mobile-nav nav ul li a {
  color: #fff;
}

/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
/* 結果表示エリア全体         */
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
.name-checker-results-wrapper {
  margin-top: 20px;
}

/* タブコンテナ */
.tabs-container {
  margin-top: 20px;
}
.tab-buttons {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.tab-button {
  width: 20%;
  padding: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  background-color: #f1f1f1;
  font-size: 16px;
  margin-bottom: 20px;
  border-radius: 50px;
}

@media screen and (max-width: 767px) {
  .tab-button {
    width: 48%;
    font-size: 14px;
  }
}

.tab-button:hover {
  background-color: #ddd;
}
.tab-button.active {
  background-color: #c6e4ff;
  /* border-color: #ccc; */
}

.tabs-container .tab-panel {
  display: none;
}
.tabs-container .tab-panel.active {
  display: block !important;
}

.tab-content {
  /* background-color: #fff; */
  /* border: 1px solid #ccc; */

  /* padding: 20px; */
  /* Gridレイアウトを適用 */
  display: grid;
  /* Gridの高さを、中のコンテンツに応じて自然に広がるようにする */
  grid-template-rows: auto;
}

@media screen and (max-width: 767px) {
  .tab-content {
    /* padding: 10px; */
  }
}

/* 各タブパネル */
.tab-panel {
  /* 全てのパネルをグリッドの同じ場所(1行目/1列目)に重ねて配置 */
  grid-area: 1 / 1;

  /* display:none の代わりに visibility を使用 */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease-in-out, visibility 0.2s;
}

/* アクティブな（表示中の）タブパネル */
.tab-panel.active {
  visibility: visible;
  opacity: 1;
}

/* 個別の結果コンテナ */
.result-container {
  border: 2px solid #6c757d;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 20px;
  background-color: #fff;
  box-shadow: 4px 4px #666;
}

@media screen and (max-width: 767px) {
  .result-container {
    padding: 15px 10px;
  }
}

.result-container:last-child {
  margin-bottom: 0;
}
.result-header {
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 15px;
}
.result-header h3 {
  margin: 5px 0;
  font-size: 1.1em;
}
.hit_msg.msg1 span {
  color: red;
}

/* 2カラム表示 */
.result-columns {
  display: flex;
  gap: 20px;
}

@media screen and (max-width: 767px) {
  .result-columns {
    flex-direction: column;
    gap: 0;
  }
}

.column-left,
.column-right {
  flex: 1;
  min-width: 0; /* flexアイテムの縮小問題を解決 */
}

.column-left p:last-child {
  margin-bottom: 0;
}

.column-right {
  border-left: 1px solid #ddd;
  padding-left: 20px;
}

@media screen and (max-width: 767px) {
  .column-right p:last-child {
    margin-bottom: 0;
  }
}

.result-columns h4 {
  margin-top: 0;
  border-bottom: 2px solid #777;
  padding-bottom: 5px;
  font-size: 18px;
}

@media screen and (max-width: 767px) {
  .result-columns h4 {
    font-size: 16px;
  }
}

/* スマホでのレスポンシブ対応 */
@media screen and (max-width: 767px) {
  .result-header h3 {
    font-size: 18px;
  }

  .column-right {
    border-left: none; /* 縦線を削除 */
    padding-left: 0;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd; /* 横線を追加 */
  }
}

/**********メインcss_ここまで**********/
