/* ========== 基本設定 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', YuGothic, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    -webkit-tap-highlight-color: transparent;
}

/* ========== メッセージ表示 ========== */
.messages-container {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 600px;
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.4s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.alert-success {
    background: linear-gradient(135deg, #00f5ff, #00ff88);
    color: white;
}

.alert-error {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== ヘッダー ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 12px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
}

.logo a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo h1 {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    touch-action: manipulation;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background: white;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: white;
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    padding-top: 70px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-menu.active {
    right: 0;
}

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

.nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-list a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 18px 24px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1rem;
}

.nav-list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, #00f5ff, #00ff88);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-list a:active {
    background: rgba(255, 255, 255, 0.15);
}

.nav-submenu {
    position: relative;
}

.nav-parent {
    display: block;
    color: white;
    padding: 18px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1rem;
}

.nav-parent::after {
    content: '▼';
    position: absolute;
    right: 24px;
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.nav-submenu.active .nav-parent::after {
    transform: rotate(180deg);
}

.nav-submenu-list {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    transition: max-height 0.4s ease;
}

.nav-submenu.active .nav-submenu-list {
    max-height: 300px;
}

.nav-submenu-list a {
    padding: 15px 24px 15px 40px;
    font-size: 0.9rem;
}

.main-content {
    margin-top: 60px;
}

/* ========== ヒーローセクション（画像対応版） ========== */
.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 500px;
    overflow: hidden;
}

/* 背景画像なしの場合（グラデーション） */
.hero:not(.hero-with-image) {
    background: linear-gradient(135deg, #00f5ff 0%, #00ff88 100%);
}

/* 背景画像ありの場合 */
.hero.hero-with-image {
    background-image: url("../images/hero/hero-bg.12380fcec4b5.JPG");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 背景画像がない場合のフォールバック */
.hero.hero-with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #00f5ff 0%, #00ff88 100%);
    z-index: -1;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    z-index: 2;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    font-weight: bold;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease 0.3s forwards;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: clamp(1rem, 3vw, 1.2rem);
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.5s forwards;
    max-width: 700px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.7s forwards;
    letter-spacing: 2px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== メニューグリッド ========== */
.menu-grid-wrapper {
    background: white;
    padding: 60px 16px;
    position: relative;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-card {
    position: relative;
    padding: 40px 24px;
    text-align: center;
    background: white;
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    display: block;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    touch-action: manipulation;
}

.menu-card:active {
    transform: scale(0.98);
}

.menu-card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
}

.menu-subtitle {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.menu-card-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #00f5ff, #00ff88);
    transform: scaleX(0);
    transition: transform 0.5s ease;
    transform-origin: left;
}

.menu-card:active .menu-card-bar {
    transform: scaleX(1);
}

/* ========== リクルートセクション ========== */
.recruit-section {
    position: relative;
    min-height: 60vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    overflow: hidden;
}

.recruit-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.recruit-section-1 .recruit-bg-image {
    background-image: url("../images/DSC_1387.ce2f79e30914.JPG");
}

.recruit-section-2 .recruit-bg-image {
    background-image: url("../images/DSC_1488.506e6f982592.JPG");
}

.recruit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.recruit-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.recruit-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.recruit-content h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 16px;
    font-weight: bold;
}

/* recruit-section-2の場合は小さく上書き */
.recruit-section-2 .recruit-content h2 {
    font-size: clamp(0.85rem, 2.2vw, 1.2rem) !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}

.recruit-content p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.btn-recruit {
    display: inline-block;
    background: white;
    color: #333;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    touch-action: manipulation;
}

.btn-recruit:active {
    transform: scale(0.95);
}

/* ========== 事業内容ページ ========== */
.service-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: white;
    border: 2px solid #333;
    border-radius: 20px;
    overflow: hidden;
}

.service-card-title {
    background: white;
    color: #333;
    padding: 20px 30px;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: bold;
    border-bottom: 2px solid #333;
    margin: 0;
}

.service-card-content {
    padding: 30px;
    line-height: 1.8;
}

.service-card-content p {
    margin-bottom: 20px;
    color: #555;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: #333;
}

.service-list li::before {
    content: '・';
    position: absolute;
    left: 10px;
    color: #00f5ff;
    font-weight: bold;
}

.service-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.company-info-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.company-name {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: bold;
    color: #333;
    margin: 0;
}

.company-address {
    text-align: center;
    color: #666;
    font-size: clamp(0.85rem, 2vw, 1rem);
    margin: 0;
}

@media (min-width: 768px) {
    .company-info-box {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .company-address {
        text-align: right;
    }
}

/* ========== 事業内容ページ ========== */

/* サービスヒーロー */
.service-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../images/logo.722f667e01d5.jpg") center/cover;
    animation: kenburns 20s ease infinite alternate;
}

@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.service-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.85), rgba(0, 255, 136, 0.85));
    z-index: 1;
}

