/* ====================================
   リセット & 基本設定
==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* ====================================
   コンテナ
==================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* ====================================
   セクション共通
==================================== */
.section {
    padding: 80px 0;
}

.section-bg {
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    border-radius: 2px;
}

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

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

.header-logo {
    flex-shrink: 0;
}

.company-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    white-space: nowrap;
}

.header-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
}

.nav-list li a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-list li a:hover {
    color: #ff6b35;
    opacity: 1;
}

.nav-cta {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    opacity: 1;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

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

.hamburger.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* ====================================
   ファーストビュー
==================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85), rgba(52, 73, 94, 0.75));
    background-size: cover;
    background-position: center;
    aspect-ratio: 16 / 9;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 40px 20px;
    max-width: 1000px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 30px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.9;
    margin-bottom: 40px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s backwards;
}

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

/* ====================================
   ボタン
==================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
    opacity: 1;
}

.btn-secondary {
    background: #fff;
    color: #ff6b35;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* ====================================
   スライダー
==================================== */
.slider-section {
    background-color: #f8f9fa;
    padding: 40px 0;
    overflow: hidden;
}

.slider-wrapper {
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    gap: 20px;
    animation: scroll 30s linear infinite;
}

.slider-item {
    flex: 0 0 300px;
    height: 225px;
    background: linear-gradient(135deg, #e0e0e0, #d0d0d0);
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ====================================
   こんな方歓迎
==================================== */
.welcome-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.welcome-card {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.welcome-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.welcome-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
}

.welcome-heading {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.7;
    color: #2c3e50;
}

/* ====================================
   会社について・おわりに
==================================== */
.about-image,
.closing-image {
    width: 100%;
    max-width: 800px;
    height: 0;
    padding-bottom: 75%;
    background: linear-gradient(135deg, #e0e0e0, #d0d0d0);
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin: 0 auto 40px;
    position: relative;
    aspect-ratio: 4 / 3;
}

.about-text,
.closing-text {
    text-align: center;
    font-size: 1.1rem;
    line-height: 2;
}

.about-text p,
.closing-text p {
    margin-bottom: 20px;
}

.highlight {
    color: #ff6b35;
    font-weight: 700;
    font-size: 1.15em;
}

.text-large {
    font-size: 1.25rem;
    font-weight: 700;
}

.text-emphasis {
    color: #2c3e50;
    font-weight: 700;
}

.text-highlight {
    color: #ff6b35;
    font-weight: 700;
}

/* ====================================
   CTAセクション
==================================== */
.cta-section {
    padding: 60px 0;
}

.cta-box {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 35px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ====================================
   仕事内容
==================================== */
.job-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.job-item:last-child {
    margin-bottom: 0;
}

.job-item:nth-child(even) .job-image {
    order: 2;
}

.job-item:nth-child(even) .job-content {
    order: 1;
}

.job-image {
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    background: linear-gradient(135deg, #e0e0e0, #d0d0d0);
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    position: relative;
    aspect-ratio: 4 / 3;
}

.job-content {
    padding: 20px;
}

.job-heading {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.job-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 15px;
}

/* ====================================
   カードグリッド(入社後の流れ・魅力・メンバー)
==================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.card-grid-4 {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    background: linear-gradient(135deg, #e0e0e0, #d0d0d0);
    background-size: cover;
    background-position: center;
    position: relative;
    aspect-ratio: 4 / 3;
}

.card-content {
    padding: 30px;
}

.card-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.5;
}

.card-content p {
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 15px;
}

.card-content p:last-child {
    margin-bottom: 0;
}

/* ====================================
   1日の流れ
==================================== */
.schedule-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.schedule-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 30px;
    padding: 25px 0;
    border-bottom: 1px solid #e9ecef;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-time {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ff6b35;
    text-align: center;
}

.schedule-content {
    font-size: 1.1rem;
    line-height: 1.8;
    display: flex;
    align-items: center;
}

/* ====================================
   募集要項
==================================== */
.requirements-table {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.requirement-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    border-bottom: 1px solid #e9ecef;
}

.requirement-row:last-child {
    border-bottom: none;
}

.requirement-label {
    background: #2c3e50;
    color: #fff;
    padding: 25px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid #e9ecef;
}

.requirement-content {
    padding: 25px 30px;
    line-height: 1.9;
}

.requirement-content p {
    margin-bottom: 12px;
}

.requirement-content p:last-child {
    margin-bottom: 0;
}

.requirement-content .note {
    font-size: 0.95rem;
    color: #666;
}

.requirement-content .salary {
    font-size: 1.2rem;
    color: #ff6b35;
}

.requirement-content strong {
    color: #2c3e50;
    font-weight: 700;
}

/* ====================================
   応募フォーム
==================================== */
.form-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #666;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.required {
    display: inline-block;
    background: #ff6b35;
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #ff6b35;
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

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

.form-message {
    max-width: 700px;
    margin: 20px auto 0;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ====================================
   フッター
==================================== */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-address {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-tel {
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-tel a {
    color: #ff6b35;
}

.footer-nav ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.footer-nav li a {
    font-size: 0.95rem;
    color: #ecf0f1;
    transition: color 0.3s ease;
}

.footer-nav li a:hover {
    color: #ff6b35;
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.9rem;
    color: #95a5a6;
}

/* ====================================
   レスポンシブ: タブレット
==================================== */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .nav-list {
        gap: 15px;
    }

    .nav-list li a {
        font-size: 0.85rem;
    }

    .job-item {
        gap: 30px;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ====================================
   レスポンシブ: スマホ
==================================== */
@media (max-width: 768px) {
    /* セクション */
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    /* ヘッダー */
    .header-container {
        padding: 12px 20px;
    }

    .company-name {
        font-size: 1.1rem;
    }

    .hamburger {
        display: flex;
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        padding-top: 80px;
    }

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

    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

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

    .nav-list li a {
        display: block;
        padding: 18px 30px;
        font-size: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-cta {
        margin: 20px 30px;
        display: block;
        text-align: center;
    }

    /* ファーストビュー */
    .hero {
        min-height: 90vh;
        margin-top: 60px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-large {
        padding: 14px 30px;
        font-size: 1rem;
    }

    /* スライダー */
    .slider-item {
        flex: 0 0 250px;
        height: 188px;
    }

    /* こんな方歓迎 */
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* CTA */
    .cta-box {
        padding: 40px 25px;
    }

    .cta-title {
        font-size: 1.7rem;
    }

    .cta-text {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    /* 仕事内容 - 重要: スマホでは画像を上、テキストを下に */
    .job-item {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 60px;
    }

    .job-item .job-image {
        order: 1 !important;
    }

    .job-item .job-content {
        order: 2 !important;
    }

    .job-heading {
        font-size: 1.5rem;
    }

    /* カードグリッド - 重要: スマホでは画像を上、テキストを下に */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .card-grid-4 {
        grid-template-columns: 1fr;
    }

    .card {
        display: flex;
        flex-direction: column;
    }

    .card .card-image {
        order: 1;
    }

    .card .card-content {
        order: 2;
        padding: 25px;
    }

    .card-heading {
        font-size: 1.3rem;
    }

    /* 1日の流れ */
    .schedule-card {
        padding: 25px 20px;
    }

    .schedule-item {
        grid-template-columns: 80px 1fr;
        gap: 20px;
        padding: 20px 0;
    }

    .schedule-time {
        font-size: 1.2rem;
    }

    .schedule-content {
        font-size: 0.95rem;
    }

    /* 募集要項 */
    .requirement-row {
        grid-template-columns: 1fr;
    }

    .requirement-label {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 15px 20px;
    }

    .requirement-content {
        padding: 20px;
    }

    /* 応募フォーム */
    .contact-form {
        padding: 30px 20px;
    }

    /* フッター */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-nav ul {
        grid-template-columns: 1fr;
    }

    /* テキスト調整 */
    .text-large {
        font-size: 1.1rem;
    }

    .about-text,
    .closing-text {
        font-size: 1rem;
    }

    /* PC専用改行を非表示 */
    .pc-only {
        display: none;
    }
}

/* SP専用改行 */
.sp-only {
    display: none;
}

@media (max-width: 768px) {
    .sp-only {
        display: inline;
    }
}