
/* 未使用タグを削除し、必要なタグのみリセット */
html, body, h1, h2, h3, p, a, img, ul, li {
  border: 0;
  font-size: 100%;
  font: inherit;
  scroll-behavior: smooth;
}

ul {
  list-style: none;
}

body {
  font-family: "Noto Sans JP", "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1.6rem;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: #555555;
  background-color: #f0fff0;
  background-image: url(img/b10.png);
}

a:visited {
  color: #765c47;
  font-size: 13px;
}

a:link {
  color: #583822;
  font-size: 13px;
}

a:hover {
  color: #ff4500;
  font-size: 13px;
}

p {
  margin: 15px 0 15px 0;
  line-height: 120%;
  letter-spacing: 1px;
}

h1 {
  font-size: inherit;
  margin: 0;
  color: #333;
}

img {
  max-width: 100%;
  height: auto;
  border-style: none;
}

#main {
  margin: 0 auto 0 auto;
  padding: 0;
  width: 800px;
  background-color: #ffffff;
}

/*---------- ヘッダー ----------*/

#header {
  margin: 0;
  padding: 10px 0 0px 0;
  background: radial-gradient(rgb(222 221 183 / 88%),#67809e );
}

#header-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  height: 65px;
  background: radial-gradient(rgb(222 221 183 / 88%), #67809e);  
}

#header-inner > div:nth-child(1) {   /* 左側 */
  font-weight: 500;
  text-align: left;
  padding: 6px 0 0 10px;
  line-height: 1.3;
  flex: 1;
}
#header-inner > div:nth-child(2) {   /* 右側 */
  font-size: 0.9rem;
  text-align: right;
  padding: 4px 10px 0 0;
  line-height: 1.3;
}

.individual-tutoring-banner {
  background-color: #7f1b1b;
  color: #ffffff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.5;
  border-radius: 10px;
  display: inline-block;
  max-width: 90%;
}

.cta-button3{
  display: inline-block;
  background: #17A2B8;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 8px;
  font-size: 1.2em;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-button2 a.button {
  display: inline-block;
  background: #17A2B8;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 8px;
  font-size: 1em;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-button2 a.button:hover {
  color: #fff;
  transform: scale(1.05);
  background: #138496;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}


/*---------- コンテンツ ----------*/

.hamburger-icon {
  display: block; /* PCでも表示 */
  position: fixed;
  top: 10px;
  right: 10px;
  background: #fafecb;
  padding: 5px 10px;
  border-radius: 4px;
  z-index: 1000;
  font-size: 1rem;
  cursor: pointer;
}

.text-content {
  font-size: 1rem;
  line-height: 1.5;
  margin: 9px 0; 
}

.text-content.bold {
  font-weight: bold;
}

.small-text {
  font-size: 0.75rem;
}

.center {
  text-align: center;
  margin-bottom: 6px; 
}

.right {
  text-align: right;
}

.alphabet-nav {
  margin: 15px 0;             
  padding: 10px 0;             /* 追加の内側余白（オプション） */
  font-size: 1.1rem;           /* 文字サイズ（調整自由） */
  background: #f9f9f9;         /* 背景で目立たせる（オプション） */
  border-top: 1px solid #ddd;  
  border-bottom: 1px solid #ddd; 
}

.alphabet-nav a {
  margin: 0 2px;             
  padding: 6px 4px;           /* クリックエリア拡大＆ボタン風 */
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}


#container {
  display: flex;
  flex-wrap: wrap;
  margin: 0.625rem auto; /* 10px → 0.625rem */
  width: 100%;
  max-width: 800px;
  background-color: #ffffff;
}


/*---------- メインコンテンツ ----------*/

#contents {
  flex: 1 1 480px; /* 幅をflexで柔軟に設定 */
  padding: 0 0.3125rem 0 6.125rem; /* 0 5px 0 98px → rem変換 */
  line-height: 1.5rem; /* 150% に相当 */
  background: url('img/2.png') repeat-y left top; /* repeat-y を維持 */
  background-position: -8% 0%; /* 相対位置を保持 */
  margin: 0; /* 維持 */
  box-sizing: border-box; /* paddingが幅に含まれるように */
}

#contents img {
  max-width: 100%;
  height: auto;
  border-style: none;
  margin-top: 15px; /* テキストと画像の間に追加の余白 */
}


#contents h2 {
  
border-bottom: 3px double #85440f;
  color: #333333;
  margin: 0 0 5px 0;
  padding: 12px 0 10px 0px;
  padding: 2em 4em .5em 0em;
  line-height: 110%;
  font-weight: bold;
  font-size: 1.2rem;
}

#contents h3 {
  margin: 12px 5px 10px 6px;
  padding: 8px 10px 5px 13px;
  line-height: 110%;
  font-size: 13px;
  color: #444444;
  border-left: solid 5px #aaaaaa;
  background-color: #eeeeee;
}

#contents p {
  margin: 8px 0 8px 0;
  line-height: 150%;
  padding: 10px 0 10px 0;
}

.faq-section {
  margin: 15px 0;
  padding: 10px;
  background-color: #ffffff;
  border: 1px solid #eee;
  border-radius: 5px;
}

.faq-item {
  margin-bottom: 10px;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 10px 10px 10px 30px;
  background-color: #eeeeee;
  border: 1px solid #aaaaaa;
  border-radius: 5px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: #444444;
  cursor: pointer;
  position: relative; /* 擬似要素の位置調整用 */
}

.faq-question::before {
  content: '+';
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  font-weight: bold;
  color: #444444;
}

.faq-question.active::before {
  content: '🔅';
}

