/* ===============================
   BASE / GLOBAL
================================ */
html {
  scroll-behavior: smooth;
  background-color: #f7f7f7;
}

body {
  margin: 0;
  
  font-family:
    "Helvetica Neue",
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Noto Sans JP",
    Arial,
    sans-serif;
  font-size: 15px;
  line-height: 2.05;
  letter-spacing: 0.04em;
  color: #111;
  background-color: #f7f7f7;
}

/* ===============================
   SIDE VERTICAL SCROLL (PC ONLY)
================================ */
.pc-only {
  display: block;
}

.side-fixed {
  position: fixed;
  top: 0;
  height: 100vh;
  width: 32px;
  overflow: hidden;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12px;
  color: rgba(0,0,0,0.45);
  z-index: 20;
}

.side-fixed.left { left: 12px; }
.side-fixed.right { right: 12px; }

.side-scroll {
  display: inline-block;
  white-space: nowrap;
  animation: sideScroll 18s linear infinite;
}

@keyframes sideScroll {
  from { transform: translateY(100%); }
  to   { transform: translateY(-100%); }
}

/* ===============================
   HEADER (PC)
================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  height: 72px;
  padding-top: env(safe-area-inset-top);  /* ← 吃掉刘海 */

  background: #fff;
  z-index: 9999;
}




.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* LOGO */
header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .logo img {
  height: 32px;
  width: auto;
  display: block;
}


