
/*---------------------------------
リセットｃｓｓ
---------------------------------*/

*{
  padding: 0;
  margin: 0;
  }
.js-fadeinup-trigger,
.js-fadein-trigger {
  opacity: 0;
}   

html{
 font-size: 100%;
   overflow-x : hidden;
  -webkit-overflow-scrolling: touch;

}

body{
 color: #24292e;
   font-family: Segoe UI, Segoe UI, Segoe WP, Arial, Sans-Serif;
  line-height: 2;
  font-display: swap;
}
/* 横揺れ防止 */
html, body {
  overflow-x: hidden;
  width: 100%;
}



a{
 text-decoration: none;
   word-break: break-all;

}

img{
 max-width: 100%;
   height: auto;

}

li{
 list-style: none;
 font-size: 1.2rem;
}

.wrapper{
max-width: 960px;
margin: 0 auto 130px auto;
font-size: 0.9rem;
padding: 0 4%;
}

.button {
  position: relative;
  display: inline-block;
  padding: 0.8em 2em;
  text-decoration: none;
  color: black;
  background: pink;/*色*/
  border: solid 1px pink;/*線色*/
  border-radius: 25px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
  text-shadow: 0 1px 0 rgba(0,0,0,0.2);
  margin: 5px;
  font-size: 16px;
  
}

.button:active {
  /*押したとき*/
  border: solid 1px #03A9F4;
  box-shadow: none;
  text-shadow: none;
  
}
.button:hover{
  opacity: 0.8;
}
p {
  font-size: 1rem;
}

 
h1 {
  padding: 50px 0px;
}  
.guide {
  padding: 50px 0px;

}
@media screen and (max-width:600px) {
h1 {
text-align: center;
font-size: 23px;
padding: 20px 0;
}  
h1 span {
display: inline-block;
}
h2 span {
  display: inline-block;
}

#contents .flex {
  flex-direction: column;
}
#contents h2 {
  text-align: center;

}
.guide {
  text-align: center;
}

} 

  
.cta {
  margin-top: 70px;
}  

/* ========================================
   よくある質問｜いわき道学院
   トップページに合わせたデザイン
======================================== */



/* ========================================
   パンくずリスト
======================================== */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px max(24px, calc((100% - 1200px) / 2));
  background: #fff;
  border-bottom: 1px solid #edf0f3;
  color: #7b858d;
  font-size: 12px;
}

.breadcrumb a {
  color: #285d91;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #e87989;
}

/* ========================================
   メインコンテンツ
======================================== */

.wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

#contents {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

/* ページタイトル */
#contents > h1 {
  position: relative;
  margin: 0 calc(50% - 50vw) 52px;
  padding: 64px 20px;
  overflow: hidden;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-align: center;
}

/* タイトルにさりげない円の装飾 */
#contents > h1::before,
#contents > h1::after {
  position: absolute;
  content: "";
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  pointer-events: none;
}

#contents > h1::before {
  top: -145px;
  left: -70px;
}

#contents > h1::after {
  right: -70px;
  bottom: -175px;
}

/* ========================================
   FAQ セクション
======================================== */

.faq-section {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 0 56px;
}

/* 質問カード */
.faq-item {
  margin: 0 0 16px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e9f1;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(24, 57, 91, 0.045);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: #b9cde2;
  box-shadow: 0 5px 18px rgba(24, 57, 91, 0.08);
}

/* 質問部分 */
.faq-item summary {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 22px 52px 22px 22px;
  color: #203d5b;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  list-style: none;
  cursor: pointer;
}

/* 標準の三角マークを消す */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  content: "";
}

/* Q マーク */
.faq-item summary::before {
  content: "Q";
  display: flex;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  border-radius: 50%;
  background: #eaf1fb;
  color: #245d99;
  font-family: "Shippori Mincho", serif;
  font-size: 16px;
  font-weight: 700;
}

/* 開閉アイコン */
.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 23px;
  width: 12px;
  height: 12px;
  border-right: 2px solid #52718d;
  border-bottom: 2px solid #52718d;
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

/* 開いたとき */
.faq-item[open] {
  border-color: #c5d7e9;
}

.faq-item[open] summary {
  background: #f2f6fb;
  border-bottom: 1px solid #e1eaf4;
}

.faq-item[open] summary::after {
  transform: translateY(-25%) rotate(225deg);
}

/* 回答部分 */
.faq-item p {
  position: relative;
  margin: 0;
  padding: 22px 26px 25px 67px;
  color: #4b5965;
  font-size: 14px;
  line-height: 2.1;
  overflow-wrap: anywhere;
}

/* A マーク */
.faq-item p::before {
  position: absolute;
  top: 22px;
  left: 25px;
  content: "A";
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff0f2;
  color: #d96f81;
  font-family: "Shippori Mincho", serif;
  font-size: 15px;
  font-weight: 700;
}

/* 回答内のリンク */
.faq-item p a {
  color: #245d99;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-item p a:hover {
  color: #d96f81;
}

/* キーボード操作時 */
.faq-item summary:focus-visible {
  outline: 2px solid #397bb8;
  outline-offset: -3px;
}

/* ========================================
   スマートフォン
======================================== */

@media screen and (max-width: 719px) {

  .breadcrumb {
    gap: 6px;
    padding: 13px 18px;
    font-size: 11px;
  }

  .wrapper {
    padding: 0 18px 48px;
  }

  #contents {
    max-width: none;
  }

  #contents > h1 {
    margin-bottom: 32px;
    padding: 43px 16px;
    font-size: 25px;
    letter-spacing: 0.08em;
  }

  #contents > h1::before,
  #contents > h1::after {
    width: 180px;
    height: 180px;
  }

  .faq-section {
    padding-bottom: 28px;
  }

  .faq-item {
    margin-bottom: 12px;
    border-radius: 7px;
  }

  .faq-item summary {
    gap: 11px;
    padding: 17px 39px 17px 14px;
    font-size: 14px;
    line-height: 1.8;
  }

  .faq-item summary::before {
    flex-basis: 27px;
    width: 27px;
    height: 27px;
    font-size: 14px;
  }

  .faq-item summary::after {
    right: 16px;
    width: 10px;
    height: 10px;
  }

  .faq-item p {
    padding: 17px 16px 20px 49px;
    font-size: 13px;
    line-height: 2;
  }

  .faq-item p::before {
    top: 18px;
    left: 13px;
    width: 25px;
    height: 25px;
    font-size: 13px;
  }
}

/* 動きを控えたい環境への配慮 */
@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-item summary::after {
    transition: none;
  }
}

/*---------------------------------
トップへもどるボタン
---------------------------------*/

.go-top{
  position: fixed;
  bottom: 100px;
  left: 30px;
  z-index: 9999;
  
}
.go-top a{
  
  width: 50px;
  height: 50px;
  display: inline-block;
  background: #E94E66;
  border-radius: 50px;
  text-align: center;
  line-height: 50px;
  color: black;
  text-decoration: none;

  

  
}

.go-top a:hover{
    opacity: 0.8;
  }
  @media screen and (max-width:600px) {
    .go-top {
      position: relative;
      left: 0;
      bottom: 0;
    }
  

  }
  