/* ===========================================
   Tech Housing - CSS Styles
   =========================================== */

/* CSS Variables */
:root {
    --color-primary: #1d325b;
    --color-accent: #245fb2;
    --color-text: #1c3058;
    --color-white: #ffffff;
    --color-sub: #edf2fa;
    --color-sub2: #ceddf5;
    --gradient-primary: linear-gradient(135deg, #38bcf8, #1965d0 64%);
    --font-main: 'Noto Sans JP', 'Lato', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0.4, 0, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 540px) {
    .container {
        padding: 0 20px;
    }
}

/* ===========================================
   Buttons
   =========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-outline {
    border: 1px solid #245fb2;
    color: #245fb2;
    background: var(--color-white);
}

.btn-outline:hover {
    background: #245fb2;
    color: var(--color-white);
}

.btn-primary {
    background: #245fb2;
    color: var(--color-white);
    border: none;
}

.btn-primary:hover {
    background: #1a4d99;
}

.btn-primary-large {
    background: #245fb2;
    color: var(--color-white);
    padding: 16px 32px;
    font-size: 15px;
    border-radius: 8px;
}

.btn-primary-large:hover {
    background: #1a4d99;
}

.btn-gradient {
    background: #245fb2;
    color: var(--color-white);
    padding: 14px 28px;
}

.btn-gradient:hover {
    background: #1a4d99;
}

.btn-white {
    background: var(--color-white);
    color: #245fb2;
    border: 1px solid #245fb2;
}

.btn-white:hover {
    background: #245fb2;
    color: var(--color-white);
}

.btn-white-outline {
    background: var(--color-white);
    color: var(--color-primary);
    border: none;
    padding: 16px 32px;
}

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

.btn-submit {
    background: #245fb2;
    color: var(--color-white);
    padding: 16px 48px;
    font-size: 16px;
    border-radius: 8px;
    margin-top: 20px;
}

.btn-submit:hover {
    background: #1a4d99;
}

/* ===========================================
   Announcement Bar
   =========================================== */
.announcement-bar {
    background: var(--color-primary);
    padding: 8px 20px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.announcement-bar p {
    color: var(--color-white);
    font-size: 12px;
    letter-spacing: 0.02em;
}

/* ===========================================
   Header
   =========================================== */
.header {
    position: fixed;
    top: 32px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-sub);
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.header-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

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

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-weight: 700;
    font-size: 15px;
    color: var(--color-primary);
}

.nav-links a:hover {
    color: var(--color-accent);
}

.nav-buttons {
    display: flex;
    gap: 12px;
}

@media (max-width: 840px) {
    .btn-outline {
        display: none;
    }
}

@media (max-width: 540px) {
    .header-nav {
        padding: 10px 10px;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .logo img {
        height: 28px;
    }
    
    .nav-links a {
        font-size: 11px;
    }
    
    .nav-buttons .btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .nav-links {
        gap: 12px;
    }
}

/* ===========================================
   Hero Section
   =========================================== */
.hero {
    background: var(--color-white);
    padding: 180px 40px 100px;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 15px;
    color: var(--color-text);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
}

@media (max-width: 840px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        order: 1;
    }
}

@media (max-width: 540px) {
    .hero {
        padding: 120px 20px 60px;
    }
    
    .hero-text h1 {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 14px;
    }
}

/* ===========================================
   Section Styles
   =========================================== */
.section-header {
    margin-bottom: 48px;
}

.section-header.center {
    text-align: center;
}

.section-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.section-label-alt {
    display: block;
    font-size: 14px;
    color: var(--color-accent);
    margin-top: 8px;
}

.section-header h2 {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-primary);
}

@media (max-width: 540px) {
    .section-header h2 {
        font-size: 24px;
    }
}

/* ===========================================
   Problem Section

   =========================================== */
.problem {
    padding: 40px 0 40px;
    background: var(--color-primary);
}

