@charset "utf-8";

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scrollbar-gutter: stable;
    -webkit-text-size-adjust: 100%;
}

html,body {
    height: 100svh;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #F9F7F5;
    font-family: "Cormorant Garamond", "Hiragino Mincho ProN", "Yu Mincho", serif;
    color: #333;
    letter-spacing: 0.04em;
}

body.index {
    overflow: hidden;
}

header {
    position: relative;
    margin-bottom: 40px;
}

main {
    flex: 1;
}

.name {
    font-size: 48px;
    font-weight: normal;
    padding: 16px;
    text-align: center;
}

h2 {
    font-size: 32px;
    font-weight: normal;
}

.animate_text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(-16px) rotate(0deg);
    animation: popIn 0.6s ease-out forwards;
}
  
.animate_text span:nth-child(1)  { animation-delay: 0s; }
.animate_text span:nth-child(2)  { animation-delay: 0.04s; }
.animate_text span:nth-child(3)  { animation-delay: 0.08s; }
.animate_text span:nth-child(4)  { animation-delay: 0.12s; }
.animate_text span:nth-child(5)  { animation-delay: 0.16s; }
.animate_text span:nth-child(6)  { animation-delay: 0.2s; }
.animate_text span:nth-child(7)  { animation-delay: 0.24s; }
.animate_text span:nth-child(8)  { animation-delay: 0.28s; }
.animate_text span:nth-child(9)  { animation-delay: 0.32s; }
.animate_text span:nth-child(10) { animation-delay: 0.36s; }
.animate_text span:nth-child(11) { animation-delay: 0.40s; }
  
@keyframes popIn {
0% {
    opacity: 0;
    transform: translateY(-16px) scale(0.96) rotate(-4deg);
    }
60% {
    opacity: 1;
    transform: translateY(4px) scale(1.04) rotate(4deg);
    }
100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
    }
}

h3 {
    font-size: 24px;
    font-weight: normal;
    margin: 16px 0;
}

.jp {
    font-size: 20px;
}

main {
    animation: slideUpFade 0.4s ease-out forwards;
}

