/* ==========================================
   株式会社ナカゾノ - メインスタイルシート
   ========================================== */

/* カラー変数定義 */
:root {
    --main-color: #003366;
    --sub-color: #4A90E2;
    --accent-color: #FF6B35;
    --bg-white: #FFFFFF;
    --bg-light: #F5F5F5;
    --text-dark: #333333;
    --text-gray: #666666;
    --border-color: #E0E0E0;
}

/* 基本スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'メイリオ', sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--bg-white);
}

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

a:hover {
    opacity: 0.8;
}

/* セクション共通スタイル */
section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--main-color);
    margin-bottom: 20px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--sub-color));
    margin: 0 auto;
}

/* ヘッダー */
#header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 15px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--main-color);
    margin: 0;
}

.header-contact {
    margin-left: auto;
    margin-right: 30px;
}

.tel-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: bold;
    padding: 8px 20px;
    border: 2px solid var(--accent-color);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.tel-link:hover {
    background: var(--accent-color);
    color: white;
}

.tel-link i {
    margin-right: 8px;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 20px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--sub-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background: var(--sub-color);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
    left: 10%;
}

/* ヒーローセクション */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1920&h=1080&fit=crop') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.8), rgba(74, 144, 226, 0.6));
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.3s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* 会社の強み */
.strength-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

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

.strength-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--sub-color), var(--main-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.strength-icon i {
    font-size: 2rem;
    color: white;
}

.strength-card h3 {
    font-size: 1.3rem;
    color: var(--main-color);
    margin-bottom: 15px;
}

.strength-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* 事業内容 */
.service-card {
    background: white;
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    height: 100%;
    min-height: 400px;
    transition: all 0.4s ease;
    overflow: hidden;
    border: none;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
    position: relative;
    width: 100%;
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 51, 102, 0.7) 100%);
    transition: opacity 0.3s ease;
}

.service-card:hover .service-image::after {
    opacity: 0.9;
}

.service-icon {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    z-index: 2;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--sub-color), var(--accent-color));
    transform: translateX(-50%) scale(1.1);
}

.service-icon i {
    font-size: 2rem;
    color: var(--main-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
    color: white;
}

.service-content {
    padding: 30px 25px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--main-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* 施工実績 */
.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.work-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-item:hover img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 51, 102, 0.9), transparent);
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.work-item:hover .work-overlay {
    transform: translateY(0);
}

.work-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.work-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 代表挨拶・企業理念 */
.message-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.message-box h3 {
    color: var(--main-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.message-box h3 i {
    margin-right: 10px;
    color: var(--sub-color);
}

.message-box p {
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.8;
}

.philosophy-item {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.philosophy-item h4 {
    color: var(--main-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.philosophy-item p {
    margin-bottom: 0;
}

/* 会社概要 */
.company-info {
    max-width: 900px;
    margin: 0 auto;
}

.company-info table {
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.company-info th {
    background: var(--main-color);
    color: white;
    width: 30%;
    padding: 15px 20px;
    font-weight: 500;
}

.company-info td {
    padding: 15px 20px;
    color: var(--text-dark);
}

/* アクセス */
.access-info {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.access-info h3 {
    color: var(--main-color);
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.access-info h3 i {
    color: var(--accent-color);
    margin-right: 10px;
}

.address {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.8;
}

.tel, .fax {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.tel a {
    color: var(--accent-color);
    font-weight: bold;
}

.parking-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.parking-info h4 {
    color: var(--main-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
}

/* お問い合わせ */
.contact-section {
    background: linear-gradient(135deg, var(--main-color), var(--sub-color));
    color: white;
}

.contact-section .section-title {
    color: white;
}

.contact-message {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.contact-tel {
    margin-bottom: 40px;
}

.contact-tel a {
    display: inline-flex;
    align-items: center;
    background: white;
    color: var(--accent-color);
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.contact-tel a:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.contact-tel i {
    margin-right: 15px;
    font-size: 1.5rem;
}

.tel-text {
    margin-right: 10px;
    font-size: 1.2rem;
}

.business-hours {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    display: inline-block;
}

.business-hours p {
    margin-bottom: 10px;
}

.business-hours .hours {
    font-size: 1.3rem;
    font-weight: bold;
}

.business-hours .closed {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 代表挨拶セクション - 男らしく格好良いデザイン */
.president-message {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    /* 建設現場のフリー画像を背景に設定 - 鉄骨構造のダイナミックな画像 */
    background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* フォールバック */
    background-color: #0a0a0a;
}

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

.president-message .container {
    position: relative;
    z-index: 2;
}

.president-title {
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-family: 'Bebas Neue', 'Anton', 'Oswald', 'Arial Black', sans-serif;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
}

.president-subtitle {
    font-size: 1.2rem;
    color: #4A90E2;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.president-message-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 60px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.president-message-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4A90E2, transparent, #4A90E2);
    z-index: -1;
    opacity: 0.5;
}

.president-quote {
    border-left: 5px solid #4A90E2;
    padding-left: 30px;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.8;
}

.president-quote .lead {
    font-size: 1.4rem;
    font-weight: 700;
    color: #60B5FF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.president-signature {
    text-align: right;
    margin-top: 50px;
    position: relative;
}

.signature-line {
    width: 200px;
    height: 3px;
    background: #4A90E2;
    margin-left: auto;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.signature-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.president-name {
    font-size: 2.5rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 0.5rem;
    font-family: 'Bebas Neue', 'Anton', 'Oswald', 'Arial Black', sans-serif;
    letter-spacing: 0.1em;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
}

.president-position {
    font-size: 1.2rem;
    color: #4A90E2;
    font-weight: 500;
    letter-spacing: 0.1em;
}

/* フッター */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 50px 0 30px;
}

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

.footer-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--sub-color);
}

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

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent-color);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 40px 0 20px;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* フッターロゴ */
.footer-brand {
    align-items: center;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    /* フィルターを削除してオリジナルの色を保持 */
    flex-shrink: 0;
}

/* トップへ戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.back-to-top:hover {
    background: var(--main-color);
    transform: translateY(-5px);
}

/* ユーティリティクラス */
.bg-light {
    background-color: var(--bg-light) !important;
}

.text-white {
    color: white !important;
}

.bg-white {
    background-color: white !important;
}