.problem .section-header {
    text-align: center;
}

.problem .section-label {
    color: var(--color-white);
    opacity: 0.8;
}

.problem .section-header h2 {
    color: var(--color-white);
}

.problem-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.problem-card {
    background: transparent;
    padding: 32px 0;
    border-radius: 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.problem-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-white);
}

.problem-card p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-white);
    opacity: 0.9;
}

.problem-solution {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    background: var(--color-white);
    border-radius: 12px;
    color: var(--color-primary);
}

.problem-solution h3 {
    font-size: 18px;
    margin-bottom: 0;
    color: var(--color-primary);
}

.problem-solution p {
    opacity: 1;
    color: var(--color-text);
    font-size: 14px;
}

@media (max-width: 840px) {
    .problem-list {
        grid-template-columns: 1fr;
    }
    
    .problem-solution {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ===========================================
   Service Section
   =========================================== */
.service {
    padding: 40px 0 40px;
    background: var(--color-sub);
}

.service-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
}

.service-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-card {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
}

.service-card-content {
    padding: 40px;
}

.service-header {
    margin-bottom: 20px;
}

.service-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.service-line {
    height: 3px;
    width: 60px;
    background: var(--color-accent);
}

.service-card p {
    margin-bottom: 24px;
    line-height: 1.8;
}

.service-card img {
    width: 100%;
    border-radius: 12px;
}

@media (max-width: 840px) {
    .service-layout {
        grid-template-columns: 1fr;
    }
    
    .service-sidebar {
        position: static;
    }
}

/* ===========================================
   About Section
   =========================================== */
.about {
    padding: 40px 0 60px;
    background: var(--color-white);
}

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

.about-images {
    position: relative;
    order: -1;
}

.about-img-main {
    border-radius: 0;
    width: 100%;
}

.about-img-sub {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 200px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: var(--color-sub);
 
}

.about-text {
    order: 1;
}

.about-header {
    margin-bottom: 16px;
}

.about-header .section-label {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 8px;
}

.about-header h2 {
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 0;
    font-weight: 700;
}

.about-text p {
    margin-top: 24px;
    line-height: 2;
    font-size: 15px;
}

@media (max-width: 840px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-images {
        order: 0;
    }
    
    .about-img-sub {
        right: 20px;
        bottom: -20px;
        width: 150px;
    }
}

/* ===========================================
   Price Section
   =========================================== */
.price {
    padding: 40px 0 40px;
    background: var(--color-sub);
}

.price-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.price-badge {
    display: none;
}

.price-item {
    margin-bottom: 20px;
}

.price-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
}

.price-label {
    font-size: 14px;
    color: #666;
    margin-left: 8px;
}

.price-options {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-sub);
}

.options-title {
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-primary);
    font-size: 16px;
}

.options-list {
    text-align: left;
    margin-bottom: 32px;
}

.options-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-sub);
    font-size: 14px;
    color: var(--color-text);
}

/* ===========================================
   Company Section
   =========================================== */
.company {
    padding: 40px 0 40px;
    background: var(--color-white);
}

.company-layout {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.company-header {
    display: flex;
    flex-direction: column;
}

.company-header h2 {
    font-size: 28px;
    color: var(--color-primary);
    font-weight: 700;
}

.company-intro p {
    margin-top: 16px;
    line-height: 1.8;
    font-size: 15px;
}

.company-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.company-row {
    display: flex;
    flex-direction: column;
    background: var(--color-sub);
    border-radius: 12px;
    padding: 32px;
    border: none;
}

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

.company-row.full {
    grid-column: 1 / -1;
}

.company-row h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    background: transparent;
    padding: 0;
    min-width: auto;
    margin-bottom: 16px;
}

.company-row p {
    font-size: 14px;
    line-height: 1.8;
    padding: 0;
    color: var(--color-text);
}

