/*
  3O3 Static Site - base.css
  Shared styles used across all pages
*/

/* -----------------------------------------------------
   FONT
----------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Michroma&family=Noto+Sans+JP:wght@400;500;700&display=swap");

/* -----------------------------------------------------
   COLOR SYSTEM
----------------------------------------------------- */
:root {
    --bg: #f8edd1;
    --main: #264051;
    --accent: #7c9580;
    --card: #faf0e6;
    --white: #ffffff;
    --bg-light: #fffbf0;
    --shadow-color: rgba(38, 64, 81, 0.1);
    --shadow-hover: rgba(38, 64, 81, 0.2);
    --text-muted: rgba(38, 64, 81, 0.7);
    --text-dark: rgba(38, 64, 81, 0.9);
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
}

/* -----------------------------------------------------
   RESET & BASE
----------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Michroma", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--main);
    line-height: 1.8;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

/* -----------------------------------------------------
   LAYOUT UTILITIES
----------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg) 100%);
}

.section-alt {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg) 100%);
}

.section-white {
    background: var(--white);
}

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

.section-title {
    font-family: "Michroma", sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
    color: var(--main);
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin-bottom: 40px;
    border-radius: 2px;
}

.section-line.center {
    margin-left: auto;
    margin-right: auto;
}

.section-text {
    font-size: 1.05rem;
    max-width: 800px;
    line-height: 1.9;
}

.center {
    text-align: center;
}

.main-color {
    color: var(--main);
}

.inline-keyword {
    font-family: "Michroma";
    color: var(--accent);
    font-weight: bold;
}

/* -----------------------------------------------------
   HEADER
----------------------------------------------------- */
.header {
    background: rgba(248, 237, 209, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 20px 0;
    border-bottom: 1px solid rgba(38, 64, 81, 0.05);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(38, 64, 81, 0.1);
}

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

.logo {
    font-family: "Michroma", sans-serif;
    font-size: 1.8rem;
    color: var(--main);
    letter-spacing: 0.1em;
    font-weight: 700;
    text-decoration: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    font-weight: 500;
    color: var(--main);
    font-size: 1rem;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

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

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

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

/* -----------------------------------------------------
   VISION SECTION (index + recruit)
----------------------------------------------------- */
.vision-content {
    max-width: 1000px;
    margin: 0 auto;
}

.vision-block {
    position: relative;
    margin-bottom: 6rem;
    padding: 3rem;
}

.vision-block:last-child {
    margin-bottom: 0;
}

.vision-block-left {
    padding-left: 4rem;
    text-align: left;
}

.vision-block-right {
    padding-right: 4rem;
    text-align: right;
    margin-left: auto;
    max-width: 85%;
}

.vision-accent {
    position: absolute;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--main), var(--accent));
    top: 0;
}

.vision-block-left .vision-accent { left: 0; }
.vision-block-right .vision-accent { right: 0; }

.vision-title {
    font-family: "Michroma", sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 2.25rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.vision-text {
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.vision-motto {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 2rem;
    line-height: 1.7;
}

.vision-signature {
    margin-top: 2rem;
    font-style: italic;
    opacity: 0.7;
}

/* -----------------------------------------------------
   SECTION BACKGROUNDS (index IDs + #contact shared)
----------------------------------------------------- */
#philosophy { background: linear-gradient(to bottom, var(--bg), var(--bg-light)); }
#greeting   { background: linear-gradient(to bottom, var(--bg-light), var(--bg)); }
#business   { background: linear-gradient(to bottom, var(--bg), var(--bg-light)); }
#reports    { background: linear-gradient(to bottom, var(--bg-light), var(--bg)); }
#lp         { background: var(--white); }
#contact    { background: linear-gradient(to bottom, var(--bg-light), var(--bg)); }

.philosophy-content,
.greeting-body {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 2.2;
}

.greeting-sign {
    margin-top: 40px;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: right;
}

/* -----------------------------------------------------
   BUSINESS CARDS (index + it-solution + recruit)
----------------------------------------------------- */
.business-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.business-card {
    background: #ffffff;
    padding: 36px 32px 28px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--main);
    box-shadow:
        0 2px 6px rgba(140, 100, 50, 0.05),
        0 10px 36px rgba(140, 100, 50, 0.10);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(185, 158, 110, 0.22);
}

/* Top accent line */
.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, rgba(124, 149, 128, 0.2) 100%);
    border-radius: 20px 20px 0 0;
}

/* Decorative dot */
.business-card::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 22px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.45;
}

.business-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 4px 12px rgba(140, 100, 50, 0.07),
        0 20px 52px rgba(140, 100, 50, 0.14);
    border-color: rgba(124, 149, 128, 0.38);
}

.business-card h3 {
    font-family: "Michroma";
    font-size: 1.1rem;
    margin: 0 0 14px;
    color: var(--main);
    letter-spacing: 0.03em;
    line-height: 1.4;
}

.business-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 28px;
    flex-grow: 1;
    line-height: 1.85;
}

.card-arrow {
    align-self: flex-start;
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.06em;
    border-bottom: 1.5px solid rgba(124, 149, 128, 0.45);
    padding-bottom: 2px;
}

.business-card:hover .card-arrow {
    border-bottom-color: var(--accent);
    padding-left: 4px;
}

.card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.65rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-family: "Michroma";
    letter-spacing: 0.05em;
}

/* -----------------------------------------------------
   REPORTS (index + tcg + travel)
----------------------------------------------------- */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.report-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 10px 25px var(--shadow-color);
    transition: all 0.3s ease;
}

.report-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-hover);
}

