/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #eeece9;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.wrapper {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}
a {
    text-decoration: none;
    color: none;
}
a:hover {
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
    }
:root{
	scroll-padding: 100px;
	scroll-behavior: smooth;
}

/* ヘッダー */
.header {
    background-color: #EEECE9;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 118px;
    border-bottom: 1px solid #aaa;
}

.header-container {
    max-width: 1150px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    height: 100%;
    position: relative;
}

.logo {
    height: 41px;
    position: relative;
    z-index: 2; /* ハンバーガーより前面に */
}

.logo a {
    cursor: pointer; /* 常に指マーク */
}

.logo-img {
    height: 100%;
    width: auto;
    z-index: 1001;
    position: relative;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-left {
    margin-left: 0;
}

.nav-right {
    margin-right: 0;
    align-items: center;
}

.nav-link {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #333333;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #666;
}

.nav-outline {
    display: inline-block;
    padding: 8px 50px;
    border: 1px solid #333333;
    color: #333333;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    background: transparent;
}
.nav-outline:hover {
    background: #333;
    color: white;
}


/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1; /* ロゴの背面に */
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #333333;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

/* メインビジュアル */
.hero {
    position: relative;
    height: 720px;
    margin-top: 118px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60%;
}

/* .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
} */

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 35%;
    bottom: 0;
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-family: 'Shippori Mincho', serif;
    font-weight: 700;
    font-size: 57px;
    letter-spacing: 2px;
    color: white;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    margin-bottom: 40px;
    line-height: 1.3;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 2s ease-in-out;
    text-align: center;
    width: 100%;
}

.hero-title.active {
    opacity: 1;
}

.hero-button {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(50% + 100px);
    transition: opacity 2s ease-in-out;
    visibility: hidden; /* 要素を完全に非表示にする */
    pointer-events: none; /* クリックを無効にする */
    z-index: 1; /* 基本の重なり順 */
}
.hero-button.active {
    opacity: 1;
    visibility: visible; /* アクティブな要素は表示する */
    pointer-events: auto; /* クリックを有効にする */
    z-index: 2; /* アクティブボタンは前面に */
}

.btn-primary {
    display: inline-block;
    padding: 10px 40px;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1px;
    transition: opacity 2s ease-in-out;
    background: transparent;
    width: 260px;
}

.btn-primary:hover {
    background: white;
    color: #333;
}

/* スライダーコントロール */
/*
.hero-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
}
*/

/* 前後へ進む */
/*
.hero-prev,
.hero-next {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-prev:hover,
.hero-next:hover {
    background: white;
    transform: scale(1.1);
}
*/

/* スライダーのドット */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3); /* 半透明の白 */
    backdrop-filter: blur(3px);
    cursor: pointer;
    transition: background 0.3s ease, opacity 0.3s ease;
    border: none; /* 枠線を削除 */
    outline: none; /* 選択時の青い枠を削除 */
}

/* hover時（少し明るく） */
.hero-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
}

/* active状態（現在のスライドを示す） */
.hero-dot.active {
    background: rgba(255, 255, 255, 0.8);
}

/* focus時（クリック後の青枠を削除） */
.hero-dot:focus {
    outline: none;
    box-shadow: none;
}

/* メッセージセクション */
.message-section {
    padding: 150px 0;
    background-color: #eeece9;
}

.section-title {
    font-family: 'Shippori Mincho', serif;
    font-weight: 700;
    font-size: 48px;
    color: #333333;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 2.5px;
}
.section-title-1 {
    font-family: 'Shippori Mincho', serif;
    font-weight: 700;
    font-size: 40px;
    color: #333333;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 2.5px;
}

.section-subtitle {
    font-family: 'Cormorant', serif;
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    text-align: center;
    margin-bottom: 40px;
}

.message-text {
    font-family: 'Hiragino Mincho Pro', serif;
    font-size: 20px;
    color: #333333;
    text-align: center;
    line-height: 40px;
    max-width: 697px;
    margin: 0 auto 60px;
}