header .logo span {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* NAV */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav a {
  margin: 0 18px;
  font-size: 15px;

  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 600;   /* ← 700 太硬，600 才是日站常用 */

  letter-spacing: 0.06em;  /* ← 稍微放松一点更圆润 */
  color: #222;  /* ← 不用纯黑，柔一点更高级 */
  text-decoration: none;
}
/* ===== Category 页强制继承首页导航样式 ===== */
.header .nav a {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #222;
}


.nav a:hover {
  opacity: 0.6;
}

/* SNS */
.header-sns {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-sns svg {
  width: 20px;
  height: 20px;
  fill: #111;
  transition: opacity 0.3s ease;
}

.header-sns a:hover svg {
  opacity: 0.5;
}


/* ===============================
   HERO
================================ */
/* ===============================
   HERO – MAIN VISUAL
================================ */
.hero-ph {
  height: 80svh;
  min-height: 520px;                 /* 👈 防止屏幕高时太扁 */
  background-image: url("./images/top.jpg");
  background-size: cover;            /* 👈 关键：铺满不变形 */
  background-position: center center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-ph h1 {
  font-size: 42px;
  letter-spacing: 4px;
  color: #fff;

  text-align: center;      /* 关键：每一行单独居中 */
  line-height: 1.4;        /* 两行之间更自然 */
}


.hero {
  margin-top: calc(-72px - env(safe-area-inset-top));
  padding-top: calc(72px + env(safe-area-inset-top));
}

/* ===============================
   SECTION BASE
================================ */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 0;
  background: transparent;
}

.section h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.section p {
  margin-bottom: 1.6em;
}

.section p:last-child {
  margin-bottom: 0;
}
/* ===============================
   SECTION SPACING – FINAL TUNE
================================ */

/* ご挨拶 */
.section.greeting {
  padding-top: 100px;    /* 原 140 */
  padding-bottom: 56px;  /* 原 100 */
}

/* ABOUT */
.section.about {
  padding-top: 64px;     /* 原 80 */
  padding-bottom: 56px;  /* 原 100 */
}
.section.work {
  padding-top: 64px;
  padding-bottom: 80px;
}

.section.work:first-of-type {
  padding-top: 120px;
}
.section.news {
  padding-top: 100px;
  padding-bottom: 56px;
}
.section.company {
  padding-top: 100px;
  padding-bottom: 56px;
}
.section.contact {
  padding-top: 80px;
  padding-bottom: 56px;
}
/* ===============================
   WORK 01–04 – FINAL TIGHT CONTROL
================================ */
/* 01–04 数字 ↔ 标题 */
.section.work .num {
  margin-bottom: 8px;
}

/* 标题 ↔ 正文 */
.section.work h2 {
  margin-bottom: 32px;
}

.greeting-wrap {
  display: grid;
  grid-template-columns: 160px 120px 1fr;
  gap: 48px;
}

.greeting-head {
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 12px;
}

.greeting-head .jp {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.greeting-head i {
  width: 1px;
  height: 88px;
  background: #111;
}

.section.greeting .greeting-text {
  font-family:
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Noto Sans JP",
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 13.5px;
  line-height: 2.15;
  letter-spacing: 0.015em;
  font-weight: 500;
  color: #444;
}

/* ===============================
   SIMPLE ITEM LIST
================================ */
.simple-item-list {
  max-width: 1200px;
  margin: 120px auto;
  padding: 0 40px;
}

.simple-item-title {
  text-align: center;
  margin-bottom: 80px;
}

.simple-item-title .line {
  width: 80px;
  height: 1px;
  background: #111;
  margin: 0 auto 24px;
}

.simple-item-title h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.simple-item-title p {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: #666;
}

.simple-item-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

/* ===============================
   CATEGORY LINK STYLE（最终版）
================================ */
.simple-item a {
  color: #111;
  text-decoration: none;
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;

  /* ✔ 关键：圆润 + 稍微有存在感 */
  font-weight: 600;
  letter-spacing: 0.06em;

  font-family:
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Noto Sans JP",
    "Helvetica Neue",
    Arial,
    sans-serif;

  /* ✔ 让日文字体更柔和（很多人不知道这个） */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===============================
   底部细线动画（高级感来源）
================================ */
.simple-item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: #111;
  transition: width 0.35s ease;
}

/* hover：线展开 */
.simple-item a:hover::after {
  width: 100%;
}

/* hover：轻微变淡，而不是变蓝（更日系） */
.simple-item a:hover {
  color: #555;
}


/* ===============================
   CATEGORY IMAGE UNIFY（只控制图片）
================================ */

/* ===============================
   CATEGORY ONLY（不要影响 NEWS）
================================ */

.simple-item-list .simple-item .thumb{
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.simple-item-list .simple-item .thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* NEWS IMAGE RESET（只让お知らせ恢复正常） */
.news .simple-item .thumb{
  aspect-ratio: auto;
  overflow: visible;
}

.news .simple-item .thumb img{
  width: 100%;
  height: auto;
  object-fit: contain;
}


/* ===============================
   ABOUT
================================ */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.section.about p {
  font-family:
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Noto Sans JP",
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 13.5px;
  line-height: 2.15;
  letter-spacing: 0.015em;
  font-weight: 500;
  color: #444;
}
/* ===============================
   ABOUT IMAGE SIZE CONTROL
================================ */
.section.about .simple-item img {
  max-height: 480px;        /* 👈 核心：控制“存在感” */
  width: 100%;
  object-fit: cover;
}
/* ===============================
   WORK (01–04)
================================ */
.work-wrap {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 60px;
}

.work-vertical {
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 16px;
}

.work-vertical span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
}

.work-vertical i {
  width: 1px;
  height: 140px;
  background: #111;
}

.section.work .num {
  font-size: 64px;
  font-weight: 300;
  color: #e3e3e3;
  margin-bottom: 24px;
}

.section.work h2 {
  font-size: 19px;
  margin-bottom: 32px;
}

.section.work p {
  font-family:
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Noto Sans JP",
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 13.5px;
  line-height: 2.1;
  letter-spacing: 0.015em;
  font-weight: 500;
  color: #444;
}

/* images */

/* ===============================
   IMAGES – FINAL (ONLY ONE)
================================ */

/* WORK 01–04 images – FINAL MATCH */
.section.work .img-row {
  display: grid;
  gap: 20px;

  max-width: 820px;   /* ⭐ 关键：剪到和参考版一模一样的存在感 */
  margin: 32px 0 0;  /* 左对齐，不居中 */
}

.section.work .img-row.col-3 {
  grid-template-columns: repeat(3, 1fr);
}

.section.work .img-row.col-4 {
  grid-template-columns: repeat(4, 1fr);
}

.section.work .img-row img {
  width: 100%;
  height: auto;
  display: block;
}

.img-row.col-3 {
  grid-template-columns: repeat(3, 1fr);
}

.img-row.col-4 {
  grid-template-columns: repeat(4, 1fr);
}

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


/* ===============================
   NEWS
================================ */
.section.news {
  padding: 160px 0;
}

.news-head {
  text-align: center;
  margin-bottom: 80px;
}

.news-head h2 {
  font-size: 20px;
  letter-spacing: 0.08em;
}

.news-head i {
  width: 120px;
  height: 1px;
  background: #111;
  margin: 16px auto 0;
}

.news-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.news-card {
  font-size: 13.5px;
  line-height: 2.1;
}

.news-date {
  font-size: 12px;
  color: #666;
}

.news-title {
  font-size: 14px;
  font-weight: 700;
  margin: 12px 0;
}

.news-more {
  font-size: 12px;
  border: 1px solid #111;
  padding: 6px 16px;
  text-decoration: none;
}

/* ===============================
   COMPANY
================================ */
.section.company {
  padding: 160px 0;
}

.company-wrap {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 48px;
  
}

.company-head {
  display: flex;
  gap: 48px;
  margin-bottom: 32px; /* ← 原来 80px，收紧 */
}

.company-label {
  writing-mode: vertical-rl;
  font-size: 18px;        /* ← 从 12px 放大到 18px */
  font-weight: 700;
  letter-spacing: 0.28em; /* 字变大后，间距稍微收一点更精致 */
  padding-right: 18px;    /* 给右边那条线多一点呼吸空间 */
  position: relative;
}


.company-label::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: #111;
}

.section.company th,
.section.company td {
  font-family:
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Noto Sans JP",
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 13.5px;
  line-height: 2.1;
  letter-spacing: 0.015em;
  font-weight: 500;
  color: #444;

  padding: 22px 0;   /* 👈 就加这一行 */
}

/* ===============================
   CONTACT
================================ */
/* PC：隐藏 work 区域里的横向标题 */

.section.contact {
  background: #f7f7f7;
}

.section.contact form {
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  padding: 100px 120px 120px;
}

.section.contact h2 {
  text-align: center;
  font-size: 22px;
  letter-spacing: 0.12em;
  margin-bottom: 40px;
}

.contact input,
.contact textarea {
  width: 100%;
  border: 1px solid #ddd;
  padding: 14px 16px;
  margin-bottom: 28px;
  box-sizing: border-box;
}

.textarea-message {
  min-height: 220px;
}

.contact .agree {
  font-size: 13px;
  margin: 40px 0;
}

.contact button {
  width: 100%;
  padding: 18px 0;
  background: #111;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.15em;
  border: none;
  cursor: pointer;
}

.contact button:hover {
  opacity: 0.8;
}

/* ===============================
   FOOTER
================================ */
.footer-credit {
  background: #f7f7f7;
  padding: 24px 0;   /* ← 关键：收紧高度 */
  text-align: center;
}


.footer-logo img {
  height: 48px;
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #777;
  margin: 0;           /* ← 防止浏览器默认撑高 */
}

/* ===============================
   SAFETY FUSE – PC 不显示手机竖排
   ⚠️ 必须在所有 media 外
================================ */
.sp-vertical-label,
.sp-vertical-line {
  display: none;
}
/* ===============================
   SP (FINAL CLEAN VERSION)
================================ */

/* ==================================================
   SP FINAL VERSION (ONLY ONE – CLEAN)
================================================== */

@media screen and (max-width: 768px) {

  /* ========== HEADER ========== */

  .header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  }

  .header-inner {
    height: 56px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav,
  .header-sns {
    display: none !important;
  }
   
.menu {
  display: none;
}

  /* ========== SECTION BASE ========== */

  .section {
    padding: 100px 24px;
  }

  .work-wrap {
    display: block;
  }

  .work-vertical {
    display: none !important;
  }


  /* ========== RIGHT VERTICAL LABEL (01~04) ========== */

  .section.work {
    position: relative;
  }

  .sp-vertical-label {
    position: absolute;
    right: 16px;
    top: 120px;
    z-index: 20;

    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 8px;

    writing-mode: vertical-rl;
  }

  .sp-vertical-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.32em;
    color: #111;
  }

  .sp-vertical-line {
    width: 1px;
    height: 96px;
    background: #111;
  }


  /* ========== GRID RESET ========== */

  .greeting-wrap,
  .about-wrap,
  .company-wrap,
  .news-grid {
    grid-template-columns: 1fr;
    padding-left: 0;
  }


  /* ========== CONTACT ========== */

  #contact-form {
    width: 100%;
    max-width: 100%;
    padding: 48px 16px 56px;
    margin: 0;
    box-sizing: border-box;
  }

}
/* =========================================
   PC WORK VERTICAL FIX (FINAL STABLE)
========================================= */

