@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-weight: normal;
    font-family: "Zen Kurenaido", sans-serif;
}

:root {
    --white: #FFFFFF;
    --another: #FFFFFF26;
    --green: #68CE81;
    --red: #FF6565;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        /* 開始時点では透明 */
    }

    to {
        opacity: 1;
        /* 終了時点では不透明 */
    }
}

html {
    scroll-behavior: smooth;
}


body {
    background: linear-gradient(to right bottom, #71DD8C, var(--red))no-repeat;
    padding-top: 100px;
    animation: fadeIn 1.5s ease-out forwards;
}

header {
    height: 100px;
    background-color: var(--another);
    display: flex;
    justify-content: center;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 999;
    /* 重なり順を念の為指定 */
}

#header_wrap{
    width: 1080px;
    display: flex;
    justify-content: space-between;
}

/* -------------------------------------------------
   トップへ戻るボタンの修正（初期非表示・フェードイン）
   -------------------------------------------------
*/
#scroll {
    position: fixed;
    right: 5%;
    bottom: 20px;
    z-index: 100;

    /* 初期状態は透明にしてクリックもできないようにする */
    opacity: 0;
    pointer-events: none;

    /* 滑らかに表示させるためのトランジション */
    transition: opacity 0.3s ease-in-out;
}

/* クラスが付与されたら表示する */
#scroll.is-show {
    opacity: 1;
    pointer-events: auto;
    /* クリック可能に戻す */
}

/* *********************** */


footer {
    background-color: var(--another);
    height: 400px;
    position: relative;
}

h5 {
    margin-right: auto;
    margin: 0 0 15px 180px;
    padding-top: 150px;
}

footer a {
    color: var(--white);
    font-size: 20px;
    text-decoration: underline;
    text-decoration-color: var(--white);
    margin-left: 330px;
}

footer p {
    color: var(--white);
    font-size: 16px;
    margin-top: 15px;
    margin-left: 210px;
    line-height: 1.5;
}

h1 {
    /* margin-left: 10%; */
    padding: 23px 0 26px;
}


/* -------------------------------------------------
   ロゴアニメーションの追加部分
   -------------------------------------------------
*/

/* アニメーションのキーフレーム定義 */
@keyframes logoSway {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(5deg);
    }

    /* 右に5度 */
    20% {
        transform: rotate(-5deg);
    }

    /* 左に5度 */
    30% {
        transform: rotate(5deg);
    }

    /* もう一度右に */
    40% {
        transform: rotate(0deg);
    }

    /* 元の位置に戻る */
    100% {
        transform: rotate(0deg);
    }

    /* 残りの時間は停止（待機） */
}

header h1 img {
    /* アニメーションの設定 */
    /* logoSway: 定義したアニメーション名 */
    /* 5s: 1サイクルの時間（動いている時間＋止まっている時間） */
    /* ease-in-out: ゆっくり動き出し、ゆっくり止まる */
    /* infinite: 無限に繰り返す */
    animation: logoSway 4s ease-in-out infinite;

    /* 回転の軸を中心に設定 */
    transform-origin: center center;

    /* 少し滑らかに動くように設定 */
    will-change: transform;
}

/* ------------------------------------------------- */


ul {
    display: flex;
    gap: 55px;
    line-height: 100px;
    margin-left: auto;
    /* margin-right: 180px; */

    li {
        color: var(--white);
        font-size: 20px;


        a {
            position: relative;
        }

        a::after {
            content: "";
            position: absolute;
            display: block;
            left: 0;
            bottom: -3px;
            width: 100%;
            height: 2px;
            background-color: #FFFFFF;
            transform: scaleX(0);
            transform-origin: center;
            transition: transform 0.4s ease-in-out;
        }

        a:hover::after {
            transform: scaleX(1);
        }
    }
}

#deco {
    position: relative;
    width: 1080px;
    height: 537px;
    margin: 30px auto;
}

#deco::before {
    content: "";
    display: block;
    width: 473px;
    height: 473px;
    background: linear-gradient(#8AFAA6, #FF6666);
    border-radius: 50%;
    filter: blur(30px);
    /* margin: 65px auto; */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#circle{
    padding-top: 190px;
    display: flex;
    flex-direction: column;
    gap: 90px;
}

h2 {
    font-size: 96px;
    color: var(--white);
    text-align: center;
    /* white-space: nowrap; */
    z-index: 2;
    
}

