/* 共通設定 */
 body {
    font-family: "Yu Gothic", sans-serif;
    background-color: #f5f5f0;
    color: #333;
    margin: 0;
    padding: 0;
 }
  
  header {
    background-color: #2e7d32;
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1000;
  }
  
  nav {
    width: 100%;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #4caf50;
    padding: 10px 0;
    transition: top 0.4s ease, box-shadow 0.4s ease;
  }
  
  nav.fixed {
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
  }
  
  .menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    margin-left: 1rem;
  }
  
  .hero {
    text-align: center;
    padding: 50px;
    background-image: url('header-image.jpg');
    background-size: cover;
    background-position: center;
    color: black;
  }
  
  .container {
    width: 90%;
    margin: 1px auto;
    padding-top: 5%;
  }
  
  .service-section {
    position: relative; /* 顔写真の絶対位置の基準に */
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  }

  .container .service-section ul {
    max-width: 800px; /* ここを調整して幅を広げる */
    margin: 0 auto; /* 中央寄せのスタイルを統一 */
  }

/* =============== NEWS WIDGET =============== */
  .news-widget {
    max-width: 800px;
    margin: 3rem auto;
    padding: 1.5rem;
    background: #fff;
    border: 2px solid #388e3c;
    border-radius: 10px;
  }

  .news-title {
    font-size: 1.8rem;
    color: #2e7d32;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
  }

  .news-box {
    max-height: 250px;        /* ← 高さ固定（スクロール可能） */
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-bottom: 1.5rem; 
  }

  .news-items {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .news-items li {
    margin-bottom: 0.8rem;
  }

  .news-items li a {
    text-decoration: none;
    font-size: 1.1rem;
    color: #333;
    display: block;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
  }

  .news-items li a:hover {
    color: #2e7d32;
  }

  .news-items .date {
    font-weight: bold;
    color: #2e7d32;
    margin-right: 0.5rem;
  }

  .new {
    background-color: #e53935;
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    margin-left: 8px;
  }
  
  footer {
    background-color: #2e7d32;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
  }
  
  strong {
    color: black;
    font-weight: bold;
  }
  
/* 吹き出しと会話の配置 */
  .talk-block {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    max-width: 800px;
  }
  
  .talk-block.left {
    flex-direction: row;
  }
  
  .talk-block.right {
    flex-direction: row-reverse;
  }
  
  .talk-block img {
    width: 110px;
    height: auto;
    margin: 0 1.5rem;
  }
  
  .bubble {
    position: relative;
    max-width: 480px;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    background-color: whitesmoke;
    border: 2px solid #81c784;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
  }
  
  .bubble.right::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 20px;
    border: 12px solid transparent;
    border-right-color: #81c784;
  }
  
  .bubble.left::before {
    content: "";
    position: absolute;
    right: -24px;
    top: 20px;
    border: 12px solid transparent;
    border-left-color: #81c784;
  }
  
  .callout {
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: none; 
    margin-bottom: 0rem;
    padding: 0rem;
  }
  
  .callout img {
    width: 180px;
    height: auto;
    object-fit: contain;
  }
  
  .speech-bubble-left {
    position: relative; 
    background: #c8e6c9;
    padding: 1.5rem;
    border-radius: 15px;
    font-size: 1.8rem;
    font-weight: bold;
    border: 2px solid #388e3c;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    max-width: 800px;
    font-family: "Yu Gothic", sans-serif;
  }
  
  .speech-bubble-left::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 23px solid transparent;
    border-left: 20px solid #388e3c;
  }
  
  .sp-only {
    display: none;
  }
  
  .advice-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  
  .advice-box {
    /*display: flex;
    align-items: flex-start;*/
    margin: 0 auto 2rem auto;
    max-width: 900px;
    gap: 1.5rem;
  }
  
  .qa-block {
    position: relative;
    margin: 0 auto 4rem auto;
  }
  
  .qa-heading {
    background-color: white;
    border: 2px solid #388e3c;
    border-radius: 10px;
    padding: 1rem;
    width: 60%;
    font-size: 1.6rem;
    font-weight: bold;
    z-index: 2;
    position: relative;
    margin-left: 10rem;
    margin-right: auto;
  }
  
  .qa-body {
    background-color: white;
    border: 2px solid #388e3c;
    border-radius: 8px;
    padding: 1.5rem 2.5rem;
    max-width: 70%;
    font-size: 1.2rem;
    color: black;
    font-weight: 500;
    line-height: 1.7;
    margin-top: -1.2rem;
    margin-left: 8rem;
    position: relative;
    z-index: 1;
  }
  
  .qa-body p {
    border-left: 4px solid #388e3c;
    padding-left: 0.8rem;
  }

  .service-section {
    position: relative;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 1000px; /* PC版の最大幅を1000pxに設定 */
    margin: 0 auto; /* 左右中央寄せ */
  }
  
/* service-listのPC版スタイル */
  .service-list {
    list-style-type: disc;
    margin: 0 auto;
    padding-left: 20px;
    text-align: left;
    font-size: 18px;
    max-width: 800px;
  }

