*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; /* iOSタップハイライトを無効化 */
}

/* 全体の基本設定 */
body {
    font-family: 'Zen Maru Gothic', "ヒラギノ丸ゴ Pro", "Hiragino Maru Gothic Pro", "メイリオ", "MS Ｐゴシック", "MS PGothic", sans-serif;
    -webkit-text-size-adjust: 100%; /* iOS Safariのフォントサイズ自動調整を無効化 */
    -ms-text-size-adjust: 100%;
    margin: 0;
    background-color: #f4f7f9;
    color: #333;
    line-height: 2.2;
    -webkit-font-smoothing: antialiased; /* iOS Safariでのフォントレンダリング改善 */
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch; /* iOS Safariでのスムーズスクロール */
}
  
/* ヘッダー全体 */
header {
    height: 100px;
    background-color: #fff8e1; /* クリーム色 */
    padding: 20px 0;
}

/* ヘッダーコンテナ */
.header-container {
    display: flex;
  flex-direction: row;
  align-items: flex-start;
    justify-content: space-between;
  padding: 10px 10px;
  width: 100vw;
  max-width: 100vw;
  overflow: visible;
    position: relative;
}

/* ロゴ左上 */
.logo-left {
    max-width: 180px;
  width: 140px;
  height: 80px;
  margin-left: 24px;
  margin-bottom: 0;
  display: block;
  object-fit: contain;
}