#deco p {
    width: 456px;
    border-top: 1px solid var(--white);
    border-bottom: 1px solid var(--white);
    line-height: 30px;
    font-size: 20px;
    color: var(--white);
    text-align: center;
    margin: 0 auto;
    z-index: 2;
}

#sen1 {
    position: absolute;
    bottom: 0;
    right: -40px;
    ;
}

#sen2 {
    position: absolute;
    top: 0;
    left: -250px;
}

#sen3 {
    position: absolute;
    top: 200px;
    right: 0;
}

#sen4 {
    position: absolute;
    top: 200px;
    left: 0;
}

#sen5 {
    position: absolute;
    top: 32px;
    right: 100px;
}

#sen6 {
    position: absolute;
    bottom: 0;
    left: 100px;
}


h3 {
    color: var(--white);
    font-size: 24px;
    text-align: center;
    padding-top: 70px;
}

#news {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 47px;
}

.kiji {
    display: flex;
    border-bottom: 1px solid var(--white);
    padding: 30px 0;

    &:last-child {
        border-bottom: none;
    }
}

dt,
dd {
    font-weight: normal;
    font-size: 20px;
}

dt {
    color: var(--green);
    background-color: var(--white);
    width: 200px;
    height: 40px;
    border-radius: 50px;
    line-height: 40px;
    text-align: center;
}

dd {
    color: var(--white);
    padding-left: 70px;
    width: 880px;
    height: 40px;
    line-height: 40px;
}

#theme {
    position: relative;
    padding-top: 50px;
}

#katati {
    width: 125px;
    height: 125px;
    background: linear-gradient(#8AFAA6, #FF6666);
    border-radius: 50%;
    filter: blur(10px);
    text-align: center;
    margin: 0 auto;
    padding: 25px;
    z-index: 10;
}

#iro {
    position: absolute;
    top: 17%;
    right: 47.5%;
}

#theme p {
    font-size: 20px;
    color: var(--white);
}

#theme h4 {
    font-size: 36px;
    color: var(--white);
}

#moji1 {
    margin-bottom: 15px;
}

#moji2 {
    text-align: center;
    padding: 25px 0 130px;
    line-height: 1.5;
}

#read_more {
    font-size: 20px;
    color: var(--red);
    background-color: var(--white);
    width: 200px;
    height: 40px;
    border-radius: 50px;
    text-align: center;
    line-height: 40px;
    display: block;
    margin: 0 auto;
}

#map iframe {
    position: absolute;
    height: 350px;
    top: 7%;
    right: 10%;
    width: 600px;
}

.hihyoji{
    display: none !important;
}

/* -------------------------------------------------
   装飾画像（#sen1〜4のみ）のフェードアニメーション
   -------------------------------------------------
*/

/* ゆっくり消えて、また現れる動きの定義 */
@keyframes random-fade {
    0% {
        opacity: 0;   /* 透明 */
    }
    50% {
        opacity: 1;   /* 不透明 */
    }
    100% {
        opacity: 0;   /* また透明 */
    }
}

/* #sen1 〜 #sen4 にのみアニメーションを適用します。
   時間とタイミングをバラバラに設定しています。
*/

#sen1 {
    /* 7秒かけて変化 */
    animation: random-fade 7s ease-in-out infinite; 
}

#sen2 {
    /* 5秒かけて変化、2秒待ってから開始 */
    animation: random-fade 5s ease-in-out infinite 2s; 
}

#sen3 {
    /* 8秒かけて変化、1秒待ってから開始 */
    animation: random-fade 8s ease-in-out infinite 1s; 
}

#sen4 {
    /* 6秒かけて変化、3.5秒待ってから開始 */
    animation: random-fade 6s ease-in-out infinite 3.5s; 
}

/* #sen5, #sen6, #sen7 はここに含まれていないため、
   消えたり現れたりせず、常に表示されたままになります。
*/


/* =================================================
   レスポンシブ対応（タブレット・スマホ）
   ================================================= */

/* -------------------------------------------------
   【iPad・タブレット・小さいPC向け】
   画面幅 1100px 以下の場合
   ------------------------------------------------- */