.report-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.report-thumb {
    height: 220px;
    overflow: hidden;
}

.report-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.report-card:hover .report-thumb img {
    transform: scale(1.05);
}

.report-content {
    padding: 24px;
}

.report-title {
    font-size: 1.1rem;
    margin: 0 0 12px;
    line-height: 1.5;
    font-weight: 700;
}

.report-excerpt {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0 0 20px;
    line-height: 1.7;
}

.report-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--accent);
    font-family: "Michroma";
}

/* -----------------------------------------------------
   LP OFFER BOX
----------------------------------------------------- */
.lp-offer-box {
    background: var(--white);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.06);
    max-width: 800px;
    margin: 0 auto;
}

/* -----------------------------------------------------
   BUTTONS
----------------------------------------------------- */
.btn-primary {
    display: inline-block;
    background: var(--main);
    color: var(--bg);
    padding: 18px 48px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
    margin-top: 28px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(38, 64, 81, 0.2);
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(124, 149, 128, 0.3);
}

/* -----------------------------------------------------
   CONTACT FORM
----------------------------------------------------- */
.contact-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    padding-top: 20px;
}

.contact-form-wrapper {
    flex: 1.2;
}

.contact-form-card {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.contact-form-title {
    font-family: "Michroma";
    text-align: center;
    margin: 0 0 28px;
    font-size: 1.4rem;
}

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

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--main);
}

.required { color: #e05252; }

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(38, 64, 81, 0.2);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-light);
    color: var(--main);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 149, 128, 0.15);
}

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

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--main);
    color: var(--bg);
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-submit:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 149, 128, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
    text-align: center;
}

/* -----------------------------------------------------
   FOOTER
----------------------------------------------------- */
.footer {
    background: var(--main);
    color: rgba(255, 255, 255, 0.9);
    padding: 80px 0 40px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1.5fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: "Michroma", sans-serif;
    font-size: 1.8rem;
    color: var(--bg);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 0.82rem;
    opacity: 0.7;
    font-family: "Michroma";
}

.footer-heading {
    color: var(--bg);
    font-family: "Michroma", "Noto Sans JP", sans-serif;
    font-size: 0.95rem;
    font-weight: bold;
    margin: 0 0 20px;
    padding-bottom: 12px;
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s;
    opacity: 0.85;
    font-size: 0.85rem;
}

.footer-list a:hover {
    color: var(--accent);
    opacity: 1;
}

.footer-biz-item {
    margin-bottom: 14px;
}

.biz-title {
    display: block;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s;
}

.biz-title:hover { opacity: 0.8; }

.biz-desc {
    display: block;
    font-size: 0.78rem;
    opacity: 0.7;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
    opacity: 0.6;
    font-size: 0.82rem;
}

/* -----------------------------------------------------
   HAMBURGER & MOBILE MENU
----------------------------------------------------- */
.hamburger {
    display: none;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    height: 2px;
    background: var(--main);
    border-radius: 2px;
    transition: 0.3s;
    display: block;
}

.hamburger.open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
}

.mobile-menu.open { right: 0; }

.mobile-menu a {
    font-family: "Michroma";
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--main);
}

/* -----------------------------------------------------
   SCROLL ANIMATIONS
----------------------------------------------------- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* -----------------------------------------------------
   PAGE HERO (sub-pages)
----------------------------------------------------- */
.page-hero {
    padding: 120px 0 90px;
    min-height: 300px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--main) 0%, #3a6070 100%);
    color: var(--white);
    text-align: center;
}

.page-hero-title {
    font-family: "Michroma", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--white);
}

.page-hero-sub {
    font-size: 1.05rem;
    opacity: 0.85;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.9;
}

/* -----------------------------------------------------
   FLOW STEPS (it-solution + recruit)
----------------------------------------------------- */
.flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.flow-step {
    background: #ffffff;
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent);
    box-shadow: 0 4px 16px var(--shadow-color);
}

.flow-step h3 {
    font-family: "Michroma";
    font-size: 0.95rem;
    margin: 0 0 8px;
    color: var(--main);
}

.flow-step p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* -----------------------------------------------------
   LEGAL CONTENT (privacy + legal-notice + security + terms)
----------------------------------------------------- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.9;
    color: var(--main);
}

.legal-content h2 {
    font-family: "Michroma";
    font-size: 1.2rem;
    color: var(--main);
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.legal-content p,
.legal-content li {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-muted);
}

.legal-content ul {
    padding-left: 24px;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.legal-content th,
.legal-content td {
    padding: 14px 18px;
    border: 1px solid rgba(38, 64, 81, 0.15);
    font-size: 0.9rem;
    text-align: left;
    line-height: 1.7;
}

.legal-content th {
    background: var(--bg-light);
    font-weight: 700;
    width: 35%;
}

.privacy-page,
.legal-page,
.security-page,
.terms-page {
    background-color: var(--bg);
    color: var(--main);
}

/* -----------------------------------------------------
   RESPONSIVE
----------------------------------------------------- */
@media (max-width: 960px) {
    .nav { display: none; }
    .hamburger { display: flex; }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .contact-layout {
        flex-direction: column;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .section { padding: 56px 0; }

    .vision-block { padding: 2rem 1.5rem; }
    .vision-block-left { padding-left: 2.5rem; }
    .vision-block-right {
        padding-right: 2.5rem;
        text-align: left;
        max-width: 100%;
        margin-left: 0;
    }
    .vision-block-right .vision-accent {
        left: 0;
        right: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contact-form-card { padding: 28px 20px; }

    .business-cards { grid-template-columns: 1fr; }
}