@media screen and (min-width: 769px) {

  /* 手机竖排结构在PC隐藏 */
  .sp-vertical-label {
    display: none !important;
  }

  /* 每个 work 区块 */
  .section.work {
    position: relative;
  }

}

/* ===============================
   LOGO RESPONSIVE FIX
================================ */

.company-image img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* ===== MOBILE WHITE SPACE FIX ===== */

html, body {
  overflow-x: hidden;
}


@media screen and (max-width: 768px) {

  .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .company-photo {
    width: 100%;
  }

  .company-photo img {
    width: 100%;
    height: auto;
    display: block;
  }

}
/* ===== FINAL WORK FIX ===== */
@media screen and (min-width: 769px) {
  .section.work {
    padding-left: 0 !important;
  }
}
@media screen and (min-width: 769px) {

  .section.work {
    position: relative;
    padding: 160px 0;
    padding-left: 140px;
  }

  /* 左侧竖排标题容器 */
  .work-vertical {
    position: absolute;
    left: 40px;
    top: 160px;

    writing-mode: vertical-rl;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: rgba(0,0,0,0.5);
  }

  /* 竖线 */
  .work-vertical i {
    display: block;
    width: 1px;
    height: 110px;
    background: #111;
    margin-left: 8px;
  }

}
/* =========================================
   MAGAZINE — FINAL OVERRIDE (ONLY THIS WORKS)
   放在 style.css 最底部，用来统一覆盖前面所有旧写法
========================================= */

