@charset "utf-8";

/* ==========================================================================
   Premium Design Styles for 株式会社グリーンシステム (Revamp)
   ========================================================================== */

/* Google Fonts
-------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Zen+Kaku+Gothic+New:wght@300;400;500;700&display=swap');

/* Variables
-------------------------------------------------- */
:root {
    --color-primary: #044a1b; /* Deep premium green */
    --color-accent: #0b8a14;
    --color-bg-light: #f7f9fa;
    --color-text-main: #2d3748;
    --color-text-muted: #718096;
    --color-white: #ffffff;
    --font-jp: 'Zen Kaku Gothic New', sans-serif;
    --font-en: 'Outfit', sans-serif;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
    --border-radius: 16px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: var(--font-jp);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.8;
    overflow-x: hidden;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
}

.en {
    font-family: var(--font-en);
}

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

.section-padding {
    padding: 100px 0;
}

/* Header (Sticky Glassmorphism)
-------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: var(--transition);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.header__logo img {
    height: 40px;
    width: auto;
}

.header__contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__tel-box {
    text-align: right;
    display: none;
}
@media (min-width: 768px) {
    .header__tel-box {
        display: block;
    }
}

.header__tel-number {
    font-family: var(--font-en);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.header__tel-hours {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.btn-contact {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-white);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(11, 138, 20, 0.3);
    transition: var(--transition);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 138, 20, 0.4);
    color: var(--color-white);
}

/* Hero Section
-------------------------------------------------- */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1);
    z-index: 1;
}

@media screen and (min-width: 1024px) {
    .hero__slide {
        background-attachment: fixed;
    }
}

.hero__slide.active {
    opacity: 1;
    animation: zoomIn 10s forwards linear;
}


.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
    padding: 0 24px;
}

.hero__title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    opacity: 0;
    animation: fadeUp 1s ease 0.5s forwards;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeUp 1s ease 0.8s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255,255,255,0.7);
    font-family: var(--font-en);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeUp 1s ease 1.2s forwards;
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 20px;
    background: var(--color-white);
    animation: scrollDown 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
    z-index: 1;
}

/* Section Titles
-------------------------------------------------- */
.section-title {
    text-align: center;
    margin-bottom: 64px;
}

.section-title__en {
    font-family: var(--font-en);
    font-size: 1rem;
    color: var(--color-accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.section-title__jp {
    font-size: 2.25rem;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

.section-title__jp::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

/* Corporate Philosophy (Split Layout)
-------------------------------------------------- */
.philosophy {
    background-color: var(--color-white);
}

.philosophy__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .philosophy__inner {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.philosophy__image-wrap {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.philosophy__image-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(4,74,27,0.2) 0%, transparent 100%);
    z-index: 1;
}

.philosophy__image-wrap img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 1s ease;
}

.philosophy__image-wrap:hover img {
    transform: scale(1.05);
}

.philosophy__content h3 {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.philosophy__content p {
    font-size: 1.05rem;
    color: var(--color-text-main);
    margin-bottom: 24px;
}

/* Badge */
.cert-badge {
    display: inline-flex;
    background: #f0f7f2;
    padding: 12px 24px;
    border-radius: 8px;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(11, 138, 20, 0.2);
    margin-bottom: 32px;
}

.cert-badge img {
    height: 40px;
    width: auto;
}

/* News Section
-------------------------------------------------- */
.news {
    background-color: var(--color-bg-light);
    position: relative;
}

.news::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(11,138,20,0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    padding: 40px;
}

.news-item {
    border-bottom: 1px solid #edf2f7;
    padding: 32px 0;
}

.news-item:first-child {
    padding-top: 0;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-item__date {
    font-family: var(--font-en);
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: inline-block;
    background: rgba(11, 138, 20, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
}

.news-item__title {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.news-item__content {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Products & Links Grid
-------------------------------------------------- */
.links-section {
    background-color: var(--color-white);
}

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

.card-link {
    display: block;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--color-bg-light);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.card-link__img-wrap {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card-link__img-wrap img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-link:hover .card-link__img-wrap img {
    transform: scale(1.08);
}

.card-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    transition: var(--transition);
    pointer-events: none;
}

.card-link:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
}

.card-link:hover::after {
    border-color: var(--color-accent);
}

/* Insurance Companies Grid
-------------------------------------------------- */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
}

.company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 3/2;
    transition: var(--transition);
}

.company-logo img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition);
}

.company-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.company-logo:hover img {
    filter: grayscale(0%) opacity(1);
}

/* Footer
-------------------------------------------------- */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0 30px;
    text-align: center;
}

.footer__logo {
    margin-bottom: 30px;
}

.footer__logo img {
    height: 50px;
    width: auto;
    margin: 0 auto;
    filter: brightness(0) invert(1);
}

.footer__copyright {
    font-family: var(--font-en);
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 40px;
}

/* Animations
-------------------------------------------------- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

@keyframes scrollDown {
    0% { transform: translate(-50%, -100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(-50%, 100%); opacity: 0; }
}

/* Reveal classes for JS intersection observer */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* PC Menu
-------------------------------------------------- */
#menubar {
    display: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
@media (min-width: 992px) {
    #menubar {
        display: block;
    }
}
#menubar ul.inner {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}
#menubar ul.inner > li {
    position: relative;
}
#menubar ul.inner > li > a, #menubar ul.inner > li > .cursor-default {
    display: block;
    padding: 16px 24px;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
    transition: var(--transition);
}
#menubar ul.inner > li > a span, #menubar ul.inner > li > .cursor-default span {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-family: var(--font-en);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}
#menubar ul.inner > li:hover > a, #menubar ul.inner > li:hover > .cursor-default {
    color: var(--color-accent);
    background: rgba(11, 138, 20, 0.05);
    cursor: pointer;
}

/* PC Dropdown */
#menubar ul.ddmenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    list-style: none;
    padding: 16px 0;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}
#menubar ul.inner > li:hover ul.ddmenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
#menubar ul.ddmenu li a {
    display: block;
    padding: 10px 24px;
    font-size: 0.9rem;
    color: var(--color-text-main);
    text-align: left;
}
#menubar ul.ddmenu li a:hover {
    background: rgba(11, 138, 20, 0.05);
    color: var(--color-primary);
}

/* Mobile Menu
-------------------------------------------------- */
#menubar-s {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--color-white);
    z-index: 999;
    overflow-y: auto;
    padding: 24px;
}
#menubar-s ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#menubar-s > ul > li {
    border-bottom: 1px solid #edf2f7;
}
#menubar-s > ul > li > a, #menubar_hdr2 {
    display: block;
    padding: 16px 0;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.1rem;
    cursor: pointer;
}
#menubar-s > ul > li > a span, #menubar_hdr2 span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-family: var(--font-en);
    margin-left: 8px;
}
#menubar-s2 {
    display: none;
    padding-left: 24px;
    padding-bottom: 16px;
}
#menubar-s2 li a {
    display: block;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--color-text-main);
}
/* Mobile hamburger trigger */
#menubar_hdr {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    z-index: 1001;
    cursor: pointer;
    background: var(--color-white) url('../images/icon_menu.png') no-repeat center top/40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
@media (min-width: 992px) {
    #menubar_hdr {
        display: none !important;
    }
}
#menubar_hdr.open {
    background-position: center bottom;
}
/* News section toggle */
.news-item--old {
    display: none;
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-item--old.show {
    opacity: 1;
    transform: translateY(0);
}
