/*
Theme Name: zoology theme
Theme URI: https://zoology.jp
Author: DAVINCI inc.
Author URI: https://davinciinc.co.jp
Version: 1.0
*/

/* --------------------------------------------------
 common
--------------------------------------------------- */

/* font setting
--------------------------------------------------- */

@charset "UTF-8";


/* reset
--------------------------------------------------- */

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}:where([hidden]:not([hidden='until-found'])){display:none!important}:where(html){-webkit-text-size-adjust:none;color-scheme:dark light}@media (prefers-reduced-motion:no-preference){:where(html:focus-within){scroll-behavior:smooth}}:where(body){line-height:1.5;font-family:system-ui,sans-serif;-webkit-font-smoothing:antialiased}:where(input,button,textarea,select){font:inherit;color:inherit}:where(textarea){resize:vertical;resize:block}:where(button,label,select,summary,[role='button'],[role='option']){cursor:pointer}:where(:disabled){cursor:not-allowed}:where(label:has(>input:disabled),label:has(+input:disabled)){cursor:not-allowed}:where(button){border-style:solid}:where(a){color:inherit;text-underline-offset:.2ex}:where(ul,ol){list-style:none}:where(img,svg,video,canvas,audio,iframe,embed,object){display:block}:where(img,picture,svg){max-inline-size:100%;block-size:auto}:where(p,h1,h2,h3,h4,h5,h6){overflow-wrap:break-word}:where(h1,h2,h3){line-height:calc(1em + 0.5rem)}:where(hr){border:none;border-block-start:1px solid;color:inherit;block-size:0;overflow:visible}:where(:focus-visible){outline:3px solid Highlight;outline-offset:2px;scroll-margin-block:10vh}:where(.visually-hidden:not(:focus-within,:active)){clip-path:inset(50%)!important;height:1px!important;width:1px!important;overflow:hidden!important;position:absolute!important;white-space:nowrap!important;border:0!important}

/* input, textarea などの focus や outline 無効化 */
:where(input, textarea, select):focus,
:where(input, textarea, select):focus-visible,
:where(input, textarea, select):focus-within {
  outline: none !important;
  box-shadow: none !important;
  border-color: inherit !important;
}

/* iOSでのタップズーム対策：font-size 16px未満でズームされるのを防ぐ */
:where(input, textarea, select, button) {
  font-size: 16px !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

:root {
    --color-bk: #161616;
    --color-wh: #ffffff;
    
    --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Helvetica Neue", Arial, Meiryo, sans-serif;
    --font-en-01: "Jost", sans-serif;
}

/* layout
--------------------------------------------------- */

html {
    height: 100%;
    font-size: 100%;
    background-color: var(--color-wh)!important;
}
body {
    height: 100%;
    font-family: var(--font-jp);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: .05em;
    line-height: 1.8;
    color: var(--color-bk);
    background-color: var(--color-wh)!important;
    overflow-y: scroll;
}
@media screen and (min-width: 768px) {
    body {
        line-height: 2;
    }
}
body::after {
    z-index: 9999;
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-wh);
    pointer-events: none;
    animation-name: fadeOut;
    animation-delay: 0;
    animation-duration: .7s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(.8,0,.5,1);
}
body.viewtrans::after {
    animation-name: fadeIn;
    animation-delay: 0;
    animation-duration: .7s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(.8,0,.5,1);
}
@-webkit-keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
.fixed {
    position: fixed;
    width: 100%;
    height: 100%;
}
a {
    display: block;
    color: var(--color-bk);
    text-decoration: none;
    cursor: pointer;
}
p a {
    display: inline;
}
img,
svg {
    width: 100%;
    height: auto;
}