@keyframes slideUpFade {
    0% {
      opacity: 0;
      transform: translateY(16px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
}

a {
    text-decoration: none;
    color: #333;
}

.nav li { 
    list-style: none;
    padding: 16px;
    margin: 16px 0;
}

.nav_icon {
    width: 32px;
    height: auto;
    margin-right: 2px;
    vertical-align: top;
  }

.nav a,.nav_inline a {
    font-size: 32px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.nav a:hover,.nav_inline a:hover {
    transform: translateY(2px);
}

.nav a::after,.nav_inline a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 1px;
    background: #333;
    transition: width 0.2s ease;
}
  
.nav a:hover::after,.nav_inline a:hover::after  {
    width: 100%;
}

footer {
    margin: 80px 0 0 0;
    padding: 8px;
    text-align: center;
}

/* index */

.main_wrapper {
    max-width: 768px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.bg_palms {
    position: fixed;
    bottom: 0;
    right: 0;
    width: min(40vw, 320px);
    aspect-ratio: 2 / 3;
    background: url('../img/parm_tree.png') no-repeat bottom right;
    background-size: contain;
    pointer-events: none;
    animation: sway 4s ease-in-out infinite;
    transform-origin: bottom;
}

@keyframes sway {
    0%, 100% {
        transform: rotate(-2deg);
    }
    50% {
        transform: rotate(2deg);
    }
}

/* inline*/

.nav_inline ul {
    display: flex;
    justify-content: center;
    padding: 16px;
}

.nav_inline li { 
    list-style: none;
    padding: 16px;
}

section {
    max-width: 960px;
    margin: 0 auto 80px;
}

.side_label {
    writing-mode: vertical-rl;
    margin: 0 0 40px;
}

/* profile */

.profile_content {
    display: flex;
    align-items: flex-start;
}

.profile_img_wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin: 0 40px 0 0;
    flex-shrink: 0;
    gap: 16px;
}

.profile_img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    background-color: #d9d9d9;
}

.profile_text p {
    line-height: 1.8;
    margin-bottom: 0.8em;
}

.profile_statement {
    margin-top: 24px;
    font-size: 16px;
}

.skill_wrapper {
    display: flex;
}

.skill_heading {
    width: 100%;
    max-width: 400px;
    margin: 0 40px 0 0;
}

.line {
    background: #333333;
    height: 1px;
    width: 48px;
    margin: 16px 0 40px;
}

.skill_content {
    width: 100%;
    max-width: 560px;
}

.skill_item {
    margin-bottom: 40px;
}

.skill_item:last-of-type {
    margin-bottom: 0;
}

.skill_item:last-of-type p {
    margin-bottom: 0.8em;
}

.skill_item p {
    line-height: 1.8;
}

.caption {
    font-size: 14px;
    display: block;
    margin: 16px 0 0 0;
}

.skills img {
    width: 24px;
    margin: 16px 0 0;
}

.caption_group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.caption_group .caption {
    margin: 0;
}

.caption_group div {
    display: flex;
    gap: 8px;
    align-items: center;
}

.caption_group img {
    margin: 0;
}

.strength h2 {
    text-align: center;
}

.strength .line {
    margin: 16px auto 40px;
}

/* works */

.wh {
    display: flex;
    justify-content: space-between;
}

button {
    all: unset;
    cursor: pointer;
}

ul {
    list-style: none;
}

.works_nav li {
    list-style: none;
    margin-bottom: 8px;
}

.active {
    font-weight: bold;
}

.works_container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.works_item {
    width: 100%;
    max-width: 448px;
}

.works_coming {
    text-align: center;
}

.thumbnail {
    display: flex;
    margin: 0 auto 16px;
    transition: transform 0.2s ease-in-out;
}
  
.thumbnail img {
    display: block;
    width: 100%;
}
  
.thumbnail:hover {
    transform: scale(1.06);
}

.works_line {
    background: #333;
    height: 1px;
    width: 60px;
    margin: 16px 0;
}

.date {
    display: block;
    margin: 16px 0;
}

.tag {
    font-size: 12px;
    font-family: "Karla", sans-serif;
    letter-spacing: 0;
    margin: 0 8px 0 0;
    padding: 2px 4px;
    border: 1px solid #333;
    border-radius: 4px;
}

.journal_meta .tag {
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    color: #333;
    font-family: "Cormorant Garamond", serif;
    font-size: 14px;
}

/* works_inline */

.works_inline {
    margin-bottom: 0px;
}

.wd_wrapper {
    display: flex;
    justify-content: space-between;
}

.wd_heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

img {
    width: 100%;
    max-width: 460px;
}

.prev {
    max-width: 960px;
    margin: 0 auto 80px;
    padding: 20px;
}

.wd_line {
    background: #d9d7d5;
    height: 1px;
    width: 100%;
    margin: 32px 0 32px;
}

.wd_thumbnail {
    margin: 0 auto;
}

.btn{
    text-align: center;
}

.visit {
    padding: 16px 32px;
    background-color: #333;
    color: #F9F7F5;
    border-radius: 4px;
    border: 1px solid #333;
    transition: background-color 0.2s ease;
}

.visit:hover {
    background-color: #F9F7F5;
    color: #333;
    border: 1px solid #333;
}

.visit::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('../img/new_wht.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: 8px;
    vertical-align: middle;
}

.visit:hover::after {
    background-image: url('../img/new_blk.svg');
}

/* sns */

.sns_links {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.sns_link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.sns_link:hover {
    transform: translateY(2px);
}

.sns_icon {
    width: 24px;
    height: 24px;
    max-width: none;
    filter: brightness(0) opacity(0.8);
}

/* photography */

.photo_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
}

.photo_item {
    width: 100%;
}

.photo_thumbnail {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #d9d9d9;
    margin-bottom: 12px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.photo_thumbnail img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    display: block;
}

.photo_thumbnail:hover {
    transform: scale(1.03);
}

.photo_series {
    display: block;
    margin-bottom: 4px;
}

.photo_date {
    font-size: 14px;
    color: #888;
}

/* journal */

.journal_list {
    display: grid;
    grid-template-columns: 1fr;
}

.journal_item + .journal_item {
    border-top: 1px solid #d9d7d5;
}

.journal_link {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    min-height: 168px;
}

.journal_thumb {
    display: block;
    width: 160px;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
    overflow: hidden;
    order: 1;
}

.journal_thumb img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.journal_thumb:hover img {
    transform: scale(1.03);
}

.journal_text {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.journal_item h3 a {
    display: inline-block;
    transition: transform 0.2s ease;
}

.journal_item h3 a:hover {
    transform: translateY(2px);
}

.journal_meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.journal_meta .date {
    display: block;
    margin: 0;
    font-size: 14px;
}

.journal_item h3 {
    margin: 0;
    font-size: 20px;
}

/* related article card (journal post body) */

.related_block {
    margin: 40px 0;
}

.related_block .related_caption {
    text-align: center;
    margin-top: 8px;
}

.related_card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px;
    border: 1px solid #d9d7d5;
    text-decoration: none;
    color: #333;
}

.related_card_thumb {
    display: block;
    width: 120px;
    flex-shrink: 0;
}

.related_card_thumb img {
    width: 100%;
    height: auto;
    max-width: none;
    display: block;
}

.related_card_text {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.related_card_title {
    display: inline-block;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.related_card:hover .related_card_title {
    transform: translateY(2px);
}

.related_card_date {
    font-size: 14px;
    color: #888;
}

.related_card_desc {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related_card_site {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #888;
}

.related_card_favicon {
    width: 14px;
    height: 14px;
    max-width: none;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* journal post */

.journal_post section {
    max-width: 720px;
}

.journal_prev {
    margin-bottom: 48px;
}

.journal_post_header {
    margin-bottom: 32px;
}

.journal_post .wd_wrapper {
    margin-bottom: 40px;
}

.journal_post .works_line {
    margin-bottom: 16px;
}

.journal_post .post_heading .date {
    margin-top: 0;
}


/* journal post body */

.journal_post .wd_info p {
    font-family: "dnp-shuei-mincho-pr6n", "Hiragino Mincho ProN", "Yu Mincho", serif;
    line-height: 2;
    letter-spacing: 0.04em;
}

.wd_info p + p {
    margin-top: 24px;
}

.post_img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 0 32px;
}

.post_figure {
    display: block;
    margin: 32px auto 32px;
    text-align: center;
}

.post_figure_row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    column-gap: 24px;
    margin-top: 32px;
    margin-bottom: 32px;
}

.post_figure_row .post_figure {
    margin: 0;
    flex: 1 1 0;
    min-width: 0;
}

.post_figure_row .post_row_caption {
    flex: 1 1 100%;
    text-align: center;
}

.post_figure .post_img {
    width: 100%;
    height: auto;
    max-width: none;
    margin: 0 auto;
}

.post_caption {
    font-family: "dnp-shuei-mincho-pr6n", "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 13px;
    color: #999;
    letter-spacing: 0.04em;
    line-height: 1.6;
    margin-top: 8px;
}

.post_caption:empty {
    display: none;
}

/* journal post heading */

.post_heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.post_heading h2 {
    font-family: "dnp-shuei-mincho-pr6n", "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 24px;
    line-height: 1.5;
    letter-spacing: 0.04em;
}

.post_meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.post_meta .date {
    margin: 0;
}

/* contact */

.contact_container {
    text-align: center;
}

.contact_container span {
    display: block;
    margin-bottom: 40px;
}

.mail_link {
    font-size: 24px;
    display: inline-block;
    position: relative;
    transition: transform 0.2s ease;
}

.mail_link:hover {
    transform: translateY(2px);
}

.mail_link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #333;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.mail_link:hover::after {
    transform: scaleX(1);
}

/* lightbox */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: zoom-out;
}

.lightbox.active {
    opacity: 1;
}

.lightbox img {
    width: auto;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    aspect-ratio: auto;
    display: block;
    transform: scale(0.96);
    transition: transform 0.2s ease;
}

.lightbox.active img {
    transform: scale(1);
}

/* hamburger */

.nav_toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: none;
    width: 32px;
    height: 32px;
}