.section-button {
    text-align: center;
}

.btn-outline {
    display: inline-block;
    padding: 8px 60px;
    border: 1px solid #94938f;
    color: #333333;
    text-decoration: none;
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline:hover {
    background: #333;
    color: white;
}

/* 新着情報セクション */
.news-section {
    padding: 80px 0;
    background: #F8F7F5;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.news-item {
    cursor: pointer;
}

.news-image {
    width: 100%;
    height: 225px;
    overflow: hidden;
    margin-bottom: 15px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-image:hover img {
    transform: scale(1.03);
}

.news-date {
    font-family: "Oswald", sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #94938f;
    display: block;
    margin-bottom: 5px;
}

.news-title {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #707070;
    line-height: 20px;
    overflow-wrap: anywhere;
}

.news-more {
    text-align: right;
}

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    color: #333333;
    text-decoration: none;
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-size: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    padding: 0px 0 0px 15px;
}
.more-link span {
    color: #1861b5;
    font-size: 30px;
    line-height: 38px;
    display: block;
    padding-right: 15px;
    margin-top: -6px;
}

.more-link:hover {
    color: #666;
}

/* 会社紹介セクション */
.wrapper_about {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 90px auto -190px;
    padding: 60px 10px;
    background: #ffffff;
    text-align: center;
    color: #fff; /* 文字色は背景に合わせて調整 */
}

.about-section {
    position: relative;
    padding: 100px 0;
    height: 500px;
    /* overflow: hidden; /* 固定背景がはみ出すのを防ぐ */
    margin-bottom: 240px;
}

/* 背景パララックス */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/wpadm/wp-content/themes/koizumi/images/about.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* スマホでも比較的安定 */
    z-index: 0;
}

.about-text {
    font-family: 'Hiragino Mincho Pro', serif;
    font-size: 18px;
    color: #333333;
    text-align: center;
    line-height: 40px;
    max-width: 671px;
    margin: 0 auto 60px;
}

/* グループ紹介セクション */
.wrapper_group {
    max-width: 1100px;
    margin: 0 auto;
}
.group-section {
    padding: 80px 0;
    background: white;
}

.group-grid {
    margin-top: 60px;
}

/* .group-item:nth-child(4),
.group-item:nth-child(5),
.group-item:nth-child(6),
.group-item:nth-child(7) {
    height: 259px;
} */

.group-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: inline-block;
    width: 47%;
    height: 293px;
    margin: 10px;
    overflow: hidden;
}

.group-item-1 {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: inline-block;
    width: 30.6%;
    height: 260px;
    margin: 10px;
    overflow: hidden;
}

.group-item img,
.group-item-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.group-item:hover img,
.group-item-1:hover img {
    transform: scale(1.03);
}

.group-item::before,
.group-item-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.group-item:hover::before,
.group-item-1:hover::before {
    opacity: 1;
}

/* 採用情報セクション */
.recruit-section {
    position: relative;
    height: 766px;
    overflow: hidden;
}
.section-subtitle1 {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 70px;
    margin-top: -20px;
}
.recruit-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.recruit-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60%;
}

.recruit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.26);
}

.recruit-content {
    position: relative;
    z-index: 2;
    padding: 120px 0;
    text-align: left;
    max-width: 50%;
    padding-left: 280px;
    background: rgba(255, 255, 255, 0.2);
}

.recruit-title {
    font-family: 'Shippori Mincho', serif;
    font-weight: 700;
    font-size: 40px;
    color: white;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    margin-bottom: 30px;
}

.recruit-text {
    font-family: 'Hiragino Mincho Pro', serif;
    font-size: 20px;
    font-weight: 500;
    color: white;
    line-height: 40px;
    margin-bottom: 40px;
}

.recruit-button {
    margin-top: 70px;
}

