@charset "UTF-8";
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }

.page-wrapper {
  background-color: #fff;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 0 30px rgba(0,0,0,0.08);
  min-height: 100dvh;
  box-sizing: border-box;
  position: relative;
  overflow-x: hidden;
}

.page-wrapper::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url(https://mutsumi-biz.com/boki/img/mo.webp) center center / cover no-repeat;
  background-color: #d0e0e8;   /* ← これだけで白チラ完全消滅！ */
  z-index: -1;
  pointer-events: none;
}


body {
  font-family: "Noto Sans JP", "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1.6rem;
  line-height: 1.7;
  color: #333;
  min-height: 100dvh;
  background: none;   /* ← 古いfixed背景を完全に殺す！ */
}

#main {
  padding: 0 1.5rem;
}

/* 基本リンク */
a { color: #d2691e; text-decoration: none; }
a:hover { color: #ff6347; text-decoration: underline; }
li { list-style: none; }
img { max-width: 100%; height: auto; }

#header-inner {
    display: flex;
    justify-content: space-between;   
    height: 65px;                     
    background: radial-gradient(rgb(222 221 183 / 88%), #67809e);  
}

#header-inner > div:nth-child(1) {   /* 左側 */
  font-size: 1.35rem;
  font-weight: 700;
  text-align: left;
  padding: 6px 0 0 10px;
  line-height: 1.3;
}
#header-inner > div:nth-child(2) {   /* 右側 */
  font-size: 1.35rem;
  text-align: right;
  padding: 4px 10px 0 0;
  line-height: 1.3;
}

#header-img {
  overflow: hidden;
  height: 190px; 
}

#header-img img.header-img {
  object-fit: cover;
  width: 101%;               
  max-width: none;
  margin-left: -0.5%;        /* 左右に均等に0.5%ずつはみ出させる */
  margin-right: -0.5%;
  height: 100%; 
}

.hamburger-icon {
  position: fixed;
  top: 10px; right: 10px;
  background: rgba(255,255,255,0.85);
  border: 1px solid #ddd;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 1.5rem;
  z-index: 1001;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

body.menu-open {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  width: 100vw;                    /* ← 追加 */
}


/* タイポグラフィ（むつみさん風） */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; margin-bottom: 1rem; }

h1 {
  position: relative;
  padding: 1.5rem 3rem;
  margin: 2rem auto 3rem;
  font-size: 2.3rem;
  font-weight: 900;
  color: #333;
  border: 4px solid #67859e;
  text-align: center;
}
h1::before {
  position: absolute;
  top: 5px; left: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 10px);
  content: '';
  border: 4px dotted #67859e;
  pointer-events: none;
}

h2 {
  font-size: 1.6rem;
  position: relative;
  padding: 0.7em 1em;
  border-top: 2px dotted #cd1d46;
  border-bottom: 2px dotted #cd1d46;
  margin: 2.5rem 0 1.5rem;
}

h3 {
  font-size: 1.6rem;
  padding: 0.6em 1em;
  background: #f5f5f5;
  border-left: 6px solid #aaa;
  margin: 2rem 0 1rem;
}

