@charset "utf-8";
/* スタイルのリセットは別ファイル（reset.css）で処理 */
/* ウェブフォントはHTMLのLINKに記載*/

/* ベースのスタイル */
html {
    font-size: 62.5%;
    font-family: "Noto Sans JP", YuGothic, "游ゴシック体", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    line-height: 1.8;
    color: #333;
    scroll-behavior: smooth;
}

body {
    font-size: 1.6rem;
    background-color: #fff;
}

.no-scroll {
    overflow: hidden !important;
}

a {
    color: #039;
}

a:visited {
    color: #639;
}

a:hover {
    color: #03c;
}

.mt0 {
    margin-top: 0 !important;
}

.mb0 {
    margin-bottom: 0 !important;
}

/* ヘッダー */
header {
    width: 100%;
    height: 60px;
    background-color: #009999;
    color: #fff;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header_set {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    padding: 0rem 15px;
    position: relative;
}


header h1 {
    font-size: clamp(1.2rem, calc(1.1rem + 0.5vw), 1.7rem);
    font-weight: 400;
    line-height: 1.8;
    display: inline-block;


  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  white-space: nowrap;
    
}

header h1 span {
    font-size: clamp(1.3rem, calc(1.5rem + 0.6vw), 2.4rem);
    font-weight: 700;
    font-feature-settings: "palt";
    letter-spacing: 0.2rem;
}

header a,
header a:visited,
header a:hover,
footer a,
footer a:visited{
    color: #fff;
}

footer a:hover {
    color: #ffa;
}

/* ナビゲーション */
nav {
    background-color: #f9f9f9;
    border-bottom: 2px solid #009999;
    width: 100%;
    display: block;
    position: sticky;
    top: 0;
    z-index: 900;
}

nav ul {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
    box-sizing: border-box;
    margin: auto;
}

nav ul li {
    position: relative;
    flex-grow: 1;
    text-align: center;
}

nav ul li a {
    display: block;
    color: #00aaaa;
    font-size: clamp(1.2rem, calc(1.2rem + 0.25vw), 1.6rem);
    font-weight: 700;
    padding: 1rem clamp(0.5rem, calc(0.5rem + 0.3vw), 1rem);
    transition: all 0.3s ease;
}

nav ul li a:visited {
    color: #00aaaa;
}

nav ul li.menu_active a,
nav ul li a.menu_active,
nav ul li a:hover {
    color: #fff;
    background-color: #00aaaa;
    transition: all 0.3s ease;
}

nav ul li .sub_menu {
    display: none;
    position: absolute;
    top: 100%;
    width: 100%;
    background-color: #f9f9f9;
    list-style: none;
    text-align: center;
}

nav ul li .sub_menu li a {
    display: block;
    border-bottom: 1px solid #00aaaa;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    cursor: pointer;
    position: absolute;
    top: 18px;
    left: 20px;
    z-index: 1000;
}

.hamburger .bar {
    background-color: #fff;
    height: 4px;
    width: 30px;
    margin: 6px 0;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 800;
}

/* フッター */
footer {
    background-color: #666;
    color: white;
    padding: 20px 0 10px;
}

footer p {
    max-width: 1000px;
    margin: auto;
    padding: 5px 20px;
}

footer a {
    color: #0000EE;
    text-decoration: underline;
}

.pagetop {
    width: 90%;
    max-width: 960px;
    margin: auto;
    z-index: 10;
    position: relative;
}

.pagetop p a {
    position: absolute;
    right: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    margin: -65px 0 0;
    background-color: #ffaa66;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.pagetop p a:hover {
    background-color: #ff3333;
    transition: all 0.3s ease;
}

.page_link_btn {
    text-align: center;
    margin-bottom: 15px;
}

.page_link_btn button a {
    padding: 10px 15px;
    border-radius: 9999px;
    font-size: 1.8rem;
    color: #009999;
    background-color: #f9f9f9;
    border: 1px solid #009999;
    transition: all 0.3s ease;
}

.page_link_btn button a:hover {
    color: #fff;
    background-color: #009999;
    border: 1px solid #008888;
    transition: all 0.3s ease;
}