/* 左侧容器必须成为定位基准 */
.work-magazine .magazine-left{
  position: relative !important;
  width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 01 / 02 / 03 / 04 数字（水印） */
.work-magazine .magazine-num{
  display: block !important;

  position: absolute !important;
  top: -12px !important;
  left: 4px !important;

  font-size: 44px !important;     /* ← 要改数字大小只改这里 */
  font-weight: 700 !important;

  color: rgba(0,0,0,0.10) !important;  /* ← 水印透明度 */
  line-height: 1;

  z-index: 1 !important;
  pointer-events: none;
}

/* 竖排标题 */
.work-magazine .magazine-title{
  writing-mode: vertical-rl;

  font-size: 15px !important;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.7;

  position: relative;
  z-index: 2;   /* 压在数字上面 */
}

/* 竖线 */
.work-magazine .magazine-line{
  width: 1px;
  height: 110px;
  background: #111;
  margin-top: 18px;
}

/* 布局稳定 */
.work-magazine .magazine-wrap{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 64px;
  align-items: start;
}
/* ===============================
   FIX 03–04 NUMBER LOOK LIKE 01–02
   （只修字形，不动布局）
================================ */

/* 找到 03、04 里的数字 class（它们现在不是 magazine-num） */
.work:nth-of-type(3) .work-num,
.work:nth-of-type(4) .work-num {

  font-weight: 700;        /* 和01/02一致粗度 */
  font-size: 44px;         /* ← 在这里改成和01/02一样的大小 */

  font-family:
    "Helvetica Neue",
    Arial,
    "Hiragino Kaku Gothic ProN",
    "Noto Sans JP",
    sans-serif;
}


  -webkit-font-smoothing: antialiased;  /* 关键：变圆润 */
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;

  letter-spacing: 0.02em;           /* 微调，让它不显细 */
}
/* ===============================
   FIX 03 / 04 NUMBER STYLE
   让它和 01 / 02 字体质感完全一致
================================ */

.section.work .num {
  font-family:
    "Helvetica Neue",
    Arial,
    sans-serif !important;

  font-weight: 700 !important;
  font-size: 44px !important;   /* ← 这里控制 01/02 大小 */
  color: rgba(0,0,0,0.10);
  letter-spacing: 0 !important;
}

/* ===== COMPANY：只移动公司信息内容，不动标题 ===== */
.section.company .company-info table {
  margin-left: 80px;
}

