*,
*::before,
*::after {
box-sizing: border-box;
} html {
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
} :is(img, picture, svg, video, canvas) {
display: block;
max-width: 100%;
height: auto;
} :is(button, input, select, textarea) {
font: inherit;
} :is(h1, h2, h3, h4, h5, h6, p, ol, ul) {
margin: 0;
}
:is(ol, ul) {
padding: 0;
list-style: none;
} :is(p, h1, h2, h3, h4, h5, h6) {
overflow-wrap: break-word;
} :focus-visible {
outline-offset: 3px;
}
figure {
margin: 0;
} table {
border-collapse: collapse;
} :root {
--color-text: #333;
--color-link: #0066cc;
--color-background: #fafafa;
--color-border: #eee;
--color-surface: #fff;
--color-surface-hover: #f5f5f5;
--color-surface-active: #e0e0e0;
--color-surface-disabled: #f5f5f5;
--color-button-bg: #1e1e1e;
--color-button-bg-hover: #2c2c2c;
--color-button-text: #e1e1e1;
}
@media (prefers-color-scheme: dark) {
:root {
--color-text: #e1e1e1;
--color-link: #66b2ff;
--color-background: #121212;
--color-border: #2e2e2e;
--color-surface: #1e1e1e;
--color-surface-hover: #2c2c2c;
--color-surface-active: #3a3a3a;
--color-surface-disabled: #252525;
--color-button-bg: #fff;
--color-button-bg-hover: #f5f5f5;
--color-button-text: #333;
}
} body {
display: flex;
flex-direction: column;
min-height: 100vh;
font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
color: var(--color-text);
background-color: var(--color-background);
}
a {
color: var(--color-link);
}
:is(h1, h2, h3, h4, h5, h6) {
font-feature-settings: "palt";
} .l-wrapper {
flex: 1;
}
.l-main {
width: 100%;
max-width: 620px;
margin-inline: auto;
padding-block-start: 0.75rem;
}
@media (width <=620px) {
.l-main {
padding-inline: 0.75rem;
}
}
.l-main--wide {
max-width: 1000px;
}
.l-main__heading {
font-size: 2rem;
margin-block-end: 1.5rem;
}
@media (width <=620px) {
.l-main__heading {
font-size: 1.25rem;
}
}
.l-main__subheading {
font-size: 1.5rem;
margin-block-end: 1.5rem;
}
@media (width <=620px) {
.l-main__subheading {
font-size: 1.25rem;
}
}
.l-main__section {
margin-block-end: clamp(3rem, 8vw, 6rem);
} .l-header {
display: flex;
justify-content: center;
border-bottom: 1px solid var(--color-border);
}
.l-header__logo {
color: var(--color-text);
font-size: 1.5rem;
font-weight: 700;
padding-block: 1.5rem;
text-decoration: none;
}
.l-header__logo:hover {
text-decoration: underline;
}
.l-header__logo svg {
height: 24px;
fill: var(--color-text);
}
.l-header__logo img {
display: block;
width: auto;
height: 24px;
} .page-heading {
text-align: center;
margin-block-end: 3rem;
width: 100%;
font-size: 1rem;
font-weight: normal;
} .breadcrumbs {
margin-block-end: 0.75rem;
width: 100%;
font-size: 1rem;
}
.breadcrumbs__list {
display: flex;
width: 100%;
white-space: nowrap;
overflow-x: auto;
scrollbar-width: none;
align-items: center;
}
.breadcrumbs__list::-webkit-scrollbar {
display: none;
}
.breadcrumbs__item {
flex-shrink: 0;
}
.breadcrumbs__item a {
color: var(--color-text);
text-decoration: none;
}
.breadcrumbs__item a:hover {
text-decoration: underline;
}
.breadcrumbs__separator {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.breadcrumbs__separator svg {
width: 20px;
height: 20px;
fill: var(--color-text);
position: relative;
top: 1px;
} .posts {
display: grid;
gap: 4px;
margin-block-end: 1.5rem;
margin-inline: -0.375rem;
}
@media (width <=620px) {
.posts {
gap: 16px 4px;
margin-inline: -0.25rem;
}
}
.posts--standard {
grid-template-columns: repeat(3, 1fr);
}
@media (width <=620px) {
.posts--standard {
grid-template-columns: repeat(2, 1fr);
}
}
@media (width <=620px) {
.posts--featured {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 4px;
}
.posts--featured .post:first-child {
grid-column: 1 / -1;
}
}
@media (width >620px) {
.posts--featured {
display: grid;
grid-template-columns: repeat(6, 1fr); gap: 4px;
}
.posts--featured .post:nth-child(-n+2) {
grid-column: span 3;
}
.posts--featured .post:nth-child(n+3) {
grid-column: span 2;
}
}
.post {
position: relative;
}
.post__link {
padding: 0.375rem;
display: block;
color: var(--color-text);
text-decoration: none;
transition: background-color 0.2s ease;
border-radius: 0.75rem;
}
@media (width <=620px) {
.post__link {
padding: 0.25rem;
}
}
.post__link:hover {
background-color: var(--color-surface-hover);
}
.post__link:hover .post__image img {
transform: scale(1.05);
}
.post__image {
overflow: hidden;
margin-block-end: 0.75rem;
border-radius: 0.75rem;
aspect-ratio: 16 / 9;
}
.post__image img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
.post__no-image {
width: 100%;
height: 100%;
background-color: var(--color-surface);
}
.post__title {
margin: 0;
font-size: 0.875rem;
font-weight: 700;
line-height: 1.5;
font-feature-settings: "palt";
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
line-clamp: 3;
overflow: hidden;
height: calc(1em * 1.5 * 3);
} .pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 4px;
margin-block-end: 1.5rem;
}
.pagination__pages {
display: flex;
align-items: center;
gap: 4px;
}
.pagination__prev,
.pagination__next,
.pagination__pages .page-numbers {
display: flex;
align-items: center;
justify-content: center;
min-width: 44px;
height: 44px;
padding: 0 8px;
border-radius: 12px;
color: var(--color-text);
text-decoration: none;
}
.pagination__pages .page-numbers {
border: 1px solid var(--color-border);
background-color: var(--color-surface);
}
.pagination__prev svg,
.pagination__next svg {
display: block;
width: 20px;
height: 20px;
fill: currentColor;
}
.pagination__pages .current {
cursor: default;
background-color: var(--color-surface-active);
}
.pagination__ellipsis {
cursor: default;
}
.pagination__prev:hover,
.pagination__next:hover,
.pagination__pages a.page-numbers:hover {
background-color: var(--color-surface-hover);
}
.pagination__prev--disabled,
.pagination__next--disabled {
color: var(--color-surface-disabled);
cursor: default;
}
.pagination__prev--disabled:hover,
.pagination__next--disabled:hover {
background-color: transparent;
} .search__message {
margin-block-end: 48px;
}
.search-area {
width: 100%;
margin-block-end: clamp(3rem, 8vw, 6rem);
}
.search-area__inner {
width: 100%;
}
.search-area__form {
width: 100%;
}
.search-area__label {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.search-area__form-content {
position: relative;
width: 100%;
}
.search-area__input {
width: 100%;
padding-block: 1rem;
padding-inline: 3rem 1rem;
border: 1px solid var(--color-border);
border-radius: 64px;
background-color: var(--color-surface);
color: var(--color-text);
font: inherit;
}
.search-area__button {
position: absolute;
top: 50%;
left: 12px;
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
padding: 0;
border: 0;
background-color: transparent;
color: var(--color-text);
transform: translateY(-50%);
cursor: pointer;
}
.search-area__button:hover {
color: var(--color-link);
}
.search-area__icon {
display: block;
}
.search-area__input:focus-visible {
outline: 2px solid var(--color-link);
outline-offset: -1px;
} .youtube-embed {
margin-block-end: 1.8rem;
}
.youtube-embed__button {
position: relative;
display: block;
width: 100%;
padding: 0;
border: 0;
background: none;
cursor: pointer;
}
.youtube-embed__thumbnail {
display: block;
width: 100%;
height: auto;
}
.youtube-embed__play {
position: absolute;
top: 50%;
left: 50%;
width: 68px;
height: 48px;
border-radius: 10px;
background: #ff0000;
transform: translate(-50%, -50%);
}
.youtube-embed__play::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
border-top: 8px solid transparent;
border-bottom: 8px solid transparent;
border-left: 13px solid #fff;
transform: translate(-40%, -50%);
}
.youtube-embed__iframe {
display: block;
width: 100%;
aspect-ratio: 16 / 9;
border: 0;
} .btn {
display: block;
border-radius: 64px;
text-decoration: none;
}
.btn-primary {
background-color: var(--color-button-bg);
color: var(--color-button-text);
border: 0;
font-weight: 700;
cursor: pointer;
padding-block: 0.75rem;
padding-inline: 1.5rem;
margin-inline: auto;
width: fit-content;
}
.btn-primary:hover {
background-color: var(--color-button-bg-hover);
} .l-footer {
border-top: 1px solid var(--color-border);
padding-block-start: 1.5rem;
}
.l-footer__content {
max-width: 1080px;
margin: 0 auto;
}
.copyright {
text-align: center;
padding-block-end: 1.5rem;
color: var(--color-text);
}