.btn-white {
    display: inline-block;
    padding: 8px 80px;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-white:hover {
    background: white;
    color: #333;
}

/* お問い合わせセクション */
.contact-section a{
    display:block;
}
.contact-content {
    background: #4c4943;
    padding: 100px 0;
    text-align: center;
}

.contact-title {
    font-family: 'Hiragino Mincho Pro', serif;
    font-weight: 600;
    font-size: 50px;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.contact-subtitle {
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-size: 18px;
    color: white;
}

/* フッター */
.footer {
    background: #eeece9;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.footer-logo {
    height: 51px;
}
.footer-logo-img {
    height: 100%;
    width: auto;
}
.footer-links {
    display: flex;
    gap: 60px;
    align-items:flex-end
}
.footer-column img {
    width: 14%;
    margin: 0px 0px -2px 3px;
    display: inline-block;
}
.footer-column ul {
    list-style: none;
}
.footer-column li {
    margin-bottom: 10px;
}
.footer-column a {
    color: #333333;
    text-decoration: none;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 500;
    font-size: 13px;
    transition: color 0.3s ease;
}
.footer-column a:hover {
    color: #666;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
}
.footer-bottom p {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #333333;
}

.forwide {
    display: block;
}
.forsp {
    display: none;
}


/* 20251027 */
/* ===============================
   スクロールで発火するフェード系アニメーション
   （Intersection Observer で .show を付与）
=============================== */

/* --- 共通の初期状態 --- */
.fade-in,
.fade-in-up,
.msgbox-fade-in-up,
.fade-in-down,
.fade-in-left,
.fade-in-right,
.fade-in-zoom,
.fade-in-scroll {
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
  /* ↑ transition版（通常はこちらを使用） */
}

/* シンプルなフェードイン（動かない） */
.fade-in.show {
  opacity: 1;
}

/* --- 下からフェードイン --- */
.fade-in-up {
  transform: translateY(20px); /* 下に20px移動（見た目上） */
}
.fade-in-up.show {
  opacity: 1;
  transform: translateY(0);
}
/* 文字単位フェードイン用 */
.fade-in-up.inline {
  display: inline-block;
}
.msgbox-fade-in-up {
  transform: translateY(100px); /* 下に100px移動（見た目上） */
}
.msgbox-fade-in-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- 上からフェードイン --- */
.fade-in-down {
  transform: translateY(-20px);
}
.fade-in-down.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- 左からフェードイン --- */
.fade-in-left {
  transform: translateX(-20px);
}
.fade-in-left.show {
  opacity: 1;
  transform: translateX(0);
}

/* --- 右からフェードイン --- */
.fade-in-right {
  transform: translateX(20px);
}
.fade-in-right.show {
  opacity: 1;
  transform: translateX(0);
}

/* --- ズームインフェード --- */
.fade-in-zoom {
  transform: scale(0.9);
}
.fade-in-zoom.show {
  opacity: 1;
  transform: scale(1);
}

/* --- 単純なスクロール発火用フェードイン --- */
.fade-in-scroll.show {
  opacity: 1;
  /* transformは使わないので指定不要 */
}

.slide-up {
  opacity: 1; /* フェードなしで完全に見えてる */
  transform: translateY(30px);
  transition: transform 0.5s ease-out;
}
.slide-up.show {
  transform: translateY(0); 
}
/* 文字単位スライドアップ用 */
.slide-up.inline {
  display: inline-block;
}


.grow-up {
  opacity: 0;
  transform: scaleY(0);
  transform-origin: bottom; /* 下を基準に伸びる */
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.grow-up.show {
  opacity: 1;
  transform: scaleY(1);
}
/* 文字単位グローアップ用 */
.grow-up.inline {
  display: inline-block;
}


.pop-up {
  opacity: 0;
  transform: translateY(30px) scale(0.95); /* 少し下にズレ＆小さく */
  transition:
    opacity 0.6s ease-out,
    transform 0.6s cubic-bezier(0.25, 1.3, 0.5, 1); /* ちょっと弾む感じ */
}
.pop-up.show {
  opacity: 1;
  transform: translateY(0) scale(1); /* 元の位置に戻る（ぴょこっ） */
}
/* 文字単位ポップアップ用 */
.pop-up.inline {
  display: inline-block;
}

/* ===============================
   アニメーション遅延クラス（transition版・animation版両対応）
   HTMLで適宜クラスを追加してください
=============================== */
.delay-1 {
  transition-delay: 0s;       /* transition版用 */
  /* animation-delay: 0s; */  /* animation版を使う場合はコメントを外して使う */
}
.delay-2 {
  transition-delay: 0.2s;
  /* animation-delay: 0.2s; */
}
.delay-3 {
  transition-delay: 0.4s;
  /* animation-delay: 0.4s; */
}
.delay-4 {
  transition-delay: 0.6s;
  /* animation-delay: 0.6s; */
}
.delay-5 {
  transition-delay: 0.8s;
  /* animation-delay: 0.8s; */
}
.delay-6 {
  transition-delay: 1.0s;
  /* animation-delay: 1.0s; */
}
.delay-7 {
  transition-delay: 1.2s;
  /* animation-delay: 1.2s; */
}
.delay-8 {
  transition-delay: 1.4s;
  /* animation-delay: 1.4s; */
}
.delay-9 {
  transition-delay: 1.6s;
  /* animation-delay: 1.6s; */
}
.delay-10 {
  transition-delay: 1.8s;
  /* animation-delay: 1.8s; */
}
.delay-11 {
  transition-delay: 2.0s;
  /* animation-delay: 2.0s; */
}
.delay-12 {
  transition-delay: 2.2s;
  /* animation-delay: 2.2s; */
}
/* 必要に応じて .fade-delay-20, 21 ... など増やしてください */

.inline-delay-1 {
  transition-delay: 0s;       /* transition版用 */
  /* animation-delay: 0s; */  /* animation版を使う場合はコメントを外して使う */
}
.inline-delay-2 {
  transition-delay: 0.015s;
  /* animation-delay: 0.2s; */
}
.inine-delay-3 {
  transition-delay: 0.03s;
  /* animation-delay: 0.4s; */
}
.inline-delay-4 {
  transition-delay: 0.045s;
  /* animation-delay: 0.6s; */
}
.inline-delay-5 {
  transition-delay: 0.06s;
  /* animation-delay: 0.8s; */
}
.inline-delay-6 {
  transition-delay: 0.075s;
  /* animation-delay: 1.0s; */
}
.inline-delay-7 {
  transition-delay: 0.09s;
  /* animation-delay: 1.2s; */
}
.inline-delay-8 {
  transition-delay: 0.105s;
  /* animation-delay: 1.4s; */
}
.inline-delay-9 {
  transition-delay: 0.12s;
  /* animation-delay: 1.6s; */
}
.inline-delay-10 {
  transition-delay: 0.135s;
  /* animation-delay: 1.8s; */
}

/* ===============================
   ↓ 必要に応じて、animation版を使いたい場合はこちら（コメントアウト解除）
=============================== */

/*
.fade-in-up.show {
  animation: fadeInUp 1s ease-in-out forwards;
}
.fade-in-left.show {
  animation: fadeInLeft 1s ease-in-out forwards;
}
.fade-in-right.show {
  animation: fadeInRight 1s ease-in-out forwards;
}
.fade-in-zoom.show {
  animation: fadeInZoom 1s ease-in-out forwards;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  0% { opacity: 0; transform: translateX(-20px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  0% { opacity: 0; transform: translateX(20px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInZoom {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}
*/

.move-line {
    height: 1px;
    background-color: #aaa;
    width: 0px;
    max-width: 100%;
    /* 中央から */
    /* margin: 0 auto; */
    /* 左から右 */
    margin: 0;
    /* 右から左 */
    /* margin: 0 0 0 auto; */
}

.move-line.show {
    animation: drawLine 2s ease forwards;
}

@keyframes drawLine {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}


/* レスポンシブデザイン */
@media (max-width: 1500px) {
    .recruit-content {
        padding-left: 180px;
    }
}
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .group-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav {
        width: 95%;
    }
    .nav-list {
        gap: 20px;
    }
    .recruit-title {
        font-size :35px;
    }
    .recruit-content {
        /* padding: 60px 0; */
        padding-left: 90px;
    }
}

@media (max-width: 768px) {
    header {
        height: 85px!important;
    }
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        height: auto;
    }
    .hamburger {
        display: flex;
        z-index: 1001; /* 必要に応じてロゴより全面 */
    }
    .nav {
        position: fixed;
        /* top: 0; */
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        transition: right 0.3s ease;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
    .nav-open {
        right: 0;
    }
    .nav-list {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .nav-left,
    .nav-right {
        margin: 10px 0;
    }
    .nav-link {
        font-size: 18px;
        font-weight: 700;
        color: #333333;
        text-decoration: none;
        display: block;
        padding: 10px 40px;
        margin: 10px;
        transition: color 0.3s ease;
    }
    .nav-link:hover {
        color: #666;
    }
    .hero {
        height: 450px;
        margin-top: 80px;
    }
    .hero-title {
        font-size: 40px;
    }
    .hero-button {
        top: calc(43% + 100px);
    }
    .section-title {
        font-size: 36px;
    }
    .news-grid {
        gap: 40px;
        width: 100%;
    }
    .about-section {
        margin-bottom: 200px;
    }
    .group-section {
        padding: 50px 0;
    }
    .group-grid {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }
    .group-item {
        height: 210px;
    }
    .group-item-1 {
        width: 47%;
        height: 210px;
    }
    .wrapper_about {
        width: 90%;
    }
    .recruit-content {
        padding-left: 40px;
        padding-right: 20px;
        max-width: 100%;
        background: none;
    }
    .recruit-title {
        font-size: 32px;
    }
    .contact-content {
        padding: 50px 0;
    }
    .footer-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        align-items: center;
    }
    .footer-links {
        gap: 70px;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }
    .wrapper {
        padding: 0;
    }
    .wrapper_group {
        width: 99%;
    }
    .hero {
        height: 320px;
        margin-top: 80px;
    }
    .hero-title {
        font-size: 30px;
        letter-spacing: 0;
        top: 40%;
    }
    .hero-content {
        right: 0;
    }
    .hero-button {
        top: calc(26% + 100px);
        left: 0;
        right: 0;
        transform: none;
    }
    .btn-primary {
        font-size: 16px;
    }
    .section-title {
        font-size: 28px;
        letter-spacing: 0;
    }
    .section-title-1 {
        font-size: 35px;
    }
    .message-section {
        padding: 80px 0;
    }
    .message-text,
    .about-text {
        font-size: 16px;
        line-height: 1.8;
    }
    .news-section {
        padding: 60px 0;
        background: #F8F7F5;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .recruit-section {
        height: 700px;
    }
    .recruit-title {
        font-size: 26px;
    }
    .recruit-text {
        font-size: 16px;
        line-height: 1.8;
    }
    .recruit-button {
        text-align: center;
    }
    .recruit-content {
        padding-left: 40px;
        padding-right: 20px;
    }
    .contact-title {
        font-size: 30px;
    }

    .group-item,
    .group-item-1 {
        width: 95%;
        height: 200px;
    }


    .logo-img {
        height: 90%;
    }
    .footer-links {
        flex-direction: column;
        gap: 0px;
        align-items: center;
        text-align: center;
    }
    .footer-logo-img {
        height: 85%;
    }
    .forwide {
        display: none;
    }
    .forsp {
        display: block;
    }
}

/* 管理バーがあるときだけヘッダーを32px下にずらす */
body:has(#wpadminbar) .header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body:has(#wpadminbar) .header {
        top: 46px;
    }
    html #wpadminbar {
        position: fixed;
    }
}


/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #03528c;
    outline-offset: 2px;
}


