/* ================================================
   基本設定
   ================================================ */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-gray: #f8fafc;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    font-size: 16px;
}

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

.section {
    padding: 80px 0;
}

.section-gray {
    background-color: var(--bg-gray);
}

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

.section-label {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.4;
}

.section-description {
    font-size: 18px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* ================================================
   ヘッダー
   ================================================ */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* ================================================
   ヒーローセクション
   ================================================ */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

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

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.8;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

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

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

.hero-scroll span {
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
}

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

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

/* ================================================
   ボタン
   ================================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

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

.btn i {
    margin-right: 8px;
}

/* ================================================
   企業理念セクション
   ================================================ */
.philosophy-section {
    display: block;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-image {
    margin-bottom: 40px;
}

.philosophy-image img {
    width: 100%;
    max-width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.philosophy-content h3 {
    font-size: 28px;
    margin: 20px 0;
    color: var(--text-color);
}

.philosophy-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.no-break {
    white-space: nowrap;
}

.feature-list {
    list-style: none;
    display: inline-block;
    text-align: left;
    margin: 30px 0;
}

.feature-list li {
    padding: 12px 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-list i {
    color: var(--primary-color);
    font-size: 20px;
}

.philosophy-content .btn {
    margin-top: 40px;
    display: inline-block;
}

/* ================================================
   サービスカード
   ================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--white);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-color);
    line-height: 1.3;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 14px;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.service-link:hover {
    gap: 12px;
}

/* ================================================
   CTA
   ================================================ */
.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta .btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
}

.cta .btn-primary:hover {
    background-color: var(--bg-gray);
}

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

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

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 40px;
}

.footer-description {
    color: #94a3b8;
    line-height: 1.7;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    color: #94a3b8;
}

.footer-contact li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 4px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
    color: #94a3b8;
}

/* ================================================
   ページヘッダー (about, services, contact共通)
   ================================================ */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ================================================
   企業理念グリッド (about.html)
   ================================================ */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.philosophy-card {
    text-align: center;
    padding: 40px 20px;
}

.philosophy-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: var(--white);
}

.philosophy-card h4 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.philosophy-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ================================================
   会社情報テーブル
   ================================================ */
.info-table {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.info-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

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

.info-row dt {
    width: 200px;
    padding: 25px 30px;
    background-color: var(--bg-gray);
    font-weight: 600;
    color: var(--text-color);
}

.info-row dd {
    flex: 1;
    padding: 25px 30px;
    color: var(--text-light);
    line-height: 1.8;
}

.info-row dd br {
    display: block;
    content: "";
    margin-bottom: 8px;
}

/* ================================================
   アクセス情報
   ================================================ */
.map-container {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.access-info-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.access-info-box h4 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.access-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.access-item {
    display: flex;
    gap: 15px;
}

.access-item i {
    color: var(--primary-color);
    font-size: 24px;
    margin-top: 5px;
}

.access-item strong {
    display: block;
    margin-bottom: 10px;
    color: var(--text-color);
}

.access-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ================================================
   サービス詳細 (services.html)
   ================================================ */
.service-detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

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

.service-detail-item.reverse {
    direction: rtl;
}

.service-detail-item.reverse > * {
    direction: ltr;
}

.service-detail-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
    margin-bottom: 20px;
}

.service-detail-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.service-description {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.8;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 10px 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-features i {
    color: var(--primary-color);
}

.service-detail-image {
    height: 350px;
    overflow: hidden;
    border-radius: 12px;
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================================================
   サービスフロー
   ================================================ */
.flow-grid {
    display: flex;
    align-items: center;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
}

.flow-item {
    min-width: 200px;
    text-align: center;
    padding: 30px 20px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.flow-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

.flow-item h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.flow-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.flow-arrow {
    color: var(--primary-color);
    font-size: 24px;
    flex-shrink: 0;
}

/* ================================================
   お問い合わせフォーム
   ================================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.contact-form-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.contact-form-container h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.required {
    color: #ef4444;
    margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.privacy-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-submit {
    margin-top: 10px;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    display: block;
}

/* ================================================
   お問い合わせ情報カード
   ================================================ */
.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.contact-info-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-card h4 i {
    color: var(--primary-color);
}

.contact-info-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.small-text {
    font-size: 14px;
    color: var(--text-light);
    display: block;
    margin-top: 5px;
}

/* ================================================
   FAQ
   ================================================ */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background-color: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--bg-gray);
}

.faq-question i {
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 25px 20px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ================================================
   レスポンシブ
   ================================================ */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .logo img {
        height: 35px;
    }
    
    .nav.active {
        display: block;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: var(--shadow-md);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-list li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-list a {
        display: block;
        padding: 15px 20px;
    }
    
    .hero {
        height: 500px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 15px;
        padding: 0 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-description {
        font-size: 16px;
    }
    
    .services-grid,
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy-image img {
        height: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .info-row dt {
        width: 100%;
    }
    
    .service-detail-item,
    .service-detail-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .service-detail-image {
        height: 250px;
    }
    
    .flow-grid {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .access-details {
        grid-template-columns: 1fr;
    }
    
    /* 会社情報テーブル内のbrタグは表示 */
    .info-row dd br,
    .access-item p br {
        display: block !important;
    }
    
    .hero-title br,
    .section-description br {
        display: inline;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .btn-large {
        padding: 14px 30px;
        font-size: 16px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .philosophy-image img {
        height: 250px;
    }
}
