@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "HG行書体", monospace;
}

/* スマホ用 */
@media screen and (max-width: 768px) {
    /* スタイルを適用するCSS */




img {
    border: 0;
    max-width: 100%;
    height: auto;
}

body {
    margin: 0 auto;
    max-width: 1360px;
}

#wrapper {
    width: 100%;
    background-color: #f5f0eb;
    margin: 0 auto;
}

.inner {
    width: 100%;
    height: 75px;
    margin:  auto;
    
}

h1 {
    width: 300px;
    height: 125px;
    padding: 0px 0 0 60px;

}
h1 img{
    width: auto;
    height: 70px;
    
}

ul li a {
    text-decoration: none;
}

header {
    display: flex;
}
header #sp_menu{
    width: 60px;
    cursor: pointer;
}
nav {
    display: none;
    position: fixed;
    top:70px;
    left: 0;
    width: 100%;
}

nav ul {
   
    list-style-type: none;


}
nav ul li{
    border-bottom: #fff;
    text-align: center;
}

nav ul li a {
    background-color: #f2cbd2;
    font-size: 1em;
    display: block;
    border-bottom: 1px solid #fff;
    padding: 20px 0;
    
}

nav ul li a:hover{
    background-color: #843f08;
    color: #f2cbd2;
}



h2{
    text-align: center;
   
}


.kodawari {
    display: flex;
}



#shindan,
#subvisual,
#access {
    max-width: 1160px;
    margin: 0 auto;
}

.container {
    background-color: #843f08;
}

#access {
    margin: 20px auto 0;
    display: block;
    }
.add h2{
    border-bottom: 1px solid #999;
}
.add,
.map {
    margin: auto;
    padding:auto;
    font-size: 0.8em;
    }
.map{
    position: relative;
    padding-top: 50%;
}
.map iframe{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.address {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }
  .address dt, .address dd {
    box-sizing: border-box;
  }
  .address dt {
    display: flex;
    align-items: center;
    width: 30%;
    padding: 20px;
    background-color: #f5f0eb;
    border-bottom: 1px solid #999;
    
  }
  .address dt:last-of-type,
  .address dd:last-of-type {
    border: none;
  }
  .address dd {
    display: flex;
    align-items: center;
    width: 70%;
    margin-left: 0;
    padding: 20px;
    background-color: #fff;
    border-bottom: 1px solid #999;
  }
        

.add p {
    text-align: center;
    background-color: #843f08;
    color: #fff;
}

#subvisual {
    color: #fff;
}

#subvisual h2,
#shindan h2 {
    padding: 20px;
    font-size: 1em;
}

.kodawari p {
    font-size: 1em;
    text-align: center;
}

#keyvisual,
.kodawari {
    display: block;
   margin-bottom: 20px;
}



#subvisual p,
#shindan {
    margin-bottom: -5px;
}

/*ここからは料金案内*/
#annai {
    text-align: center;
}

#annai h2 {
    font-size: 1.5em;
    border-bottom: 3px solid #843f08;
    display: inline-block;
    margin-top: 10px;
    
}

.ryoukin_hyou caption {
    margin-top: 10px;
    font-size: 1em;
    font-family: monospace;
    
}

th,
td {
    width: 30%;
    height: 100%;
    text-align: center;
    border: 1px solid #333;
    font-size: 1em;
    font-family: monospace;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    margin: auto;
}

#ryoukin_waku {
    padding: 10px;
    text-align: center;
    
}

#ryoukin_waku p {
    font-size: 1em;
    font-family: monospace;
    
}

/*ここからはご相談の流れ*/
.contents {
    width: 80%;
    height: 80%;
    background-color: #cce198;
    margin: 10px auto;
    padding: 10px;
    border-radius: 30px;
}

img.img_contents {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

.contents h2 {
    text-align: center;
    padding-left: 10px;
}

.contents h2,
.contents p {
    font-size: 1em;
    font-family: monospace;
    margin-bottom: 20px;
}

.c_contents {
    align-items: center;
    display: block;
}



#soudan_nagare {
    text-align: center;
}