/* ===== COMPANY：缩小右侧 logo 尺寸 ===== */
.section.company .company-logo img {
  width: 200px;   /* 原来 150px → 增加约 35px = 大约 +1cm */
  height: auto;
}
.section.company .company-logo {
  transform: translateX(-110px);  /* 再向左约 35px ≈ 1cm */
}
/* ===== COMPANY：公司信息行距收紧 ===== */
.section.company table {
  border-collapse: collapse;   /* 去掉表格默认空隙 */
}

.section.company th,
.section.company td {
  padding: 8px 0;              /* 原来浏览器默认大约是16px，这里减半 */
  line-height: 1.6;            /* 控制文字上下呼吸感 */
}

/* ===============================
   WORK MAIN TITLE（私たちの仕事）
   最终版：大・圆润・黑・粗
================================ */
/* WORK 主标题 */
.work-title{
  font-size: 44px;              /* ← 控制大小 */
  font-weight: 800;             /* 粗体 */
  color: #111;                  /* 纯黑 */

  text-align: center;
  letter-spacing: 0.08em;

  margin-bottom: 80px;

  /* 日文字体圆润感 */
  font-family:
    "Hiragino Maru Gothic ProN",
    "Hiragino Maru Gothic Pro",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
}

/* WORK 03 IMAGE SIZE（只作用03）*/
.section.work:nth-of-type(3) .img-row {
  max-width: 820px;   /* ← 在这里控制03整体大小 */
  width: 100%;
  margin: 0 auto;
  gap: 24px;
}

/* ===============================
   WORK 02 IMAGE SIZE UP（只放大02）
================================ */

/* 锁定第2个 work（02） */
.section.work:nth-of-type(2) .img-row {
  max-width: 960px;   /* ← 让它比现在更展开 */
  gap: 24px;          /* 图之间间距同步放松一点 */
}
/* ===============================
   FORCE OVERRIDE — WORK 02 ONLY
   强制解除之前 820px 限制
================================ */

.section.work.work-magazine:nth-of-type(2) .img-row{
  max-width: 960px !important;   /* 直接覆盖旧的 820px */
}
/* ===============================
   WORK 02 — SIZE CONTROL（精准控制）
================================ */

.work-02 .img-row{
  max-width: 960px;
  gap: 24px;
}
/* ===============================
   WORK 02 / 03 — IMAGE WIDTH CONTROL
   （覆盖之前所有限制，只精准作用02、03）
================================ */

/* 解除旧的 820px 全局限制 */
.work-02 .img-row,
.work-03 .img-row{
  max-width: none;
}

/* 02：放大一点（流程展示型） */
.work-02 .img-row{
  width: 960px;      /* ← 这里决定02大小 */
  gap: 24px;
}

/* 03：收紧一点（说明型） */
.work-03 .img-row{
  width: 700px;
  max-width: none;   /* ← 关键：解除之前遗留的限制 */
  gap: 16px;
}

/* ===============================
   FINAL FORCE — ONLY WORK 02
   把02从旧规则手里抢回来
================================ */

.work-02 .img-row{
  width: 960px !important;
  max-width: 960px !important;
}

/* ===============================
   WORK 01–04 BACKGROUND（固定背景版）
================================ */

.work-bg{
  background-image: url("./images/workbackground.jpg"); /* 你的文件名 */
  background-repeat: no-repeat;
  background-position: center top;

  background-size: 1400px auto;   /* 保持清晰，不拉伸 */
  background-attachment: fixed;   /* ← 关键：让01–04在同一张图上“滑动” */
}

/* 让里面的section不要盖住背景 */
.work-bg .section{
  background: transparent;
}
/* ===== WORK TITLE FORCE OVERRIDE ===== */
.section.work .work-title{
  font-size: 32px !important;
  font-weight: 800 !important;
  color: #111 !important;

  text-align: center;
  letter-spacing: 0.08em;
  margin-bottom: 80px;

  font-family:
    "Hiragino Maru Gothic ProN",
    "Hiragino Maru Gothic Pro",
    "Yu Gothic",
    "Meiryo",
    sans-serif !important;
}
/* ===== HEADER LIST DOT REMOVE ===== */
header ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

header li{
  list-style: none;
}
/* ===== REMOVE STRAY BAR UNDER LOGO ===== */
header div{
  background: none !important;
  height: auto !important;
}

