@charset "UTF-8";
@media screen and (max-width: 768px){
  .pconly{
    display: none !important;
  }
}
@media screen and (min-width: 769px){
  .sponly{
    display: none !important;
  }
  #entire{
    border-radius: 10px;
  }
}
nav.breadcrumb{
  display: block;
  background: #f5fdff;
}
nav.breadcrumb ol{
  display: flex;
  flex-wrap: wrap;
  margin: auto;
  width: 90%;
  max-width: 1200px;
  padding: 10px 0;
  list-style: none;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Roboto, "Droid Sans", "Yu Gothic", Meiryo, "Meiryo UI", sans-serif;
}
nav.breadcrumb ol li{
  position: relative;
  padding-right: 1.5em;
}
nav.breadcrumb ol li::before{
  content: ">";
  position: absolute;
  right: 3px;
}
nav.breadcrumb ol li:last-child::before{
  content: none;
}
.breadcrumb a{
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Roboto, "Droid Sans", "Yu Gothic", Meiryo, "Meiryo UI", sans-serif;
}

.main{
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Roboto, "Droid Sans", "Yu Gothic", Meiryo, "Meiryo UI", sans-serif;
  margin: auto;
  width: 90%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  padding: 40px 0 60px;
  flex-wrap: wrap;
}

main{
  width: 73%;
}
aside{
  width: 22%;
  position: sticky;
  top: 100px;
  height: 100%;
}
aside .side-cta{
  position: relative;
  margin-bottom: 10px;
}
aside .side-cta .back{
  width: 100%;
}
aside .side-cta .btn1,
aside .side-cta .btn2{
  position: absolute;
  left: 8%;
  bottom: 10%;
  width: 80%;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}
aside .side-cta .btn1{
  bottom: 2%;
  width: 57%;
  left: 40%;
}

#entire{
  background-color: #cfe2ff;
  display: flex; 
  justify-content: center;
}

.paidMoney{
  text-align: right;
}

.title{
  margin: 25px 0;
}
h2.title{
  font-size: 24px;
}
.method{
  margin: 15px;
}

.error {
  color: red;
  font-weight: bold; /* 強調したいなら */
}

.info{
  margin: 20px 5px;
}

#modal {
  display: none;
  top: 0; left: 0;
  margin: 30px 0;
  justify-content: center;
  z-index: 10000;
}

/* 詳細モーダルの中身 */
#modalContent {
  text-align: center;
  margin-top: 15px;
}

#calculationMethod {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

#modalMethod {
  background: white;
  /* padding: 5%; */
  border-radius: 5px;
  text-align: center;
  margin: 30px;
  text-align: left;
  max-height: 90vh;
  overflow-y: auto;
}

.detail{
  text-align: right;
}
/* ボタンサイズ */
.button{
  width: 120px;
  height: 50px;
  background-color: #008DFB;
  border: 0;
  margin: 3px;
  border-radius: var(--calc-radius);
  box-shadow: var(--calc-shadow);
  color: #ffffff;
  font-weight: bold;
  transition-duration: 0.3s;
  cursor: pointer;
}
.button:hover {
  transform: scale(1.1); 
}

.button.sub{
  background-color: #90BFEF;
  margin: 5px;
  width: 80px;
  height: 45px;
  font-size: 13px;
}

#btns{
  display: flex;
  justify-content: right;
}

.link{
  color: blue;
   text-decoration: underline;  
}

.label{
    width: 60px;
    text-align: center;
}

/* .input::placeholder{
  color: #008DFB;
  opacity: 0.7;
} */


:is(.input, #prefecture){
  border-radius: 5px;
  border: 1.5px solid #8b8b8b;
  padding: 6px;
  width: 150px;
  font-size: 16px;
}
#debuct{
  margin: 20px 0;
}
#debuct b{
  font-size: 32px;
}

/* ===== Step1: 計算アプリ(#calcApp)のベースレイアウト ===== */

/* 1) トークン（色・角丸・影） */
:root {
  --calc-text: black;
  --calc-muted: #060607;
  --calc-accent: #2563eb;
  --calc-border: #e5e7eb;
  --calc-radius: 10px;
  --calc-shadow: 0 8px 24px rgba(0,0,0,.30);
}

/*ラッパーの読み幅＆上下余白 */
#calcApp {
  margin-inline: auto;
  max-width: 90%;
}

/*主要ブロックをカード化*/
#calcApp :is(#heading, #take, #disposableIncome ,#modalMethod) {
  background-color: white;
  border-radius: var(--calc-radius);
  box-shadow: var(--calc-shadow);
  /* カードと文字の間の空白 */
  padding-inline: clamp(16px, 10vw, 40px);
  padding-block: clamp(16px, 10vw, 25px);
  max-width: 700px;
  margin: 50px 0;
}

#expenseList{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 10px;
}

.notes{
  font-size: 14px;
  margin: 10px;
}

.delete, .add{
  width: 35px; 
  height: 35px; 
  margin: 10px; 
  border-radius: 20px;
}
#dispDisposableIncome b{
  font-size: 32px;
}

@media (max-width: 768px) {
  nav.breadcrumb{
    margin: 0;
  }
  .main{
    width: 100%;
    margin-top: 0;
    padding: 0;
  }
  main,
  aside{
    width: 100%;
  }
  #calcApp{
    width: 90%;
    max-width: 500px;
  }
  aside{
    max-width: 500px;
    margin: auto;
  }
  aside section{
    position: relative;
  }
  aside section > img{
    width: 100%;
  }
  aside a{
    position: absolute;
  }
  aside .btn1{
    top: 39%;
    left: 6%;
    width: 60%;
  }
  aside .btn2{
    top: 72%;
    left: 6%;
    width: 60%;
  }
  aside a img{
    width: 100%;
  }



  .label, .paid {
    width: 100px !important;   /* スマホでは横幅いっぱいに */
  }
  #calcApp :is(#heading, #take, #disposableIncome ,#modalMethod){
    padding: 10px;
  }
  .delete, .add{
    width: 25px;
    height: 25px;
    margin: 5px;
  }
}