/* 基本設定 */
:root {
    --primary-color: #e74c3c;
    --secondary-color: #2c3e50;
    --accent-color: #f39c12;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --text-color: #333;
    --text-light: #7f8c8d;
    --white: #fff;
    --black: #000;
    --font-main: 'Noto Sans JP', sans-serif;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ボタン */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* セクション共通 */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 50px;
}

/* メインビジュアル */
.main-visual {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/metal.jpg') no-repeat center center/cover;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.main-visual-content {
    z-index: 2;
    animation: fadeIn 1.5s ease;
}

.main-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.main-subtitle {
    font-size: 1.8rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--white);
    border-right: 2px solid var(--white);
    transform: rotate(45deg);
    margin: -10px;
    animation: scrollAnimation 2s infinite;
}

.scroll-indicator span:nth-child(2) {
    animation-delay: -0.2s;
}

.scroll-indicator span:nth-child(3) {
    animation-delay: -0.4s;
}

/* ヘッダー */

#header {
    position: absolute; 
    width: 100%;
    transition: all 0.3s ease;
    z-index: 1001;
} 

#header.fixed {
    position: fixed;
    top: 0;
    background-color: #2a4e6c; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white);
}

#header.fixed .logo {
    color: var(--white);
}

.pc-nav ul {
    display: flex;
    list-style: none;
}

.pc-nav ul li {
    margin-left: 30px;
}

.pc-nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    position: relative;
}

#header.fixed .pc-nav ul li a {
    color: var(--white);
}

.pc-nav ul li a:hover {
    color: var(--accent-color);
}

.pc-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.pc-nav ul li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--white);
    position: absolute;
    left: 5px;
    transition: all 0.3s ease;
}

#header.fixed .hamburger span {
    background-color: var(--white);
}

.hamburger span:nth-child(1) {
    top: 10px;
}

.hamburger span:nth-child(2) {
    top: 18px;
}

.hamburger span:nth-child(3) {
    top: 26px;
}

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

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

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

.sp-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(44, 62, 80, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.sp-nav.active {
    transform: translateX(0);
}

.sp-nav ul {
    list-style: none;
    text-align: center;
}

.sp-nav ul li {
    margin-bottom: 30px;
}

.sp-nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.sp-nav ul li a:hover {
    color: var(--accent-color);
}

/* 会社PR */
.company-pr {
    padding: 80px 0;
    background-color: var(--light-color);
}

.pr-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pr-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pr-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pr-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.pr-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* 対応地域 */
.service-area {
    padding: 80px 0;
    background-color: var(--white);
}

.area-list {
    max-width: 600px;
    margin: 0 auto 50px;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 8px;
}

.area-list ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    list-style: none;
}

.area-list ul li {
    background-color: var(--white);
    padding: 10px 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.global-activities {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 30px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 8px;
}

.global-activities h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* 取扱品目 */
.products {
    padding: 80px 0;
    background-color: var(--light-color);
}

.product-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-item h3 {
    font-size: 1.5rem;
    padding: 20px 20px 10px;
    color: var(--secondary-color);
}

.product-item p {
    padding: 0 20px 20px;
    color: var(--text-light);
}

/* 売却フロー */
.flow {
    padding: 80px 0;
    background-color: var(--white);
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    counter-reset: step-counter;
}

.flow-step {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 8px;
    position: relative;
    transition: transform 0.3s ease;
}

.flow-step:hover {
    transform: translateY(-10px);
}

.step-number {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    counter-increment: step-counter;
}


.flow-step h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--secondary-color);
}

/* ニュース */
.news {
    padding: 80px 0;
    background-color: var(--light-color);
}

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

.news-item {
    background-color: var(--white);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.news-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.news-desc {
    color: var(--text-light);
}

/* 工場紹介 */
.factory {
    padding: 80px 0;
    background-color: var(--white);
}

.factory-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.factory-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.factory-info h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.factory-info p {
    margin-bottom: 30px;
}

/* アクセス */
.access {
    padding: 80px 0;
    background-color: var(--light-color);
}

.access-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.access-map {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.access-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.access-info {
    padding: 30px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.access-info h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.access-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* お問い合わせ */
.contact {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-form {
    max-width: 800px;
    margin: 50px auto 0;
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.form-group select[multiple] {
    height: auto;
    min-height: 100px;
}

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

/* フッター */
/* .footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
} */

/* フッターの色変更 */
.footer {
    background-color: #1a3a5a; /* 新しいフッター色 */
    color: var(--white);
    padding: 60px 0 20px;
}


.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-nav h3,
.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-nav ul {
    list-style: none;
}

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

.footer-nav ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scrollAnimation {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

.animate-slideIn {
    animation: slideIn 1s ease forwards;
    opacity: 0;
}

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

.animate-fadeIn {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.animate-fadeInUp {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

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

.animate-fadeInLeft {
    animation: fadeInLeft 1s ease forwards;
    opacity: 0;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInRight {
    animation: fadeInRight 1s ease forwards;
    opacity: 0;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* レスポンシブ */
@media (max-width: 992px) {
    .main-title {
        font-size: 3rem;
    }
    
    .main-subtitle {
        font-size: 1.5rem;
    }
    
    .factory-content,
    .access-content {
        grid-template-columns: 1fr;
    }
    
    .factory-info {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .pc-nav {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .main-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .pr-items {
        grid-template-columns: 1fr;
    }
    
    .product-items {
        grid-template-columns: 1fr;
    }
    
    .flow-steps {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .main-title {
        font-size: 2rem;
    }
    
    .main-visual {
        min-height: 500px;
    }
    
    .btn {
        padding: 10px 20px;
    }
}