.puzzle_hint button a {
    padding: 10px 15px;
    border-radius: 9999px;
    font-size: 1.8rem;
    color: #009999;
    background-color: #f9f9f9;
    border: 1px solid #009999;
    transition: all 0.3s ease;
}

.puzzle_hint button a:hover {
    color: #fff;
    background-color: #009999;
    border: 1px solid #008888;
    transition: all 0.3s ease;
}


.puzzle_anser button {
    text-align: center;
}



/* 共通部位（アイキャッチ、基本）部位のスタイル */

.icatch,
.page_header {
    width: 100%;
/*    min-height: 450px; */
    min-height: 300px;
    background-color: #dddddd;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
    background-image: url(../images/bg_icube.jpg);
    background-size: cover;
    background-position: center;
}

.page_header {
    min-height: 300px;
}

#puzzle .page_header {
    background-image: url(../images/bg_puzzle.jpg);
}

#fractal .page_header {
    background-image: url(../images/bg_fractal.jpg);
    background-color: rgba(255, 255, 255, 0.5);
<!--    background-blend-mode: soft-light; -->
}

#gallery .page_header {
    background-image: url(../images/bg_gallery.jpg);
    background-color: rgba(255, 255, 255, 0.6);
    background-blend-mode: soft-light;
}

#archive .page_header {
    background-image: url("../images/bg_archive.jpg");
}

#ThreeDprint .page_header {
    background-image: url("../images/bg_fractal.jpg");
}



.icatch h2,
.page_header h2 {
    font-size: clamp(2rem, calc(2rem + 0.625vw), 3rem);
    font-weight: 700;
    line-height: 2;
    letter-spacing: 0.5rem;
    max-width: 90%;
    color: #00aaaa;
    filter: drop-shadow(2px 2px 0px #fdfdfd);
}

.page_header h2 span {
    display: block;
    font-size: 2rem;
    border-top: 1px solid #00aaaa;
}


/* 共有部位(メイン)のスタイル */

section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 25px 40px;
}

section h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #009999;
}

section h4 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 10px 0;
    padding-bottom: 10px;
    text-align: left;
    border-bottom: 1px dotted #ccc;
}

p {
    font-size: clamp(1.3rem, calc(1.3rem + 0.2vw), 1.5rem);
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 15px;
}

p cite {
    font-size: 1.2rem;
    color: #666;
}

strong {
    font-weight: 700;
}

bm {
    font-weight: 700;
}


img {
    width: 100%;
}

section ul li {
    list-style: disc;
    font-size: clamp(1.3rem, calc(1.3rem + 0.2vw), 1.5rem);
    line-height: 1.8;
    margin: 0 0 0.5rem 2rem;
}

.page_introduction {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 25px 40px;
    font-size: clamp(1.3rem, calc(1.4rem + 0.5vw), 1.6rem);
}


/* 個別ページのスタイル */

.flex_ly {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}

.flex_ly>div,
.flex_ly>article,
.flex_ly>figure {
/*      width: 45%;   */
    width: 30%;   
    height: auto;
    margin: 10px 0;
}

.flex_ly img,
.gallery_list_set img{
    transition: transform .6s ease;
}

.flex_ly a:hover img,
.gallery_list_set a:hover img{
    transition: transform .6s ease;
    transform: scale(1.08);
}

.flex_ly > .product_image {
    width: 40%; /* 画像は45%→35%などに小さくしてもよい */
}

.flex_ly > .product_detail {
    width: 55%; /* 説明文を広くしたい場合 */
}


.home_introduction div.home_introduction_image {
    width: 35%;
    max-width: 400px;
    margin:0 auto!important;
}

.home_introduction div.home_introduction_text {
    width: 55%;
}

.slideshow {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
}

