/*
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;
  margin-bottom: 0;
}
@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;
  }
}

.page-id-19 .page-header {
  display: none;
}

/**********メインcss**********/

/* 全体のレイアウト */
.counter-container {
  font-family: sans-serif;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

label {
  font-weight: bold;
  color: #333;
}

/* 入力エリアの装飾 */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

input[type="number"] {
  width: 100%;
  padding: 12px 45px 12px 15px; /* 右側に単位のスペースを確保 */
  font-size: 1.2rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  /* スピナーを消す設定 */
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"]:focus {
  border-color: #4caf50; /* 入力中、緑色に強調 */
}

/* 「回」という単位の配置 */
.unit {
  position: absolute;
  right: 15px;
  color: #666;
  font-weight: bold;
  pointer-events: none; /* 単位をクリックしても入力の邪魔をしない */
}

/* 追加ボタンの見た目 */
#add-button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

#add-button:hover {
  background-color: #45a049;
}

/* 各セットの間に余白を作る */
.counter-container {
  margin-bottom: 15px;
  display: flex;
  gap: 10px;
}

.goal-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
}

/* タブデザイン */
.tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
}
.tab-btn {
  flex: 1;
  padding: 10px;
  background: #eee;
  border: none;
  border-radius: 5px 5px 0 0;
  cursor: pointer;
}
.tab-btn.active {
  background: #0056b3;
  color: white;
  font-weight: bold;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
/**********メインcss_ここまで**********/

.history-section {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}
.history-item {
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
}
.sticky-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 15px;
  border-top: 2px solid #007bff;
  text-align: center;
}
#save-all-btn {
  width: 100%;
  padding: 15px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
}
