/* ==========================================================
   永得利株式会社  官网样式
   参照设计稿：公司官网源文件/首页.psd 公司新闻.psd 总裁经历-1.psd
   ========================================================== */

:root {
    --blue:        #2b6bd8;   /* 主题蓝（标题、强调） */
    --blue-deep:   #1b57c2;   /* 按钮、高亮块 */
    --navy:        #16386e;   /* 页脚深蓝 */
    --text:        #333333;
    --text-light:  #888888;
    --text-gray:   #a9a9a9;
    --bg-gray:     #f2f2f2;
    --line:        #dcdcdc;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans",
                 "PingFang SC", "Microsoft YaHei", "Yu Gothic", sans-serif;
    color: var(--text);
    font-size: 15px;
    line-height: 1.9;
    background: #fff;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------------- 顶部导航 ---------------- */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
}

.header-in {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo img { width: 150px; border-radius: 6px; }

.nav { display: flex; flex: 1; justify-content: flex-start; }

.nav a {
    position: relative;
    display: block;
    padding: 28px 0;
    margin: 0 34px;
    color: #666;
    letter-spacing: .15em;
    font-size: 15px;
    white-space: nowrap;
    transition: color .2s;
}

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

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

.nav a.active::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 56px; height: 4px;
    background: var(--blue);
}

/* ---------------- Banner ---------------- */

.hero {
    position: relative;
    height: 480px;
    background: url("../res/banner.jpg") center / cover no-repeat;
}

.hero-band {
    position: absolute;
    left: 0;
    top: 33%;
    padding: 26px 60px 26px calc((100vw - 1200px) / 2 + 24px);
    background: rgba(75, 104, 146, .55);
    color: #fff;
}

.hero-band .jp-small {
    display: inline-block;
    padding: 2px 14px;
    margin-bottom: 10px;
    background: rgba(90, 118, 158, .75);
    font-size: 15px;
    letter-spacing: .5em;
}

.hero-band .jp-big {
    font-size: 34px;
    letter-spacing: .12em;
    font-weight: 500;
}

/* ---------------- 通用标题 ---------------- */

.sec-title { text-align: center; margin-bottom: 46px; }

.sec-title .main {
    color: var(--blue);
    font-size: 26px;
    letter-spacing: .3em;
}

.sec-title .sub {
    color: #c9c9c9;
    font-size: 17px;
    letter-spacing: .12em;
}

/* 左对齐大标题（News 页 / プロフィール页） */
.page-title { margin: 56px 0 40px; }
.page-title .main { color: var(--blue); font-size: 38px; letter-spacing: .2em; }
.page-title .sub  { color: #c9c9c9; font-size: 20px; letter-spacing: .1em; }

/* ---------------- News + 会社理念 ---------------- */

.info-row {
    display: flex;
    gap: 40px;
    margin: 46px auto 70px;
}

.news-col { flex: 0 0 40%; }

.col-title { margin-bottom: 14px; }
.col-title .main { color: var(--blue); font-size: 20px; letter-spacing: .25em; }
.col-title .sub  { color: var(--text-gray); font-size: 13px; }

.news-list { width: 100%; border-collapse: collapse; }

.news-list td {
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 14px;
    color: #555;
}

.news-list td.date {
    width: 90px;
    text-align: right;
    color: var(--text-gray);
    font-size: 12px;
}

.news-list .arrow {
    display: inline-block;
    width: 8px; height: 8px;
    margin-right: 10px;
    border-top: 2px solid var(--blue);
    border-right: 2px solid var(--blue);
    transform: rotate(45deg);
    vertical-align: middle;
}

.news-more {
    display: block;
    text-align: right;
    margin-top: 10px;
    color: var(--blue);
    font-size: 13px;
    text-decoration: underline;
}

.phil-col {
    flex: 1;
    background: var(--bg-gray);
    padding: 30px 36px;
}

.phil-col p {
    margin-bottom: 1em;
    text-indent: 2em;
    color: #555;
    font-size: 14px;
}

.phil-col p b { color: var(--text); }

/* ---------------- win-win 图片带 ---------------- */

.winwin { position: relative; margin: 0 auto 70px; }

.winwin img { width: 100%; }

.winwin .tag {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--blue-deep);
    color: #fff;
    padding: 16px 28px;
}

.winwin .tag .cn { font-size: 20px; letter-spacing: .3em; line-height: 1.5; }
.winwin .tag .en { font-size: 13px; opacity: .85; line-height: 1.4; }