#soudan_nagare h2 {
    font-size: 1.5em;
    border-bottom: 3px solid #843f08;
    display: inline-block;
    margin-top: 10px;
}
/*ここからは漢方について*/

#s_about_kanpo {
    text-align: center;
    padding-bottom: 10px;
}

#s_about_kanpo h2 {
    font-size: 3em;
    border-bottom: 5px solid #843f08;
    display: inline-block;
    margin-top: 30px;

}

#difference {
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #e1a16d;

}

#difference p {
    font-family: monospace;
}

#difference h2 {
    margin: 20px;
}

#difference h3 {
    font-size: 2em;
    text-align: center;
    margin: 10px;
}

#d_top {
    margin: 20px auto;
    padding-bottom: 20px;
    border-radius: 30px;
    width: 95%;
    border: 1px solid #333;
    background-color: #f5f0eb;
}

.merit {margin: 0 auto;
    font-size: 1.2em;
    background-color: #f5efd8;
    width: 95%;
    border-radius: 10px;
    border: 1px solid #333;

}

.merit_tag {
    text-align: center;
}

.d_contents {
    align-items: center;
    display: block;
}

img.img_d_contents {
    
    width: 100%;
    height: auto;
    border-radius: 50%;
}
/*ここからは漢方診断*/
#yakuzaishi {
    margin: 0 auto;
    width: 80%;
    height: 80%;
    position: relative;

}



#item {
    margin: 0 auto;
    width: 80%;
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 3em;


}

#item li a,
.buy a {
    padding: 20px 5px;
    display: inline-block;
    color: #333;
    text-decoration: none;
    text-align: center;
    font-family: monospace;
    border-radius: 20px;
    background-color: #f2cbd2;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.3);
    width: 250px;
    margin: 10px auto;
    font-size: 0.8em;
}

@media screen and (max-width:900px) {
    #item li {
        margin: 0 auto;
        font-size: 0.7em;
    }

    #item li a {
        margin: 10px auto;
    }
}

.buy a {
    background-color: #f18597;
    color: #f3ecec;
    font-size: 1.4em;
    width: 350px;
}

#item li a:hover,
.buy a:hover {
    background-color: #f0dce0;
    color: #b1afac;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0);
}

#sp_menu {
    margin-left: auto;
    display: flex;
    align-items: center;  
    background-color: #fff;
}
/*#answer p{text-align: center;
    background-color: #f6f461;
    border-radius: 50px;
    padding: 20px 0;
    border: 5px solid #ed6981;
    font-size: 3em;
    margin: 0 auto;
    width: 300px;
}*/
#answer p {
    text-align: center;
    background-color: #f6f461;
    border-radius: 50px;
    padding: 10px; /* 上下左右のパディングを設定 */
    border: 5px solid #ed6981;
    font-size: 3em;
    margin: 0 auto;
    width: 80vw; /* 最大幅を設定 */
}



#answer {
    position: absolute;
    height: auto;
    left: -100%; /* 画面外の左側から開始 */
    top: 18%;
    transform: translate(-50%, -50%); /* 中央に移動 */
    animation: slideIn 5s forwards; /* アニメーションの時間と停止状態で終了 */
    animation-delay: 0s;
}

@keyframes slideIn {
    0% {
        left: -100%;
    }
    50% {
        left: 50%; /* 途中で中央に移動 */
    }
    99.9%,
  to {
        left: 50%; /* 真ん中に止まる */
    }
}
@-webkit-keyframes slideIn {
    0% {
        left: -100%;
    }
    50% {
        left: 50%; /* 途中で中央に移動 */
    }
    99.9%,
  to {
        left: 50%; /* 真ん中に止まる */
    }
}

footer{
    display: none;
}
#mainfooter {
    background-color: #843f08;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

nav{
    display: none;
}

#sp_menu {
    display: none;
}


}