@charset "UTF-8";

/* ==========================================================================
   1. 基本設定 (Reset & Global)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    -webkit-font-smoothing: antialiased;
}

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

/* ボタン共通 */
.cta-button {
    display: inline-block;
    background-color: #28a745;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.cta-button:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.cta-button-secondary {
    display: inline-block;
    background-color: transparent;
    color: #007bff;
    border: 2px solid #007bff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.cta-button-secondary:hover {
    background-color: #007bff;
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================================
   2. ヘッダー
   ========================================================================== */
header {
    background-color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a { display: block; }
.logo img { height: 50px; vertical-align: middle; }

header nav ul { list-style: none; display: flex; }
header nav ul li { margin-left: 20px; }
header nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95em;
}
header nav ul li a:hover,
header nav ul li a.active { color: #007bff; }

header nav ul li.dropdown-services { position: relative; }
header nav ul li.dropdown-services .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    list-style: none;
    padding: 5px 0;
    min-width: 200px;
    z-index: 1001;
    border-radius: 4px;
}
header nav ul li.dropdown-services:hover .dropdown-menu { display: block; }
header nav ul li.dropdown-services .dropdown-menu li { margin: 0; }
header nav ul li.dropdown-services .dropdown-menu li a { display: block; padding: 10px 15px; color: #333; }
header nav ul li.dropdown-services .dropdown-menu li a:hover { background-color: #f5f5f5; color: #007bff; }

/* ==========================================================================
   3. ヒーローセクション
   ========================================================================== */
.hero-section-new {
    position: relative;
    background-image: url('images/RYS01.jpg'); 
    background-size: cover;
    background-position: center 30%;
    height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff !important;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.4;
    text-shadow: 0 4px 10px rgba(0,0,0,0.7);
    color: #ffffff;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 35px;
    font-weight: 500;
    text-shadow: 0 2px 5px rgba(0,0,0,0.7);
    color: #ffffff;
}

.hero-cta {
    font-size: 1.2em;
    padding: 15px 40px;
    background-color: #28a745;
    border: 2px solid #28a745;
}
.hero-cta:hover {
    background-color: #218838;
    border-color: #218838;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.0s forwards;
}
.delay-200 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.6s; }

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

/* ==========================================================================
   4. サービス紹介 (トップページ)
   ========================================================================== */
.services-overview {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
}

.section-title-jp {
    font-size: 2.6em;
    color: #007bff;
    margin-bottom: 5px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: default;
    display: inline-block;
}
.section-subtitle-en {
    font-size: 1em;
    color: #999;
    margin-bottom: 20px;
    font-family: sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: default;
    display: block;
}

/* ホバー表示用 */
.section-description {
    font-size: 1.1em;
    color: #555;
    font-weight: bold;
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: all 0.5s ease;
}

.section-title-jp:hover ~ .section-description,
.section-subtitle-en:hover ~ .section-description,
.section-description:hover {
    max-height: 100px;
    opacity: 1;
    margin-bottom: 50px;
    transform: translateY(0);
}

.service-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: flex-start;
}

.service-item {
    background-color: #ffffff;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border-top: 5px solid transparent;
    cursor: pointer;
    overflow: hidden;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-top-color: #007bff;
}

.icon-wrapper {
    height: 120px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #f0f0f0;
    transition: transform 0.4s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1) rotate(3deg);
    border-color: #007bff;
}

.service-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #007bff;
    font-weight: bold;
}

