/* #BASE CSS (Initital Setup)
---------------------------------
    #BASE CONTENT
        #SPLASH SCREEN
        #STICKY PANEL
        #TYPOGRAPHY
            #BODY
            #HEADINGS
            #PARAGRAPHS
            #LINKS
            #HELPERS
        #MEDIA
            #IMAGES
            #OVERLAY
        #COMPONENTS
            #BUTTONS
    #BASE LAYOUT
        #SIMPLE RESET
        #MEDIAQUERIES
        #CONTAINER
        #GRID SYSTEM
    #BASE SITE
        #SITE STRUCTURE
            #HEADER
                # site-id (LOGO)
            #FOOTER
            #SECTIONS
            #SUB PAGES
        #SITE NAVIGATION
            #TOGGLE-NAV (Default for Small Screens)
    #SITE MAIN
        #TEXT RIGHT 
        #KEYFRAMES
--------------------------------- */

/* SPLASH SCREEN */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: black;
    z-index: 1000;
}


/* STICKY PANEL */
/* .sticky-panel {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-rows: auto 1fr;
} */

html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    height: 100%;
}

.left {
    top: 0;
    background-color: rgb(255, 255, 255);
    position: sticky;
}

.right {
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* ← 2列表示 */
    box-sizing: border-box;
    flex-direction: column;
    padding-right: 9%;
}

.column.one-half {
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .splitscreen {
        display: grid;
        grid-template-columns: 30% 70%;
        width: 100%;
        max-width: none;
        position: relative;
    }
}

/* BASE TYPOGRAPHY */

/* BODY */
body {
    font-family: system-ui, Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.4;
    font-size: 87.5%;
}

.project-page {
    overflow-x: visible;
}

/* HEADINGS */

h1, h2, h3, h4, h5, h6 {
    margin: .5em 0;
    font-family: karantina, sans-serif;
     color: #cc0066;
    font-weight: 500;
    
}

h1 {
    font-family: "Over the Rainbow", cursive;
    font-weight: bold;
    font-style: normal;
    font-size: 4em;
    color: #cc0066;
}

h2 {
    font-size: 3.25em;
    line-height: 1.1;
    font-family: "Over the Rainbow", cursive;
    font-weight: 700;
}

h3 {
    font-size: 2em;
    line-height: 1.2;
}

h4 {
    font-size: 2.25em;
    line-height: 1.3;
}

h5 {
    font-size: 2.25em;
    line-height: 1.3;
}

h6 {
    font-size: 1em;
    line-height: 1.4;
}

/* PARAGRAPHS - SET HOTOZONTAL MEASURE */
p {
    max-width: 66ch;
    border: 1px;
    font-family: "monotype-grotesque-condensed", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.6em;
}

strong {
    font-weight: 700;
}

/* LINKS */
a {
    color: rgba(251, 15, 15, 0.8);
    text-decoration: none;
}

a:hover {
    color: rgba(0,0,153,1);
    text-decoration: underline;
}

/* HELPER CLASSES */
.text-centered {
    text-align: center;
}

.hidden {
    position: absolute;
    top: -9999px;
    left: -9999px;
}

@media (min-width: 768px) { .hidden-desktop {
    position: absolute;
    top: -9999px;
    left: -9999px;
    }

}

@media (min-width: 767px) { .hidden-mobile {
    position: absolute;
    top: -9999px;
    left: -9999px;
    }
}

.full-width {
    max-width: none;
    width: 100%;
}
.horiz-center {
    margin-left: auto;
    margin-right: auto;
}

/* IMAGES */
img {
    height: 100%;
    width: 100%;
    /* object-fit: cover; */
}

.site-id .img {
    height: 50px;
}

.img-wrapper {
    margin: 2em 0;
    border-radius: 8px;
    max-width: 100%;
    margin: .5em 0;
    overflow: clip;
}

/* OVERLAY */
.image-hover {
  position: relative;
  display: block;
  max-width: 100%;
  overflow: hidden;
}

.image-hover img {
  width: 100%;
  height: auto;
  display: block;
  transition: 0.4s ease;
}

.hover-image .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 100%;
}

.hover-image .overlay {
  opacity: 100%;
}