/* ---------------- 会社概要 ---------------- */

.company { margin-bottom: 90px; }

.company .lead {
    text-indent: 2em;
    color: #555;
    margin-bottom: 2em;
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.adv-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: 3px solid var(--blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    padding: 26px 24px;
}

.adv-card h4 {
    color: var(--blue);
    font-size: 17px;
    margin-bottom: 12px;
    letter-spacing: .05em;
}

.adv-card p { font-size: 13.5px; color: #666; text-align: justify; }

/* ---------------- プロフィール 时间轴 ---------------- */

.history {
    background: #f7f7f7;
    padding: 70px 0 80px;
    margin-bottom: 90px;
}

.tl {
    position: relative;
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 24px;
}

.tl::before {
    content: "";
    position: absolute;
    left: 24px; right: 24px;
    top: 50%;
    height: 1px;
    background: #c5c5c5;
}

.tl-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.tl-row.upper { margin-bottom: 26px; }
.tl-row.lower { margin-top: 26px; padding-left: 12.5%; padding-right: 0; }

.tl-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    padding: 16px 18px;
    font-size: 12.5px;
    color: #8a8a8a;
    line-height: 1.7;
    cursor: default;
    transition: background .25s ease, color .25s ease,
                transform .25s ease, box-shadow .25s ease;
}

.tl-card b {
    display: block;
    color: #333;
    font-size: 15px;
    margin-bottom: 6px;
    transition: color .25s ease;
}

/* 鼠标悬停：变蓝 + 轻微放大 */
.tl-card:hover {
    background: var(--blue-deep);
    color: #e8efff;
    transform: scale(1.06);
    box-shadow: 0 8px 22px rgba(27, 87, 194, .35);
    z-index: 3;
}

.tl-card:hover b { color: #fff; }

/* 卡片和中线之间的小圆点 */
.tl-card::after {
    content: "";
    position: absolute;
    left: 26px;
    width: 14px; height: 14px;
    background: #b9b9b9;
    border: 3px double #f7f7f7;
    border-radius: 50%;
}

.tl-row.upper .tl-card::after { bottom: -34px; }
.tl-row.lower .tl-card::after { top: -34px; }

/* ---------------- 主要事業 ---------------- */

.business { margin-bottom: 90px; }

.busi-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1100px;
    margin: 0 auto;
}

.busi-grid::before {
    content: "";
    position: absolute;
    left: 4%; right: 4%;
    top: 130px;
    height: 1px;
    background: #cfcfcf;
}

.busi-item {
    position: relative;
    text-align: center;
    padding-top: 10px;
    min-height: 300px;
}

.busi-item .icon {
    height: 96px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 8px;
}

.busi-item .icon img { max-height: 92px; width: auto; }

.busi-item .dot {
    width: 12px; height: 12px;
    margin: 12px auto;
    background: #fff;
    border: 1px solid #b5b5b5;
    border-radius: 50%;
}

.busi-item .num {
    color: var(--blue);
    font-size: 44px;
    font-weight: 300;
    letter-spacing: .05em;
}

/* 悬停出现的照片卡 */
.busi-item .photo-card {
    position: absolute;
    left: 50%;
    top: -20px;
    transform: translateX(-50%);
    width: 210px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, top .25s ease;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .25);
    z-index: 5;
}

.busi-item:hover .photo-card { opacity: 1; top: -10px; pointer-events: auto; }

.busi-item .photo-card img { width: 100%; }

.busi-item .photo-card .cover {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(20, 45, 90, .25), rgba(20, 45, 90, .55));
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.busi-item .photo-card .cover .name { font-size: 17px; letter-spacing: .15em; }

.busi-item .photo-card .cover .more {
    font-size: 12px;
    padding: 3px 18px;
    background: rgba(43, 107, 216, .9);
    color: #fff;
}

/* ---------------- 今後の展望（投资计划文案） ---------------- */

.future { background: #f7f7f7; padding: 70px 0 80px; margin-bottom: 90px; }

.future h3 {
    color: var(--blue);
    font-size: 20px;
    letter-spacing: .15em;
    margin: 40px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--blue);
    line-height: 1.4;
}

.future h3:first-of-type { margin-top: 0; }

.future-block { margin-bottom: 18px; }

