@import url('https://fonts.googleapis.com/css2?family=Kiwi+Maru:wght@300;400;500&family=Zen+Maru+Gothic&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Noto+Sans:wdth,wght@62.5..100,700&display=swap');
/* グローバルスタイル */
body {
    font-family: "Kiwi Maru", serif;
    font-weight: 400;
    font-style: normal;
    width: 100%;
    margin: 0;
    padding: 0;
    color: #333;
    align-items: center;
    background:#d2eefd;
}

/* タイポグラフィ */
h1 {
    font-family: "Kiwi Maru", serif;
    font-weight: 500;
    font-style: normal;
    color: #8B4513;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

h2, h3 {
    font-family: "Kiwi Maru", serif;
    font-weight: 300;
    font-style: normal;
    color: #344955;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

h3, h4 {
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}

h4 {
    color: #51829f;
}

/* レイアウト */
.container {
    display: flex;
    min-height: calc(100vh - 100px);
}

/* ヘッダー */
header {
    background-color: #ffd0ad;
    color: #ffffff;
    text-align: center;
    padding: 1em;
}

.logo {
    display: flex;
    align-items: center;        /* 垂直方向の中央揃え */
    justify-content: center;    /* 水平方向の中央揃え */
	font-size: 1.25em;          /* フォントサイズ*/
}
.logo img {
    width: 60px;                /* 画像の幅を固定 */
    height: 60px;               /* 画像の高さを固定 */
    margin-right: 10px;
}

/* ナビゲーション */
#topbar {
    background-color: #ffb074;
	color: #fff;
    padding: 10px 0;
    border-radius: 5px; /* 角を丸くする */
}

#topbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
}

#topbar li {
    position: relative;
}

#topbar a {
    color: white;
    text-decoration: none;
    padding: 10px 20px; /* ボタンっぽく、左右の余白を大きくする */
    display: block;
    background-color: #ffb074; /* topbar の background-color と一致*/
    border-radius: 5px; /* 角を丸くする */
    transition: background-color 0.3s; /* ホバー時の色変化にアニメーション */
}

#topbar a:hover {
    background-color: #ff6f00; /* さらに濃い色に */
}

/* ドロップダウンメニュー */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #00000000;
    min-width: 160px;
    z-index: 1;
}

.dropdown-content a {
    color: white;
    background-color: #00000000;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin-top: 1px;
}

.dropdown:hover .dropdown-content,
.dropdown-content.show {
    display: block;
}

.dropbtn {
    cursor: pointer;
}

/* サブナビゲーション */
#subbar {
    background-color: #afafaf;
	color: #fff;
    padding: 10px 0;
    border-radius: 5px; /* 角を丸くする */
}

#subbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
}

#subbar li {
    position: relative;
}

#subbar a {
    color: white;
    text-decoration: none;
    padding: 10px 20px; /* ボタンっぽく、左右の余白を大きくする */
    display: block;
    background-color: #afafaf; /* ボタンの背景色 */
    border-radius: 5px; /* 角を丸くする */
    transition: background-color 0.3s; /* ホバー時の色変化にアニメーション */
}

#subbar a:hover {
    background-color: #707070; /* さらに濃い色に */
}

main {
    flex-grow: 1;
    padding: 20px;
    background-color: #d2eefd;
}

.sub-title{
    display: flex;  /*justify-contentはdisplay:flexとセットで使うCSSです。*/
    justify-content: center; /* 水平方向の中央揃え */
}

/* ギャラリーセクション */
.gallery-container {
    width: 100%;
    overflow: hidden;
    padding-bottom: 40px;
}

.gallery {
    display: flex;
    width: 2000%; /* 画像の枚数*100 */
    transition: transform 0.5s ease;
}

.gallery-item {
    width: 20%; /* 各アイテムは全体の1/5の幅 */
    display: flex;
    justify-content: center; /* 中央揃え */
    align-items: center;
    box-sizing: border-box;
}

