/* =========================================
   simranking.jp - style.css (shared)
   Purpose: readable, light, stable layout
   ========================================= */

/* ----- Reset / Base ----- */
* {
    box-sizing: border-box;
}

html:focus-within {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
    line-height: 1.7;
    letter-spacing: 0.02em;
    color: #111;
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

a:hover {
    opacity: 0.85;
}

p {
    margin: 0 0 1rem;
}

ul,
ol {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

li {
    margin: 0.25rem 0;
}

h1,
h2,
h3 {
    line-height: 1.35;
    letter-spacing: 0.01em;
    margin: 0 0 0.75rem;
}

h1 {
    font-size: 1.55rem;
}

h2 {
    font-size: 1.25rem;
    margin-top: 1.75rem;
}

h3 {
    font-size: 1.05rem;
    margin-top: 1rem;
}

small,
.small {
    font-size: 0.9rem;
    opacity: 0.9;
}

strong {
    font-weight: 700;
}

.container {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
}

/* ----- Accessibility: Skip link ----- */
.skip-link {
    position: absolute;
    left: -999px;
    top: 10px;
    padding: 10px 12px;
    background: #111;
    color: #fff;
    border-radius: 8px;
    z-index: 9999;
}

.skip-link:focus {
    left: 16px;
    outline: 2px solid #fff;
}

/* ----- Header / Footer ----- */
.site-header {
    border-bottom: 1px solid #e6e6e6;
    background: #fafafa;
}

.site-header .container {
    padding: 18px 0 12px;
}

.site-badge {
    display: inline-block;
    font-size: 0.85rem;
    padding: 4px 10px;
    border: 1px solid #e6e6e6;
    border-radius: 999px;
    background: #fff;
    margin-bottom: 10px;
}

.lead {
    margin: 10px 0 12px;
    color: #222;
    opacity: 0.95;
}

.site-footer {
    border-top: 1px solid #e6e6e6;
    background: #fafafa;
    margin-top: 28px;
}

.site-footer .container {
    padding: 18px 0;
}

/* ----- Nav ----- */
.nav ul {
    list-style: none;
    padding-left: 0;
    margin: 12px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav a {
    display: inline-block;
    padding: 8px 10px;
    border: 1px solid #e6e6e6;
    border-radius: 999px;
    background: #fff;
    text-decoration: none;
    font-size: 0.92rem;
}

.nav a:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

/* ----- Sections / blocks ----- */
.notice,
.note,
.mini-cta {
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    padding: 14px 14px;
    background: #fff;
    margin-top: 16px;
}

.notice {
    background: #fff;
}

.note {
    background: #fbfbfb;
}

.mini-cta {
    background: #f7f7f7;
}

.notice h2,
.note h3,
.mini-cta strong {
    margin-top: 0;
}

.notice ul {
    margin-bottom: 0;
}

.link-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.link-list li {
    margin: 8px 0;
}

.link-list a {
    text-decoration: underline;
}

/* ----- Cards ----- */
.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
}

.card {
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    padding: 14px;
    background: #fff;
}

.card h3 {
    margin-top: 0;
}

.card ul {
    margin-bottom: 0.75rem;
}

@media (min-width: 760px) {
    .cards {
        grid-template-columns: 1fr 1fr;
    }
}

/* ----- Buttons / CTAs ----- */
.cta {
    margin-top: 12px;
    margin-bottom: 0;
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

.btn:hover {
    opacity: 0.9;
}

.btn:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

/* ----- Tables ----- */
.table-wrap {
    margin-top: 12px;
    overflow: auto;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    background: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
    /* enables horizontal scroll on mobile */
}

th,
td {
    padding: 12px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    text-align: left;
    font-size: 0.95rem;
}

thead th {
    position: sticky;
    top: 0;
    background: #fafafa;
    border-bottom: 1px solid #e6e6e6;
    z-index: 1;
}

tbody tr:hover {
    background: #fcfcfc;
}

td a {
    text-decoration: underline;
}

/* ----- Steps (ordered list) ----- */
.steps {
    padding-left: 1.25rem;
    margin: 0.75rem 0 0;
}

.steps>li {
    margin: 0.6rem 0;
}

.steps h3 {
    margin-bottom: 0.35rem;
}

/* ----- Details / FAQ ----- */
details {
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    padding: 10px 12px;
    background: #fff;
    margin-top: 10px;
}

summary {
    cursor: pointer;
    font-weight: 700;
}

.details-body {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

details[open] {
    background: #fbfbfb;
}

/* ----- Links in content ----- */
main a {
    color: #111;
}

main a:hover {
    opacity: 0.85;
}

/* ----- Utilities ----- */
hr {
    border: none;
    border-top: 1px solid #e6e6e6;
    margin: 18px 0;
}