.wrap {
    position: relative;
    width: 100%;
    min-width: 320px;
    height: auto !important;
    height: 100%;
    min-height: 100%;
    margin: auto;
    background-color: var(--color-lwgy);
	overflow-x: hidden;
	transition: 1s;
}
.mask {
    width: 100%;
    height: auto;
    overflow: hidden;
}
.mask .mask__inner {
    width: inherit;
    height: inherit;
    opacity: 0;
}
.mask .mask__inner.inview {
    position: relative;
    animation-name: maskIn;
    animation-duration: .5s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(.8,0,.5,1);
    opacity: 1 !important;
}
.mask .mask__inner.inview::before {
    z-index: 1;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bk);
    animation-name: maskOut;
    animation-duration: .5s;
    animation-delay: .5s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(.8,0,.5,1);
}
@keyframes maskIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}
@keyframes maskOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(101%);
    }
}
.fade {
    opacity: 0;
    transform: translate(0, 5px);
}
.fade.inview {
    position: relative;
    animation-name: fadeIn;
    animation-duration: .5s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(.8,0,.5,1);
    opacity: 0;
    transform: translate(0, 5px);
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(0, 5px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}


/* --------------------------------------------------
 animal（動物図鑑）
--------------------------------------------------- */

.animal-single {
    max-width: 820px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* パンくず */
.animal-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 1.5rem;
}
.animal-breadcrumb a {
    color: #888;
    text-decoration: none;
}

/* ヒーロー */
.animal-hero {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}
.animal-hero__image img {
    width: 220px;
    border-radius: 10px;
    object-fit: cover;
}
.animal-hero__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: .4rem;
}
.animal-hero__subtitle {
    font-size: 14px;
    color: #555;
    margin-bottom: .8rem;
}

/* タグ */
.animal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.animal-tag {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 99px;
    background: #f0f0f0;
    color: #555;
    border: 1px solid #ddd;
}

/* スペック */
.animal-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 2rem;
}
.animal-spec {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 12px;
}
.animal-spec dt {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}
.animal-spec dd {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

/* 本文 */
.animal-content {
    margin-bottom: 2.5rem;
    line-height: 1.8;
}
.animal-content h2 {
    font-size: 1.3rem;
    margin: 2rem 0 .8rem;
    padding-left: 10px;
    border-left: 3px solid #2e8b57;
}

/* 動物園 */
.animal-zoos__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.animal-zoos h3 {
    font-size: 1rem;
    color: #444;
    margin: 1.2rem 0 .8rem;
}
.animal-zoos__notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #856404;
    margin-bottom: 1rem;
}
.animal-zoo-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
}
.animal-zoo-card__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.animal-zoo-card__info strong { font-size: 14px; }
.animal-zoo-card__pref { font-size: 12px; color: #888; }
.animal-zoo-card__note { font-size: 12px; color: #aaa; }
.animal-zoo-card__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.animal-zoo-card__status {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 99px;
}
.animal-zoo-card__link {
    font-size: 12px;
    color: #2e8b57;
    text-decoration: none;
}

@media screen and (max-width: 600px) {
    .animal-hero { flex-direction: column; }
    .animal-hero__image img { width: 100%; }
}


/* --------------------------------------------------
 design tokens（ZOOLOGY LAB.）
--------------------------------------------------- */

:root {
    --earth-50: #f7f4ef;
    --earth-100: #ede6d8;
    --earth-200: #d4c9b0;
    --green-deep: #2d4a2d;
    --green-mid: #4a7c4a;
    --green-light: #8fb88f;
    --green-pale: #e8f0e8;
    --sand: #c4a882;
    --sand-light: #f2ead8;
    --bark: #6b4c2a;
    --text: #1e2d1e;
    --text-muted: #5a6b5a;
    --font-display: 'Abril Fatface', serif;
    --font-en: 'Jost', sans-serif;
}

/* --------------------------------------------------
 header
--------------------------------------------------- */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--green-deep);
    height: 64px;
}
.header__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 100%;
    padding: 0 2rem;
}
.header__logo {
    font-family: var(--font-display);
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: .06em;
    flex-shrink: 0;
}
.header__logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sand);
    flex-shrink: 0;
}
.header__nav {
    flex: 1;
}
.header__nav-list {
    display: flex;
    gap: 1.75rem;
    list-style: none;
}
.header__nav-list a {
    display: inline;
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    transition: color .2s;
}
.header__nav-list a:hover {
    color: #fff;
}
.header__search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 99px;
    padding: 7px 16px;
    flex-shrink: 0;
}
.header__search-icon {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, .5);
    flex-shrink: 0;
}
.header__search input[type="search"] {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 13px;
    font-family: var(--font-jp);
    width: 160px;
    font-size: 13px !important;
}
.header__search input[type="search"]::placeholder {
    color: rgba(255, 255, 255, .4);
}
.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.header__burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
@media screen and (max-width: 768px) {
    .header__nav,
    .header__search {
        display: none;
    }
    .header__burger {
        display: flex;
    }
}

/* --------------------------------------------------
 footer
--------------------------------------------------- */