.frame {
    width: 640px; /* フレームの幅を固定 */
    border: 10px solid #4a6572;
}

.frame img {
    width: 640px; /* 画像の幅を固定 */
    height: 360px; /* 画像の高さを固定 */
    object-fit: cover;
    display: block;
}

/* コンテンツセクション */
.content-section {
    background-color: #f9f9f9;
    width: min(90%, 50rem);
    margin: 0 auto 20px;
    padding: 20px;
    border-radius: 8px;
}

.content-section-image-click-kakudai,
.content-map {
    max-width: 100%;
    display: block;
    margin: 15px auto 20px;
    border-radius: 8px;
}


/* コンテンツ横並びセクション */
.content-section-yokonarabi-parent {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列に分ける */
    gap: 5px; /* 要素の間のスペース */
}

.content-section-yokonarabi2-parent {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3列に分ける */
    gap: 5px; /* 要素の間のスペース */
}

.content-section-yokonarabi-child {
    aspect-ratio: 1 / 1; /* 1:1のアスペクト比 */
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.content-section-yokonarabi-image-click-kakudai,
.content-section-yokonarabi-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* アスペクト比を保ちながら、コンテナいっぱいに表示 */
}

.content-section-yokonarabi-article {
    text-decoration: none; /* リンクの下線を削除 */
    color: inherit; /* リンクの色を親の色にする */
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
  }
  
  .content-section-yokonarabi-article-thumbnail img {
    width: 100%;
    height: auto;
    display: block; /* 画像をブロック要素として表示 */
  }
  
  .content-section-yokonarabi-article-title {
    font-size: 1.2em;
    margin: 10px;
  }
  
  .content-section-yokonarabi-article-date {
    font-size: 0.9em;
    color: #666;
    margin: 0 10px 10px 10px;
  }

/* メイソンリーレイアウト用 */
.content-section-masonry-parent {
    margin: 0 auto;
    width: min(100%);
}

/* grid-sizer は目に見えないダミー要素 */
.grid-sizer {
    width: 32.5%; /* 3列にしたいので、親の3分の1の幅 */
}

.content-section-masonry-child {
    width: 32.5%; /* grid-sizer と同じ幅を設定 */
    overflow: hidden;
    cursor: pointer;
}

.content-section-masonry-image-link {
  transition: opacity 0.3s ease;
}

.content-section-masonry-image-link:hover {
  opacity: 0.8;
}
/* メイソンリーレイアウト用 end */

/* スライドショー用 */
.content-section-slideshow-parent {
    margin: 0 auto;
    width: min(98%, 100%);
    position: relative;
}

.content-section-slideshow-image-area {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    touch-action: pan-y pinch-zoom;
}

.content-section-slideshow-image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    cursor: pointer;
    user-select: none;
    border-radius: 8px;
}

.content-section-slideshow-control-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10px;
    position: relative;
}

.slideshow-nav-button {
    padding: 10px 25px;
    font-size: 16px;
    font-weight: bold;
    background-color: #febebe;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.slideshow-nav-button:active {
    transform: translateY(1px);
}

.slideshow-counter {
    font-size: 18px;
    font-weight: bold;
    color: #344955;
    min-width: 80px;
    text-align: center;
}
/* スライドショー用 end */

.zakki-thumbnail-container {
    width: 100%;
    overflow: hidden;
    padding-top: 40px;
}

.zakki-thumbnail-container-item {
    display: flex;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
}

.zakki-thumbnail-frame {
    width: 640px; /* フレームの幅を固定 */
}

.zakki-thumbnail-frame img {
    width: 640px; /* 画像の幅を固定 */
    height: 360px; /* 画像の高さを固定 */
    object-fit: cover;
    display: block;
}

.load-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 10px solid rgba(255, 255, 255, 0.5);
    border-top-color: rgba(255, 255, 255, 1);
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

/* Tumblrの投稿から取得した画像のサイズ設定 */
#tumblr-posts img {
    max-width: 100%;
    object-fit: contain; 
}