.note-red {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.7rem 1.2rem;
  margin: 1.2rem 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #d50000;
  background: #ffebee;
  border-radius: 50px;
  line-height: 1.6;
}
.note-red::before { content: "※"; font-weight: 900; color: #b71c1c; }

p, ul, ol, table { margin-bottom: 1.5rem; }

.small-text,
.small-text a { 
  font-size: 1.4rem;
  margin-top: 0.8px;
  gap: 1px;
}

.center {
  text-align: center;
}
.right {
  text-align: right;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95em;
}

table caption {
    text-align: left;
    padding: 5px;
    font-size: 1.1em;
  color: #1565c0;
  font-weight: bold;
  background: #e3f2fd;
}

table th,
table td {
    border: 1px solid #999;
    padding: 8px 5px;
    text-align: left;
}

table th {
    background-color: #f2f2f2;
}

table th:first-child {
    width: 40%;
}

.top-title-area {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
  margin: 1rem 0;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* h1は「文字幅だけじゃなく、ちゃんと幅いっぱいに白背景を塗る」ように強制 */
.top-title-area h1 {
  margin: 0;
  padding: 1.5rem 3rem;              /* ← paddingを復活させる！ */
  background: #fff;       /* ← 白背景を絶対に復活 */
  display: block;                    /* ← inline-block → block に変更 */
  width: fit-content;                /* ← 文字幅にぴったり（でも背景はちゃんと広がる） */
}

.top-title-area .note-red {
  margin: 0;
  flex-shrink: 0;
}

/* 重要なお知らせ */
.important-notice {
  background: #fff8e1;
  padding: 0.5rem 2rem;
  margin: 2rem auto;
  max-width: 900px;
  border-left: 8px solid #ff9800;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255,152,0,0.08);
  font-size: 1.4rem;
}

.important-notice b,
.important-notice a { color: #d50000; font-weight: 700; }
.important-notice a:hover { color: #b71c1c; }
.important-notice p { margin: 0; }

.image-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;   
  margin: 1rem auto;         
  padding: 1rem 0;
  max-width: 450px;
}

.image-container img {
  max-width: 48%;
  height: auto;
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.c-image {
  margin: 20px 0;
  border-radius: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 85%;
}

.c2-image {
  margin: 20px 0;
  border-radius: 5px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 180px;
}

.contact-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 3px;
  margin-left: 3px;
  flex-shrink: 0;
}

.shortcut-section {
    margin: 30px 0;
    padding: 10px;
    border: dotted 1px #cd1d46;
    border-radius: 8px;
}
#shortcut-heading {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #d32f2f;
}
.shortcut-list li {
    position: relative;
    padding: 15px 10px 15px 60px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);    
}
.shortcut-num {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #e84f4f;
    color: white;
    font-weight: bold;
    font-size: 1.6rem;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
}
.shortcut-desc {
    display: block;
    margin-top: 8px;
    font-size: 1.4rem;
    color: #666;
    line-height: 1.5;
} 

caption {
  font-size: 1.5rem;
  font-weight: bold;
  padding: 10px;
  background: #e3f2fd;  /* 青系でリモートページに合う */
  color: #1565c0;
  caption-side: top;
}

.cta-button {
  margin: 20px 0;
  text-align: center;
}
.cta-button a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 5px 12px;
  background: #e21c5f;
  color: #fff;
  border-radius: 50px;
  font-weight: bold;
  min-height: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
.cta-button a.button:hover {
  background: #c2185b;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(233,30,99,0.35);
}

.info-list li {
  position: relative;
  padding-left: 1.8em;
  margin: 0.8rem 0;
  font-size: 1.45rem;
  text-align: left;
}
.info-list li::before {
  content: "チェックマーク";
  position: absolute;
  left: 0;
  color: #e91e63;
  font-weight: bold;
  font-size: 1.4em;
}

.individual-tutoring-banner {
  background-color: #3a9261;
  color: #ffffff;
  padding: 12px 18px;
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.2;
  border-radius: 10px;
  margin: 10px 10px 10px 0;
  display: inline-block;
  max-width: 70%;
}

.map-container {
  text-align: center;
  margin: 20px 0;
}

.map-container iframe {
  width: 85%;
  height: auto;
  min-height: 400px;
}

/* ユーティリティ */
.text-center { text-align: center; }


.faq-section {
  margin: 20px 0;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 5px;
}

.faq-item {
  display: inline-flex;           /* ← ここを変えるだけで魔法が起きる */
  flex-direction: column;
  width: 100%;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}



.faq-question {
  width: fit-content;
  max-width: 100%;
  padding: 13px 50px 13px 30px;
  font-size: 1.6rem;
  text-align: left;
  color: #333;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  box-decoration-break: clone;    /* 折り返しても背景途切れない */
  -webkit-box-decoration-break: clone; /* Safari用 */
}

.faq-question::after {
  content: '▶';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.9rem;
  font-weight: bold;
  color: #444444;
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"]::after {
  content: '▼';
  /* または回転でかわいく：transform: translateY(-50%) rotate(90deg); */
}

.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: 800px;
}