.image-hover:hover .main-image {
  opacity: 0;
}


/* BUTTONS */
.button, button, form input[type="submit"] {
    background-color: rgba(0,0,204,1);
    border: 1px solid rgba(0,0,204,1);
    color: rgba(255,255,255,.8);
    padding: 1em;
    display: inline-block;
    margin: .5em .5em .5em 0;
    text-align: center;
    border-radius: .5em;
}

.button:hover, button:hover, form input[type="submit"]:hover {
    background-color: rgba(0,0,153,1);
    border-color: rgba(0,0,153,1);
    color: rgba(255,255,255,1);
    text-decoration: none;
}

.button.alt {
    background-color: transparent;
    color: rgba(0,0,153,.8);
}

.button.alt:hover {
    background-color: rgba(0,0,153,1);
    color: rgba(255,255,255,1);;
}

/* LAYOUT */

/* SIMPLE RESET */
* { box-sizing: border-box; }
body { margin: 0;}

/* CONTAINER */
.project-page .container {
    max-width: 100%;
    margin: 0 auto;
    padding:7% 5%;
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding:0 4%;
}

.site-header .container {
    width: 100%;
    padding: 0 4%;  
}

.image-container {
  display: flex;          /* 横並びにする */
  justify-content: center; /* 中央寄せ */
  gap: 20px;              /* 画像の間に余白 */
}

.image-container img {
  width: 30%;             /* 横幅をそろえる */
  height: auto;           /* 縦横比を維持 */
  object-fit: cover;      /* はみ出し防止 */
}

.container-img img {
  width: 50%;     /* 画像の横幅を半分にする */
  height: auto;   /* 縦横比を維持 */
  display: block; /* 余計な余白を消す */
  margin: 0 auto; /* 中央に寄せたい場合 */
}




/*  MEDIA QUERIES */

@media (min-width: 768px) {
   /* TABLET SIZED STYLING GOES HERE */
}

@media (min-width: 1050px) {
    body {
        font-size: 100%; /* 16px */
    }
}

@media (min-width: 1250px) {
    body {
        font-size: 112.5%; /* 18px */
    }    
    container {
            /* max-width: 1200px; */
    }
}

/* FOR DEMO PURPOSES ONLY */
body.demo {
    padding-top: 2em;
}

body.demo::before {
    content: "Small (Mobile) Less Than 768px";
    background-color: #933;
    width: 100%;
    position: fixed;
    top: 0;
    text-align: center;
    color: white;
    padding: .5em;
}

@media (min-width: 768px) {
body.demo::before {
    background-color: #bcb83d;
    content: "Midsize (Tablet) Screen 768px - 1050px";
}
}

@media (min-width: 1050px) {
    body.demo::before {
        background-color: #693;
        content: "Large (Notebook) Screen 1050px - 1250";
}
}

@media (min-width: 1250px) {
    body.demo::before {
        background-color: #09c;
        content: "Extra Large (Desktop) Screen 1250px +";
}
}

/* SEMANTIC GRID SYSTEM */

.row > .column {
    margin-bottom: 0em;
}

@media (min-width: 768px) {

    .row {
        display: flex;
        justify-content: space-between;
        margin-left: -2%;
        margin-right: -2%;
    }

    .row > .column {
        flex-grow: 1;
        margin-left: 2%;
        margin-right: 2%;
    }

    .row > .column.one-half {
        max-width: 46%;
    }

    .row > .column.one-third {
        max-width: 29.3333%;
    }

    .row > .column.two-thirds {
        max-width: 62.6666%;
    }

    .row > .column.one-fourth {
        max-width: 21%;
    }

    .row > .column.centered {
        margin-left: auto;
        margin-right: auto;
    }
}

/* FOR DEMO PURPOSES ONLY */
.demo .column {
    background: rgba(0,0,0,.2);
    padding: 1em;
}

/* SITE STRUCTURE */

/* SITE HEADER */
.site-header {
    padding: 1em 0;
}

/* ON LARGER SCREENS PLACE LOGO LEFT AND NAV RIGHT */
@media (min-width: 768px) {
.site-header .container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    }
}  

/* STYLRING FOR BOTH AND FOOTER */
 .site-header a {
    color: rgba(0, 0, 0, 0.8);
 }