/* DIY実績アイコンのサイズ設定 */
#diy-contents img {
    max-width: 30%;
    object-fit: contain; 
}

#diy-link-ico {
    display: flex;
    justify-content: flex-end;
    margin-top: -40px;
    margin-right: -20px;
}
/* DIY実績Linkのアイコンのサイズ設定 */
#diy-link-ico img {
    max-width: 30px;
    margin-right: 10px;
}

/* マークダウントリム */
/* インラインコードのスタイル */
code {
    background-color: #ebebeb;
    border-radius: 3px;
    padding: 2px 4px;
    font-family: "Noto Sans JP";
    font-weight: 600;
  }
  
  /* コードブロックのスタイル */
  pre {
    background-color: #ebebeb;
    border: 1px solid #393939;
    border-radius: 4px;
    padding: 8px;
    overflow-x: auto; /* 水平方向のスクロールを許可 */
    font-family: "Noto Sans JP";
    font-weight: 600;
  }

/* ボタン */
.button-container {
    text-align: center;
}
.cute-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 8px 2px;
    font-family: 'Arial Rounded MT Bold', 'Helvetica Rounded', Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    background-color: #febebe;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cute-button:hover {
    background-color: #ff7777;
    transform: translateY(-2px);
}

.cute-button:active {
    transform: translateY(1px);
}

#topButton {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    padding: 15px;
    font-size: 18px;
    background-color: #555;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
}

#topButton:hover {
    background-color: #333;
}

/*アコーディオン全体 始まり*/
.accordion-area{
    list-style: none;
    max-width: 60%;
    margin:0 auto;
    height: 50vh;
}

.accordion-area li{
    margin: 10px 0;
    background-color: #00000031;
}

.accordion-area section {
	border: 0px;
}

/*アコーディオンタイトル*/
.accordion_title {
    position: relative;/*+マークの位置基準とするためrelative指定*/
    cursor: pointer;
    font-size:1rem;
    font-weight: normal;
    padding: 3% 3% 3% 50px;
    transition: all .5s ease;
	color: #404040;
    background-color: #ffffff;
	font-weight: bold;
}

/*アコーディオンで現れるエリア*/
.box {
    display: none;/*はじめは非表示*/
    background-color: #ffffff00;
}
.box a{
	color: #ffffff;
}

/*アイコンの＋と×*/
.accordion_title::before,
.accordion_title::after{
    position: absolute;
    content:'';
    width: 15px;
    height: 2px;
    background-color: #333;
    
}
.accordion_title::before{
    top:48%;
    left: 15px;
    transform: rotate(0deg);
    
}
.accordion_title::after{    
    top:48%;
    left: 15px;
    transform: rotate(90deg);
}
/*　accordion_closeというクラスがついたら形状変化　*/
.accordion_title.accordion_close::before{
	transform: rotate(45deg);
}

.accordion_title.accordion_close::after{
	transform: rotate(-45deg);
}

/*アコーディオン全体 終わり*/

#AsideAllAria {
    background: #ffffff;
}

#AsideAllAria h2{ /* .h02 */
	font-size: 16px;
	color: #6f6f6f;
	font-weight: bold;
	padding-bottom: 0;
	margin-bottom: 0.5em;
	line-height: 1.3;
}
#AsideContentsAnnouncements {
    background: #e6e6e6;
    padding: 2%;
}

dt {
	font-weight: bold;
}
dd {
    margin-inline-start: 0.3em
}

/* フッター */
footer {
    background-color: #fee0ff;
    color: #51829f;
    text-align: center;
    padding: 0.1em;
    position: relative;
    bottom: 0;
    font-size: 1.5em;			/* フォントサイズ*/
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #000000b0;
    overflow: auto;
}

.modal-content {
    border: 4px solid #ffba85;
    border-radius: 5px;
    position: absolute;
    top: 50%;           /* JSでも指定しているが、こちらが先らしく一瞬上端に出るため設定 */
    left: 50%;          /* JSでも指定しているが、こちらが先らしく一瞬上端に出るため設定 */
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90vh;
}