.service-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.service-hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    letter-spacing: 4px;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.service-hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: bold;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* メインセクション */
.service-main-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

.service-container {
    max-width: 900px;
    margin: 0 auto;
}

.service-block {
    background: white;
    border-radius: 25px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 0.8s ease forwards;
}

.service-block:nth-child(1) {
    animation-delay: 0.2s;
}

.service-block:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-block-inner {
    padding: 0;
}

.service-icon-wrapper {
    background: linear-gradient(135deg, #00f5ff, #00ff88);
    padding: 30px;
    text-align: center;
}

.service-icon {
    font-size: 3rem;
    color: white;
    animation: rotate 3s ease-in-out infinite;
}

@keyframes rotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.service-block-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: bold;
    padding: 25px 30px;
    margin: 0;
    background: linear-gradient(135deg, #f8f9fa, white);
    color: #333;
    border-bottom: 3px solid #00f5ff;
}

.service-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-block:hover .service-image {
    transform: scale(1.05);
}

.service-description {
    padding: 30px;
    line-height: 1.9;
}

.service-description p {
    margin-bottom: 20px;
    color: #555;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.service-features {
    list-style: none;
    padding: 20px 0 0;
    margin: 0;
}

.service-features li {
    padding: 12px 0;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.service-features li:nth-child(1) { animation-delay: 0.6s; }
.service-features li:nth-child(2) { animation-delay: 0.7s; }
.service-features li:nth-child(3) { animation-delay: 0.8s; }
.service-features li:nth-child(4) { animation-delay: 0.9s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #00f5ff, #00ff88);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* フッターセクション */
.service-footer-section {
    background: linear-gradient(135deg, #1a1a1a, #000);
    padding: 50px 20px;
}

.service-footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-company-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.footer-company-name {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: bold;
    color: white;
    margin: 0;
}

.footer-company-address {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.85rem, 2vw, 1rem);
    margin: 0;
}

@media (min-width: 768px) {
    .service-footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .service-image-wrapper {
        height: 350px;
    }
}

/* ========== アクセスセクション（Googleマップ対応） ========== */
.access-section {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
}

.access-info {
    margin-bottom: 30px;
    color: #666;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

/* Googleマップコンテナ */
.google-map-container {
    max-width: 1000px;
    margin: 0 auto 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    padding-bottom: 56.25%; /* 16:9アスペクト比 */
    height: 0;
}

.google-map-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* マップ設定説明 */
.map-instructions {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: left;
}

.map-note {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #666;
}

.map-note a {
    color: #00f5ff;
    text-decoration: none;
    font-weight: bold;
}

.map-note a:hover {
    text-decoration: underline;
}

/* ========== コンタクトセクション ========== */
.contact-section {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    padding: 60px 20px;
    text-align: center;
}

.btn-contact {
    display: inline-block;
    background: white;
    color: #000;
    padding: 20px 50px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
    touch-action: manipulation;
}

.btn-contact span {
    display: block;
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: bold;
}

.btn-contact small {
    display: block;
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    margin-top: 8px;
    opacity: 0.8;
}

.btn-contact:active {
    transform: scale(0.95);
}

/* ========== 会社情報ページ ========== */
.company-page-header {
    background: linear-gradient(135deg, #00f5ff 0%, #00ff88 100%);
    padding: 80px 20px 40px;
    color: white;
}

.company-page-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: bold;
    margin-bottom: 10px;
}

.company-page-subtitle {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    letter-spacing: 2px;
    opacity: 0.9;
}

.company-content-section {
    padding: 40px 16px 80px;
    background: white;
}

.company-content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.breadcrumb {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    white-space: nowrap;
}

.breadcrumb a {
    color: #00f5ff;
    text-decoration: none;
}

.section-heading {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: bold;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #00f5ff;
    position: relative;
}

/* 画像の見た目をどのデバイスでも安定させる */
.president-photo {
  width: clamp(120px, 18vw, 220px); /* 横幅の最小・推奨・最大 */
  aspect-ratio: 3 / 4;              /* 縦長比率を固定 */
  height: auto;                     /* aspect-ratio に従う */
  object-fit: cover;
  object-position: center top;      /* 顔を上寄せで見せたい場合 */
  border-radius: 8px;
  display: block;
}

/* プロフィール全体をレスポンシブに横並び／縦並び切替 */
.president-profile {
  display: flex;
  flex-direction: row;
  gap: 28px;
  padding: 30px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
  border-radius: 15px;
  margin-bottom: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  align-items: center;
  text-align: left;
}

/* 情報ブロックの幅調整（画像サイズに合わせる） */
.president-image {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* テキスト側は残り幅を使う */
.president-info-box {
  flex: 1 1 auto;
}

/* モバイルでは縦並び・中央揃え */
@media (max-width: 768px) {
  .president-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }
  .president-photo {
    width: clamp(120px, 28vw, 180px);
    height: clamp(120px, 28vw, 180px);
  }
}

.president-name {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: bold;
    color: #333;
}

.message-text h3 {
    font-size: clamp(1.2rem, 3.5vw, 1.6rem);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #00f5ff;
}

.message-text p {
    margin-bottom: 20px;
    line-height: 1.9;
    color: #555;
}

.company-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.company-table th,
.company-table td {
    padding: 15px;
    text-align: left;
    font-size: 0.9rem;
}

.company-table th {
    background: linear-gradient(135deg, #00f5ff, #00ff88);
    color: white;
    font-weight: bold;
    width: 35%;
}

.company-table td {
    background: white;
    border-bottom: 1px solid #f0f0f0;
}

.history-timeline {
    padding: 20px 0;
}

.history-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.history-year {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: bold;
    color: #00f5ff;
    margin-bottom: 15px;
}

.event-month {
    display: inline-block;
    background: linear-gradient(135deg, #00f5ff, #00ff88);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    margin-right: 15px;
    font-weight: bold;
    font-size: 0.85rem;
}

.org-chart {
    max-width: 1000px;
    margin: 0 auto;
}

.org-tier {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
}

.org-unit {
    background: white;
    border: 2px solid #00f5ff;
    padding: 20px 30px;
    border-radius: 15px;
    min-width: 180px;
    box-shadow: 0 5px 20px rgba(0, 245, 255, 0.1);
    text-align: center;
}

.org-unit h3 {
    font-size: clamp(1rem, 3vw, 1.2rem);
}

.org-unit.highlight {
    background: linear-gradient(135deg, #00f5ff, #00ff88);
    color: white;
}

.job-details-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.job-details-table th,
.job-details-table td {
    padding: 15px;
    font-size: 0.9rem;
}

.job-details-table th {
    background: linear-gradient(135deg, #00f5ff, #00ff88);
    color: white;
    width: 30%;
}

.apply-button {
    display: inline-block;
    background: linear-gradient(135deg, #00f5ff, #00ff88);
    color: white;
    padding: 15px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
    touch-action: manipulation;
}

.apply-button:active {
    transform: scale(0.95);
}

.button-center {
    text-align: center;
    margin-top: 30px;
}

/* ========== フォーム ========== */
.contact-form-section {
    padding: 80px 16px;
    background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
    min-height: 100vh;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.page-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

.page-subtitle {
    text-align: center;
    color: #999;
    margin-bottom: 40px;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 0.95rem;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #00f5ff;
    box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23333' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-actions {
    text-align: center;
    margin-top: 40px;
}

.btn-submit {
    background: linear-gradient(135deg, #00f5ff, #00ff88);
    color: white;
    padding: 15px 60px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
    touch-action: manipulation;
}

.btn-submit:active {
    transform: scale(0.95);
}

.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
}

/* ========== タブレット以上のレスポンシブ ========== */
@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .form-row {
        flex-direction: row;
        gap: 25px;
    }
    
    .president-profile {
        flex-direction: row;
        text-align: left;
    }
    
    .history-item {
        flex-direction: row;
    }
    
    .history-year {
        width: 140px;
        margin-bottom: 0;
    }
    
    .org-tier.departments {
        flex-direction: row;
        justify-content: center;
    }
    
    .contact-container {
        padding: 60px 50px;
    }
    
    .google-map-container {
        padding-bottom: 45%; /* より低いアスペクト比 */
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .menu-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 20px 40px rgba(0, 245, 255, 0.2);
    }
    
    .menu-card:hover .menu-card-bar {
        transform: scaleX(1);
    }
    
    .btn-recruit:hover,
    .btn-contact:hover,
    .apply-button:hover,
    .btn-submit:hover {
        transform: translateY(-5px) scale(1.05);
    }
}
