@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --deer: #C2703D; --deer2: #E0A96D; --cream: #FBF3E7; --ink: #5A4632;
  --sub: #8A7361; --line: #EEE1CC; --card: #FFFDF9; --blush: #F4A6A0;
}
body {
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', -apple-system, 'Hiragino Kaku Gothic ProN', sans-serif;
  color: var(--ink); background: var(--cream); line-height: 1.85; -webkit-font-smoothing: antialiased;
}
a { color: var(--deer); text-decoration: none; }
a:hover { text-decoration: underline; }

/* header — 全站固定统一 */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(251,243,231,.92); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 20px; max-width: 1040px; margin: 0 auto; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 22px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .deer { font-size: 30px; }
.brand small { display: block; font-size: 11px; color: var(--sub); letter-spacing: 2px; font-weight: 500; }
.navlinks { display: flex; align-items: center; margin-left: 24px; }
.navlinks a { position: relative; font-size: 15px; color: var(--sub); padding: 6px 22px; white-space: nowrap; line-height: 1.2; }
.navlinks a:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 15px; background: rgba(138,115,97,.4); }
.navlinks a:hover { color: var(--deer); text-decoration: none; }
.navlinks a.active { color: var(--deer); font-weight: 700; }
/* 语言下拉 */
.langsw { margin-left: auto; }
#langSelect {
  -webkit-appearance: none; appearance: none; font: inherit; font-size: 14px; color: var(--ink);
  background-color: #fff;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23C2703D" stroke-width="2" stroke-linecap="round"><path d="M6 9l6 6 6-6"/></svg>');
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px;
  border: 1px solid var(--line); border-radius: 24px; padding: 8px 36px 8px 18px; cursor: pointer;
}
#langSelect:hover { border-color: var(--deer2); }
#langSelect:focus { outline: none; border-color: var(--deer); }

/* hero */
.hero { background: linear-gradient(120deg, #F7D9A9, #E8A96A); color: #5A3B1C; }
.hero .inner { max-width: 1040px; margin: 0 auto; padding: 70px 24px 80px; }
.hero h1 { font-size: 40px; line-height: 1.4; letter-spacing: 1px; }
.hero p { font-size: 17px; margin-top: 18px; max-width: 560px; opacity: .92; }
.hero .cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; background: #fff; color: var(--deer); padding: 14px 30px; border-radius: 40px; font-weight: 700; font-size: 15px; box-shadow: 0 8px 24px rgba(154,96,40,.22); }

/* sections */
.wrap { max-width: 1040px; margin: 0 auto; padding: 60px 24px; }
.wrap h2 { font-size: 26px; margin-bottom: 8px; }
.wrap .lead { color: var(--sub); margin-bottom: 34px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px; }
.step .n { width: 40px; height: 40px; line-height: 40px; text-align: center; border-radius: 50%; background: var(--cream); color: var(--deer); font-weight: 700; }
.step h3 { font-size: 17px; margin: 16px 0 8px; }
.step p { font-size: 13px; color: var(--sub); }
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.fc { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; }
.fc .ico { font-size: 28px; }
.fc h3 { font-size: 17px; margin: 12px 0 8px; }
.fc p { font-size: 13px; color: var(--sub); }

/* legal doc pages */
.doc { max-width: 860px; margin: 0 auto; padding: 40px 24px 90px; }
.doc h1 { font-size: 28px; margin-bottom: 6px; }
.doc .updated { color: var(--sub); font-size: 13px; margin-bottom: 30px; }
.doc h2 { font-size: 19px; margin: 34px 0 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.doc h2:first-of-type { border-top: none; }
.doc p, .doc li { font-size: 15px; color: #4a3b2b; }
.doc ul, .doc ol { padding-left: 22px; margin: 8px 0; }
.doc li { margin: 4px 0; }
.doc .note { background: #FBEAE7; border-radius: 14px; padding: 14px 18px; font-size: 13px; color: var(--deer); margin: 18px 0; }
.doc .todo { background: #FFF6DA; color: #9a7b00; border-radius: 6px; padding: 1px 8px; font-size: 13px; }

/* tokushoho table */
.tsh { width: 100%; border-collapse: collapse; margin-top: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tsh th, .tsh td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.tsh th { width: 34%; background: var(--cream); color: var(--ink); font-weight: 700; }
.tsh td { color: #4a3b2b; }
.tsh tr:last-child th, .tsh tr:last-child td { border-bottom: none; }

/* footer */
.foot { background: #fff; border-top: 1px solid var(--line); }
.foot .inner { max-width: 1040px; margin: 0 auto; padding: 40px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot .co { font-size: 13px; color: var(--sub); line-height: 1.9; }
.foot .co b { color: var(--ink); font-size: 15px; }
.foot .fl a { display: block; font-size: 14px; color: var(--sub); margin: 6px 0; }
.foot .cc { text-align: center; font-size: 12px; color: var(--sub); padding: 18px; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .hero h1 { font-size: 30px; } .steps, .feat { grid-template-columns: 1fr 1fr; }
  .tsh th { width: 40%; }
  .nav { flex-wrap: wrap; gap: 10px 12px; padding: 12px 16px; }
  .brand { font-size: 19px; } .brand .deer { font-size: 25px; }
  .navlinks { order: 3; width: 100%; margin-left: 0; overflow-x: auto; justify-content: flex-start; }
  .navlinks a { font-size: 14px; padding: 6px 14px; }
  .langsw { margin-left: auto; }
  #langSelect { font-size: 13px; padding: 7px 32px 7px 14px; }
}