header hr{
  display: none !important;
}
header::after,
header::before{
  display: none !important;
  content: none !important;
}
/* ===== PC 强制关闭误出现的 hamburger ===== */
@media screen and (min-width: 769px) {

  .menu {
    display: none !important;
  }

  .menu span {
    display: none !important;
  }

}
/* ===============================
   LOGO STYLE (for all pages)
================================ */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;   /* 去掉蓝色下划线 */
  color: #111;             /* 不要浏览器默认蓝色 */
}

.logo img {
  height: 48px;            /* 控制 logo 大小 ← 可调整 */
  width: auto;
  display: block;
}

.logo span {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* hover 时轻微变化（高级感） */
.logo:hover {
  opacity: 0.7;
}
/* ===============================
   SP：彻底关闭 PC 固定竖排（关键修复）
================================ */
@media screen and (max-width: 768px){

  .side-fixed,
  .pc-only{
    display: none !important;
  }

}
/* iOS 旧版本兼容 */
@supports not (height: 100svh){
  .hero-ph{
    height: 80vh;
  }
}
/* =========================================
   ✅ MOBILE FINAL FIX（放在文件最后！）
   专门修 iPhone 错位 / 留白 / 被PC布局影响
========================================= */
@media screen and (max-width:768px){

  /* 关闭PC两侧滚动竖排 */
  .side-fixed{
    display:none !important;
  }

  /* WORK 区块取消 PC 的左侧让位 */
  .section.work{
    padding-left:24px !important;
    padding-right:24px !important;
  }

  /* 固定背景在手机必须关闭，否则会制造超大留白 */
  .work-bg{
    background-attachment:scroll !important;
    background-size:cover;
  }

}
/* =========================================
   ✅ iPhone FIX — work-bg 在手机必须关闭 fixed
   放在 CSS 最底部！！
========================================= */
@media screen and (max-width:768px){

  .work-bg{
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center top;
  }

}
/* =========================================
   📱 MOBILE LAYOUT FINAL TUNE
   真正让手机回到“单栏阅读结构”
========================================= */
@media screen and (max-width:768px){

  /* ===== WORK 整体改为单栏 ===== */
  .magazine-wrap{
    display:block !important;
  }

  .magazine-left{
    width:auto;
    margin-bottom:24px;
    align-items:flex-start;
  }

  .magazine-num{
    position:static !important;
    font-size:32px !important;
    margin-bottom:8px;
  }

  .magazine-title{
    writing-mode:horizontal-tb !important;
    font-size:18px;
    letter-spacing:0.08em;
  }

  .magazine-line{
    display:none;
  }

  /* ===== 正文回到正常阅读宽度 ===== */
  .magazine-right{
    width:100%;
  }

  .section.work p{
    font-size:14px;
    line-height:2;
  }

  /* ===== 图片改为手机节奏（不要横排） ===== */
  .img-row{
    display:block !important;
    margin-top:24px;
  }

  .img-row img{
    width:100%;
    margin-bottom:16px;
  }

  /* ===== COMPANY 不要再左右结构 ===== */
  .company-wrap{
    display:block !important;
  }

  .company-logo{
    transform:none !important;
    margin-top:32px;
    text-align:center;
  }

  /* ===== CONTACT 上方留白压缩 ===== */
  .section.contact{
    padding-top:56px !important;
  }

}
/* =========================================
   🔥 REAL MOBILE RESET（把PC杂志布局彻底拆掉）
========================================= */
@media (max-width:768px){

  /* 1️⃣ WORK 外层不要再用背景容器限制 */
  .work-bg{
    padding:0 !important;
  }

  /* 2️⃣ 取消 PC 的 grid 结构 */
  .work-magazine .magazine-wrap{
    display:block !important;
  }

  /* 3️⃣ 左侧标题区 取消所有定位 */
  .work-magazine .magazine-left{
    position:static !important;
    width:auto !important;
    margin-bottom:20px;
    align-items:flex-start !important;
  }

  /* 4️⃣ 数字不要再 absolute */
  .work-magazine .magazine-num{
    position:static !important;
    font-size:28px !important;
    margin-bottom:6px;
    color:#ccc;
  }

  /* 5️⃣ 竖排标题改回横排 */
  .work-magazine .magazine-title{
    writing-mode:horizontal-tb !important;
    font-size:18px !important;
    letter-spacing:.08em;
    line-height:1.6;
  }

  /* 6️⃣ 竖线在手机不需要 */
  .work-magazine .magazine-line{
    display:none !important;
  }

  /* 7️⃣ 右侧内容恢复自然流 */
  .work-magazine .magazine-right{
    width:100% !important;
  }

  /* 8️⃣ 图片不要再横排 */
  .section.work .img-row{
    display:block !important;
    width:100% !important;
    max-width:none !important;
  }

  .section.work .img-row img{
    width:100% !important;
    height:auto;
    margin:0 0 14px 0;
  }

  /* 9️⃣ 把 PC 给 WORK 的左缩进彻底清掉 */
  .section.work{
    padding:60px 20px !important;
  }

  /* 🔟 COMPANY 也从双栏恢复 */
  .company-wrap{
    display:block !important;
  }

  .company-logo{
    transform:none !important;
    margin:24px 0 0;
    text-align:center;
  }

}
/* =========================================
   📱 MOBILE IMAGE TUNE（让图片不要贴满屏）
========================================= */
@media (max-width:768px){

  .section.work .img-row img{
    width:82% !important;      /* 原来100% → 收一点 */
    margin:0 auto 18px;        /* 居中 + 下方留白 */
    display:block;
    border-radius:4px;         /* 微圆角，会柔和很多 */

     .section.work .img-row img{
  width:88% !important;
  margin:0 auto 18px;
  display:block;
  border-radius:4px;
  box-shadow:0 8px 24px rgba(0,0,0,0.06);
}
  }

}
/* =========================================
   📱 WORK 图片改为手机两列排版（01–03）
========================================= */
@media (max-width:768px){

  .section.work .img-row{
    display:grid !important;
    grid-template-columns: 1fr 1fr;   /* 两列 */
    gap:12px;                         /* 图片之间留一点空气 */
  }

  .section.work .img-row img{
    width:100% !important;
    margin:0 !important;
    border-radius:4px;
    display:block;
  }

}
/* ===== HERO TITLE STRUCTURE ===== */
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
}
/* ===== Category 卡片整块可点击 ===== */
.simple-item-grid a.simple-item{
  display:block;
  text-decoration:none;
  color:inherit;
}