@media screen and (max-width: 1100px) {
    
    /* コンテンツ幅を固定pxから％に変更 */
    #header_wrap,
    .centering,
    #deco {
        width: 90%; /* 左右に少し余白を持たせる */
    }

    /* ヘッダーのナビゲーション（文字サイズ調整） */
    ul {
        gap: 20px; /* 間隔を詰める */
    }
    ul li {
        font-size: 16px;
    }

    /* ニュースリストの調整 */
    dd {
        width: auto; /* 固定幅を解除 */
        flex: 1;     /* 残りの幅いっぱいを使う */
        padding-left: 20px;
    }

    /* 装飾画像が画面外にはみ出して横スクロールが出るのを防ぐ */
    body {
        overflow-x: hidden;
    }
}

/* -------------------------------------------------
   【iPhone・スマホ向け】修正版
   画面幅 768px 以下の場合
   ------------------------------------------------- */
@media screen and (max-width: 768px) {

    /* --- ヘッダーまわり --- */
    header {
        height: auto;
        padding-bottom: 10px;
        position: relative;
    }

    body {
        padding-top: 0;
    }

    #header_wrap {
        flex-direction: column;
        align-items: center;
    }

    h1 {
        padding: 10px 0;
    }

    ul {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        line-height: 2;
        margin: 0;
    }

    /* --- メインビジュアル --- */
    #deco {
        height: auto;
        margin-top: 20px;
        padding-bottom: 50px;
    }

    #deco::before {
        width: 300px;
        height: 300px;
    }

    #circle {
        padding-top: 50px;
        gap: 30px;
    }

    h2 {
        font-size: 48px;
        line-height: 1.2;
    }

    #deco p {
        width: 100%;
        font-size: 16px;
    }

    /* 装飾画像の調整 */
    #sen2, #sen6 { display: none; }
    #sen1 { right: 0; bottom: -20px; transform: scale(0.7); }
    #sen3 { top: 50px; right: -20px; transform: scale(0.7); }
    #sen4 { top: 100px; left: -20px; transform: scale(0.7); }
    #sen5 { top: 0; right: 0; transform: scale(0.7); }


    /* --- NEWSセクション --- */
    .kiji {
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
        align-items: center;
    }

    dt {
        margin-bottom: 5px;
    }

    dd {
        padding-left: 0;
        text-align: center; /* 中央揃えで見やすく */
        width: 100%;
        height: auto;
        line-height: 1.5;
        
        /* clampを使用: 最低12px、推奨3.5vw、最大14px */
        font-size: clamp(12px, 3.5vw, 14px);
    }

    /* --- THEMEセクション（位置ズレ修正・clamp適用） --- */
    #theme {
        text-align: center;
        position: relative; /* 子要素の基準点にする */
    }
    
    #katati {
        margin: 0 auto 20px; /* 円を中央に配置 */
    }

    #iro {
        /* 文字の入った箱を、円の上に絶対配置で重ねる */
        position: absolute;
        top: 50px; /* #themeのpadding-top分だけ下げる */
        left: 50%;
        transform: translateX(-50%); /* 左右中央寄せ */
        
        /* 円と同じサイズにして、中身をド真ん中に配置 */
        width: 125px;
        height: 125px;
        margin: 0;
        
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 20; /* 円より手前に表示 */
    }
    
    /* 「THEME」の文字サイズ */
    #theme p#moji1 {
        margin-bottom: 5px;
        font-size: 14px;
    }

    /* 「彩り」の文字サイズ */
    #theme h4 {
        font-size: 28px; 
    }

    /* 本文の文字サイズ（clamp適用） */
    #theme p#moji2 {
        padding: 20px 15px 50px;
        text-align: left;
        /* clampを使用: 最低13px、推奨4vw、最大15px */
        font-size: clamp(13px, 4vw, 15px);
        line-height: 1.8;
    }

    /* --- フッター --- */
    footer {
        height: auto;
        display: flex;
        flex-direction: column;
        padding-bottom: 50px;
    }

    h5 {
        margin: 0;
        padding: 50px 0 20px;
        text-align: center;
    }

    footer a {
        margin: 0;
        display: block;
        text-align: center;
    }

    footer p {
        margin: 20px 0;
        text-align: center;
        font-size: 14px;
        padding: 0 10px;
    }

    #map {
        position: relative;
        width: 100%;
        height: 300px;
        margin-top: 20px;
    }

    #map iframe {
        position: static;
        width: 90% !important;
        margin: 0 auto;
        display: block;
        right: auto;
        top: auto;
    }
}