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

html {
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Screen reader only - visually hidden but accessible to SEO and assistive technologies */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: 'Noto Sans JP', 'Noto Sans', sans-serif;
    line-height: 1.7;
    color: #263232;
    background-color: #263232;
    letter-spacing: 0.03rem;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 64px;
}

a,
button,
a *,
button * {
    cursor: pointer !important;
}

/* Language switching animation */
.lang-switch .lang-en {
    display: none;
}

.lang-switch.en .lang-ja {
    display: none;
}

.lang-switch.en .lang-en {
    display: inline;
}

.lang-fade-out {
    opacity: 0 !important;
    transition: opacity 0.25s ease;
}

.lang-fade-in {
    opacity: 1 !important;
    transition: opacity 0.25s ease;
}

/* Footer sticky to bottom */
#footer {
    margin-top: auto;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: 64px;
}

.header {
    background: #263232;
    color: white;
    padding: 1rem 0;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

#header.scrolled .header {
    background: rgba(38, 50, 50, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    letter-spacing: 0.045rem;
}

.logo {
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.7;
}

.logo img {
    height: 28px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: opacity 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    opacity: 0.7;
}

.nav-menu a.active::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 18px;
    background-image: url('../images/page-flag.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform-origin: top center;
    animation: dropDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes dropDown {
    0% {
        opacity: 0;
        transform: translateX(-50%) scaleY(0);
    }
    60% {
        opacity: 1;
        transform: translateX(-50%) scaleY(1.1);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scaleY(1);
    }
}

/* Language Toggle */
.language-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 4px;
    position: relative;
    width: 80px;
    height: 32px;
}

.language-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 16px;
    z-index: 2;
    position: relative;
}

.language-option.active {
    color: #263232;
    pointer-events: none;
    cursor: default;
}

.language-option:not(.active):hover {
    opacity: 0.7;
}

.language-toggle::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: white;
    border-radius: 16px;
    transition: transform 0.3s ease;
    z-index: 1;
}

.language-toggle.en::before {
    transform: translateX(100%);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: #618f34;
    padding: 10px;
    border-radius: 13px 2px 13px 2px;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.hamburger span {
    width: 16px;
    height: 1px;
    background: white;
    transition: 0.3s;
    display: block;
}

/* Main Content Container */
.main-content {
    max-width: 1000px;
    width: calc(100% - 30px);
    margin: 20px auto;
    padding: 0 20px;
    background: white;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    position: relative;
    z-index: 10;
}

.content-card {
    background: transparent;
    border-radius: 0;
    padding: 2rem;
    box-shadow: none;
    margin-bottom: 0;
}

.content-card .product-grid {
    padding-top: 0.25rem;
}

@media (max-width: 768px) {
    .content-card .product-grid {
        padding-top: 0.25rem;
    }
}

.page-header {
    display: flex;
    align-items: center;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 0rem 0.5rem;
}

.page-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.page-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    opacity: 0;
    transform: scale(0);
    transform-origin: bottom right;
}