@media (max-width: 540px) {
    .company-details {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   CTA Section
   =========================================== */
.cta-section {
    padding: 80px 40px;
    background: transparent;
}

.cta-section .container {
    background: var(--gradient-primary);
    border-radius: 24px;
    padding: 60px 80px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
}

.cta-image {
    display: none;
}

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

.cta-content h2 {
    font-size: 32px;
    color: var(--color-white);
    margin-bottom: 24px;
    font-weight: 700;
}

.cta-content p {
    color: var(--color-white);
    opacity: 0.95;
    margin-bottom: 0;
    line-height: 1.9;
    font-size: 15px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cta-buttons .btn {
    min-width: 220px;
    justify-content: center;
}

@media (max-width: 840px) {
    .cta-section .container {
        grid-template-columns: 1fr;
        padding: 48px 32px;
        text-align: center;
    }
    
    .cta-content {
        text-align: center;
    }
    
    .cta-buttons {
        align-items: center;
    }
}

/* ===========================================
   News Section
   =========================================== */
.news {
    padding: 40px 0 40px;
    background: var(--color-white);
}

.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.news-card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.news-text {
    padding: 24px;
}

.news-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.news-text p {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}

.news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

@media (max-width: 840px) {
    .news-list {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   FAQ Section
   =========================================== */
.faq {
    padding: 40px 0 40px;
    background: var(--color-sub);
}

.faq-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
}

.faq-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--color-white);
    border: none;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

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

.faq-q {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.faq-text {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
}

.faq-icon {
    color: var(--color-accent);
}

.faq-icon i {
    font-size: 24px;
}

.faq-answer {
    display: none;
    padding: 0 24px 24px;
    padding-left: 72px;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-icon i {
    content: 'remove';
}

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

@media (max-width: 840px) {
    .faq-layout {
        grid-template-columns: 1fr;
    }
    
    .faq-sidebar {
        position: static;
    }
}

/* ===========================================
   Register & Contact Cards
   =========================================== */
.register-contact {
    padding: 40px 0 40px;
    background: var(--color-white);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.register-card,
.contact-card {
    background: var(--color-sub);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
}

.card-header h2 {
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.card-subtitle {
    font-size: 16px;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 16px;
}

.card-decoration {
    display: none;
}

.deco-circle,
.deco-line {
    display: none;
}

.card-description {
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 14px;
    color: var(--color-text);
}

@media (max-width: 840px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   Contact Form Section
   =========================================== */
.contact-form-section {
    padding: 40px 0 40px;
    background: var(--color-white);
}

.contact-intro {
    text-align: center;
    margin-bottom: 48px;
    font-size: 16px;
}

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

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-weight: 500;
}

.required {
    display: inline-block;
    padding: 2px 8px;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 11px;
    border-radius: 4px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--color-sub2);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-main);
    transition: var(--transition);
    background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(36, 95, 178, 0.1);
}

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

.contact-form button {
    display: block;
    margin: 32px auto 0;
}

/* ===========================================
   Footer
   =========================================== */
.footer {
    background: var(--color-primary);
    padding: 80px 0;
    color: var(--color-white);
}

.footer-content {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 200px;
}

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

.footer-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
    margin-bottom: 28px;
    display: block;
}

.footer-tagline {
    font-size: 20px;
    line-height: 1.8;
    color: var(--color-white);
    font-weight: 500;
    margin-bottom: 32px;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 28px;
    text-align: left;
}

.footer-links a {
    font-size: 15px;
    color: var(--color-white);
}

.footer-links a:hover {
    opacity: 0.8;
}

@media (max-width: 840px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 48px;
    }
    
    .footer-left {
        width: 100%;
        align-items: center;
    }
    
    .footer-links {
        width: 100%;
        text-align: center;
        gap: 32px;
    }

    .appear {
        opacity: 1;
        transform: none;
    }
}

/* ===========================================
   Animations
   =========================================== */
.appear {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.appear.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 840px) {
    .appear {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .appear {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