#caption {
    text-align: center;
    color: white;
    padding: 20px;
    width: 100%;
}


.close {
    position: absolute;  /* モーダル内で絶対位置指定 */
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;  /* ホバー時のスムーズな遷移のため */
}

.close:hover,
.close:focus {
    color: #bbb;  /* ホバー時の色変更 */
    text-decoration: none;
    cursor: pointer;  /* カーソルをポインターに */
}

#bottom-button ul {
    list-style-type: none;
    margin: 0;
    padding: 12px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 12px;
}

#bottom-button li {
    position: relative;
    flex: 1;
    min-width: 80px;
}

#bottom-button a {
    color: #2d2d2d;
    display: block;
    background-color: #f5d5b8;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: none;
}

#bottom-button a:hover {
    background-color: #e8c5a0;
    transform: translateY(-1px);
}

#bottom-button a:active {
    background-color: #dbb896;
    transform: translateY(0);
}

/* レスポンシブデザイン */
@media screen and (max-width: 680px) {
    .logo {
        font-size: 1.0em;			/* フォントサイズ*/
    }
    main {
        padding-top: 10px;
        padding-bottom: 20px;
        padding-right: 0px;
        padding-left: 0px;
    }
    .content-section
    {
        width: 96.5%;
    }

    .content-section-image-click-kakudai,
    .content-map,
    .accordion-area{
        max-width: 100%;
    }
    .content-section{
        padding: 5px;
    }

    /* 画像クリックで拡大時の画像 */
    .modal-content {
        border: 2px solid #ffba85;
        max-width: 98%;
        max-height: 90vh
    }

    #diy-link-ico {
        margin-top: -10px;
        margin-right: -10px;
    }
    .content-section-yokonarabi-parent {
        grid-template-columns: repeat(2, 1fr); /* 2列に分ける */
    }
    /* ギャラリーの説明文収めるための微調整 */
    .content-section-yokonarabi2-parent h3 {
        font-size: 90%;
    }
    .content-section-yokonarabi2-parent ul{
        margin:0px 0px 0px 0.5em;
        padding: 0px 0px 0px 0.6em;
    }
    .content-section-yokonarabi2-parent li {
        font-size: 60%;
    }

    /* grid-sizer は目に見えないダミー要素 */
    .grid-sizer {
        width: 48.5%;
    }

    .content-section-masonry-child {
        width: 48.5%;
    }

    #topbar{
        padding:0px;
        background-color: #ffffff00;
        border-radius: 10px; /* 角を丸くする */
    }

    #topbar ul {
        flex-direction: column;
    }

    #topbar li,
    #topbar a,
    .dropdown-content {
        width: 100%;
        margin-bottom: 1px;
    }

    #topbar a {
        box-sizing: border-box;
    }

    #subbar{
        padding:0px;
        background-color: #ffffff00;
    }

    #subbar ul {
        flex-wrap: wrap; /* アイテムを折り返し可能にする */
        justify-content: space-between; /* 左右に均等配置 */
        gap: 5px; /* アイテム間の余白 */
        padding-right: 5px;
        padding-left: 5px;
    }
    
    #subbar li {
        flex-basis: calc(50% - 5px); /* 幅を約50%に設定（gap分を引く） */
        min-width: 0; /* flexboxの最小幅制限を解除 */
    }
    
    #subbar a {
        box-sizing: border-box;
        text-align: center; /* テキストを中央揃え */
        padding: 4px 10px; /* スマホでタップしやすいように縦パディングを増加 */
    }

    .dropdown-content {
        position: static;
    }

    .frame,
    .zakki-thumbnail-frame {
        width: 320px;
        height: 180px;
    }
    .frame img,
    .zakki-thumbnail-frame img  {
        width: 320px;
        height: 180px;
    }
}