/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', 'ヒラギノ角ゴ Pro', 'Hiragino Kaku Gothic Pro', 'メイリオ', Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #000;
    color: #fff;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.logo img {
    height: 45px;
    width: auto;
    transition: opacity 0.3s ease;
    display: block;
}

.logo img:hover {
    opacity: 0.8;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

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

.nav a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: #d32f2f;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #d32f2f;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.contact-link {
    color: #d32f2f;
    border: 1px solid #d32f2f;
    padding: 8px 20px;
    border-radius: 2px;
}

.contact-link:hover {
    background-color: #d32f2f;
    color: #fff;
}

/* ヒーロー領域 */
.hero {
    margin-top: 70px;
    position: relative;
    color: #fff;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* スライダー */
.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #d32f2f;
    width: 30px;
    border-radius: 6px;
}

/* ヒーローコンテンツ */
.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 60px 40px;
    border-radius: 3px;
}

.hero-content h2 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 4px;
    animation: slideDown 0.8s ease-out;
}

.hero-content .tagline {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 300;
    color: #fff;
    animation: slideDown 0.8s ease-out 0.2s both;
}

.hero-content .description {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 40px;
    animation: slideDown 0.8s ease-out 0.4s both;
}

.btn {
    display: inline-block;
    padding: 15px 50px;
    text-decoration: none;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #d32f2f;
    color: #fff;
    animation: slideDown 0.8s ease-out 0.6s both;
}

.btn-primary:hover {
    background-color: #b71c1c;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
}

.btn-cta {
    margin-top: 20px;
    display: inline-block;
}

.btn-secondary {
    background-color: transparent;
    color: #d32f2f;
    border: 2px solid #d32f2f;
}

.btn-secondary:hover {
    background-color: #d32f2f;
    color: #fff;
    transform: translateY(-3px);
}

/* セクション共通 */
section {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 16px;
    color: #888;
    font-weight: 400;
}

/* Message セクション */
.message {
    background-color: #f8f8f8;
}

.message-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.message-content h2 {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #d32f2f;
}

.message-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #000;
}

.message-content p {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.9;
}

/* About セクション */
.about {
    background-color: #f8f8f8;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    order: -1;
}

.about-text {
    padding: 20px 0;
}

.about-text p {
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.9;
    color: #555;
}

.about-text p:first-child {
    color: #333;
    font-weight: 600;
}

.about-image img {
    width: 100%;
    height: auto;
}

/* Service セクション */
.service {
    background-color: #fff;
}

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

.service-card {
    background-color: #fff;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: fadeInUp 0.8s ease-out;
}

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

.card-image {
    overflow: hidden;
    height: 200px;
}

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

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

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.card-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* Strength セクション */
.strength {
    background-color: #f8f8f8;
}

.strength-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.strength-item {
    background-color: #fff;
    padding: 35px 25px;
    border-left: 4px solid #d32f2f;
    border-radius: 2px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.strength-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.strength-number {
    font-size: 32px;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 15px;
}

.strength-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000;
}

.strength-item p {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.strength-cta {
    text-align: center;
    margin-top: 60px;
}

/* Results セクション */
.results {
    background-color: #fff;
}

/* Company セクション */
.company {
    background-color: #f8f8f8;
}

.ceo-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    padding: 40px 0;
}

.ceo-image img {
    width: 60%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.ceo-message h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ceo-title {
    font-size: 13px;
    color: #d32f2f;
    font-weight: 700;
    margin-bottom: 20px;
}

.ceo-message p {
    font-size: 14px;
    color: #666;
    margin-bottom: 18px;
    line-height: 1.9;
}

.company-info-table {
    background-color: #fff;
    padding: 40px;
}

.company-info-table table {
    width: 100%;
    border-collapse: collapse;
}

.company-info-table th,
.company-info-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
    font-size: 14px;
}

.company-info-table th {
    background-color: #f5f5f5;
    font-weight: 700;
    color: #000;
    width: 160px;
}

.company-info-table td {
    color: #555;
}

.company-info-table a {
    color: #d32f2f;
    text-decoration: none;
}

.company-info-table a:hover {
    text-decoration: underline;
}

.results-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.results-content p {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.9;
}

.results-content a {
    margin-top: 30px;
}

/* Contact セクション */
.contact-section {
    background: #fff;
    color: #333;
}

.contact-section h2 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 2px;
    color: #000;
}

.contact-section > .container > p {
    font-size: 15px;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 50px;
    text-align: center;
}

.contact-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #d32f2f;
}