#news {
  border: 2px solid #e0e0e0;  
  border-radius: 12px;                
  padding: 10px 30px;                
  margin: 30px auto;                 
  max-width: 900px;                  
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

#menu h2,
#menu2 h2 {
  font-size: 1.55rem;
  font-weight: 700;
  padding: 0.4em 0.8em 0.4em 1.6em;
  margin: 12px 0 10px 5px;
  background: linear-gradient(90deg, #fce4ec 0%, #fff0f8 40%, transparent 80%);
  color: #d81b60;
  border-left: 5px solid #e91e63;
  border-radius: 0 12px 12px 0;
}

.menulist p a {
  display: inline-block;
  margin: 0.45rem 0.8rem 0.45rem 0;
  padding: 0.4rem 0.8rem;            /* タップ範囲を広げる */
  font-size: 1.5rem;
  font-weight: 600;
  background: #fce4ec;
  border-radius: 20px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.menulist p a:hover {
  background: #f8bbd0;
  color: #880e4f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(216,27,96,0.3);
}

/* フッター */
#footer {
  padding: 20px 0 18px;
  text-align: center;
  font-size: 1.4rem;
  color: #607D8B;
  border-top: 2px solid #fafecb;
  background: radial-gradient(rgb(222 221 183 / 88%), #67809e);
  background-size: cover;
}
#footer a { color: #795548; }
#footer a:hover { color: #F44336; }

.footer-contact {
  color: #615f5f;
  text-decoration: none;
  padding: 3px 6px;
  border: 1px solid #684545;
  border-radius: 4px;
  font-size: 1.3rem;
  margin: 3px 3px 0 0; 
  display: inline-block;
}

.footer-bottom {
  text-align: right;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* レスポンシブ */
@media (max-width: 768px) {
  html { font-size: 58%; }
  body { background-attachment: scroll; }
  h1 { font-size: 2.2rem; }
  .top-title-area { gap: 2rem; }

  #main, #header-inner, #header-img, #container, #contents, #news, #menu {
    width: 100%;
    max-width: 100%;
  }
  
  #header-img {
    height: 85px;
  }
  
  #header-inner {
    height: 50px;
  }

   .top-title-area {
    justify-content: center;
  }

  .image-container {
    display: flex;
    gap: 6px;
  }
  .image-container img {
    width: 100%;
    min-width: auto;
    max-width: 100%;
    border-radius: 5px;
    object-fit: cover;
  }   
  figure.image-container {
    text-align: center;
  }
  figure.image-container img {
    margin: 15px auto;
    max-width: 180px;
  }
  
 .cta-button a.button {
    padding: 10px 20px;
    min-height: 42px;
    font-size: 1.45rem;
  }

  /* メニュー本体は独立してスクロール可能 */
  #menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    height: 100dvh;          /* iOS対応 */
    overflow-y: auto;        /* ← これがないとスクロールできない！ */
    transition: right 0.35s ease;
    background: #ffffff;
    z-index: 1000;
    padding: 20px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
  }

  #menu.active {
    right: 0;
  }

  #menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease;
  }

  #menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  #menu2 {
    width: 100%;
    flex-shrink: 1; /* 縮小可能 */
    margin: 0;
    padding: 3px 10px;
    order: 2;                      /* contentsの後に強制配置 */
    margin-top: 10px;
    padding: 20px 15px 0px;
    border-top: 4px solid #ffa4f3;
  }

  #menu h2 {
    padding: 7px 10px 7px 8px; 
  }
  
  #menu .menu-list1 a {
    display: inline-block;
  }

  #menu #menu2 img {
    margin: 20px 10px;
  }

  .menulist a {
    display: inline-block;    
    margin: 3px 12px 3px 0; 
    white-space: nowrap;
  }

  .hamburger-icon {
    top: 38px;
    right: 6px;
    background: #eeeeeeb3;
    border: 1px solid #ddd;
    font-size: 1.4rem;
    padding: 7px 8px; 
  }
}

@media (min-width: 769px) {
  #menu2 {
    display: none !important;
  }
}