.slideshow img {
    position: absolute;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slideshow img.active {
    opacity: 1;
}

.home_product figure {
    text-align: center;
    border-radius: 5%;
    box-shadow: 0px 0px 10px rgba(169, 173, 170, 0.355);
    padding: 20px;
    overflow: hidden;
}

.home_product figcaption,
.gallery_list figcaption {
    margin-top: 20px;
    font-size: clamp(1.2rem, calc(1.3rem + 0.5vw), 1.5rem) !important;
    font-weight: 700;
}

.home_news article {
    display: flex;
    flex-wrap: no-wrap;
    justify-content: left;
    border-bottom: 1px dotted #009999;
    margin: 15px auto;
}

.home_news article time {
    line-height: 2;
    margin: 0 2rem 0rem 1rem;
    color: #999;
}

.home_news article p {
    line-height: 2;
    margin-left: 1rem;
}

.puzzle_explanation figure,
.puzzle_question figure {
    width: 90%;
    margin: 20px auto;
}

.puzzle_question figure.cube_peace {
    max-width: 400px;
}

.puzzle_explanation figcaption {
    font-size: clamp(1.2rem, calc(1.3rem + 0.5vw), 1.5rem);
    margin-top: 15px;
    text-align: center;
    color: #85707a;
}

.puzzle_product button {
    display: block;
    margin: 25px auto;
}

.puzzle_product button a {
    padding: 10px 15px;
    border-radius: 9999px;
    font-size: clamp(1.2rem, calc(1.3rem + 0.2vw), 1.4rem);
    color: #fff;
    background-color: #ffaa66;
    border: 2px solid #ff9933;
    transition: all 0.3s ease;
}

.puzzle_product button a:hover {
    color: #fff;
    background-color: #ff3333;
    border: 2px solid #ff9933;
    transition: all 0.3s ease;
}

.puzzle_product ul.product_thum {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    max-width: 600px;
    margin: 15px auto 0 auto;
}

.puzzle_product ul.product_thum li {
    list-style: none;
    width: 25%;
}

.puzzle_product ul.product_thum li img {
    border: 1px solid #eee;
}

.puzzle_question{
    padding-bottom: 30px;
}

.puzzle_hint dt {
    font-weight: 700;
    margin-top: 15px;
    color: #ffaa66;
}

.puzzle_hint .flex_ly figure,
.puzzle_comment .flex_ly figure {
    width: 30%;
}

.puzzle_hint .flex_ly article,
.puzzle_comment .flex_ly article {
    width: 60%;
}

.puzzle_anser_set{
align-items: flex-start;
}

.puzzle_anser_set figure {
    width: 30%;
}

.puzzle_anser_set img {
    max-width: 250px;
}

.puzzle_anser_set p {
    width: 50%;
}

.puzzle_anser_set strong {
    color: #ff3333;
}

.puzzle_slide iframe {
    width: 100%;
    aspect-ratio: 1 / 0.79;
}

.gallery_list_set  {
    margin-bottom: 30px;
}

.gallery_list_set {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    align-items: stretch;
}

.gallery_list_set article {
    width: 31%;
    height: auto;
    padding: 20px;
    border-radius: 2%;
    background-color: #fff;
    box-shadow: 0px 0px 5px rgba(169, 173, 170, 0.355);
    text-align: center;
}

.gallery_list_set article:not(:nth-child(3n+3)) {
    margin-right: 3.5%;
}

.gallery_list_set article:nth-child(n+4) {
    margin-top: 3.5%;
}

.sp-br {
    display: none;
}


/* レスポンシブ対応 768以下 */

@media (max-width: 768px) { 

    p,
    section ul li,
    section dl {
        font-size: 1.4rem !important;
    }

    figcaption {
        font-size: 1.2rem !important;
    }

    .sp-br {
        display: inline-block;
    }

    /* ハンバーガーメニュー表示 */
    .hamburger {
        display: block;
    }

    /* ハンバーガーメニューのトグルで表示 */
    .hamburger.active+.main_menu {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        max-height: 90vh;
        /* メニューの最大高さ */
    }

    /* オーバーレイ表示 */
    .hamburger.active+.main_menu+.overlay {
        display: block;
    }

    .overlay {
        display: none;
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 900;
        height: 70px;
        box-shadow: 5px 0px 10px 0 rgba(141, 147, 143, 0.894);
    }

    nav {
        background-color: #ffffff00;
        border: none;
        position: fixed;
        top: 0;
    }

    nav ul.main_menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        padding: 30px 0;
        z-index: 1000;
        background-color: #f9f9f9;
    }

    nav ul li {
        margin: auto;
        width: 280px;
    }

    nav ul li a {
        display: block;
        text-align: center;
        font-size: 1.9rem;
        padding: 1.5rem 1rem;
        border-top: 1px solid #0099997f;
    }

    nav ul li.menu_active a,
    nav ul li a.menu_active {
        color: #02dfdf;
        background-color: #f9f9f9;
    }

    nav ul li a:hover {
        color: #02dfdf;
        background-color: #f9f9f9;
    }

    nav ul.main_menu>li:last-of-type {
        border-bottom: 1px solid #0099997f;
    }

    /* サブメニューを常に表示 */
    nav ul li .sub_menu {
        display: block !important;
        position: relative;
/*
	background-color: #c0d7da; /* ← 明るい水色にしてみました。お好みで変更OK */
    }

    nav ul li .sub_menu li a {
        font-size: 1.3rem;
        padding: 1.5rem 0 1.5rem;
        width: 80%;
        margin: auto;
        border-bottom: none !important;
        border-top: dotted 1px #ccc;
    }

    .icatch {
        padding-top: 70px;
        min-height: 350px;
    }

    .page_header h2 {
        padding-top: 70px;
    }

    .page_introduction {
        text-align: left;
    }
    .flex_ly,
    .home_news article {
        flex-direction: column;
    }

    .flex_ly div,
    .flex_ly article,
    .flex_ly figure,
    .home_introduction div.home_introduction_image,
    .home_introduction div.home_introduction_text,
    .puzzle_anser_set p {
        width: 100% !important;
        margin: 10px auto;
    }

    .flex_ly figure img {
        width: 90% !important;
        max-width: 320px;
        margin: 10px auto;
    }

    .home_introduction {
        flex-direction: column-reverse;
    } 

    .gallery_list_set article{
        padding: 10px;
        width: 45% !important;
        margin: 0 1% 5% 3.5%!important;;
    }

    .gallery_list_set article figcaption{
        font-size: 1.2rem !important;
    }

}