.faq-answer {
  display: none;
  padding: 10px;
  border: 1px solid #eee;
  border-top: none;
  border-radius: 0 0 5px 5px;
  transition: max-height 0.3s ease-out; /* スムーズな開閉 */
  max-height: 0;
  overflow: hidden;
}

.faq-answer.active {
  display: block;
  max-height: 1200px; /* コンテンツに応じて調整 */
}

/*---------- メニュー ----------*/

#menu {
  padding: 6px 3px 0 5px;
  width: 180px;
  line-height: 150%;
}

#menu h2 {
  margin: 20px 0 10px 0px; 
  line-height: 160%;
  font-size: 1rem;
  color: #333333;
  background-repeat: no-repeat;
  padding:0 .4em .2em;
    border-bottom: 3px double #ad1f42;
    background-color: #ffffff;  
}

#menu p {
  margin: 5px 4px 5px 4px;
  line-height: 120%;
}

#menu a {
  font-size: 0.8rem;
  display: block; /* ブロック要素にして余白を適用しやすく */
  margin-bottom: 3px; /* リンク間に10pxの余白を追加 */
}

.menulist {
  padding: 6px 3px -10px 6px;
  width: 168px;
  background-image: url(img/menu_back.gif);
}

.menulist h2 {
  height: 19px;
  margin: 0;
  padding: 7px 0 -10px 12px;
  width: 168px;
  font-size: 0.8rem;
  background-image: url(img/sidebar.gif);
  background-repeat: no-repeat;
}


.menulist a{
  display: block;
  border-right: solid 1px #cfcfcf;
  border-bottom: solid 1px #cfcfcf;
  border-left: solid 1px #cfcfcf;
  width: 145px;
  padding: 10px 8px 3px 17px;
  font-size: 0.8rem;
  line-height: 100%;
  text-decoration: none;
  background-image: url(img/side_menu_bg.gif);
  background-repeat: no-repeat;
 }

/*---------- フッター ----------*/
#footer {
  
  padding: 20px 0 18px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #666666;
  border-top: 2px solid #fafecb;
  background: radial-gradient(rgb(222 221 183 / 88%),#67809e );
}

#footer a {
  color: #c72323;
}

#footer a:hover {
  color: #666666;
}

.footer-bottom {
  text-align: right;
}

.footer-contact {
  color: #666666;
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.footer-contact:hover {
  color: #333333;
  background-color: #f0f0f0;
}

/*---------- スマホ ----------*/

@media (max-width: 600px) {
    #main {
        width: 100%;
        }
	
	html {
    font-size: 1rem;
  }
  
	.hamburger-icon {
    display: block;
    position: fixed; /* スクロール追従 */
    top: 30px;
    right: 4px;
    background: #fafecb;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 1000;
    font-size: 1.2rem;
  }
	

  #container {
        width: 100%;
        padding: 3px; /* コンテンツに余白を追加 */
        box-sizing: border-box;
    }
	
	#contents {
    flex: 1 1 100%;
    padding: 0 0.625rem; /* 10px → rem */
    background: none;
  }

    #menu {
    flex: 1 1 100%;
    margin-top: 1.25rem; /* 20px → rem */
  }
  
    #contents p {
        font-size: 1rem; 
        line-height: 140%; 
        margin: 10px 0;
    }

	#contents h3 {
    font-size: 1.2rem; 
    margin: 12px 5px 10px 6px;
    padding: 8px 10px 5px 13px;
    line-height: 110%;
    color: #444444;
    border-left: solid 5px #aaaaaa;
    background-color: #eeeeee;
  }
  
	#contents p.small-text {
        font-size: 0.8rem; /* 約12.8px */
        line-height: 140%;
        margin-bottom: 8px;
    }

    #contents p.small-text a {
        font-size: 0.8rem; /* リンクも同じサイズ */
    }

    #contents a {
        font-size: 1rem;
        line-height: 150%;
    }
	
	 #menu a {
        font-size: 1rem;
		color: #6a4d38;
        line-height: 150%;
    }

	#menu h2 {
        font-size: 1.2rem;
        line-height: 130%;
        width: 100%; 
        padding: 5px 10px; /* パディングを調整 */
        box-sizing: border-box;
    }

    /* #menu 内リンクのサイズ・余白だけ統一 */
    #menu a,
    #menu a:link,
    #menu a:visited,
    #menu a:hover {
        width: 100%;
        padding: 4px 15px 2px 18px;
        font-size: 0.9rem
        line-height: 120%;
        border: none;
        box-sizing: border-box;
        text-decoration: none;
		color: #6a4d38;
    }


	
	.menulist {
    width: 100%;
    padding: 6px 3px 0 0px; /* PCと同じpaddingを保持 */
	}
  
  .cta-button2 a.button {
    color: #fff !important;  /* 白を強制 */
  }
  
.cta-button2 {
    width: fit-content;     /* 内容幅にフィット（テキスト + パディング） */
    max-width: 80%;         /* 画面の80%以内に制限（調整可能、例: 70%でより狭く） */
    margin: 20px auto;      /* 中央寄せ + 上下マージン */
  }
	.small-text {
    font-size: 0.8rem; /* 約11.2px、小さく変更 */
    line-height: 140%; /* 既存の行間を維持 */
    margin-bottom: 6px; /* 既存の余白を維持 */
  }
  .small-text a {
    font-size: 0.8rem; /* リンクも同じサイズに */
  }
	
    /* 画像のサイズ調整 */
    #contents img {
        max-width: 100%; /* 画面幅に収まる */
        width: auto; /* 固定幅380pxを解除 */
        height: auto;
        margin: 10px auto; /* 中央揃え */
    }
  
}



