/* ================================================
   Pensioner サービスサイト - メインスタイルシート
   ================================================ */

/* ===== 基本設定 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Hiragino Sans', 'Yu Gothic', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* ===== ヘッダー ===== */
.header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a6f 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.logo-icon {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.3rem;
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== ヒーローセクション ===== */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a6f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><polygon points="0,100 1000,0 1000,100"/></svg>') no-repeat center center;
    background-size: cover;
}

.hero-content {
    max-width: 900px;
    padding: 0 2rem;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
    color: #b8d4f0;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #2c5aa0;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ===== 選ばれる理由セクション ===== */
.why-choose-us {
    padding: 8rem 0 5rem 0;
    background: white;
    overflow: hidden;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.why-content {
    display: grid;
    gap: 4rem;
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.feature-item:nth-child(even) {
    transform: translateX(50px);
}

.feature-item:nth-child(even) .feature-image {
    order: 1;
}

.feature-item:nth-child(even) .feature-text {
    order: 2;
}

.feature-item.animated {
    opacity: 1;
    transform: translateX(0);
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c5aa0;
    font-weight: bold;
    transition: color 0.1s ease, text-shadow 0.1s ease;
}

.feature-text .feature-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.feature-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

.feature-highlights {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-highlights li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
    font-size: 1rem;
    color: #555;
}

.feature-highlights li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2c5aa0;
    font-weight: bold;
    font-size: 1.2rem;
}

.feature-image {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.feature-image:hover {
    transform: translateY(-10px);
}

.feature-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

/* バッジスタイル（シンプルテキスト版） */
.speed-badge {
    display: block;
    color: #ff6b6b;
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.innovation-badge {
    display: block;
    color: #4ecdc4;
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.experience-badge {
    display: block;
    color: #f7b801;
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.cloud-badge {
    display: block;
    color: #667eea;
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

/* 強調テキストのカラーマッチング */
.highlight-speed {
    color: #ff6b6b;
}

.highlight-innovation {
    color: #4ecdc4;
}

.highlight-experience {
    color: #f7b801;
}

.highlight-cloud {
    color: #667eea;
}

/* ===== 会社セクション ===== */
.company {
    padding: 8rem 0 5rem 0;
    background: #f8f9fa;
}

.company-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.company-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #2c5aa0;
}

.company-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.company-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

/* ===== ノーコードツールセクション ===== */
.nocode-tool {
    padding: 8rem 0 5rem 0;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a6f 100%);
    color: white;
}

.tool-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.tool-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.tool-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #b8d4f0;
}

.tool-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.tool-features {
    list-style: none;
    margin-bottom: 2rem;
}

.tool-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.tool-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #b8d4f0;
    font-weight: bold;
}

.tool-image {
    background: rgba(255,255,255,0.1);
    height: 350px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    overflow: hidden;
}

/* ===== サービスセクション ===== */
.services {
    padding: 8rem 0 5rem 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

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

.service-icon {
    display: block;
    margin: 0 auto 1rem auto;
    width: 80px;
    height: 80px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c5aa0;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* ===== 実績セクション ===== */
.results {
    padding: 8rem 0 5rem 0;
    background: #f8f9fa;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: #666;
}

.testimonial-author {
    font-weight: bold;
    color: #2c5aa0;
}

/* ===== 代表挨拶セクション ===== */
.president {
    padding: 8rem 0 5rem 0;
    background: white;
}

.president-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.president-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

.president-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2c5aa0;
}

.president-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.president-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c5aa0;
    margin-top: 2rem;
}

img.name{
	height: 22px;
}

/* ===== お問い合わせセクション ===== */
.contact {
    padding: 8rem 0 5rem 0;
    background: #f8f9fa;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    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: #2c5aa0;
}

.submit-btn {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a6f 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.4);
}

.submit-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none !important;
}

/* スピナー */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

/* メッセージ表示 */
.contact-message {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
}

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

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

.required {
    color: #e74c3c;
    font-weight: bold;
}

.btn-loading {
    display: inline-block;
}

/* エラーメッセージ */
.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #fdf2f2;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
}

/* 確認ダイアログ */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.confirm-dialog-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.confirm-dialog h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.confirm-dialog p {
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.6;
}

.confirm-dialog-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirm-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-btn.primary {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a6f 100%);
    color: white;
}

.confirm-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.4);
}

.confirm-btn.secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.confirm-btn.secondary:hover {
    background: #e9ecef;
}

/* ===== フッター ===== */
.footer {
    background: rgba(44, 90, 160, 0.95);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* ===== アニメーション ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dialogFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* スライドインアニメーション */
.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1s ease;
}

.slide-in-left.animated,
.slide-in-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.dialog-fade-in {
    animation: dialogFadeIn 0.3s ease-out;
}

/* ===== レスポンシブデザイン ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #2c5aa0 0%, #1e3a6f 100%);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .company-content,
    .tool-content,
    .president-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .results-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials {
        grid-template-columns: 1fr;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .logo-icon {
        height: 35px;
        width: 35px;
    }

    /* 選ばれる理由セクションのレスポンシブ */
    .feature-item,
    .feature-item:nth-child(even) {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-item:nth-child(even) .feature-image,
    .feature-item:nth-child(even) .feature-text {
        order: unset;
    }

    .feature-text h3 {
        font-size: 1.6rem;
    }
}
