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;
color: #333;
line-height: 2.2;
background-color: #f9f9f9;
-webkit-font-smoothing: antialiased; /* iOS Safariでのフォントレンダリング改善 */
-moz-osx-font-smoothing: grayscale;
-webkit-overflow-scrolling: touch; /* iOS Safariでのスムーズスクロール */
}
header {
height: 105px;
background-color: #ffb74c;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

.logo-left {
  max-width: 140px;
  width: 120px;
  height: 80px;
  margin-left: 0;
  margin-top: 0;
  margin-bottom: 0;
  display: block;
  object-fit: contain;
}

/* ハンバーガーボタン：デフォルトは非表示 */
.hamburger {
  display: none;
  width: 50px;    /* 幅を大きく */
  height: 50px;   /* 高さも大きく */
  font-size: 32px; /* アイコンのフォントサイズ（文字の場合） */
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  min-width: 44px; /* iOS推奨タップターゲットサイズ */
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent; /* iOSタップハイライトを無効化 */
}

.nav-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-right: 0;
  list-style: none;
  padding: 0;
}

.nav-list li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav {
  display: flex;
  position: absolute;
  top: 0;
  right: 0px;
  padding: 10px 20px;
}

.header-nav.open {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  z-index: 3000 !important;
  background: #ffb74c;
  display: flex !important;
  flex-direction: column;
  align-items: flex-end;
}

.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: #f7bf87;
  color: white;
  border-radius: 6px;
}

.main-phrase {
padding: 30px 20px;
text-align: center;
}

h1 {
font-family: 'Noto Sans JP';
font-weight: 550;
color: #ffb74c;
position: relative;
text-align: center;
padding-bottom: 10px;
font-size: 2.2rem;
margin-top: 3rem;
margin-bottom: 1.5rem;
padding-bottom: 0.3rem;
}

h1::after {
content: "";
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 100px;
border-bottom: 1px solid #333;
}
/* ヒーロースライダー全体 */
.hero-slider {
position: relative;
width: 80%;
max-width: 1000px;
height: 700px;
margin: 50px auto;
overflow: hidden;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* 影（任意） */
}
/* 各スライド */
.slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
z-index: 0;
transition: opacity 1s ease-in-out;
}

/* 現在のスライド */
.slide.active {
opacity: 1;
z-index: 1;
}

/* 画像設定 */
.slide img {
width: 100%;
height: 100vh;
object-fit: cover;
display: block;
}
.container {
width: 80%;
max-width: 1000px;
margin: 0 auto;
text-align: center;
margin-bottom: 150px;
}
.container p {
font-family: "メイリオ";
font-size: 20px;
line-height: 250%;
}

/* 新着情報セクション */
.news-list ul {
text-align: left;
}

.news-list li {
list-style: none;
padding: 10px 0;
border-bottom: 1px solid #ddd;
font-size: 1rem;
}
.news-list .date {
font-weight: bold;
color: #666;
margin-right: 10px;
}

.date {
display: inline-block;
width: 10rem;
}

h2 {
margin: 60px auto;
}

.recruit {
background-color: #dff0f1;
padding: 40px 20px;
border-radius: 20px;
max-width: 1000px;
margin: 40px auto;
font-family: 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
color: #444;
}

.recruit .open-date {
color: #00a5b9;
font-weight: bold;
font-size: 1.1em;
margin-bottom: 0.5em;
}

.recruit .recruit-title {
color: #00a5b9;
font-weight: bold;
font-size: 1.2em;
margin-bottom: 1.5em;
}

.recruit .job-detail {
font-size: 1em;
line-height: 1.8;
}

.recruit ul {
list-style: none;
padding: 0;
margin: 1em 0;
}

.recruit li {
margin: 0.5em 0;
}

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

.mail-link {
font-size: 1.4rem;
color: #333;
text-decoration: none;
transition: color 0.3s ease;
}
.mail-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-link {
color: #f8f8f8;
text-decoration: none;
}
.footer-link:hover {
text-decoration: underline;
}
/* フッター */
.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,
.footer-right {
flex: 1 1 300px;
margin-left: 40px;
}

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

.footer-right h3 {
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-color: #ffb74c;
font-size: 12px;
color: #fff;
text-align: center;
padding: 15px;
}

/* contents.htmlについて */
.contents {
display: flex;
flex-direction: column;
max-width: 1000px;
margin: 0 auto;
}

.contents-item {
display: flex;
align-items: center;
gap: 70px;
padding: 60px 40px;
background: #f9f9f9;
}

.contents-item img {
width: 400px;
height: auto;
object-fit: cover;
border-radius: 6px;
}

.contents-item .text-item {
flex: 1;
}

.text-item h1 {
font-size: 26px;
margin-top: 0;
}

h4 {
font-family: 'Noto Sans JP';
font-size: 18px;
font-weight: 300;
}

.flow {
width: 100%;
max-width: 800px;
padding: 100px;
margin: 0 auto;
}