.page-icon img.animate {
    animation: growFromBottomRight 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes growFromBottomRight {
    0% { opacity: 0; transform: scale(0); }
    60% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.page-header h1,
.page-header h2 {
    font-size: 2.375rem;
    color: white;
    font-weight: 500;
    margin-bottom: -10px;
}

/* Company Info Table */
.company-info {
    display: grid;
}

.info-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: stretch;
    border-bottom: 1px solid #d2dfe4;
}

.info-row:first-child {
    border-top: 1px solid #d2dfe4;
}

.info-label {
    font-weight: 600;
    font-size: 1rem;
    background: rgba(210, 223, 228, 0.2);
    padding: 0.8rem 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-value {
    padding: 1rem;
    font-size: 1rem;
}

.info-value a {
    color: inherit;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.info-value a:hover {
    opacity: 0.7;
}

/* Board of Management */
.board-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.board-row {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 1.5rem;
}

html[lang="en"] .board-row {
    grid-template-columns: 22rem 1fr;
}

.sp-only {
    display: none;
}

.board-title {
    font-weight: 500;
    line-height: 1.5;
}

.board-names {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .board-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    html[lang="en"] .board-row {
        grid-template-columns: 1fr;
    }


    .sp-only {
        display: inline;
    }
}

/* Add bottom padding to main content */
.main-content {
    padding-bottom: 1rem;
}

/* Footer Decoration */
.footer-decoration {
    position: relative;
    height: 80px;
    margin: 0 20px;
    pointer-events: none;
    z-index: 1;
}

.footer-decoration .footer-clover {
    position: absolute;
    right: 0;
    bottom: 15px;
    width: 260px;
    height: auto;
}

.footer-decoration .footer-reaf {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 35px;
    height: 42px;
    overflow: visible;
}

/* Footer Reaf Animation */
.footer-reaf .stem,
.footer-reaf .leaf-left,
.footer-reaf .leaf-right {
    fill: #618f34;
    opacity: 0;
}

.footer-reaf.animate .stem {
    transform-origin: center bottom;
    animation: growStem 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.footer-reaf.animate .leaf-left {
    transform-origin: 14px 31px;
    animation: growLeaf 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
}

.footer-reaf.animate .leaf-right {
    transform-origin: 21px 31px;
    animation: growLeaf 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s forwards;
}

@keyframes growStem {
    0% { opacity: 0; transform: scaleY(0); }
    60% { opacity: 1; transform: scaleY(1.1); }
    100% { opacity: 1; transform: scaleY(1); }
}

@keyframes growLeaf {
    0% { opacity: 0; transform: scale(0); }
    60% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

/* Footer */
.footer {
    background: #618f34;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    margin: 0 15px 15px 15px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 1rem 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

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

.copyright {
    font-size: 0.75rem;
    opacity: 1;
    background: #2b4622;
    width: calc(100% - 40px);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto 20px 20px 20px;
    border-radius: 30px;
}

/* Responsive Design */
@media (max-width: 1180px) {
    .logo {
        margin-right: 1.5rem;
    }

    .logo img {
        height: 24px;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-menu a {
        font-size: 0.7rem;
    }

    .nav-menu a.active::before {
        top: -23px;
        width: 36px;
        height: 18px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 46px;
    }

    #header {
        margin-top: 0;
        top: 0;
        min-height: 46px;
    }

    .header {
        padding: 0.7rem 0;
    }

    .page-header {
        padding: 1rem 1rem 0.5rem;
    }

    .page-icon {
        width: 40px;
        height: 40px;
    }

    .page-icon img {
        width: 40px;
        height: 40px;
    }

    .main-content {
        border-radius: 24px;
        margin: 1rem;
    }

    .footer-decoration .footer-clover {
        display: none;
    }

    .logo img {
        height: 24px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #263232;
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s;
        z-index: 101;
        gap: 3rem;
        overflow: hidden;
    }

    .nav-menu a {
        font-size: 1.25rem;
    }

    .nav-menu a.active::before {
        top: 90%;
        left: -61px;
        width: 36px;
        height: 40px;
        transform: translateY(-30%) rotate(-90deg);
        animation: none;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .language-toggle {
        margin: 1rem auto 0;
        width: 100px;
        height: 40px;
    }

    .language-option {
        font-size: 1rem;
    }

    .hamburger {
        display: flex;
        position: relative;
        z-index: 102;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg);
        position: absolute;
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg);
        position: absolute;
    }

    .page-header h1,
    .page-header h2 {
        font-size: 2rem;
        margin-bottom: -10px;
    }

    .main-content {
        box-shadow: none;
    }

    .content-card {
        padding: 1.5rem 0.5rem;
    }

    .product-list-card {
        padding: 1rem 0.5rem;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 0px;
    }

    .info-label {
        border-bottom: 1px solid #d2dfe4;
        justify-content: flex-start;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer {
        margin: 0 10px 10px 10px;
        border-radius: 30px;
    }

    .footer-content {
        padding: 20px 0px 0px;
    }
}

/* reCAPTCHA v3 Badge */
.grecaptcha-badge {
    z-index: 9999 !important;
}

/* Honeypot - hidden from humans */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

.content-card {
    animation: fadeInUp 0.6s ease;
}

.content-card:nth-child(2) { animation-delay: 0.2s; }

/* Content Section Styles */
.content-section {
    padding-bottom: 3rem;
}

.content-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.section-heading {
    font-size: 1.65rem;
    color: #618f34;
    line-height: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #8cbe5a;
}

.section-heading::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 22px;
    background-image: url('../images/title-clover.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 15px;
    flex-shrink: 0;
    margin-bottom: -4px;
    transform-origin: center;
    animation: cloverGrow 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cloverGrow {
    0% { opacity: 0; transform: scale(0); }
    60% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.section-content p {
    margin-bottom: 0rem;
    font-size: 1rem;
}

.section-content ul,
.section-content ol {
    margin-left: 2.5rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.section-content li {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .section-heading {
        font-size: 1.375rem;
        line-height: 1.7rem;
    }

    .section-heading::before {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }

    .section-content ul,
    .section-content ol {
        margin-left: 1rem;
    }
}

/* Organization Chart Styles */
.org-chart-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    height: 410px;
}

.org-chart-image {
    width: 840px;
    height: 410px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

@media (max-width: 768px) {
    .org-chart-container {
        height: auto;
        margin-top: 0;
    }

    .org-chart-image {
        width: 100%;
        height: auto;
    }
}

/* Hero Section */
.hero {
    width: 100%;
    height: 430px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: url('../images/hero-bg-1.jpg') center/cover no-repeat;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)); */
    z-index: 1;
}

.hero .container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: left;
    color: white;
    position: relative;
    padding: 0.2rem 1rem;
    display: inline-block;
}

.hero-content .hero-title {
    margin: 0 0 5px 0;
}

.hero-content .hero-subtitle {
    margin: 0;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(20, 30, 25, 0.75);
}

.hero-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.3;
    letter-spacing: 0.05rem;
    position: relative;
}

.hero-subtitle {
    font-size: 1.7rem;
    font-weight: 400;
    letter-spacing: 0.15rem;
    position: relative;
}

.hero-content:last-child {
    margin-top: 2rem;
}

.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.hero-bg-layer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));*/
}

@media (max-width: 768px) {
    .hero {
        height: 300px;
    }

    .hero-video {
        display: none;
    }

    .hero-overlay {
        display: none;
    }

    .hero-content {
        padding: 0.2rem 0.7rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }
}

/* Mission Section */
.mission-section {
    background: #263232;
    padding: 2rem 0;
}

.mission-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
}

.mission-image {
    width: 100%;
    position: relative;
    z-index: 2;
    margin-top: 2rem;
}

.mission-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.mission-content {
    color: white;
}

.mission-map {
    position: absolute;
    top: 0;
    right: -5rem;
    z-index: 1;
    width: auto;
}

.mission-map img {
    width: 600px;
    height: auto;
}

.mission-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    color: #8cbe5a;
}

