/* ==========================================================================
   基礎設定
   ========================================================================== */

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

:root {
    /* カラー */
    --primary-color: hsla(145, 100%, 35%, 0.82);
    --secondary-color: #056f4b;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --dark: #212529;

    /* シャドウ */
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);

    /* トランジション */
    --transition: 0.3s ease;

    /* サイズ */
    --header-height: 70px;
    --section-padding: 80px;
    --border-radius: 15px;
    --border-radius-sm: 8px;
    --border-radius-lg: 50px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

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

/* ==========================================================================
   ヘッダー
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all var(--transition);
}

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

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ナビゲーション */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

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

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

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

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.btn-contact {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all var(--transition);
}

.btn-contact:hover {
    background: #e55d00;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-contact::after {
    display: none;
}

/* モバイルメニュー */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

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

/* ==========================================================================
   ヒーローセクション
   ========================================================================== */

.hero {
    position: relative;
    height: 100vh;
    background-image: url('http://ring-kaitai.com/wp-content/uploads/2026/01/header-img.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--header-height);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(9, 185, 126, 0.85) 0%, rgba(44, 62, 80, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.2s both;
}

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

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--white);
    animation: bounce 2s infinite;
}

/* ==========================================================================
   ボタン
   ========================================================================== */

.btn,
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    transition: all var(--transition);
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.btn-cta {
    border-radius: var(--border-radius-sm);
    padding: 16px 35px;
}

/* ボタンバリエーション - デフォルト */
.btn-primary,
.btn-cta.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--light-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary,
.btn-cta.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

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

.btn-phone:hover {
    background: var(--light-bg);
}

/* ボタンバリエーション - CTAセクション用 */
.cta-section .btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.cta-section .btn-primary:hover {
    background: #ff8c42;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.cta-section .btn-secondary {
    background: var(--white);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.cta-section .btn-secondary:hover {
    background: var(--light-bg);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   セクション共通
   ========================================================================== */

section {
    padding: var(--section-padding) 0;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-top: 20px;
    line-height: 1.7;
}

.sub_message {
    margin-top: 30px;
    font-size: 1rem;
    text-align: center;
    font-weight: bold;
    color: var(--secondary-color);
}

/* ==========================================================================
   サービス
   ========================================================================== */

.services {
    background: var(--light-bg);
}

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

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #023404);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.service-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* ==========================================================================
   強み
   ========================================================================== */

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

.strength-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
    transition: all var(--transition);
}

.strength-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.strength-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.strength-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.strength-item p {
    color: var(--gray);
    line-height: 1.8;
}

/* ==========================================================================
   施工の流れ
   ========================================================================== */

.process {
    background: var(--light-bg);
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 180px;
    text-align: center;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -10px;
    width: 20px;
    height: 2px;
    background: var(--primary-color);
}

.process-step:last-child::after {
    display: none;
}

.process-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.process-step h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.process-step h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ==========================================================================
   お問い合わせ・CTAセクション
   ========================================================================== */

.cta-section {
    padding: var(--section-padding) 20px;
    background-color: #ffffff;
}

.cta-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.cta-content {
    background: var(--white);
    padding: 60px 40px;
}

.cta-title,
.cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.cta-text,
.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.cta-note {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* コンタクトフォーム */
.contact-form {
    max-width: 768px;
    margin: 0 auto;
    text-align: left;
}

.contact-form .wpcf7-form p {
    margin-bottom: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    max-width: 768px;
    width: 100vw;
    margin: 0 auto;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}



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

.contact-form input[type="submit"] {
    width: 100%;
    padding: 14px;
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color var(--transition);
}

.contact-form input[type="submit"]:hover {
    background-color: #005f8d;
}

/* フォームメッセージ */
.wpcf7-not-valid-tip {
    font-size: 14px;
    color: #d63638;
    margin-top: 5px;
}

.wpcf7-response-output {
    margin-top: 30px;
    padding: 15px;
    border-radius: 6px;
    font-size: 15px;
}

/* ==========================================================================
   フッター
   ========================================================================== */

.footer {
    background: var(--secondary-color);
    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-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.8;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

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

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

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

/* ==========================================================================
   アニメーション
   ========================================================================== */

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   レスポンシブデザイン
   ========================================================================== */

@media (max-width: 768px) {

    /* ナビゲーション */
    .nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        transition: left var(--transition);
        box-shadow: var(--shadow);
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        padding: 2rem;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--light-bg);
    }

    .nav-list a {
        display: block;
        padding: 1rem 0;
    }

    /* モバイルメニュートグル */
    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* レイアウト調整 */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        flex-direction: column;
    }

    .process-step::after {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .cta-content {
        padding: 40px 20px;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form select,
    .contact-form textarea {
        max-width: 768px;
        width: 90vw;
    }
}

@media (max-width: 480px) {
    .page-hero {
        margin-top: 10%;

    }

    .page-hero .container {
        vertical-align: middle;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form select,
    .contact-form textarea {
        max-width: 450px;
        width: 80vw;
    }
}