.service-item p {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-item:hover p {
    max-height: 200px;
    opacity: 1;
    margin-bottom: 20px;
}

.learn-more {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    padding: 8px 15px;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.learn-more .arrow { display: inline-block; transition: transform 0.3s ease; }
.service-item:hover .learn-more { color: #fff; background-color: #007bff; transform: scale(1.1); box-shadow: 0 4px 8px rgba(0,123,255,0.4); }
.service-item:hover .arrow { transform: translateX(5px); }

/* ==========================================================================
   5. その他のセクション（トップページ下部）
   ========================================================================== */
.about-teaser, .contact-teaser { padding: 60px 0; text-align: center; }
.about-teaser { background-color: #f4f7f6; }
.contact-teaser { background-color: #fff; }
.about-teaser h2, .contact-teaser h2 { font-size: 2em; margin-bottom: 20px; color: #333; }

.philosophy-list {
    display: inline-block;
    text-align: left;
    background: #fff;
    padding: 25px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.philosophy-list p { font-size: 1.1em; margin-bottom: 10px; font-weight: bold; color: #2c3e50; }

.recruit-cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #fff8e1;
}
.recruit-cta-section h2 { font-size: 2em; margin-bottom: 20px; color: #856404; }
.recruit-cta-section p { font-size: 1.1em; margin-bottom: 30px; color: #856404; line-height: 1.8; }
.recruit-badge {
    display: inline-block;
    background-color: #ffc107;
    color: #333;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
    font-size: 1em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ==========================================================================
   6. 採用情報ページ
   ========================================================================== */
.recruit-header .lead-text {
    margin-bottom: 30px;
    color: #ffffff;
    font-size: 1.1em;
}
.recruit-key-messages {
    margin-top: 30px;
    text-align: center;
}
.recruit-key-messages ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
    text-align: left;
}
.recruit-key-messages li {
    font-size: 1.15em;
    margin-bottom: 12px;
    position: relative;
    padding-left: 1.5em;
    line-height: 1.6;
    font-weight: 500;
    color: #ffffff;
}
.recruit-key-messages li::before {
    content: "●";
    position: absolute;
    left: 0;
    top: 0;
    color: #ffd700;
    font-size: 0.8em;
    line-height: 2;
}

.leasing-highlight {
    background-color: #fff8e1;
    border: 3px solid #ffd700;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-bottom: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.leasing-highlight h3 {
    color: #e67e22;
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: bold;
}
.leasing-highlight p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

.section-header-center { text-align: center; margin-bottom: 40px; }
.job-listing-section { padding: 60px 0; background-color: #f4f7f6; }
.section-intro { text-align: center; margin-bottom: 40px; font-size: 1.1em; }

.job-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.job-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-top: 5px solid #007bff;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
}
.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.job-header {
    padding: 20px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
}
.job-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.4em;
    color: #333;
    font-weight: bold;
}
.job-header .tags { display: flex; gap: 10px; flex-wrap: wrap; }
.job-type { background-color: #e3f2fd; color: #007bff; padding: 5px 12px; border-radius: 20px; font-size: 0.85em; font-weight: bold; }
.employment-tag { padding: 5px 12px; border-radius: 4px; font-size: 0.85em; font-weight: bold; }

.job-salary { padding: 20px; background-color: #fdfdfd; text-align: center; border-bottom: 1px dashed #ddd; }
.salary-main { font-size: 1.6em; font-weight: bold; color: #e74c3c; margin: 0 0 5px 0; }
.salary-sub { font-size: 0.9em; color: #666; }

.job-details { padding: 20px; flex-grow: 1; }
.detail-row { margin-bottom: 20px; }
.detail-row:last-child { margin-bottom: 0; }
.detail-row h4 { font-size: 1em; color: #555; margin-bottom: 8px; font-weight: bold; border-left: 4px solid #007bff; padding-left: 10px; }
.time-schedule { margin: 5px 0 0 20px; padding: 0; list-style: disc; font-size: 0.95em; color: #444; }
.recruit-common-info { text-align: center; background: #fff; padding: 20px; border-radius: 8px; border: 1px solid #ddd; max-width: 800px; margin: 0 auto; }

/* ==========================================================================
   7. ページ共通タイトル & サービス詳細 (修正箇所：画像の巨大化防止)
   ========================================================================== */
.page-title-section {
    background-color: #007bff;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 50px;
}
.page-title-section h1 { font-size: 2.5em; margin-bottom: 0.4em; font-weight: bold; }
.page-title-section p { font-size: 1.1em; opacity: 0.9; }

.service-detail { padding: 40px 0; }
.service-detail.alt-bg { background-color: #fff; }

.service-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}
.service-content.reverse { flex-direction: row-reverse; }

.service-text { flex: 1.5; }
.service-text h2 { font-size: 2em; color: #007bff; margin-bottom: 25px; line-height: 1.3; }
.service-text h3 { font-size: 1.3em; color: #333; margin-top: 30px; margin-bottom: 15px; border-left: 4px solid #007bff; padding-left: 10px; }
.service-text p { margin-bottom: 15px; font-size: 1.05em; line-height: 1.8; }
.service-text ul { list-style: disc; margin-left: 20px; margin-bottom: 30px; }
.service-text ul li { margin-bottom: 10px; }

/* ★重要修正箇所: min-width: 0 を追加し、フレックスボックスでの画像肥大化を防止 */
.service-image {
    flex: 1;
    text-align: center;
    min-width: 0;
}
.service-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 2枚画像グリッド */
.two-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%; /* コンテナ幅に合わせる */
}
.two-image-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.two-image-grid img:hover { transform: scale(1.05); }

/* ==========================================================================
   8. フォーム & その他スタイル
   ========================================================================== */
.contact-form-section { padding: 60px 0; background-color: #fff; }
.contact-form-section .container { max-width: 800px; }

.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 8px; color: #333; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 1em;
}
.form-submit-button { display: block; width: 100%; padding: 15px; font-size: 1.2em; margin-top: 30px; }
.radio-group { display: flex; gap: 20px; padding: 10px 0; }
.radio-label { display: flex; align-items: center; cursor: pointer; font-size: 1.1em; }
.radio-label input[type="radio"] { margin-right: 8px; transform: scale(1.2); }

/* 会社概要系 */
.about-philosophy { padding: 50px 0; background-color: #fff; text-align: center; }
.rys-meaning { display: flex; justify-content: space-around; margin-bottom: 30px; flex-wrap: wrap; }
.rys-letter { flex-basis: 30%; padding: 20px; }
.rys-letter h3 { font-size: 2.5em; color: #007bff; font-weight: bold; }
.rys-letter h3 .rys-full { font-size: 0.5em; display: block; color: #555; font-weight: normal; }

.about-core-values { padding: 50px 0; text-align: center; background-color: #f9f9f9; }
.core-value-items { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; }
.core-value-item { background-color: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.07); width: calc(33.333% - 20px); min-width: 280px; }
.core-value-item .core-value-icon { width: 70px; height: 70px; object-fit: contain; margin-bottom: 15px; }

.company-details { padding: 50px 0; background-color: #fff; }
.company-details table { width: 100%; max-width: 800px; margin: 0 auto; border-collapse: collapse; }
.company-details th, .company-details td { border: 1px solid #ddd; padding: 15px; text-align: left; vertical-align: top; }
.company-details th { background-color: #f0f8ff; width: 30%; font-weight: bold; }

/* 会社概要：事業内容リストの「・」を消して左揃えにする */
.business-activities {
    list-style-type: none; /* 黒い点を消す */
    padding-left: 0;       /* デフォルトの左側余白をなくす */
    margin: 0;
}

.business-activities li {
    margin-bottom: 8px; /* 各項目の間に少しだけ隙間をあけて読みやすくする */
}
.business-activities li:last-child {
    margin-bottom: 0; /* 最後だけ隙間をなくす */
}
/* フッター */
footer {
    background-color: #343a40;
    color: #f8f9fa;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}
footer p { margin-bottom: 8px; font-size: 0.9em; }
.footer-links { margin-bottom: 15px; }
.footer-links a { color: #f8f9fa; text-decoration: none; margin: 0 10px; }
.footer-links a:hover { text-decoration: underline; }

.visitor-counter-area {
    margin: 20px auto;
    padding: 15px;
    background-color: rgba(255,255,255,0.1);
    display: inline-block;
    border-radius: 8px;
}
.counter-label { font-size: 0.8em; color: #ccc; margin-bottom: 5px; }
.counter-placeholder { font-family: monospace; color: #fff; font-size: 0.9em; letter-spacing: 1px; }

/* ==========================================================================
   9. メディアクエリ (レスポンシブ設定)
   ========================================================================== */
@media (max-width: 992px) {
    /* サービス概要カード */
    .service-items { grid-template-columns: repeat(2, 1fr); }
    
    /* サービス詳細ページ（縦並びレイアウト） */
    .service-content, .service-content.reverse {
        flex-direction: column;
    }
    
    /* ★重要修正箇所: 縦並び時に画像が巨大化しないように制限をかける */
    .service-image {
        width: 100%;
        margin-top: 30px;
        order: -1; /* 画像を上に表示 */
        max-width: 600px; /* ここでサイズを制限 */
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    header .container { flex-direction: column; }
    header nav { margin-top: 10px; }
    header nav ul { flex-wrap: wrap; justify-content: center; }
    
    .hero-section-new { height: 500px; }
    .hero-content h1 { font-size: 1.8em; }
    .hero-content p { font-size: 1em; }
    
    .service-items {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .job-cards-container { grid-template-columns: 1fr; }
    .recruit-key-messages li { font-size: 1em; }
    
    .sp-only { display: block; }
}

@media (min-width: 769px) {
    .sp-only { display: none; }
}