/* .service-section内のulのスタイルを上書き */
  .service-section ul {
    list-style-type: disc; /* リストマークを明示的に指定 */
  }

  .face-image {
    position: absolute;
    top: 20px;
    right: 50px;
    width: 200px;
    height: auto;
  }
  
  .face-image img {
    width: 100%;
    height: auto;
    border-radius: 5%;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  }

  .info-list{
    font-size: 20px; 
    text-align: left; 
    line-height: 1.8;
  }
  
/* デフォルトは非表示（スマホでは改行しない） */
  .pc-only {
    display: none;
  }

  ul {
    padding-left: 20px; /* リストマークとテキストの間の余白を調整 */
    margin: 0 auto; /* 中央寄せ */
    max-width: 800px; /* PCでの最大幅を広げる */
  }


/* PC のときだけ表示（改行する） */
  @media screen and (min-width: 769px) {
    .pc-only {
      display: inline;
    }
    
    .talk-block {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .callout {
      display: flex;
    }

    .advice-box {
      display: flex;
      align-items: flex-start;
    }

    .service-section{
      margin: 0 auto;
    }

    .service-list {
      max-width: 800px;
      margin-left: 18rem;
      padding-left: 16rem;
    }
  }

    .profile-section{
      width:70%;
    }

   .qa-body {
      padding-left: 5rem;
    }

    .anchor-offset {
      display: block;
      height: 110px;   /* ← ナビ高さのぶん */
      margin-top: -110px;
      visibility: hidden;
    }

/* スマホ対応 */
  @media screen and (max-width: 768px) {
    .sp-only {
      display: inline;
    }
  
    body {
      font-size: 16px;
    }
  
    h1 {
      font-size: 1.8rem;
    }
  
    h2 {
      font-size: 1.4rem;
    }
  
    .menu-toggle {
      display: block;
    }
  
    .nav-links {
      display: none;
      flex-direction: column;
      width: 100%;
      background-color: #4caf50;
      padding: 10px 20px;
    }
  
    .nav-links.show {
      display: flex;
    }
  
    nav {
      flex-direction: column;
      align-items: flex-start;
      padding: 10px;
    }
  
    nav a {
      font-size: 16px;
      margin: 8px 0;
    }

    .callout {
      display: flex;
      flex-direction: column; /* 縦並び（吹き出しが上、画像が下） */
    }

    .callout img {
      margin-bottom: 0;
      margin-top: 1rem;
      margin-left: 8rem;
      align-self: right;
      width: 150px;
    }
    
    .speech-bubble-left {
      width: 80%; /* 幅を画面の90%に設定 */
    }
  
    .speech-bubble-left::after {
      /* PC用のスタイルをすべてリセット */
      content: '';
      position: absolute;
      right: auto; /* 右側の設定を無効化 */
      left: 70%;
      top: auto;
      bottom: -20px;
      width: 0;
      height: 0;
      border-top: 20px solid #388e3c; /* 下向きの三角 */
      border-right: 10px solid transparent;
      border-left: 20px solid transparent;
      border-bottom: none;
      transform: translateX(-50%);
    }

    .speech-bubble-left::before {
      content: none;
    }

    .qa-block {
      margin: 0 auto 2rem auto; /* スマホでの余白を調整 */
    }
    
    .qa-heading {
      width: 60%; /* スマホ版の幅を調整 */
      font-size: 1.2rem; /* スマホ版のフォントサイズを小さくする */
      margin-left: 0rem; /* 左寄せにするためマージンをリセット */
      margin-right: auto;
    }
    
    .qa-body {
      max-width: 93%; /* スマホ版の幅を調整 */
      padding: 1rem; /* スマホ版のパディングを調整 */
      font-size: 1rem; /* スマホ版のフォントサイズを調整 */
      margin-left: -1rem; /* 左寄せにするためマージンをリセット */
      margin-right: -2rem;
    }

    .service-section {
      max-width: 100%; /* スマホ版では幅を画面いっぱいに */
      margin: 0 auto; /* 中央寄せに戻す */
      margin-left: -1rem;
      padding: 20px 10px; /* 左右の余白を少し調整 */
    }
  
    .service-list {
      font-size: 1rem;
      margin: 0; /* マージンをリセット */
      max-width: 100%;
      padding-left: 20px;
    }

    .face-image {
      position: absolute;
      top: -110px; /* 外に出す */
      right: 50px;
      width: 100px;
      height: auto;
    }

    .info-list{
      font-size: 15px; 
      text-align: left; 
      line-height: 1.8;
    }

    .profile-section{
      width:90%;
      margin-left: -1rem;
      margin-right: -1rem;
    }
    
    .service-section {
      margin-top: 120px; /* 画像分の余白 */
    }

    .container {
      max-width: 90%;
      margin: 0 auto;
      padding-left: 20px;
    }

    .service-section ul {
      max-width: 90%; /* スマホでの幅を調整 */
      padding-left: 20px; /* 必要に応じて調整 */
    }
  
    .face-image img {
      width: 100%;
      height: auto;
      border-radius: 5%; 
      box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
    }

    .anchor-offset {
      display: block;
      height: 100px;   /* ← ナビ高さのぶん */
      margin-top: -100px;
      visibility: hidden;
    }
  }
  