:root{color-scheme:light;--ink:#152639;--muted:#5b6470;--paper:#faf7f0;--gold:#966c30;--line:#d8d2c7}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:2rem}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Yu Gothic UI','Meiryo',sans-serif;font-size:16px;line-height:1.9}a{color:inherit}a:focus-visible{outline:3px solid #ad4639;outline-offset:6px}.skip{position:absolute;left:1rem;top:-5rem;z-index:5;padding:.6rem 1rem;background:white}.skip:focus{top:1rem}.site-header{max-width:1440px;margin:auto;padding:28px 5%;display:flex;justify-content:space-between;align-items:center;gap:24px;border-bottom:1px solid var(--line)}.brand{display:inline-flex;gap:12px;align-items:center;font-family:'Yu Mincho','Hiragino Mincho ProN',serif;font-size:24px;font-weight:600;text-decoration:none;white-space:nowrap}.brand>span{font-size:30px;color:var(--gold)}nav{display:flex;align-items:center;gap:34px;font-size:14px}nav a{text-decoration:none}nav a:hover{text-decoration:underline;text-underline-offset:6px}.nav-cta{border-bottom:1px solid var(--ink);padding-bottom:4px}.nav-cta span{margin-left:18px}.hero{max-width:1440px;margin:auto;display:grid;grid-template-columns:.88fr 1.12fr;align-items:center;padding:64px 5% 76px;gap:20px;min-height:650px}.eyebrow{font-size:14px;font-weight:600;letter-spacing:.14em;color:var(--gold);margin:0 0 22px}h1,h2,h3{font-family:'Yu Mincho','Hiragino Mincho ProN',serif;font-weight:500}h1{font-size:clamp(36px,4.2vw,60px);line-height:1.6;letter-spacing:.05em;margin:0 0 26px}.intro{font-size:17px;line-height:2.1;margin:0 0 32px}.button{display:inline-flex;justify-content:space-between;align-items:center;gap:64px;padding:17px 27px;background:var(--ink);color:white;text-decoration:none;font-weight:600;transition:background .2s}.button:hover{background:#2d465c}.method-note{font-size:13px;color:var(--muted);margin:14px 0 0}.hero-art{margin:0;min-width:0}.hero-art img{width:100%;height:auto;display:block;mix-blend-mode:multiply}.hero-art figcaption{text-align:right;font-family:'Yu Mincho',serif;letter-spacing:.18em;font-size:14px;margin-top:16px;color:var(--muted)}.section{max-width:1180px;margin:auto;padding:75px 30px}.about{border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:0 72px;align-items:start}.about>.eyebrow{grid-column:1/-1}.about h2{font-size:32px;line-height:1.8;margin:0}.about>p:last-child{margin:8px 0 0;line-height:2.2}footer{border-top:1px solid var(--line);max-width:1440px;margin:auto;padding:32px 5%;display:flex;align-items:center;justify-content:space-between;gap:24px}footer p{font-size:14px;color:var(--muted)}@media(max-width:850px){.hero{padding-top:40px;grid-template-columns:1fr 1fr;min-height:0}.intro{font-size:16px}.button{gap:30px}h1{font-size:36px}.about{gap:20px 36px}.about h2{font-size:27px}}@media(max-width:650px){.site-header{padding:18px 22px}.brand{font-size:20px}.brand>span{font-size:25px}nav{gap:0}nav>a:first-child{display:none}.nav-cta span{margin-left:8px}.hero{display:flex;flex-direction:column;padding:36px 22px 42px;gap:22px;align-items:stretch}.eyebrow{font-size:13px;margin-bottom:16px}h1{font-size:clamp(32px,9vw,44px);line-height:1.5;margin-bottom:20px}.intro{margin-bottom:24px;line-height:2}.button{width:100%}.method-note{font-size:12px}.hero-art figcaption{font-size:13px;margin-top:8px}.section{padding:45px 22px}.about{display:block}.about h2{margin-bottom:20px}.about>p:last-child{margin-top:0}footer{padding:25px 22px;display:block}footer p{font-size:13px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.button{transition:none}}
.trigrams{padding-top:25px}.section-heading h2{font-size:32px;line-height:1.7;margin:0 0 32px}.trigram-list{list-style:none;display:grid;grid-template-columns:repeat(8,1fr);padding:0;margin:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.trigram-list li{text-align:center;padding:25px 8px}.symbol{font-family:'Segoe UI Symbol',serif;font-size:38px;line-height:1.2;color:var(--gold)}.trigram-list h3{font-size:23px;margin:10px 0 2px}.trigram-list small{font:14px 'Yu Gothic UI','Meiryo',sans-serif;color:var(--muted);display:block}.trigram-list p{font-size:14px;margin:8px 0 0;white-space:nowrap}.sixty-four{display:grid;grid-template-columns:1fr 1.5fr;gap:55px;align-items:center;margin-top:48px}.formula{font-family:Georgia,serif;font-size:48px;white-space:nowrap}.formula span{font-size:25px;color:var(--gold);padding:0 5px}.sixty-four h3{font-size:24px;margin:0 0 10px}.sixty-four p{margin:0;color:var(--muted)}.start{background:var(--ink);color:#faf7f0}.start .eyebrow{color:#d7ac62}.start h2{font-size:34px;line-height:1.7;margin:0 0 36px}.steps{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:48px;padding:0;margin:0 0 36px}.steps>li{border-top:1px solid #52606b;padding-top:18px}.steps>li>span{font:16px Georgia,serif;color:#d7ac62}.steps h3{font-size:23px;margin:12px 0}.steps p{font-size:16px;color:#d2d9de;margin:0}.start .button{background:#f6eedf;color:var(--ink)}.start .button:hover{background:#e7d8ba}@media(max-width:850px){.trigram-list{grid-template-columns:repeat(4,1fr)}.sixty-four{gap:25px}.formula{font-size:38px}.steps{gap:24px}}@media(max-width:650px){.section-heading h2{font-size:27px}.trigram-list li{padding:18px 4px}.trigram-list p{font-size:12px}.trigram-list h3{font-size:21px}.sixty-four{display:block;margin-top:30px}.formula{margin-bottom:20px}.sixty-four h3{font-size:23px}.start h2{font-size:27px}.steps{display:block}.steps li{margin-bottom:26px}.steps h3{margin:6px 0}.trigrams{padding-top:10px}}

.hexagram-directory{margin-top:36px}.table-guide{margin:0 0 12px;font-size:14px;color:var(--muted)}.table-scroll-hint{display:none;font-size:14px;color:var(--muted)}.hexagram-scroll{overflow-x:auto;border:1px solid var(--line);scrollbar-color:#966c30 #ece6db}.hexagram-scroll:focus-visible{outline:3px solid #966c30;outline-offset:4px}.hexagram-table{width:100%;min-width:1040px;border-collapse:separate;border-spacing:0;table-layout:fixed;line-height:1.5}.hexagram-table caption{text-align:left;padding:12px 16px;background:var(--paper);font-family:'Yu Mincho',serif;font-size:20px}.hexagram-table th{padding:16px 8px;font-size:18px;white-space:nowrap}.hexagram-table thead th{background:#e4c482;color:#152639;border-right:1px solid #faf7f0}.hexagram-table th:first-child{width:92px}.hexagram-table tbody th{position:sticky;left:0;background:#244b5c;color:white;z-index:1;border-bottom:1px solid #617d89}.hexagram-table .table-corner{font-size:13px;background:#f0e7d7}.hexagram-table td{padding:0;border-right:1px solid #fff;border-bottom:1px solid #fff;background:#edf0ef}.hexagram-table tr:nth-child(even) td{background:#e2e8e7}.hexagram-table td a{display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:94px;padding:12px 9px;text-decoration:none}.hexagram-number{font:14px Georgia,serif;color:#65717a}.hexagram-name{font-size:16px;overflow-wrap:anywhere}.hexagram-table td a:hover{background:#f2dfb7}.hexagram-table td a:focus-visible{outline-offset:-4px;background:#f2dfb7}.hexagram-table td a:hover .hexagram-name{text-decoration:underline;text-underline-offset:4px}@media(max-width:1150px){.table-scroll-hint{display:block}}