@media (max-width: 380px) {

    .icatch h2,
    .page_header h2 {
        font-size: 1.8rem;
        letter-spacing: 0.3rem;
    }

    section h3 {
        font-size: 1.6rem;
    }

    section {
    padding: 0 25px 35px;
}


}

@media (min-width: 769px) {

    /* PCビュー時にプルダウンメニューを表示 */
    nav ul {
        display: flex;
    }

    nav ul li .sub_menu {
        display: none;
    }

    nav ul li:hover .sub_menu {
        display: block;
    }

    /* ハンバーガーメニューを非表示に */
    .hamburger {
        display: none;
    }
}

.flex_ly_center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.flex_ly_center img {
    width: 40%;
    height: auto;
    margin: 10px 0;
}


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

.flex_ly2 img {
    width: 48%;
    height: auto;
    margin: 10px 0;
}

.flex_ly2_center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.flex_ly2_center img {
    width: 35%;
    height: auto;
    margin: 20px 0 40px 40px;
}

.flex_ly3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-items: stretch
}

.flex_ly3 img {
    width: 31%;
    height: 31%;
    text-align: center;
    margin-right: 15px;		     
}

.flex_ly3_center {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.flex_ly3_center img {
    width: 25%;
    height: 25%;
    text-align: center;
    margin-right: 20px;		     
}

.flex_ly4 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-items: stretch
}

.flex_ly4 img {
    width: 23%;
    height: 23%;
    text-align: center;
    margin-right: 10px;		         
  margin-bottom: 10px;
}

sub {
  vertical-align: sub;
  font-size: smaller;
}

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

.lang_switch {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.lang_switch a {
  font-size: 1.1rem;
  text-decoration: none;
  color: #333;
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.lang_switch a:hover {
  background-color: #f0f0f0;
}
/*
nav ul.main_menu {
    background-color: #e0f7fa; /* ← 明るい水色にしてみました。お好みで変更OK */
    border-bottom: 2px solid #009999;
}
*/