.mission-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #ffffff;
}

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

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mission-content {
        order: 1;
    }

    .mission-image {
        order: 2;
        max-width: 500px;
        margin: -6.5rem auto 0;
        position: relative;
        z-index: 2;
    }

    .mission-map {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        margin: 1.25rem 0;
    }

    .mission-map img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .mission-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .mission-text {
        font-size: 1rem;
        text-align: center;
    }
}

/* Business Domain Section */
.business-domain {
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

.business-domain .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}


.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

.business-banner {
    display: block;
    width: 100%;
    overflow: hidden;
    transition: transform 0.3s ease;
    font-size: 0;
    line-height: 0;
}

.business-banner:hover {
    transform: translateY(-5px);
}

.business-banner img,
.business-banner picture {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .business-domain {
        padding: 1rem 0;
    }

    .business-domain .container {
        padding: 0;
    }

    .business-domain .page-header {
        margin-bottom: 1rem;
    }

    .business-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
        padding: 0 0.5rem;
    }
}

/* Topics Section */
.topics-section {
    padding: 2rem 0;
    position: relative;
    z-index: 20;
}

.topics-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.topics-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.topic-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    padding: 1.5rem 0;
    align-items: start;
}

html[lang="en"] .topic-item {
    grid-template-columns: 130px 1fr;
}

.topic-date {
    font-size: 1rem;
    color: white;
    font-weight: 400;
    padding-right: 2rem;
    position: relative;
    align-self: stretch;
    white-space: nowrap;
}

.topic-date::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: white;
}

.topic-text {
    font-size: 1rem;
    color: #ffffff;
    margin: 0;
}

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

    .topics-section .container {
        padding: 0;
    }

    .topics-list {
        padding: 0 1rem;
    }

    .topic-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    html[lang="en"] .topic-item {
        grid-template-columns: 1fr;
    }

    .topic-date::after {
        right: auto;
        left: 6rem;
    }

    html[lang="en"] .topic-date::after {
        left: 7rem;
    }
}

/* Contact Button Styles */
.contact-button-wrapper {
    display: flex;
    justify-content: center;
}

.contact-button {
    display: inline-block;
    background: #618f34;
    color: white;
    padding: 1rem 4rem;
    border: none;
    border-radius: 25px 5px 25px 5px;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(97, 143, 52, 0.3);
}

.contact-button:hover {
    background: #507a2a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(97, 143, 52, 0.4);
}

.contact-button:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .contact-button {
        font-size: 1.2rem;
        padding: 0.875rem 3rem;
    }
}

/* About Us Page - Corporate Philosophy */
.philosophy-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.philosophy-item {
    display: grid;
    grid-template-columns: 100px 30px 1fr;
    align-items: center;
    gap: 1rem;
}

