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

.home_text {
    margin-bottom: 15px;
}

.home_photo {
    float: left;
    margin-right: 15px;
    margin-bottom: 10px;
    max-width: 250px;
}

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

.home_text p {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 12px;
}

.catching_box {
    text-align: center;
    padding: 20px;
    margin-bottom: 15px;
}

.home_h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.home_h2 {
    font-size: 18px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
    font-weight: normal;
}

.catching_text_last {
    font-size: 15px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}

.catching_text_last a {
    color: #0a7ac7;
    text-decoration: underline;
}

.catching_text_last a:hover {
    color: #0866a8;
}

.catching_text_02 {
    font-size: 15px;
    color: #444;
    margin-bottom: 5px;
    line-height: 1.4;
}

.catching_text_02 a {
    color: #0a7ac7;
    text-decoration: underline;
}

.catching_text_02 a:hover {
    color: #0866a8;
}

.catching_text_s {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
    line-height: 1.4;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 语言切换器 */
.language-switcher {
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
}

.lang-btn {
    padding: 8px 15px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.admin-link {
    padding: 8px 15px;
    border: 1px solid #3498db;
    background: #3498db;
    color: white;
    border-radius: 5px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.admin-link:hover {
    background: #2980b9;
    border-color: #2980b9;
}

.lang-btn:hover {
    background: #f0f0f0;
}

.lang-btn.active {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding-top: 50px;
}

.logo {
    text-align: center;
    padding: 10px 0;
}

.logo span:first-child {
    display: block;
    font-size: 14px;
    color: #666;
}

.logo-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.nav {
    background: #2c3e50;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 15px 30px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.nav-link:hover {
    background: #34495e;
}

/* 下拉菜单 */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #34495e;
    list-style: none;
    min-width: 150px;
    display: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-item:hover .dropdown {
    display: block;
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.3s ease;
}

.dropdown-link:hover {
    background: #2c3e50;
}

/* Hero区域 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1353&q=80');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 120px;
}

.hero-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    opacity: 0.9;
}

.hero-btn {
    background: #e74c3c;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.hero-btn:hover {
    background: #c0392b;
}

/* 通用样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #2c3e50;
}

/* 详细内容区域 */
.detail-section {
    padding: 80px 20px;
}

.detail-section.alt-bg {
    background: #f8f9fa;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-content.reverse {
    direction: rtl;
}

.detail-content.reverse > * {
    direction: ltr;
}

.detail-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.detail-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.detail-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

.detail-list {
    list-style: none;
    margin-bottom: 30px;
}

.detail-list li {
    padding: 10px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
}

.detail-list li:last-child {
    border-bottom: none;
}

.detail-btn {
    background: #e74c3c;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.detail-btn:hover {
    background: #c0392b;
}

/* About us区域 */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 50px;
}

.about-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.about-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.feature-item p {
    font-size: 14px;
    color: #666;
}

/* 服务区域 */
.services {
    padding: 20px;
    background: #f8f9fa;
}

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

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.service-card p {
    font-size: 14px;
    color: #666;
}

/* Topics区域 */
.topics {
    padding: 80px 20px;
    background: #fff;
}

.topics-grid {
    display: grid;
    gap: 0;
    margin-bottom: 30px;
    border-top: 1px solid #c9c9c9;
}

.topic-item {
    padding: 22px 0 26px;
    border-bottom: 1px dotted #b7b7b7;
}

.topic-item-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.topic-item-title {
    font-size: 18px;
    font-weight: 400;
    color: #2f3a40;
    line-height: 1.5;
}

.topic-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8a8f96;
    font-size: 13px;
    white-space: nowrap;
}

.topic-item-category {
    color: #0a7ac7;
}

.topic-item-body {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 18px;
    align-items: start;
}

.topic-item-imageWrap {
    width: 140px;
    height: 94px;
    overflow: hidden;
    background: #f4f4f4;
    flex-shrink: 0;
    border-radius: 6px;
}

.topic-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.topic-item-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.topic-item-text-wrapper {
    position: relative;
}

.topic-item-text {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 5.4em;
    padding-right: 80px;
}

.topic-item-more-inline {
    position: absolute;
    right: 0;
    bottom: 0;
    color: #0a7ac7;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.topic-item-more {
    align-self: flex-start;
    color: #0a7ac7;
    font-size: 14px;
    white-space: nowrap;
}

.topic-item-less-inline {
    color: #0a7ac7;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.topic-item-more-inline:hover,
.topic-item-less-inline:hover {
    color: #0866a8;
}

.topics-empty {
    padding: 28px 0;
    color: #666;
    text-align: center;
}

.view-more-btn {
    display: block;
    margin: 0 auto;
    padding: 12px 30px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.view-more-btn:hover {
    background: #34495e;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #333;
}

.modal-content h2 {
    margin-bottom: 25px;
    color: #2c3e50;
}

/* 表单样式 */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background: #e74c3c;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #c0392b;
}

/* 留言展示区域 */
.messages-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.messages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.message-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.message-name {
    font-weight: 600;
    color: #2c3e50;
}

.message-date {
    font-size: 12px;
    color: #999;
}

.message-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 14px;
    color: #ddd;
}

.footer-section p {
    font-size: 13px;
    line-height: 1.8;
    color: #ccc;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 12px;
    color: #999;
}

/* 语言隐藏 */
.lang-zh,
.lang-en {
    display: none;
}

body.zh .lang-zh {
    display: inline;
}

body.zh .lang-ja,
body.zh .lang-en {
    display: none;
}

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

body.en .lang-ja,
body.en .lang-zh {
    display: none;
}

body.ja .lang-ja {
    display: inline;
}

body.ja .lang-zh,
body.ja .lang-en {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-list {
        flex-direction: column;
        text-align: center;
    }

    .nav-link {
        padding: 12px 20px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .language-switcher {
        top: 5px;
        right: 5px;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 10px;
    }

    .header {
        padding-top: 45px;
    }

    .detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .detail-content.reverse {
        direction: ltr;
    }

    .detail-image img {
        height: 200px;
    }

    .detail-text h3 {
        font-size: 20px;
    }

    .about-intro {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image img {
        height: 200px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 22px;
    }

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

    .topic-item-body {
        grid-template-columns: 1fr;
    }

    .topic-item-imageWrap {
        width: 100%;
        height: 200px;
    }

    .topic-item-copy {
        gap: 8px;
    }

    .topic-item-more {
        justify-self: end;
    }

    .messages-container {
        grid-template-columns: 1fr;
    }

    .main-content-wrapper {
        grid-template-columns: 1fr;
    }

    aside {
        margin-top: 40px;
    }
}

/* 右侧边栏布局 */
.main-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 180px;
    padding: 60px 20px;
}

main {
    min-height: 500px;
}

aside {
    /* position: sticky; */
    top: 180px;
    height: fit-content;
}

/* Pickup Sidebar */
.pickup_as {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pickup_as_head {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pickup_as_head i {
    color: #e74c3c;
}

.pickup_as dl {
    margin: 0;
    padding: 0;
}

.pic_box {
    margin-bottom: 15px;
}

.pic_box:last-child {
    margin-bottom: 0;
}

.pic_as_news {
    font-size: 13px;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 8px;
}

.pic_as_news a {
    color: #3498db;
    text-decoration: none;
}

.pic_as_news a:hover {
    text-decoration: underline;
}

.pickup_subtt {
    font-size: 12px;
    margin-bottom: 6px;
    line-height: 1.5;
}

.pickup_subtt a {
    color: #555;
    text-decoration: none;
}

.pickup_subtt a:hover {
    color: #e74c3c;
}

/* Reading Matter */
.side_photo_h {
    margin: 15px 0;
}

.side_photo_h img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.hp_title {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.hp_title a {
    color: #3498db;
    text-decoration: none;
}

.pic_as_news_h {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

/* Contact Box (box18) */
.box18 {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.content-address {
    font-size: 12px;
    line-height: 1.8;
}

.content-address a {
    color: #3498db;
    text-decoration: none;
}

.content-address a:hover {
    text-decoration: underline;
}

.side_photo_LINE {
    margin-top: 15px;
    text-align: center;
}

.side_photo_LINE img {
    width: 150px;
    height: auto;
    border-radius: 4px;
}

/* Sales Block */
.sales_block {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

.sales_block p {
    font-size: 11px;
    color: #856404;
    margin: 0;
}

/* Side Photo HKP */
.side_photo_hkp {
    margin-bottom: 20px;
    text-align: center;
}

.side_photo_hkp img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 4px;
}

/* Advertising */
.add_side {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.add_title {
    font-size: 11px;
    color: #999;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Font Awesome icons fallback */
.fa {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fa-thumbs-o-up:before {
    content: "\f087";
}

.fa-newspaper-o:before {
    content: "\f1ea";
}