.step {
display: flex;
align-items: flex-start;
margin-bottom: 30px;
position: relative;
}

.step::before {
  display: none;
}

.step-number {
flex-shrink: 0;
width: 40px;
height: 40px;
background-color: #0999a6;
color: white;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
font-size: 1.2em;
font-weight: bold;
margin-right: 20px;
z-index: 1;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.step-content {
flex-grow: 1;
}

.step-content h3 {
margin-top: 0;
margin-bottom: 5px;
color: #0999a6;
}

.step-content p {
margin-bottom: 0;
color: #666;
}

.contact-link {
text-align: center;
margin-top: 50px;
padding-top: 30px;
}

.link-button {
background-color: #0999a6;
color: white;
font-size: 1.2rem;
font-weight: bold;
border-radius: 40px;
text-decoration: none;
padding: 10px 30px;
}

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

.unknown {
text-align: center;
padding-top: 50px;
padding-bottom: 150px;
}

.unknown img {
width: 200px;
height: auto;
object-fit: cover;
border-radius: 6px;
}

.unknown h4 {
color: #ffb74c;
font-size: 26px;
}

/* ours.htmlについて */
.ours {
max-width: 900px;
margin: 0 auto;
padding: 60px 20px;
background-color: #f7f6f4;
}

.ours .introduce {
text-align: center;
margin-bottom: 50px;
}

.ours .introduce p {
font-size: 1.1em;
max-width: 800px;
margin: 0 auto 30px auto;
color: #555;
line-height: 1.8;
font-family: 'Zen Maru Gothic', sans-serif;
}

.ours .introduce img {
max-width: 100%;
height: auto;
display: block;
margin: 0 auto;
border-radius: 0;
box-shadow: none;
}

.ours .motto {
margin-top: 50px;
padding-top: 30px;
border-top: 1px solid #eee;
}

.ours .motto ul {
list-style: none;
padding: 0;
max-width: 800px;
margin: 0 auto;
}

.ours .motto ul li {
font-size: 1.1em;
margin-bottom: 20px;
padding-left: 35px;
position: relative;
line-height: 3;
color: #555;
font-family: 'Zen Maru Gothic', sans-serif;
}

.ours .motto ul li:before {
position: absolute;
left: 0;
top: 0;
font-size: 1.2em;
font-weight: bold;
color: #ffb74c;
width: 25px;
text-align: right;
margin-right: 10px;
font-family: 'Noto Sans JP', sans-serif;
}

.ours .motto ul li:nth-child(1):before { content: '1'; }
.ours .motto ul li:nth-child(2):before { content: '2'; }
.ours .motto ul li:nth-child(3):before { content: '3'; }

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

img, video {
  max-width: 100%;
  height: auto;
}

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

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

/* スライド画像の高さが100vhは過剰なので修正 */
.slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* フレックス系の横幅オーバー防止 */
.header-container,
.container,
.footer-container {
  max-width: 100%;
  overflow-x: hidden;
}

/* contentsセクション内画像の制限 */
.contents-item img {
  max-width: 100%;
  height: auto;
}


/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
  html {
    font-size: 16px; /* iOS Safariで最小フォントサイズを確保 */
    -webkit-text-size-adjust: 100%;
  }
  body {
    line-height: 1.7;
    font-size: 0.95rem;
    padding: 0;
    margin: 0;
    background: #f9f9f9;
    -webkit-overflow-scrolling: touch;
  }

  /* ヒーロースライダー */
  .hero-slider {
    width: 100vw;
    min-height: 180px;
    max-height: 60vw;
    margin: 0 auto 1rem auto;
    box-shadow: none;
  }
  .slide,
  .slide img {
    width: 100vw;
    height: auto;
    min-height: 120px;
    object-fit: cover;
    display: block;
  }

  /* メインフレーズ */
  .main-phrase h1 {
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem 0;
    -webkit-text-size-adjust: 100%;
  }
  .main-phrase p {
    font-size: 1rem;
    margin: 0.5rem 0;
    -webkit-text-size-adjust: 100%;
  }

  /* 新着情報 */
  .news-list {
    padding: 0.5rem;
    font-size: 0.95rem;
  }
  .news-list h1 {
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem 0;
    -webkit-text-size-adjust: 100%;
  }
  .news-list ul {
    padding: 0;
    margin: 0;
  }
  .news-list li {
    font-size: 0.95rem;
    padding: 8px 0;
    word-break: break-word;
    -webkit-text-size-adjust: 100%;
  }
  .news-list .date {
    width: auto;
    display: inline;
    font-size: 0.9rem;
    -webkit-text-size-adjust: 100%;
  }

  /* コンテナ・事業内容 */
  .container,
  .contents {
    width: 98vw;
    max-width: 100vw;
    padding: 0.5rem;
    font-size: 0.95rem;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
  }
  h1 {
    font-size: 1.3rem;
    margin: 1rem 0 0.5rem 0;
    -webkit-text-size-adjust: 100%;
  }
  h2 {
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem 0;
    -webkit-text-size-adjust: 100%;
  }
  h3 {
    font-size: 1rem;
    margin: 0.8rem 0 0.4rem 0;
    -webkit-text-size-adjust: 100%;
  }
  h4 {
    font-size: 0.95rem;
    margin: 0.5rem 0;
    -webkit-text-size-adjust: 100%;
  }
  p, li {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0.3em 0;
    word-break: break-word;
    -webkit-text-size-adjust: 100%;
  }

  /* 求人情報 */
  .recruit {
    padding: 1rem 0.5rem;
    border-radius: 10px;
    margin: 1rem auto;
    font-size: 0.95rem;
  }
  .recruit .open-date,
  .recruit .recruit-title {
    font-size: 1rem;
    -webkit-text-size-adjust: 100%;
  }
  .job-detail {
    font-size: 0.95rem;
    -webkit-text-size-adjust: 100%;
  }

  /* 画像 */
  img, video {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    -webkit-user-select: none; /* iOS Safariでの画像選択を無効化 */
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  /* フッター */
  .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;
  }
  .footer-right ul,
  .footer-right li {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  footer {
    font-size: 0.7rem;
    padding: 0.5rem;
  }

  .overview-block,
  .overview-block.reverse {
    flex-direction: column;
    text-align: left;
  }

  .overview-img,
  .overview-text {
    width: 100%;
  }
  
  .hamburger {
    display: block;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 3100 !important;
    min-width: 44px;
    min-height: 44px;
    -webkit-transform: translateZ(0); /* iOS Safariでのレンダリング改善 */
    transform: translateZ(0);
  }

  .header-nav {
    display: none;
  }

  .header-nav.open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 0;
    width: 100vw;
    background: #ffb74c;
    z-index: 3000 !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
  }

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

  .nav-list li a {
    padding: 16px 0;
    width: 100%;
    text-align: right;
    display: block;
    box-sizing: border-box;
    min-height: 44px; /* iOS推奨タップターゲットサイズ */
    -webkit-tap-highlight-color: transparent;
  }

  .logo-left {
    max-width: 120px;
    width: 100px;
    height: 80px;
    margin-left: 12px;
    margin-bottom: 0;
    margin-top: 12px;
    display: block;
    object-fit: contain;
  }

  .contents {
    width: 98vw;
    max-width: 100vw;
    padding: 0.5rem;
    font-size: 0.95rem;
    box-sizing: border-box;
  }
  h1 {
    font-size: 1.3rem;
    margin: 1rem 0 0.5rem 0;
    -webkit-text-size-adjust: 100%;
  }
  h2 {
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem 0;
    -webkit-text-size-adjust: 100%;
  }
  h3 {
    font-size: 1rem;
    margin: 0.8rem 0 0.4rem 0;
    -webkit-text-size-adjust: 100%;
  }
  h4 {
    font-size: 0.95rem;
    margin: 0.5rem 0;
    -webkit-text-size-adjust: 100%;
  }
  p, li {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0.3em 0;
    word-break: break-word;
    -webkit-text-size-adjust: 100%;
  }

  .contents-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0.5rem 0;
    align-items: flex-start;
  }
  .contents-item img {
    width: 100%;
    height: auto;
    max-width: 100vw;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  .text-item h1 {
    font-size: 1.2rem;
    -webkit-text-size-adjust: 100%;
  }

  .text-item h4 {
    font-size: 1rem;
    -webkit-text-size-adjust: 100%;
  }

  .text-item p {
    font-size: 0.95rem;
    -webkit-text-size-adjust: 100%;
  }

  .flow {
    padding: 1rem 0.5rem;
  }

  .steps {
    flex-direction: column;
  }

  .step {
    margin-bottom: 1rem;
  }

  .step-number {
    font-size: 1.2rem;
  }

  .step-content h3 {
    font-size: 1rem;
    -webkit-text-size-adjust: 100%;
  }

  .step-content p {
    font-size: 0.95rem;
    -webkit-text-size-adjust: 100%;
  }

  .contact-link {
    padding: 1rem 0.5rem;
  }

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

  .unknown img {
    width: 100%;
    height: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  .unknown h4 {
    font-size: 1rem;
    -webkit-text-size-adjust: 100%;
  }

  .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;
  }

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

  footer {
    font-size: 0.7rem;
    padding: 0.5rem;
  }

  h1 {
    position: relative;
    z-index: 1;
  }
}

/* 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;
  }
}

/* PCサイズ（768px以上）でハンバーガーメニューを非表示 */
@media screen and (min-width: 768px) {
  .hamburger {
    display: none !important;
  }
  
  .header-container {
    justify-content: flex-start;
  }
  .header-nav {
    margin-left: auto;
  }
  .nav-list {
    margin: 0;
    justify-content: flex-end;
  }
  
  .nav-list li {
    margin: 0 10px;
  }
}