.philosophy-label {
    font-size: 1.625rem;
    font-weight: 600;
    color: #263232;
}

.philosophy-divider {
    width: 1px;
    height: 100%;
    min-height: 24px;
    background: #263232;
    transform: rotate(20deg);
    justify-self: center;
}

.philosophy-item:nth-child(2) .philosophy-divider {
    margin-left: -5px;
}

.philosophy-item:nth-child(3) .philosophy-divider {
    margin-left: -10px;
}

.philosophy-text {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .philosophy-item {
        display: block;
        margin-bottom: 0.75rem;
        margin-top: -0.5rem;
    }

    .philosophy-label {
        font-size: 1.75rem;
        display: inline;
    }

    .philosophy-divider {
        display: inline-block;
        width: 1px;
        height: 20px;
        margin-left: 0.5rem;
        margin-top: -5px;
        vertical-align: middle;
    }

    .philosophy-item:nth-child(2) .philosophy-divider,
    .philosophy-item:nth-child(3) .philosophy-divider {
        margin-left: 0.5rem;
    }

    .philosophy-text {
        font-size: 1rem;
        margin-top: 0.5rem;
    }
}

/* About Us Page - Message Section */
.message-container {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    align-items: start;
}

.message-photo {
    text-align: center;
}

.message-photo img {
    width: 160px;
    height: auto;
    border-radius: 0;
    object-fit: cover;
    object-position: top;
}

.message-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #263232;
    margin-bottom: 0.25rem;
}

.message-title {
    font-size: 0.85rem;
    color: #555;
}

/* .message-photo-info: PC defaults to vertical layout */

.message-text {
    font-size: 1rem;
}

.message-text p {
    margin-bottom: 0;
}

.message-slogan {
    display: block;
    text-align: center;
}

@media (max-width: 768px) {
    .message-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .message-photo {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 0;
        order: 2;
    }

    .message-text {
        order: 1;
        font-size: 0.85rem;
    }

    .message-photo img {
        width: 120px;
        height: auto;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .message-photo-info {
        display: flex;
        flex-direction: column;
    }

    .message-name {
        text-align: left;
    }

    .message-title {
        text-align: left;
    }
}

/* About Us Page - Feature and Function */
.feature-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 0;
}

.feature-image-container picture {
    width: 100%;
    display: flex;
    justify-content: center;
}

.feature-function-image {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .feature-image-container {
        margin: 1rem 0 0;
    }

    .feature-function-image {
        width: 100%;
        max-width: 320px;
    }
}

/* About Us Page - History Section */
.history-list {
    border-top: 1px solid #d2dfe4;
}

.history-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid #d2dfe4;
}

