/*
Theme Name: Murata Design
Description: オリジナルテーマ
Version: 1.0
Author: F&G Co.,Ltd
*/

/* CSS Custom Properties (Variables) */
:root {
    --color-background-light: #f7f8f8;
    --color-background-white: #fff;
    --color-background-gray: #efefef;
    --color-background-header: #dcdddd;
    --color-text-primary: #898989;
    --color-text-white: #fff;
    --color-text-dark: #231815;
    --color-border: #898989;
}

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

body {
    background-color: var(--color-background-light);
    color: var(--color-text-primary);
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: calc(24 / 14);
}

@media (width >= 768px) {
    body {
        background-color: var(--color-background-white);
        letter-spacing: 0.025em;
    }
}

/* break */
.break\@SM {
    display: block;
}

@media (width >= 768px) {
    .break\@SM {
        display: none;
    }
}

.break\@PC {
    display: none;
}

@media (width >= 768px) {
    .break\@PC {
        display: block;
    }
}

/* Container */
.container {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 25px;
}

@media (width >= 768px) {
    .container {
        padding: 0 30px;
    }
}

/* Header */
.header {
    background-color: var(--color-background-light);
    font-size: 14px;
    font-weight: 400;
    height: 50px;
    line-height: calc(21 / 14); 
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

@media (width >= 768px) {
    .header {
        background-color: var(--color-background-header);
        height: 100px;
        padding: 24px 0;
    }
}

.js-header-scrolled {
    box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}

/* Header background color when mobile menu is active */
:has(.js-mobile-menu-active) .header {
    background-color: var(--color-text-primary);
    box-shadow: none;
}

@media (width >= 768px) {
    :has(.js-mobile-menu-active) .header {
        background-color: var(--color-background-header);
    }
}

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

.header__branding {
    flex: 1;
}

.header__logo {
    height: auto;
    width: 53.75px;
}

@media (width >= 768px) {
    .header__logo {
        width: 91.5px;
    }
}

.header__logo a {
    display: block;
    transition: opacity 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .header__logo a:hover {
        opacity: 0.75;
    }
}

.header__logo img {
    display: block;
}

/* Navigation */
.header__navigation {
    background-color: var(--color-text-primary);
    box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
    display: none;
    height: calc(100vh - 50px);
    left: 0;
    position: absolute;
    right: 0;
    top: 100%;
}

@media (width >= 768px) {
    .header__navigation {
        background-color: transparent;
        box-shadow: none;
        display: flex;
        flex: 2;
        height: auto;
        justify-content: flex-end;
        position: static;
    }
}

.header__navigation-list {
    display: flex;
    flex-direction: column;
    gap: 1em;
    list-style: none;
    padding: 25px 0;
}

.header__navigation-list:first-child {
    padding-top: 15px;
}

@media (width >= 768px) {
    .header__navigation-list {
        flex-direction: row;
        gap: 20px;
        padding: 0;
    }

    .header__navigation-list:first-child {
        padding-top: 0;
    }
}

.header__navigation-list--secondary {
    font-size: 12px;
    font-weight: 400;
    gap: calc(1em - 2px);
    letter-spacing: 0.025em;
    line-height: calc(24 / 12);
    position: relative;
}

.header__navigation-list--secondary::after {
    background-color: #fff;
    content: '';
    height: 1px;
    left: 25px;
    position: absolute;
    right: 25px;
    top: 0;
}

.header__navigation-list--secondary::before {
    color: #fff;
    content: 'LINKS';
    display: block;
    letter-spacing: 0.5em;
    padding: 0 25px;
}

@media (width >= 768px) {
    .header__navigation-list--secondary {
        display: none;
    }
}

.header__navigation-item {

}

@media (width >= 768px) {
    .header__navigation-item {

    }
}

.header__navigation-item a {
    color: var(--color-text-white);
    display: block;
    padding: 0 25px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header__navigation-item a:active,
.header__navigation-item a:focus {
    background-color: rgb(255 255 255 / 50%);
}

@media (width >= 768px) {
    .header__navigation a {
        background-color: transparent;
        color: var(--color-text-primary);
        display: inline;
        padding: 0;
    }

    .header__navigation-item a:active,
    .header__navigation-item a:focus {
        background-color: transparent;
    }
}

.header__navigation-item span {
    display: inline-flex;
    justify-content: space-between;
    width: 70px;
}

@media (width >= 768px) {
    .header__navigation-item span {
        display: inline;
        width: unset;
    }
}

.header__navigation-item i {
    font-style: normal;
}

@media (hover: hover) and (pointer: fine) {
    .header__navigation a:hover {
        color: var(--color-text-dark);
    }
}

.header__mobile-toggle {
    background: none;
    border: none;
    cursor: pointer;
    height: 22.5px;
    margin-top: 3px;
    padding: 0;
    position: relative;
    width: 25.5px;
}

@media (width >= 768px) {
    .header__mobile-toggle {
        display: none;
    }
}

.header__hamburger {
    background-color: var(--color-text-dark);
    display: block;
    height: 4.5px;
    left: 2px;
    position: absolute;
    transform-origin: center;
    transition: all 0.3s ease;
    width: 100%;
}

.header__hamburger:nth-child(1) {
    top: 0;
}

.header__hamburger:nth-child(2) {
    top: 9px;
}

.header__hamburger:nth-child(3) {
    top: 18px;
}

/* Hamburger animation when menu is active */
.js-mobile-menu-active ~ .header__mobile-toggle .header__hamburger:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.js-mobile-menu-active ~ .header__mobile-toggle .header__hamburger:nth-child(2) {
    opacity: 0;
    visibility: hidden;
}

.js-mobile-menu-active ~ .header__mobile-toggle .header__hamburger:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

.js-mobile-menu-active {
    display: block;
}

/* Main Content */
.main {
    /* padding: 2rem 0; */
}

/* Hero Section */
.hero {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 80px 0 142px;
}

@media (width >= 768px) {
    .hero {
        padding: 225px 0 235px;
    }
}

.hero__logo {
    height: auto;
    width: 160px;
}

@media (width >= 768px) {
    .hero__logo {
        width: 320px;
    }
}

.hero__logo img {
    display: block;
}

/* Sections */
.section {
    color: var(--color-text-primary);
    padding: 0 0 60px;
}

@media (width >= 768px) {
    .section {
        padding: 0 0 120px;
    }
}

.section__title {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.025em;
    line-height: calc(12.5 / 16);
    margin-bottom: 30px;
    text-align: center;
}

@media (width >= 768px) {
    .section__title {
        font-size: 32px;
        margin-bottom: 60px;
    }
}

.section__content {
    margin: 0 auto;
    max-width: 900px;
}

@media (width >= 768px) {
    .section__content {
    }
}

.section__content--align-center {
    text-align: center;
}

.section__text {
    margin: 0;
}

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

.section__list li {
    padding-left: 1em;
    text-indent: -1em;
}

.section__list li::before {
    content: '・';
}

.section__text + *,
.section__list + * {
    margin-top: 1em;
}

.section__image {
    transform: translateX(-25px);
    width: calc(100% + 50px);
}

@media (width >= 768px) {
    .section__image {
        transform: translateX(0);
        width: 100%;
    }
}

.section__text + .section__image {
    margin-top: 30px;
}

@media (width >= 768px) {
    .section__text + .section__image {
        margin-top: 40px;
    }
}

.section__image img {
    height: auto;
    width: 100%;
}

@media (width >= 768px) {
    .section__image {

    }
}

/* Common Layout Classes */
.two-column-grid {
    background-color: var(--color-background-gray);
    display: grid;
    gap: 48px;
    grid-template-columns: 1fr;
    margin: 0 auto;
    max-width: 900px;
    padding: 24px;
    text-align: center;
}

@media (width >= 768px) {
    .two-column-grid {
        font-size: 14px;
        gap: 0;
        grid-template-columns: 1fr 1fr;
        padding: 32px;
    }
}

.two-column-grid__item {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (width >= 768px) {
    .two-column-grid__item {
        gap: 32px;
    }

    [id="contact"] .two-column-grid__item:first-child {
        padding-top: 20px;
    }

    [id="contact"] .two-column-grid__item:last-child {
        gap: 20px;
    }
}

.two-column-grid__heading {
    font-weight: 400;
}

@media (width >= 768px) {
    .two-column-grid__heading {
        font-size: 20px;
        line-height: calc(36 / 20);
    }
}

.two-column-grid__heading span {
    display: block;
}

@media (width >= 768px) {
    .two-column-grid__heading span {

    }
}

.two-column-grid__title {
    font-size: 14px;
    font-weight: 400;
}

@media (width >= 768px) {
    .two-column-grid__title {

    }
}

.two-column-grid__title span {
    display: block;
}

@media (width >= 768px) {
    .two-column-grid__title span {

    }
}

.two-column-grid__list {
}

@media (width >= 768px) {
    [id="museum"] .two-column-grid__list:last-child {
        margin-top: auto;
    }
}

.two-column-grid__term {
    font-weight: 400;
}

[id="contact"] .two-column-grid__term {
    font-size: 16px;
}

@media (width >= 768px) {
    .two-column-grid__term {

    }

    [id="contact"] .two-column-grid__term {
        font-size: 14px;
    }
}

.two-column-grid__term span {
    display: block;
}

@media (width >= 768px) {
    .two-column-grid__term {

    }
}

.two-column-grid__term:has(img) {
    margin-bottom: 2px;
}

@media (width >= 768px) {
    .two-column-grid__term:has(img) {

    }
}

.two-column-grid__icon {
    display: block;
    height: 20px;
    margin: 0 auto;
    width: 20px;
}

.two-column-grid__description {

}

@media (width >= 768px) {
    .two-column-grid__description {

    }
}

.two-column-grid__description span {
    display: block;
}

@media (width >= 768px) {
    .two-column-grid__description span {

    }
}

.two-column-grid__description a {
    color: var(--color-text-primary);
    transition: opacity 0.3s ease;
    vertical-align: text-bottom;
}

@media (width >= 768px) {
    .two-column-grid__description {

    }
}

@media (hover: hover) and (pointer: fine) {
    .two-column-grid__description a:hover {
        opacity: 0.75;
    }
}

/* About Section */
.about {
    background-color: var(--color-background-gray);
    display: grid;
    font-size: 12px;
    font-weight: 300;
    grid-template-columns: 1fr;
    margin-top: 30px;
    transform: translateX(-25px);
    width: calc(100% + 50px);
}

@media (width >= 768px) {
    .about {
        font-size: 14px;
        grid-template-columns: 1fr 1fr;
        margin-top: 60px;
        transform: translateX(0);
        width: 100%;
    }
}

.about__item {
    align-items: center;
    display: flex;
    justify-content: center;
    line-height: calc(17 / 12);
    padding: 16px 0;
}

@media (width >= 768px) {
    .about__item {
        padding: 20px 0;
    }
}

.about__inner {
    max-width: 230px; /* TODO */
    text-align: left;
    width: 100%;
}

@media (width >= 768px) {
    .about__inner {
        min-width: 285px; /* TODO */
    }
}

.about__title {
    font-weight: inherit;
    margin-bottom: 5px;
}

@media (width >= 768px) {
    .about__title {

    }
}

.about__list {
    display: grid;
    gap: 5px;
    grid-template-columns: 1fr;
    list-style: none;
    padding: 0;
}

@media (width >= 768px) {
    .about__list {

    }
}

.about__list li {

}

@media (width >= 768px) {
    .about__list {

    }
}

.about__list li::before {
    content: '●';
}

/* Profile Section */
.profile {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
    margin: 0 auto;
    max-width: 900px;
}

@media (width >= 768px) {
    .profile {
        gap: 96px;
        grid-template-columns: 200px 1fr;
    }
}

.profile__photo {

}

@media (width >= 768px) {
    .profile__photo {

    }
}

.profile__photo img {
    display: block;
    height: auto;
    margin: 0 auto;
    width: 150px;
}

@media (width >= 768px) {
    .profile__photo img {
        width: 100%;
    }
}

.profile__caption {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.025em;
    line-height: calc(22 / 16);
    margin-top: 24px;
    text-align: center;
}

@media (width >= 768px) {
    .profile__caption {
        font-size: 24px;
        line-height: calc(40 / 24);
    }
}

.profile__caption span {
    display: block;
}

.profile__content {

}

@media (width >= 768px) {
    .profile__content {

    }
}

/* hers design section */
.hers {
    background-color: var(--color-background-gray);
    margin-top: 24px;
    padding-top: 32px;
}

@media (width >= 768px) {
    .hers {
        margin-top: 32px;
    }
}

.hers__link {
    color: var(--color-text-primary);
    transition: opacity 0.3s ease;
}

@media (width >= 768px) {
    .hers__link {

    }
}


@media (hover: hover) and (pointer: fine) {
    .hers__link:hover {
        opacity: 0.75;
    }
}

.hers__logo {
}

@media (width >= 768px) {
    .hers__logo {

    }
}   

.hers__logo img {
    display: block;
    height: auto;
    margin: 0 auto 8px;
    max-width: 162.5px;
    width: 100%;
}

@media (width >= 768px) {
    .hers__logo img {
        margin-bottom: 16px;
        max-width: 280px;
    }
}

.hers__caption {
    font-size: 14px;
    line-height: calc(22 / 14);
    text-align: center;
}

@media (width >= 768px) {
    .hers__caption {
        margin-top: 8px;
    }
}

.hers__caption span {
    display: block;
}

@media (width >= 768px) {
    .hers__caption span {    

    }
}

.hers__products {
    margin-top: 24px;
}

@media (width >= 768px) {
    .hers__products {
        margin-top: 56px;
    }
}

.hers__products img {
    display: block;
    height: auto;
    width: 100%;
}

@media (width >= 768px) {
    .hers__products {

    }
}

/* Museum Section */
.museum {
    margin: 0 auto;
    max-width: 900px;
    width: 100%;
}

@media (width >= 768px) {
    .museum {
        display: grid;
        gap: 48px;
        grid-template-columns: 450px 1fr;
        grid-template-rows: auto auto;
        margin-bottom: 40px;
        row-gap: 0;
    }
}

.museum__image {

}

.museum__image:first-child {
    margin-bottom: 30px;
}

@media (width >= 768px) {
    .museum__image {
        grid-column: 1;
        margin: 0;
        padding: 0;
    }
    
    .museum__image:first-child {
        grid-row: 1 / 3;
        margin-bottom: 0;
    }
    
    .museum__image:last-child {
        grid-row: 1 / 3;
        margin-top: 0;
    }
}

.museum__image img {
    display: block;
    height: auto;
    width: 100%;
}

@media (width >= 768px) {
    .museum__image img {

    }

    .museum__image:last-child img {
        transform: translateY(100%);
    }
}

.museum__content {

}

@media (width >= 768px) {
    .museum__content {
        grid-column: 2;
        grid-row: 1 / 3;
    }
}

.museum__caption {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 12px;
}

@media (width >= 768px) {
    .museum__caption {
        padding-bottom: 20px;
    }
}

.museum__caption span {
    display: block;
}

.museum__inner {
    padding: 12px 0;
}

@media (width >= 768px) {
    .museum__inner {
        padding: 20px 0 0;
    }
}

/* Events Section */
.events {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
    margin: 0 auto;
    max-width: 900px;
}

@media (width >= 768px) {
    .events {
        gap: 96px;
        grid-template-columns: 200px 1fr;
    }
}

.events__photo {

}

@media (width >= 768px) {
    .events__photo {

    }
}

.events__photo img {
    display: block;
    height: auto;
    margin: 0 auto;
    width: 100%;
}

@media (width >= 768px) {
    .events__photo img {

    }
}

.events__caption span {
    display: block;
}

.events__content {

}

@media (width >= 768px) {
    .events__content {

    }
}

.events__content > * + * {
    margin-top: 1em;
}

.events__schedule h3,
.events__detail h4 {
    font-size: 14px;
    font-weight: 400;
    line-height: calc(17 / 14);
    margin-bottom: 0.5em;
}

@media (width >= 768px) {
    .events__schedule h3,
    .events__detail h4 {
        line-height: calc(22 / 14);
    }
}

.events__detail h4 span {
    display: block;
}

/* Events Schedule */
.events__schedule ul {
    list-style: none;
    padding: 0;
}

.events__schedule ul > li {

}

.events__schedule ul > li::before {
    content: '■';
}

.events__schedule ul > li span {
    display: inline-block;
}

.events__schedule ul li > ol {
    list-style-position: inside;
    padding: 0;
}

.events__schedule ul li > ol li {

}

/* Events Detail */
.events__detail ol {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    list-style-position: inside;
    padding: 0;
}

.events__detail ol > li {

}

.events__detail ol > li > ul {
    list-style: none;
    list-style-position: inside;
}

.events__detail ol > li > ul li {

}

.events__detail ol > li > ul li::before {
    content: '・';
}

/* Footer */
.footer {
    background-color: var(--color-background-header);
    font-size: 12px;
    letter-spacing: 0.025em;
    line-height: calc(17 / 12);
    padding: 25px 0;
}

@media (width >= 768px) {
    .footer {
        line-height: calc(20 /12);
        padding: 32px 0;
    }
}

.footer__content {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
    position: relative;
}

@media (width >= 768px) {
    .footer__content {
        gap: 32px;
        grid-template-columns: 
        calc(388 / 1140 * 100%) 
        calc(363 / 1140 * 100%) 
        1fr;
    }
}

.footer__inner {
    color: var(--color-text-primary);
}

@media (width >= 768px) {
    .footer__inner {
        order: 2;
    }

    .footer__inner:nth-child(2) {
        order: 3;
    }

    .footer__inner:last-child {
        order: 1;
    }
}

.footer__inner--logo {
    bottom: 7px;
    position: absolute;
    right: 7px;
}

@media (width >= 768px) {
    .footer__inner--logo {
        align-items: center;
        display: flex;
        justify-content: center;
        position: static;
    }
}

.footer__inner--logo a {
    display: block;
    height: auto;
    width: 75px;
}

@media (width >= 768px) {
    .footer__inner--logo a {
        position: static;
        width: 150PX;
    }
}

@media (hover: hover) and (pointer: fine) {
    .footer__inner--logo a:hover img {
        filter: 
        brightness(0) 
        saturate(100%) 
        invert(8%) 
        sepia(0%) 
        saturate(0%) 
        hue-rotate(0deg) 
        brightness(100%) 
        contrast(100%);
    }
}

.footer__inner--logo img {
    display: block;
    transition: filter 0.3s ease;
}

@media (width >= 768px) {
    .footer__inner--logo img {

    }
}

.footer__title {
    font-weight: 400;
}

@media (width >= 768px) {

}

.footer__info {

}

@media (width >= 768px) {
    .footer__info {

    }
}

.footer__list {
    list-style: none;
}

@media (width >= 768px) {
    .footer__list {

    }
}

.footer__item {

}

@media (width >= 768px) {
    .footer__item {

    }
}

.footer__item-title {
    display: block;
}

@media (width >= 768px) {
    .footer__item-title {

    }
}

.footer__item a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

@media (width >= 768px) {
    .footer__item a {

    }
}

@media (hover: hover) and (pointer: fine) {
    .footer__item a:hover {
        color: var(--color-text-dark);
    }
}

.footer__copyright {
    color: var(--color-text-primary);
    display: block;
    font-size: 9px;
    font-weight: 400;
    padding-top: 24px;
    text-align: center;
}

@media (width >= 768px) {
    .footer__copyright {
        padding-top: 32px;
    }
}
