/**
 * SHINSEI GROUP Portal Site Stylesheet
 * Panasonic Holdings風のモダンなデザイン
 * 
 * @author SHINSEI GROUP
 * @version 2.0
 */

/* ============================================
   リセット & ベーススタイル
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Inter', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   スキップリンク（アクセシビリティ）
   ============================================ */

.skip-link {
    position: absolute;
    top: -9999px;
    left: 0;
    background: #15315b;
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    font-weight: bold;
    transition: top 0.3s;
    clip-path: inset(50%);
}

.skip-link:focus {
    top: 0;
    clip-path: none;
    outline: 3px solid #15315b;
    outline-offset: 2px;
}

/* ============================================
   コンテナ
   ============================================ */

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

/* ============================================
   ヘッダー
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #15315b;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #15315b;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link-contact {
    background: #15315b;
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
    margin-left: 20px;
}

.nav-link-contact::after {
    display: none;
}

.nav-link-contact:hover {
    background: #1a3d6b;
    color: #fff;
}

/* ハンバーガーメニュー */
.hamburger-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger-line {
    width: 28px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

.hamburger-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav.active {
    max-height: 500px;
}

.mobile-nav-list {
    padding: 20px;
}

.mobile-nav-item {
    border-bottom: 1px solid #e9ecef;
}

.mobile-nav-link {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #15315b;
}

/* ============================================
   メインコンテンツ
   ============================================ */

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

/* ============================================
   ヒーローセクション
   ============================================ */

.hero-section {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 600;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(21, 49, 91, 0.85) 0%, rgba(26, 61, 107, 0.75) 100%);
}

.hero-image-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px 100px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    margin-bottom: 30px;
}

.hero-title-main {
    display: block;
    font-size: 72px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-title-sub {
    display: block;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0.95;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-br {
    display: block;
}

.hero-cta {
    margin-top: 50px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: #fff;
    color: #15315b;
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero {
    font-size: 18px;
    padding: 18px 40px;
}

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

/* ============================================
   セクション共通スタイル
   ============================================ */

/* シンセイ建設と同じセクションスタイル */
section {
    padding: 5rem 2rem;
    scroll-margin-top: 80px;
    /* 固定ヘッダーに隠れないようにする */
    padding-top: 2rem;
    /* セクションタイトルが隠れないようにする */
    padding-bottom: 2.5rem;
    /* 下側のマージンを半分に */
}

/* ヒーローセクションはsectionのスタイルを上書き */
.hero-section {
    padding: 0;
    padding-top: 0;
    padding-bottom: 0;
    scroll-margin-top: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.section-title-main {
    font-size: 42px;
    font-weight: 700;
    color: #15315b;
    position: relative;
    padding-bottom: 20px;
}

.section-title-main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #2a85bc;
}

.section-title-sub {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-description {
    font-size: 16px;
    color: #666;
    margin-top: 20px;
    line-height: 1.8;
}

/* ============================================
   グループ会社セクション
   ============================================ */

.companies-section {
    background: #fff;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.company-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.company-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.company-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

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

.company-card:hover .company-card-image {
    transform: scale(1.05);
}

.company-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 64px;
    color: #adb5bd;
}

.company-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(21, 49, 91, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.company-card:hover .company-card-overlay {
    opacity: 1;
}

.company-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.company-card-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #2a85bc;
    background: rgba(42, 133, 188, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    width: fit-content;
}

.company-card-name {
    font-size: 18px;
    font-weight: 700;
    color: #15315b;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-card-name-en {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    font-style: italic;
}

.company-card-description {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    flex: 1;
}

/* ============================================
   グループについてセクション
   ============================================ */

.about-section {
    background: #f8f9fa;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.about-card-icon {
    font-size: 56px;
    color: #2a85bc;
    margin-bottom: 24px;
}

.about-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #15315b;
    margin-bottom: 20px;
}

.about-card-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

/* グループの強み */
.strengths-section {
    margin-top: 100px;
}

.strengths-title {
    font-size: 32px;
    font-weight: 700;
    color: #15315b;
    text-align: center;
    margin-bottom: 50px;
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.strength-item {
    text-align: center;
}

.strength-icon {
    font-size: 48px;
    color: #2a85bc;
    margin-bottom: 20px;
}

.strength-title {
    font-size: 20px;
    font-weight: 700;
    color: #15315b;
    margin-bottom: 12px;
}

.strength-text {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}

/* ============================================
   ニュースセクション
   ============================================ */

.news-section {
    background: #fff;
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.3s ease;
}

.news-item:hover {
    background: #f8f9fa;
    margin: 0 -20px;
    padding: 24px 20px;
    border-radius: 8px;
}

.news-date {
    font-size: 14px;
    font-weight: 600;
    color: #15315b;
    white-space: nowrap;
    min-width: 100px;
}

.news-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #2a85bc;
    padding: 4px 12px;
    border-radius: 12px;
    white-space: nowrap;
}

.news-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.6;
    flex: 1;
}

.news-more {
    text-align: center;
    margin-top: 50px;
}

.btn-outline {
    background: transparent;
    border: 2px solid #15315b;
    color: #15315b;
}

.btn-outline:hover {
    background: #15315b;
    color: #fff;
}

/* ============================================
   採用セクション
   ============================================ */

.recruit-section {
    position: relative;
    background: linear-gradient(135deg, #15315b 0%, #1a3d6b 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.recruit-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/material/portal/hero/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.recruit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(21, 49, 91, 0.95) 0%, rgba(26, 61, 107, 0.95) 100%);
}

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

.recruit-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
}

.recruit-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.95;
}

.recruit-cta {
    margin-top: 40px;
}

.btn-white {
    background: #fff;
    color: #15315b;
}

.btn-white:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================
   フッター
   ============================================ */

.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

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

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

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    margin-bottom: 24px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    margin-bottom: 12px;
}

.footer-group-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.8;
    color: #ccc;
    margin-top: 0;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-style: normal;
}

.footer-contact-item {
    margin-bottom: 0;
}

.footer-contact-name {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 0;
    font-weight: normal;
}

.footer-contact-address,
.footer-contact-tel {
    font-size: 14px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #ccc;
    margin-bottom: 0;
    line-height: 1.4;
}

.footer-contact-address i,
.footer-contact-tel i {
    color: #ccc;
    flex-shrink: 0;
    font-size: 14px;
    width: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.footer-contact-tel a {
    color: #ccc;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-contact-tel a:hover {
    color: #fff;
}

.footer-business-hours,
.footer-holiday {
    font-size: 14px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #ccc;
    margin-bottom: 0;
    line-height: 1.4;
}

.footer-business-hours i {
    color: #ccc;
    flex-shrink: 0;
    font-size: 14px;
    width: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.footer-address,
.footer-tel {
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-address i,
.footer-tel i {
    margin-top: 4px;
    color: #2a85bc;
}

.footer-tel a {
    color: #fff;
    transition: color 0.3s ease;
}

.footer-tel a:hover {
    color: #2a85bc;
}

.footer-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links a {
    font-size: 14px;
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 12px;
    color: #999;
}

/* ============================================
   トップに戻るボタン
   ============================================ */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #15315b;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #1a3d6b;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}