.history-year {
    font-size: 1rem;
    font-weight: 600;
    color: #263232;
    padding: 0.8rem 1rem;
    background: rgba(210, 223, 228, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-content {
    padding: 1rem;
    display: flex;
    align-items: center;
}

.history-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.history-content li {
    font-size: 1rem;
    padding-left: 1rem;
    position: relative;
}

.history-content li::before {
    content: '・';
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .history-item {
        grid-template-columns: 1fr;
    }

    .history-year {
        justify-content: flex-start;
        padding: 0.75rem 1rem;
    }

    .history-content {
        padding: 1rem;
        border-bottom: 1px solid #d2dfe4;
    }

    .history-item:last-child .history-content {
        border-bottom: none;
    }
}

/* Crop Protection Page - Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
    padding: 0;
}

.product-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

a.product-card {
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.product-image-wrapper img {
    max-width: 100%;
    height: auto;
}

.product-details-link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    color: #71a041;
    font-size: 0.8rem;
    text-decoration: none;
    margin-top: -2rem;
    padding: 0 0.5rem 0.5rem 0;
    transition: opacity 0.3s;
    position: relative;
    z-index: 2;
}

.product-details-link .arrows {
    display: inline-flex;
    align-items: center;
    margin-left: 0.1rem;
}

.product-details-link .arrows::before,
.product-details-link .arrows::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-top: 1px solid #71a041;
    border-right: 1px solid #71a041;
    transform: rotate(45deg) translateY(2px);
}

.product-details-link .arrows::after {
    margin-left: -2px;
}


.product-info {
    padding: 1rem 0.5rem 0;
}

.product-category {
    font-size: 1rem;
    font-weight: 600;
    color: #263232;
    margin-bottom: 0.1rem;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 500;
    color: #618f34;
}


.product-tradename {
    font-size: 0.9rem;
    color: #5a8c3c;
    margin-top: 0.1rem;
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .product-image-wrapper {
        min-height: 180px;
        padding: 0;
    }

    .product-details-link {
        font-size: 0.9em;
    }
}

/* Product Detail Page */
.product-detail-card {
    padding: 1.25rem 0 0;
}

.product-detail {
    background: transparent;
    border-radius: 0;
    padding: 0;
    overflow: visible;
}

.product-detail-category {
    background: #618f34;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    margin: 0;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3.5rem;
    padding: 2rem;
    align-items: start;
}

.product-structure {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    min-height: 200px;
}

.product-structure img {
    max-width: 100%;
    height: auto;
}

.product-detail-info {
    padding-right: 1rem;
}

.product-detail-name {
    font-size: 2rem;
    font-weight: 600;
    color: #263232;
    margin: -0.5rem 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #263232;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.product-detail-name.no-category {
    margin-top: 0.25rem;
}

.product-tradename-sub {
    font-size: 1.25rem;
    font-weight: 500;
    color: #263232;
    display: inline-block;
    margin-top: -0.3rem;
}

.product-spec-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.product-spec-item.en-only {
    margin-top: -2rem;
}

html[lang="en"] .product-spec-item.en-only {
    margin-top: 0;
}

.product-spec-label {
    font-size: 1rem;
    font-weight: 600;
    color: #618f34;
}

.product-spec-value {
    font-size: 1rem;
    font-weight: 500;
    color: #263232;
}

/* House Care Styles */
.house-care-content {
    grid-template-columns: 320px 1fr;
    padding-top: 1rem;
}

.house-care-images {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: auto;
}

.house-care-images .structure-image {
    max-width: 100%;
    height: auto;
}

.house-care-photos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.house-care-photos img {
    width: 100%;
    height: auto;
}

/* Associated Products */
.associated-products {
    padding: 2rem;
    border-top: 1px solid #ddd;
}

.associated-products-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #618f34;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #618f34;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.associated-products-title::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('../images/title-clover.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.associated-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.associated-product-item {
    text-align: center;
}

.associated-product-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
}

.associated-product-name {
    font-size: 0.9rem;
    color: #263232;
}

/* Back to List Button */
.back-to-list {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.back-to-list-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: transparent;
    color: white;
    padding: 1rem 3rem;
    border: 2px solid white;
    border-radius: 40px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-list-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.back-to-list-button .arrow-right {
    display: inline-block;
    width: 20px;
    height: 10px;
    position: relative;
    transition: transform 0.3s ease;
}

.back-to-list-button:hover .arrow-right {
    transform: translateX(5px);
}

.back-to-list-button .arrow-right::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
}

.back-to-list-button .arrow-right::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 10px;
    height: 2px;
    background: white;
    transform: rotate(45deg);
    transform-origin: right center;
}

@media (max-width: 768px) {
    .product-detail-content {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 8px 1.5rem;
    }

    .product-structure {
        max-width: 100%;
        margin: 0 auto;
        order: 2;
    }

    .product-structure img {
        width: 100%;
        height: auto;
    }

    .product-detail-info {
        display: contents;
    }

    .product-detail-name {
        font-size: 1.5rem;
        padding: 1rem 0 0;
        margin: 0 0 -0.5rem;
        border-bottom: none;
        order: 1;
    }

    .product-detail-name.no-category {
        padding-top: 0;
    }

    .product-spec-list {
        order: 3;
    }

    .product-detail-category {
        border-radius: 12px;
    }

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

    .back-to-list-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

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

    .house-care-images {
        order: 2;
    }
}

@media (max-width: 480px) {
    .associated-products-grid {
        grid-template-columns: 1fr;
        max-width: 200px;
        margin: 0 auto;
    }
}

/* Contact Page Styles */
.contact-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 0rem 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-label {
    font-size: 1rem;
    font-weight: 600;
    color: #263232;
}

.required-mark {
    color: #e53935;
    margin-left: 0.25rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 400;
    line-height: 1.7;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    color: #263232;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

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

.form-checkbox-group {
    margin-top: 0.5rem;
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #4a7c59;
}

.checkbox-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.checkbox-text a {
    color: #4a7c59;
    text-decoration: underline;
}

.checkbox-text a:hover {
    color: #3a6249;
}

.form-submit {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.form-message {
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.form-success {
    background-color: transparent;
    color: #263232;
    font-size: 1.25rem;
}

.form-error {
    background-color: #ffebee;
    color: #c62828;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .contact-card {
        padding: 1rem 0.5rem;
    }

    .form-input,
    .form-textarea {
        padding: 0.75rem;
        font-size: 16px;
    }

    .form-success {
        font-size: 1rem;
    }
}