/* 让 hover 效果作用在整块 */
.simple-item-grid a.simple-item:hover{
  opacity:0.85;
  transition:0.3s;
}

/* 防止图片自己挡住点击 */
.simple-item-grid a.simple-item img{
  pointer-events:none;
  display:block;
}
/* ===== Category 字体改为圆体 ===== */
.simple-item-grid p{
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight:500;
  letter-spacing:0.04em;
}
/* ===== Logo Clickable Fix ===== */
.site-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  text-decoration: none;
  color: inherit;

  /* 🔥 关键修复 */
  position: relative;
  z-index: 10;
}
.site-title img {
  display: block;
  height: 34px;
  width: auto;
}
/* ===== Logo 右侧公司名 ===== */
.site-title span {
  font-family: 'M PLUS Rounded 1c', sans-serif;  /* 圆润字体 */
  font-weight: 700;                              /* 粗体 */
  font-size: 20px;                               /* 稍微有存在感 */
  letter-spacing: 0.04em;                         /* 微微拉开更日系 */
  color: #111;                                   /* 深灰黑，不死黑 */
}
/* 图片点击不出现蓝框 */
.thumb a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.thumb a img {
  display: block;
}
/* ===== 全站 Header 字体统一 ===== */

/* LOGO 右边的 OneCraft Inc. */
.site-title span {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #222;
}

/* 导航文字统一 */
.nav a {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #222;
}

/* 防止子页面被别的样式覆盖 */
header,
.header,
.header-inner {
  font-family: 'M PLUS Rounded 1c', sans-serif;
}
/* ===============================
   COMPANY TABLE ALIGN FIX
================================ */

/* 让表格变成固定布局 */
.company table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* 左边标题列固定宽度 → 对齐关键 */
.company th {
  width: 140px;
  text-align: left;
  font-weight: 600;
  vertical-align: top;
  padding: 12px 0;
}

/* 右侧内容自动排 */
.company td {
  vertical-align: top;
  padding: 12px 0;
}

/* 去掉 th 自带加粗过重 */
.company th {
  font-weight: 500;
}