.footer {
    background: var(--green-deep);
    padding: 3rem 2rem 1.5rem;
}
.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 2.5rem;
}
.footer__logo {
    font-family: var(--font-display);
    font-size: 20px;
    color: #fff;
    margin-bottom: 6px;
}
.footer__tagline {
    font-family: var(--font-en);
    font-size: 11px;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .4);
    text-transform: uppercase;
}
.footer__links {
    display: flex;
    gap: 3rem;
}
.footer__col {
    display: flex;
    flex-direction: column;
}
.footer__col-title {
    font-family: var(--font-en);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 12px;
}
.footer__col a {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color .2s;
}
.footer__col a:hover {
    color: rgba(255, 255, 255, .9);
}
.footer__copy {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 1.25rem;
    font-family: var(--font-en);
    font-size: 11px;
    color: rgba(255, 255, 255, .25);
    letter-spacing: .06em;
}
@media screen and (max-width: 768px) {
    .footer__inner {
        flex-direction: column;
        gap: 2rem;
    }
    .footer__links {
        flex-wrap: wrap;
        gap: 2rem;
    }
}

/* --------------------------------------------------
 front-page
--------------------------------------------------- */

/* ヒーロー */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero__bg-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero__bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to right, rgba(30, 50, 20, .88) 0%, rgba(30, 50, 20, .5) 60%, rgba(30, 50, 20, .2) 100%);
}
.hero__inner {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 4rem 2rem;
}
.hero__eyebrow {
    font-family: var(--font-en);
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 1rem;
}
.hero__title {
    font-family: var(--font-display);
    font-size: 52px;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1rem;
}
.hero__title span {
    color: var(--sand);
}
.hero__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, .65);
    line-height: 1.9;
    margin-bottom: 2rem;
}
.hero__search {
    display: flex;
    max-width: 480px;
}
.hero__search input[type="search"] {
    flex: 1;
    background: #fff;
    border: none;
    border-radius: 8px 0 0 8px;
    padding: 13px 18px;
    font-size: 14px !important;
    font-family: var(--font-jp);
    outline: none;
    color: var(--text);
}
.hero__search button {
    background: var(--sand);
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 13px 22px;
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    letter-spacing: .04em;
    transition: background .2s;
}
.hero__search button:hover {
    background: var(--bark);
}
.hero__stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
}
.hero__stat-num {
    font-family: var(--font-display);
    font-size: 30px;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}
.hero__stat-num span {
    font-size: 18px;
}
.hero__stat-label {
    font-family: var(--font-en);
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
}
@media screen and (max-width: 768px) {
    .hero__title {
        font-size: 36px;
    }
    .hero__inner {
        padding: 3rem 1.25rem;
    }
}

/* セクション共通 */
.front-section {
    padding: 4rem 0;
}
.front-section__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}
.front-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}
.front-section__title {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--green-deep);
}
.front-section__more {
    display: inline;
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: .06em;
    color: var(--green-mid);
    text-decoration: none;
    border-bottom: 1px solid var(--green-light);
    padding-bottom: 1px;
    transition: color .2s;
}
.front-section__more:hover {
    color: var(--green-deep);
}
.front-no-posts {
    font-size: 14px;
    color: var(--text-muted);
}

/* カテゴリグリッド */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.cat-card {
    display: block;
    background: #fff;
    border: 1px solid var(--earth-100);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color .2s, transform .2s;
}
.cat-card:hover {
    border-color: var(--green-light);
    transform: translateY(-2px);
}
.cat-card__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--green-pale);
}
.cat-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.cat-card:hover .cat-card__img img {
    transform: scale(1.04);
}
.cat-card__body {
    padding: .75rem 1rem;
}
.cat-card__name {
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 500;
    color: var(--green-deep);
    letter-spacing: .04em;
}
@media screen and (max-width: 768px) {
    .cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 最新記事グリッド */
.front-latest {
    background: var(--sand-light);
}
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.article-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--earth-100);
    transition: border-color .2s, transform .2s;
}
.article-card:hover {
    border-color: var(--green-light);
    transform: translateY(-2px);
}
.article-card__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--green-pale);
}
.article-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.article-card:hover .article-card__img img {
    transform: scale(1.04);
}
.article-card__body {
    padding: 1rem 1.1rem;
}
.article-card__tag {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green-mid);
    border: 1px solid var(--green-light);
    border-radius: 99px;
    padding: 2px 10px;
    margin-bottom: 8px;
}
.article-card__title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.55;
    margin-bottom: 8px;
}
.article-card__meta {
    font-family: var(--font-en);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: .04em;
}
@media screen and (max-width: 768px) {
    .article-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}