.nav_toggle span,.nav_toggle span::before,.nav_toggle span::after {
    content: '';
    position: absolute;
    display: block;
    width: 32px;
    height: 1px;
    background-color: #333;
}

.nav_toggle span {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.nav_toggle span::before {
    top: -13px;
}

.nav_toggle span::after {
    top: 13px;
}

.open span {
    background-color: rgba(0, 0, 0, 0);
}

.open span::before {
    content: '';
    top: 0;
    transform: rotate(45deg);
    background-color: #F9F7F5;
}
  
.open span::after {
    content: '';
    top: 0;
    transform: rotate(-45deg);
    background-color: #F9F7F5;
}

@media screen and (max-width: 960px) {

    body {
        font-size: 14px;
    }

    .post_figure_row {
        flex-direction: column;
        align-items: center;
        row-gap: 24px;
    }

    .post_figure_row .post_figure {
        flex: none;
        width: 100%;
    }

    .post_figure_row .post_row_caption {
        flex: none;
        width: 100%;
    }

    header {
        border-bottom: 1px solid #333;
    }

    .name {
        font-size: 32px;
        text-align: left;
    }

    .nav_toggle {
        display: block;
        -webkit-tap-highlight-color: transparent;
    }

    .nav_inline ul {
        position: fixed;
        top: 0;
        right: -64%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 64%;
        height: 56vh;
        z-index: 9998;
        background: rgba(51, 51, 51, 0.8);
        backdrop-filter: blur(4px);
        transition: right 0.4s ease;
    }

    .nav_inline ul.open {
        right: 0%; 
    }

    .nav_inline a::after {
        background-color: #F9F7F5;
    }
    
    .nav a:hover::after,.nav_inline a:hover::after {
        width: 0%;
        transition: none;
    }

    .nav_inline a {
        color: #F9F7F5;
    }    

    section {
        padding: 20px;
        margin: 0 auto 40px;
    }

    .profile_content {
        flex-direction: column;
    }

    .profile_img_wrapper {
        margin: 0 0 40px;
    }

    .profile_img {
        margin: 0;
    }

    .skill_wrapper {
        flex-direction: column;
    }

    .caption {
        font-size: 12px;
    }

    .caption_group {
        flex-direction: column;
        align-items: flex-start;
    }

    .caption_group div {
        margin-top: 8px;
    }

    .caption_group + .caption_group {
        margin-top: 16px;
    }

    .thumbnail:hover {
        transform: none;
    }

    .wd_wrapper {
        flex-direction: column;
    }

    .wd_tag {
        display: block;
        margin: 0 0 40px;
    }

    .works_container {
        grid-template-columns: 1fr;
    }

    .journal_link {
        flex-direction: column;
        align-items: stretch;
    }

    .journal_thumb {
        width: 100%;
        order: 0;
    }

    .journal_thumb:hover img {
        transform: none;
    }

    .journal_item h3 {
        font-size: 16px;
    }

    .related_card {
        flex-direction: column;
        align-items: stretch;
    }

    .related_card_thumb {
        width: 100%;
    }

}