/* ハンバーガーメニューのボタン */
.hamburger {
  display: none !important;
  min-width: 44px; /* iOS推奨タップターゲットサイズ */
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background: #333;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* 横並びナビリスト */
.nav-list {
  display: flex;
  justify-content: flex-end; /* ナビゲーションリストを右寄せ */
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ヘッダー内のナビゲーション */
.header-nav {
  position: absolute;
  top: 0; /* ヘッダー上部にぴったり */
  right: 0px; /* 右寄せ */
  width: auto;
  padding: 10px 20px;
  z-index: 1000;
}

.header-nav.active {
  display: block;
  z-index: 1000;  /* メニューが他要素の上に来る */
}

.nav-list li a {
  display: inline-block;
  padding: 15px 30px;
  min-height: 48px; /* ← スマホでも押しやすい */
  text-decoration: none;
  font-weight: bold;
  color: #333;
  font-size: 1rem;
  transition: color 0.2s ease, background-color 0.2s ease;
  min-width: 44px; /* iOS推奨タップターゲットサイズ */
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
  
.nav-list li a:hover {
  background-color: rgba(230, 230, 230, 0.6);
  color: #a67c52;
}

.hero {
  height: 750px;
  background-color: #fff8e1; /* クリーム色 */
  padding: 10px 20px;
}

.catchcopy {
  position: absolute;
  top: 250px;          /* ロゴ下に調整 */
  left: 120px;
  font-size: 3.2rem;
  color: #333;
  text-shadow:
  -1px -1px 0 #fff,
    1px -1px 0 #fff,
  -1px  1px 0 #fff,
    1px  1px 0 #fff,
    0    0 10px rgba(255, 255, 255, 0.4); /* ほんのり光っぽい影 */
  font-weight: bold;
  line-height: 1;
  z-index: 2;
}

  /* 各行ごとのずらし */
.line1 {
  display: inline-block;
  margin-left: -40px;
}
  
.line2 {
  display: inline-block;
  margin-left: 30px; /* お好みで調整（例: 30px） */
}

/* メインビジュアル */
.header-center-image {
  max-width: 80%; /* 画像の最大幅を80%に調整 */
  width: 90%; /* 幅を100%に設定 */
  height: auto;
  border-radius: 20px;
  margin: 10px 30px;
  margin-left: auto;
  display: block; /* ブロック要素にして右寄せ */
  z-index: 1;
}

/* コンテンツボックス */
.container {
  margin: 0 auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/*　コンテンツボックス */
.service p {
  font-family: "メイリオ";
  font-size: 20px;
  line-height: 250%;
}

/* 見出し */
h1 {
  color: #ed7802;
  font-size: 45px;
}

h2 {
  font-family: "メイリオ";
  font-size: 26px;
  padding: 15px 0;
}

/* サービス紹介ごとの間隔 */
.service {
  width: 80%;  /* 幅を80%に設定 */
  max-width: 1000px;  /* 最大幅を900pxに設定 */
  margin: 0 auto;  /* 左右のマージンを自動にして中央揃え */
  text-align: center;
  margin-bottom: 120px;
}

/* 新着情報セクション */
.news-list {
  list-style: none;
}

.news-list li {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  font-size: 1rem;
}

.news-list .date {
  font-weight: bold;
  color: #666;
  margin-right: 10px;
}

.phone-link {
  font-size: 1.4rem;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.phone-link:hover {
  color: #007bff;
}

.insta-link {
  font-size: 1.4rem;
  color: #333;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.insta-link:hover {
  transform: scale(1.2);
  color: #cc43d6;
}

.line-link {
  font-size: 1.4rem;
  color: #333;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.line-link:hover {
  transform: scale(1.2);
  color: #009e00;
}
  
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 auto;
  background-color: #6a6462;  /* ← 背景色を変更 */
  padding: 30px 20px;
  font-size: 0.9rem;
  color: #f8f8f8;  /* ← 白っぽい文字色で読みやすく */
}

.footer-left {
  flex: 1 1 300px;
  margin-left: 40px; /* ← 少し右に寄せる */
}

.footer-right {
  flex: 1 1 300px;
  margin-left: 40px ; /* ← ブロックごと右端に押す */
}

.footer-left p {
  margin: 4px 0;
}

.footer-right h4 {
  margin-bottom: 10px;
  color: #ffffff;
}

.footer-right ul {
  list-style: none;
  padding: 0;
}

.footer-right li {
  margin-bottom: 6px;
}

.footer-right a {
  color: #f0f0f0;  /* リンクも淡い白に */
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}

/* フッター */
footer {
  background: #fff8e1;
  font-size: 12px;
  color: #333;
  text-align: center;
  padding: 15px;
}

/* flow.htmlの設定 */
.flow-step {
  background: #fffdf8;
  border-left: 6px solid #ed7802;
  margin: 30px 0;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.flow-step h2 {
  margin-top: 0;
  color: #ed7802;
}

.link-button {
  position: relative;
  display: inline-block;
  background-color: #ed7802;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 40px;
  text-decoration: none;
  padding: 10px 30px;
}

.link-button::before {
  content: '';
  position: absolute;
  top: -10px; bottom: -10px;
  left: -20px; right: -20px;
}

.link-button:hover {
  background-color: #f79530;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* welfare-related.htmlの設定 */
.message-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.message-section section {
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.message-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.message-section p {
  font-size: 1.25rem;
  line-height: 2.5;
  color: #444;
}

.contact-link {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

img, video {
  max-width: 100%;
  height: auto;
  -webkit-user-select: none; /* iOS Safariでの画像選択を無効化 */
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.hero,
.slide {
  width: 100%;
}

.hero img,
.slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* catchcopyの left: 120px が小画面でははみ出す → 固定を解除 */
.catchcopy {
  left: 5%;
  right: 5%;
  max-width: 90%;
  text-align: center;
}

/* メイン画像右寄せのmargin調整 */
.header-center-image {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* hero高さを自動化または最小にする */
.hero {
  min-height: 400px;
  height: auto;
}

/* 横幅オーバー防止 */
.header-container,
.container,
.footer-container {
  max-width: 100%;
  overflow-x: hidden;
}


/* スマホ対応：画面が狭いときにナビを縦に並べる */
@media screen and (max-width: 767px) {
    .header-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px 10px;
    width: 100vw;
    max-width: 100vw;
    overflow: visible;
    position: relative;
    padding-top: 0;
    margin-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    -webkit-transform: translateZ(0); /* iOS Safariでのレンダリング改善 */
    transform: translateZ(0);
  }
  .logo-left {
    max-width: 160px;
    width: 90px;
    height: 90px;
    margin-left: 16px;
    margin-bottom: 0;
    display: block;
    object-fit: contain;
    margin-top: 0;
    padding-top: 0;
  }
  .hamburger {
    display: block !important;
    position: static;
    font-size: 2.5rem;
    width: 56px;
    height: 56px;
    margin-left: auto;
    z-index: 1100;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: 8px;
    min-width: 44px;
    min-height: 44px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .header-nav {
    display: none; /* 初期は非表示 */
    flex-direction: column;
    background-color: #fff8e1;
    position: absolute;
    top: 70px; /* header の高さに合わせる */
    right: 0;
    width: 100%;
    padding: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .header-nav.active {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list li a {
    display: block;
    width: 100%;
    padding: 15px 20px;
    min-height: 44px; /* iOS推奨タップターゲットサイズ */
    -webkit-tap-highlight-color: transparent;
  }

  .catchcopy {
    position: static;
    font-size: 2rem;
    margin: 1.5rem 0;
    text-align: center;
    -webkit-text-size-adjust: 100%;
  }

  .line1,
  .line2 {
    margin-left: 0;
    display: block;
  }

  .header-center-image {
    width: 100%;
    max-width: 100%;
    margin: 1rem auto;
    -webkit-user-select: none; /* iOS Safariでの画像選択を無効化 */
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  /* サービス紹介 */
  .service {
    width: 95%;
    margin-bottom: 80px;
  }

  .service p {
    font-size: 1rem;
    line-height: 200%;
    -webkit-text-size-adjust: 100%;
  }

  h1 {
    font-size: 32px;
    -webkit-text-size-adjust: 100%;
  }

  h2 {
    font-size: 22px;
    -webkit-text-size-adjust: 100%;
  }

  .message-section {
    padding: 0 1rem;
  }

  .message-section h2 {
    font-size: 1.5rem;
    -webkit-text-size-adjust: 100%;
  }

  .message-section p {
    font-size: 1.05rem;
    line-height: 2;
    -webkit-text-size-adjust: 100%;
  }

  .link-button {
    font-size: 1rem;
    padding: 8px 20px;
    min-height: 44px; /* iOS推奨タップターゲットサイズ */
    -webkit-tap-highlight-color: transparent;
  }

  .footer-container {
    flex-direction: column;
    padding: 10px 5px;
    font-size: 0.8rem;
    row-gap: 8px;
  }

  .footer-left,
  .footer-right {
    margin-left: 0;
    margin-bottom: 10px;
    flex: 1 1 120px;
  }

  header {
    padding-top: 0;
    margin-top: 0;
    height: auto;
  }
}

/* iOS Safari特有の調整 */
@supports (-webkit-touch-callout: none) {
  /* iOS Safari専用の調整 */
  body {
    -webkit-overflow-scrolling: touch;
  }
  
  /* タップターゲットの最小サイズ確保 */
  a, button, input, select, textarea {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* フォーカス時のアウトライン調整 */
  a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
  }
  
  /* 画像の選択を無効化 */
  img, video {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
}