.site-footer.inside-scroll {
  padding: 30px 0;
  background-color: #000000ca;
  text-align: center;
  width: 100%;
  margin-top: 4em; /* 少しスペースをあけると自然 */
}

.site-header a:hover {
    color: rgba(0,0,0,1);
    text-decoration: none;
} 

.site-footer a {
    color: rgb(255, 255, 255);
    text-decoration: none;
}

/* LOGO AREA */

.site-id h1 {
    font-size: 1.5em;
    margin: 0;
    padding-top: .25em;
    width: 80px;   /* 必要に応じてサイズを調整 */
    height: auto;   /* アスペクト比を保つ */
}

/* SITE NAV */

.site-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    font-size: 1.5em;
}

.site-nav {
    font-family: karantina, sans-serif;
}

.site-nav a {
    display: block;
    padding: 1em;
}

.site-nav .menu-button {
    display: none;
}

/* SECTION */
section {
    padding: 3em 0;
    width: 100%;
}

/* HERO */

.hero {
    padding: 5em 4%; 
    text-align: center;
    width: 100%;
}

.hero-homepage {
    padding: 5em 4%; 
    text-align: center;
    width: 100%;
    height: 40svh;
}

.hero h1 {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.hero h1, p {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero .container {
    width: 100%;
}

/*  BOX-1,2,3,4,5 */

.container-a   {
  display: flex;           /* 横並びにする */
  justify-content: space-between;
  max-width: 100%;
  margin: 5em;         
}

.box-01 {
  flex: 1;                 /* 左を伸ばす */
  max-width: 70%;          /* 左の幅を6割に固定 */
}

.box-02 {
  flex: 1;                 /* 右も伸びるけど… */
  max-width: 30%;          /* 空のスペースを右に確保 */
}

.box-03 {
  flex: 1;              
  width: 55%;         
}

.box-04 {
  flex: 1;                 
  width: 45%;          
}
.box-04 img {
  width: 100%;       /* 横幅を親要素に合わせる */
  height: auto;      /* 縦横比を維持 */
  display: block;    /* 不要な余白を消す */
  object-fit: contain; /* はみ出さず収めたい場合 */
}

.box-05 {
    flex: 1;              
  width: 55%;
}

.box-06 {
    flex: 1;              
  width: 45%;
}

.box-07 {
  flex: 0 0 auto;   /* 画像サイズに合わせる */
  width: 55%;       /* 必要に応じて調整 */
}

.box-08 {
  flex: 0 0 auto;   /* 必要に応じて幅を固定 */
  margin-left: auto; /* ← これで右端に寄る！ */
  display: flex;
}



.box-01 p {
    max-width: 1700px;
    margin-right: auto;
    font-family: karantina, sans-serif;
    font-style: normal;
    font-size: 4em;
    line-height: 1.5;  
}

/* TOGGLE NAV */

@media (max-width: 767px) {
    .toggle-nav .site-id {
        position: absolute;
    }
    .toggle-nav .site-nav {
        text-align: right;
    }
    .toggle-nav .site-nav .menu-button {
        display: block;
        display: inline-block;
        cursor: pointer;
        padding: .3em 1em;
        margin-bottom: .8em;
        border: 1px solid black;
    }
    .toggle-nav .site-nav .menu-button::selection {
        background: rgba(255,255,255,0);
    }
    .toggle-nav .site-nav ul {
        display: block;
        text-align: center;
    }
    .toggle-nav .site-nav a:hover {
        background-color: rgba(0,0,153,1);
        color: white;
    }
    .toggle-nav[data-navstate="closed"] ul {
        height: 0;
        overflow: hidden;
    }
    .toggle-nav[data-navstate="open"] ul {
        height: auto;
        overflow: visible;
    }

    /* NAVICON */
    .toggle-nav .site-nav .menu-button.navicon {
        border: none;
        color: rgba(255,255,255,0);
        padding: 0;
    }
    .toggle-nav .site-nav .menu-button.navicon::after {
        content: "\2630";
        display: inline-block;
        padding: .2em;
        margin: 0;
        color: rgba(0,0,0,.8);
        font-size: 1.5em;
    }

    .toggle-nav[data-navstate="open"] .site-nav .menu-button.navicon::after {
        content: "\2715";
    }
}

/* Articles */
article {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  article h1, 
  article h1 + .subhead, 
  article .date {
    text-align: center;
  }

  article h2.subhead {
    font-size: 1.5em;
    line-height: 1.2;
  }

  article .subhead {
    font-weight: normal;
    opacity: .7;
  }

  article .date {
    font-size: .75em;
    opacity: .5;
    margin-bottom: 3em;
  }
  
  article p + h2,
  article p + h3,
  article p + h4,
  article p + h5,
  article p + h6 {
    margin-top: 1.4em;

  }

  article p:first-of-type:first-letter {
    font-size: 3em;
    line-height: 1em;
    background: #000;
    color: #fff;
    padding: .2em .4em;
    margin-right: .3em;
    float: left;
  }

  /* FORMS */
  form {
    max-width: 600px;
    margin: 2em auto;
  }
  

  form label,
  form input,
  form textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    font-size: 1em;
  }

  form label {
    margin-top: 1em;
    margin-bottom: 0.25em;
  }

  form input[type="text"],
  form textarea {
    border: 1px solid #ccc;
    padding: 0.5em;
    color: #666;
  }

  form textarea {
    min-height: 10em;
    line-height: 1.5;
  }

  form input[type="submit"] {
    margin-top: 1.5em;
    width: auto;
  }

/* SITE MAIN */
.split-left, .split-right {
    margin-bottom: 60px;
}

.cap-overlay {
    /* z-index: 2; */
    color: #000;
    margin-bottom: 10px;
    margin-left: 140px;
    position: absolute;
    inset: auto auto 0% 0%;
}

/* IMAGE CHANES WHEN HOVER IT */

.image-container {
    position: relative;
    width: 100%;
    max-width: 1500px;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.hover-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.image-container:hover .hover-image {
    opacity: 1;
    width: 100%;
    height: 100%;
}

.image-container:hover .main-image {
    opacity: 0;
}

.cap-overlay {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    text-align: center;
    padding: 20px 0;
    color: white;
}

/* ABOUT */

.container-b {
  display: flex;
  /* height: 100vh; */
}

.left-b {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.left-b img{
    max-width: 500px;
}

.right-b {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* ← ここを中心から上へ変更 */
    align-items: flex-start;     /* ← 左寄せにしたい場合（任意） */
    padding: 40px;
}



/* 共通 COLUMN&LAYOUT */
.row {
  display: flex;
  flex-wrap: nowrap;
  gap: 4%; /* カラム間のスペース */
}

.column {
  flex: 1;
  min-width: 250px;
  /* max-width: 500px;  */
}

/* 個別カラム＆LAYOUT */

.layout-a {
    justify-content: flex-start; 
    text-align: left;
    max-height: 600px;
}

.layout-b {
    justify-content: center;
}

.layout-b .row {
    margin-left: 0%;
    margin-right: 0%;
    justify-content: space-between;
}

.layout-b .one-third {
  flex: 0 0 31%; /* 幅を1/3に */
}

* {
  box-sizing: border-box;
}

  /* TEXT RIGHT */

.align-right-container {
  display: flex;
  justify-content: flex-end;
}

.align-right-container .text-box {
  text-align: left;
  max-width: 300px;
}

/* ANIMATION */
.slide-in-text {
  display: inline-block;             /* アニメーションが効くようにする */
  transform: translateX(-100%);      /* 左の外からスタート */
  opacity: 0;                        /* 最初は透明 */
  animation: slideInText 1.3s ease-out forwards;
}

@keyframes slideInText {
  to {
    transform: translateX(0);        /* 元の位置に戻す */
    opacity: 1;                      /* フェードイン */
  }
}

.slide-in-right {
  transform: translateX(100px);  /* まずは100pxぐらいで試す */
  opacity: 0;
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.slide-in-right.show {
  transform: translateX(0);
  opacity: 1;
}

/* 初期状態：左に隠す */
.slide-in-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.8s ease-out;
}

/* 表示されたらスライドイン */
.slide-in-left.show {
  opacity: 1;
  transform: translateX(0);
}