.contact-item p {
    font-size: 14px;
    color: #666;
}

.contact-item a {
    color: #d32f2f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #b71c1c;
    text-decoration: underline;
}

/* フッター */
.footer {
    background-color: #000;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-section {
    flex: 1;
}

.footer-section:first-child {
    flex: 1.5;
}

.footer-section h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
    color: #fff;
}

.footer-section p,
.footer-section li {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 8px;
    line-height: 1.8;
}

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

.footer-section a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #d32f2f;
}

.footer-company {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 15px;
    margin-left: 0;
}

.footer-company-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.footer-address {
    font-size: 12px;
    color: #aaa;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    font-size: 11px;
    color: #666;
}

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

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

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

/* トップに戻るボタン（スマホのみ非表示） */
.back-to-top {
    display: none;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }

    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #000;
        flex-direction: column;
        padding: 20px 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }

    .nav.active {
        max-height: 400px;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
        text-align: left;
    }

    .nav li {
        padding: 12px 20px;
        border-bottom: 1px solid #333;
    }

    .nav a {
        display: block;
        font-size: 14px;
    }

    .contact-link {
        border: none;
        padding: 12px 20px;
    }

    .hero {
        padding: 80px 0;
        min-height: auto;
    }

    .hero-content h2 {
        font-size: 42px;
    }

    .hero-content .tagline {
        font-size: 16px;
    }

    section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .contact-info {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .ceo-section {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }

    .company-info-table {
        padding: 20px;
    }

    .company-info-table th,
    .company-info-table td {
        padding: 12px 10px;
        font-size: 12px;
    }

    .company-info-table th {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 12px 0;
    }

    .logo img {
        height: 32px;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        margin: 4px 0;
    }

    .nav {
        top: 56px;
        max-height: 0 !important;
        padding: 0 !important;
    }

    .nav.active {
        max-height: 300px !important;
        padding: 20px 0 !important;
    }

    .hero {
        margin-top: 0;
        min-height: calc(100vh - 56px);
    }

    .back-to-top {
        display: flex;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        background-color: #000;
        color: #d32f2f;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-size: 24px;
        font-weight: bold;
        z-index: 500;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .back-to-top:hover {
        background-color: #d32f2f;
        color: #000;
    }

    .logo h1 {
        font-size: 16px;
    }

    .nav ul {
        gap: 10px;
    }

    .nav a {
        font-size: 11px;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content .tagline {
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 24px;
    }

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

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

    .strength-item {
        padding: 25px 20px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 12px;
    }

    .card-content {
        padding: 20px;
    }

    .card-content h3 {
        font-size: 18px;
    }
}

/* フォーム スタイル */
.contact-form-wrapper {
    background-color: #f9f9f9;
    padding: 60px 40px;
    max-width: 800px;
    margin: 50px auto 0;
    border-radius: 0;
}

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

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

.form-label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.required {
    color: #d32f2f;
    font-weight: 700;
    margin-left: 5px;
}

.checkbox-group {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #d32f2f;
}

.checkbox-item span {
    user-select: none;
}

.form-input,
.form-textarea {
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-family: inherit;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #999;
    box-shadow: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999;
}

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

.form-error {
    font-size: 12px;
    color: #d32f2f;
    margin-top: 5px;
    display: none;
}

.form-error.show {
    display: block;
}

.btn-submit {
    padding: 15px 60px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
}

.btn-submit:hover {
    background-color: #333;
    transform: none;
    box-shadow: none;
}

.btn-submit:active {
    transform: none;
}

.form-success {
    background-color: #f0f0f0;
    border-left: 4px solid #000;
    padding: 15px 20px;
    border-radius: 0;
    color: #333;
}

.form-success p {
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

/* Contact セクション - フォーム対応 */
.contact-section > .container > p {
    text-align: center;
    margin-bottom: 30px;
}

/* レスポンシブ - フォーム */
@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 40px 20px;
        margin: 40px 0 0;
    }

    .checkbox-group {
        gap: 20px;
    }

    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-form-wrapper {
        padding: 30px 15px;
        margin: 30px 0 0;
    }

    .contact-section h2 {
        font-size: 28px;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 12px;
    }

    .checkbox-item {
        font-size: 13px;
    }

    .form-label {
        font-size: 13px;
    }

    .form-input,
    .form-textarea {
        font-size: 13px;
        padding: 10px 12px;
    }

    .btn-submit {
        width: 100%;
        padding: 12px 30px;
        font-size: 13px;
    }
}