.future-block h4 { color: #444; font-size: 16px; margin-bottom: 6px; }

.future-block p {
    color: #666;
    font-size: 14px;
    text-indent: 2em;
    text-align: justify;
}

/* ---------------- 問い合わせ ---------------- */

.contact { max-width: 760px; margin: 0 auto 100px; padding: 0 24px; }

.contact .row2 { display: flex; gap: 16px; margin-bottom: 16px; }

.field {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1px solid #b9b9b9;
    padding: 8px 12px;
    gap: 10px;
}

.field img { width: 18px; height: auto; }

.field input {
    flex: 1;
    border: 0;
    outline: none;
    font-size: 14px;
    color: #444;
    font-family: inherit;
}

.field-area {
    display: flex;
    align-items: flex-start;
    border: 1px solid #b9b9b9;
    padding: 12px;
    gap: 10px;
    margin-bottom: 20px;
}

.field-area img { width: 18px; margin-top: 4px; }

.field-area textarea {
    flex: 1;
    height: 170px;
    border: 0;
    outline: none;
    resize: vertical;
    font-size: 14px;
    color: #444;
    font-family: inherit;
}

.contact .send {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--blue-deep);
    color: #fff;
    font-size: 15px;
    letter-spacing: .5em;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.contact .send:hover { background: #164aa8; }

/* ---------------- 页脚 ---------------- */

.footer {
    background: var(--navy);
    color: #dbe4f2;
    padding: 46px 0 56px;
    font-size: 14px;
    letter-spacing: .18em;
}

.footer .foot-logo { width: 230px; margin-bottom: 20px; }

.footer .addr { margin-bottom: 10px; }

.footer .cont-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 340px));
    gap: 4px 40px;
}

/* ---------------- News 页 ---------------- */

.news-page { display: flex; gap: 40px; margin-bottom: 60px; }

.news-page .side-pic { flex: 0 0 380px; padding-top: 14px; }

.news-page .list { flex: 1; }

.news-card {
    display: flex;
    gap: 26px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    border: 1px solid #efefef;
    padding: 22px 26px;
    margin-bottom: 22px;
    transition: background .2s, color .2s;
}

.news-card .date { text-align: right; min-width: 82px; }
.news-card .date .md { font-size: 26px; color: #444; line-height: 1.2; }
.news-card .date .yr { font-size: 13px; color: var(--text-gray); }
.news-card .date hr { border: 0; border-top: 1px solid #ccc; margin-top: 10px; }

.news-card .txt .t { font-weight: bold; font-size: 15.5px; margin-bottom: 6px; color: #333; }
.news-card .txt .d { font-size: 13px; color: var(--text-gray); }

.news-card:hover { background: var(--blue-deep); }
.news-card:hover .date .md,
.news-card:hover .txt .t { color: #fff; }
.news-card:hover .date .yr,
.news-card:hover .txt .d { color: #cfdcf5; }

.pager { text-align: center; margin: 50px 0 90px; font-size: 18px; color: #999; }
.pager a { margin: 0 12px; }
.pager a.cur, .pager a:hover { color: var(--blue); }

/* ---------------- プロフィール 页 ---------------- */

.prof-wrap { position: relative; margin-bottom: 90px; }

.prof-gray {
    background: #ececec;
    padding: 40px 0;
}

.prof-flex { display: flex; gap: 40px; align-items: flex-start; }

.prof-list { flex: 1; max-width: 640px; }

.prof-item { margin-bottom: 34px; }

.prof-item h4 { font-size: 19px; color: #222; margin-bottom: 6px; }

.prof-item p { font-size: 15px; color: #555; }

.prof-photo { flex: 0 0 430px; margin-top: -90px; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 960px) {
    .header-in { flex-wrap: wrap; gap: 8px; padding: 10px 16px; }
    .nav { overflow-x: auto; }
    .nav a { margin: 0 14px; padding: 12px 0; }
    .hero { height: 300px; }
    .hero-band { padding-left: 24px; }
    .hero-band .jp-big { font-size: 22px; }

    .info-row { flex-direction: column; }
    .adv-grid { grid-template-columns: 1fr; }

    .tl::before { display: none; }
    .tl-row { grid-template-columns: 1fr; }
    .tl-row.lower { padding-left: 0; }
    .tl-card::after { display: none; }

    .busi-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
    .busi-grid::before { display: none; }

    .news-page { flex-direction: column; }
    .news-page .side-pic { flex: none; max-width: 380px; }

    .prof-flex { flex-direction: column; }
    .prof-photo { flex: none; margin-top: 0; max-width: 360px; }

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

    .winwin .tag { position: static; transform: none; justify-content: center; }
}
