:root {
    --bg-color: #0d0d0d;
    --surface-color: #1a1a1a;
    --text-primary: #f0f0f0;
    --text-secondary: #aaaaaa;
    --accent-color: #c5a059;
    /* Gold */
    --accent-hover: #e6c278;
    --fire-color: #b93a3a;

    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Shippori Mincho', serif;
    /* Using Mincho for body too for elegance, or system sans */
    --font-body: 'Helvetica Neue', Arial, sans-serif;

    --container-width: 1200px;
    --header-height: 80px;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.4;
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

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

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.my-4 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.my-5 {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-serif);
    font-size: 1rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #8a6e30);
    color: #000;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: #000;
}

.btn-outline-white {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.btn-outline-white:hover {
    background-color: #fff;
    color: #000;
}


.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: #000;
}

.btn-text {
    color: var(--accent-color);
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-text:hover gap {
    gap: 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-symbol {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 0.2rem 0.5rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .jp {
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.logo-text .en {
    font-size: 0.6rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

.nav-link:hover::after {
    width: 100%;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1544148103-0773bf10d330?q=80&w=2070&auto=format&fit=crop');
    /* Placeholder reliable URL for Teppanyaki/Cooking */
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: scale(1.1);
    /* Subtle zoom effect can be added via JS */
    animation: zoomOut 20s infinite alternate;
}

@keyframes zoomOut {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1.2);
    }
}

.hero-content {
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-logo {
    display: block;
    width: 120px;
    height: auto;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.hero-subtitle {
    font-size: 1.2rem;
    font-family: var(--font-serif);
    color: var(--text-secondary);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background-color: var(--text-secondary);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Sections General */
.section {
    padding: 8rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title .jp {
    display: block;
    font-size: 1rem;
    color: var(--accent-color);
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
    font-family: var(--font-sans);
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
}

.news-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.news-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.news-category {
    display: inline-block;
    font-size: 0.7rem;
    border: 1px solid var(--text-secondary);
    padding: 0.1rem 0.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.news-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* About Section */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-box {
    position: relative;
    width: 100%;
    height: 500px;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background-color: #333;
    background-image: url('https://images.unsplash.com/photo-1514326640560-7d063ef2aed5?q=80&w=2080&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

.lead-text {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.body-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Certification Section */
.certification-section {
    background: linear-gradient(to bottom, #0d0d0d, #141414);
}

.cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.glass-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.glass-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.card-link {
    color: var(--accent-color);
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

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

/* Membership Section */
.membership-section {
    padding: 0;
}

.membership-box {
    background: var(--accent-color);
    background: linear-gradient(135deg, #1f1f1f, #2d2d2d);
    padding: 6rem;
    text-align: center;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.membership-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Footer */
.footer {
    background-color: #000;
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    color: #555;
    font-size: 0.8rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

.delay-5 {
    animation-delay: 1.0s;
}

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

/* Mobile Nav */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: var(--transition);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav ul {
    text-align: center;
}

.mobile-nav li {
    margin: 2rem 0;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .two-col-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .image-box {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

    .membership-box {
        padding: 3rem 1.5rem;
    }

    .membership-box p {
        text-align: left;
    }

    .membership-actions {
        flex-direction: row;
        /* Keep row but ensure they fit, or column if needed. User provided screenshot shows them side-by-side but broken. */
        gap: 1rem;
    }

    .membership-actions .btn {
        padding: 1rem;
        /* Reduce padding */
        font-size: 0.9rem;
        /* Adjust font size */
        white-space: nowrap;
        /* Prevent line breaks */
        width: 100%;
        /* Make them fill available space */
        display: flex;
        justify-content: center;
        align-items: center;
    }

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

/* Subpage Specifics */
.page-header {
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-color: var(--bg-color);
    overflow: hidden;
    margin-bottom: 4rem;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1559339352-11d035aa65de?q=80&w=1974&auto=format&fit=crop');
    /* Chef/kitchen abstract */
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    color: var(--accent-color);
    font-family: var(--font-serif);
    letter-spacing: 0.1em;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.philosophy-section {
    margin-bottom: 6rem;
    text-align: center;
}

.philosophy-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.activity-list {
    counter-reset: activity-counter;
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.activity-item {
    background: var(--surface-color);
    padding: 1.5rem 2rem;
    border-left: 3px solid var(--accent-color);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.activity-item::before {
    counter-increment: activity-counter;
    content: "0" counter(activity-counter);
    font-family: var(--font-serif);
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.info-table th,
.info-table td {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.info-table th {
    width: 200px;
    color: var(--accent-color);
    font-weight: normal;
}

/* Regulation Styles */
.regulation-list {
    max-width: 800px;
    margin: 0 auto;
}

.chapter-block {
    margin-bottom: 4rem;
}

.chapter-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
}

.regulation-list dt {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.regulation-list dt:first-child {
    margin-top: 0;
}

.article-num {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 2px;
}

.regulation-list dd {
    padding-left: 1rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.regulation-list ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

.sub-list {
    list-style-type: none;
    margin-left: 1rem;
    margin-top: 0.5rem;
}

.sub-list li {
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
    font-size: 0.95em;
}

.regulation-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 4rem;
    text-align: center;
}

.download-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 100px;
    height: 100%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    gap: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 95px;
    top: 5px;
    width: 11px;
    height: 11px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    box-shadow: 0 0 0 2px var(--accent-color);
}

.timeline-year {
    width: 100px;
    text-align: right;
    font-size: 1.2rem;
    font-family: var(--font-serif);
    color: var(--accent-color);
    flex-shrink: 0;
    padding-top: 0;
}

.timeline-content {
    background: var(--surface-color);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-dot {
        left: 15px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 0.5rem;
        padding-left: 50px;
    }

    .timeline-year {
        width: auto;
        text-align: left;
        margin-bottom: 0.5rem;
    }
}

/* Chapters Styles */
.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.region-group {
    background: var(--surface-color);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    height: 100%;
}

.region-title {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
}

.chapter-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.chapter-list li {
    width: calc(50% - 0.5rem);
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    font-size: 0.95rem;
    transition: background 0.3s;
}

.chapter-list li:hover {
    background: rgba(197, 160, 89, 0.1);
}

/* Solicitation Styles */
.solicitation-info {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.info-block {
    background: var(--surface-color);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.info-title {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-list {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.info-list li {
    margin-bottom: 0.5rem;
}

.highlight {
    color: var(--accent-color);
    font-weight: bold;
}

.caution-block {
    border: 1px solid rgba(197, 160, 89, 0.3);
}

.caution-list {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.caution-list li {
    margin-bottom: 0.5rem;
}

/* Form Styles */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.required {
    background: var(--accent-color);
    color: var(--bg-color);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.form-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.form-submit {
    text-align: center;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }

    .info-table th {
        margin-top: 1rem;
        border-bottom: none;
    }

    .info-table tr {
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1rem;
    }
}

/* Technical Hospitality Examination Styles */
.intro-box {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.intro-text,
.intro-subtext {
    line-height: 1.8;
    color: var(--text-primary);
}

.merits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.merit-card {
    background: var(--surface-color);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.merit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.merit-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.merit-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.merit-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.exam-details {
    display: grid;
    gap: 1.5rem;
}

.exam-details dt {
    font-weight: bold;
    color: var(--accent-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 0.8rem;
    margin-bottom: 0.5rem;
}

.exam-details dd {
    margin-left: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.highlight-text {
    background: linear-gradient(to right, rgba(197, 160, 89, 0.2), transparent);
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    color: #fff;
}

.process-list {
    margin-left: 1rem;
}

.process-list li {
    margin-bottom: 0.5rem;
}

.price-tag {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.contact-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 600px;
    margin: 0 auto;
}


/* Usage Guidelines Styles */
.guideline-block {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.prohibition-block {
    border-color: rgba(220, 53, 69, 0.3);
    background: rgba(44, 13, 13, 0.4);
}

.guideline-content {
    margin-top: 1.5rem;
}

.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent-color);
}

.warning-list li {
    border-left-color: #dc3545;
}

.list-head {
    display: block;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.text-danger {
    color: #ff6b6b !important;
}

.note-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.regulation-block {
    background: var(--surface-color);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.rank-list-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.rank-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0;
}

.rank-list li {
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-serif);
    color: var(--accent-color);
}

.committee-members {
    display: grid;
    gap: 1rem;
}

.member-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

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

.member-row dt {
    font-weight: bold;
    color: var(--accent-color);
}

.article-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-color);
}

.article-content {
    margin-left: 1rem;
    padding-left: 1rem;
    list-style-type: decimal;
    color: var(--text-secondary);
}

.article-content li {
    margin-bottom: 1rem;
}

.important-note,
.sub-note {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.sub-note {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.fee-list {
    list-style: none;
    padding-left: 1rem;
}

.fee-list li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.fee-list li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

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

/* Board & Secretariat Styles */
.board-members-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.member-group {
    background: var(--surface-color);
    padding: 2rem;
    min-width: 250px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.member-role {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--accent-color);
    display: inline-block;
}

.member-list li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.secretariat-table th {
    vertical-align: top;
    width: 150px;
}

.note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.5rem;
}

.text-link {
    color: var(--accent-color);
    text-decoration: underline;
}

.text-link:hover {
    color: #fff;
    text-decoration: none;
}

/* General Membership Styles */
.membership-message {
    padding: 1rem;
    line-height: 1.8;
}

.membership-message p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.highlight-message {
    font-weight: bold;
    color: #fff !important;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: 2rem;
}

.action-gridtwo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.action-card {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.action-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.action-card h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.action-card p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.contact-block-simple {
    background: rgba(0, 0, 0, 0.3);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.contact-details .phone-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 1rem 0 0.5rem;
}

.contact-details .hours {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-details .note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    opacity: 0.8;
}

/* Supporting Member Application Styles */
.download-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.download-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.text-sm {
    font-size: 0.85rem;
}

/* Business Card Request Styles */
.sample-card-visual {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.card-front {
    display: flex;
    width: 600px;
    /* Standard business card ratio sort of */
    height: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: #fff;
    color: #333;
    /* Default text color for white part */
}

.card-left {
    width: 45%;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.card-right {
    width: 55%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    text-align: left;
    position: relative;
    color: #000;
}

.card-logo {
    max-width: 120px;
    margin-bottom: 1.5rem;
    filter: invert(1);
    /* Assuming placeholder is black on transparent */
}

.assoc-name {
    font-family: var(--font-serif);
    font-weight: bold;
    letter-spacing: 0.1em;
    line-height: 1.6;
}

.assoc-name small {
    font-size: 0.8rem;
    font-weight: normal;
}

.card-rank {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}

.card-name {
    font-size: 2.5rem;
    font-family: var(--font-serif);
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 1rem;
    line-height: 1;
}

.card-name-en {
    font-size: 0.9rem;
    font-family: sans-serif;
    font-weight: normal;
    text-transform: uppercase;
    color: #555;
    letter-spacing: 0.05em;
    margin-left: auto;
}

.card-association-info {
    margin-top: 3rem;
    font-size: 0.75rem;
    line-height: 1.6;
    color: #555;
    font-family: var(--font-serif);
}

.fee-box {
    background: var(--surface-color);
    padding: 2rem;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    display: inline-block;
}

.fee-box .price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
}

.fee-box .tax-note {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: normal;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    white-space: nowrap;
}

.form-group input[type="radio"],
.form-group input[type="checkbox"] {
    width: auto;
    margin-bottom: 0;
    /* Reset global input margin if any */
}

@media (max-width: 768px) {
    .checkbox-group {
        gap: 1rem;
    }

    .checkbox-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .card-front {
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    .card-left,
    .card-right {
        width: 100%;
        padding: 2rem;
    }

    .card-name {
        font-size: 2rem;
    }

    .card-association-info {
        margin-top: 2rem;
    }

}

/* Footer Logo Update */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Usage Guidelines Images */
.guideline-img {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 4px;
    height: 80px;
    width: auto;
    object-fit: contain;
    max-width: 100%;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

/* Contact Form Styles Override */
.application-form {
    text-align: left !important;
}

.contact-form .form-group {
    margin-bottom: 2rem;
    text-align: left;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.8rem;
    color: #fff;
    font-size: 1.1rem;
    text-align: left;
}

.contact-form .form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-start;
}

.checkbox-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
    font-size: 1rem;
    margin-bottom: 0;
}

.checkbox-group input[type="radio"] {
    margin: 0;
    transform: scale(1.2);
}

.badge-required {
    background: #fff;
    color: #000;
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    margin-left: 1rem;
    vertical-align: middle;
    font-weight: bold;
}

/* Mobile adjustments for inquiry form */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.3rem;
        /* Reduced to fit on one line or break better */
    }

    .text-center .intro-text {
        text-align: left;
        display: inline-block;
        width: 100%;
        font-size: 1rem;
        /* Ensure readable base size */
    }

    .merit-card p {
        font-size: 1rem;
        /* Increase from 0.9rem for readability */
    }

    .intro-subtext {
        font-size: 1rem;
        text-align: left;
    }

}

.sp-br {
    display: none;
}

@media (max-width: 768px) {
    .sp-br {
        display: block;
    }

    .contact-info-text {
        text-align: left !important;
    }

    .post-code {
        margin-right: 0;
    }
}

.post-code {
    margin-right: 1em;
}

.pc-br {
    display: inline;
}

.tei-kan-title {
    font-size: 1.8rem;
}

@media (max-width: 768px) {
    .lead-text {
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .pc-br {
        display: none;
    }

    .tei-kan-title {
        font-size: 1.4rem !important;
        /* Force smaller size for long title */
    }

    .trademark-intro {
        text-align: left;
        display: inline-block;
    }

    .usage-guide-title {
        font-size: 1.4rem !important;
    }

    .usage-note-text {
        text-align: left;
        display: inline-block;
    }

    .ads-banner-title {
        font-size: 1.4rem !important;
    }

    .ads-banner-text {
        font-size: 0.95rem;
        line-height: 2 !important;
    }

    .ads-btn {
        width: 100%;
        margin-bottom: 0.5rem;
        font-size: 0.95rem !important;
        white-space: nowrap;
    }

    .fee-box .tax-note {
        font-size: 0.9rem;
        white-space: nowrap;
    }
}