/* reset CSS defaults */
html, body {
    margin: 0;
    padding: 0;
}

/* Basic styling starts from here */

body {
    font-family: 'Alumni Sans Pinstripe', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
}

a {
    text-decoration-color: none;
    text-decoration-line: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1 {
    padding: 0 1rem;
}

/* Basic section outer styling */

.outer_sec {
    width: 100%;
    height: auto;
}

/* 7:3 flexbox styling */

.flexbox_1 {
    display: flex;
    padding: 0;
    margin: 0;
}

.left_1 {
    width: 70%;
    margin-top: 0;
}

.right_1 {
    width: 30%;
    margin-right: 1rem;
    text-align: center;
    
}

.right_1 img {
    max-width: 100%;
    height: auto;
    margin-top: 3%;

}

/* 5:5 styling flexbox */

.flexbox_2 {
    display: flex;
    padding: 0;
    margin: 0;
}

.left_2 {
    width: 50%;
    margin-top: 0;
}

.right_2 {
    width: 50%;
    margin-top: 1%;

}

/* Homepage header styling starts from here */

.outer_h {
    width: 100%;
    height: 8vh;
    margin: auto 0;
    padding-top: .5rem;
    background-color: #E8E8E8;

}

.flexbox_n{
    display: flex;
    justify-content: space-between;
    padding: .5rem 1rem;
}

/* Navigation */

.outer_h .flexbox_n ul {
  display: flex;
  justify-content: space-between;
  align-items: center; 
  margin: .5rem 0;
  gap: 20px;     
  font-family: 'Bebas Neue';
  font-size: clamp(0.75rem, 2.5vw, 1.5rem);
  font-weight: 300;
}

ul li a:hover {
    color: white;
    transition: background-color 0.3s;
}

ul li img:hover {
    opacity: 0.5;
}

.insta {
  display: inline-block;
  width: 32px;  /* アイコンの幅 */
  height: 32px; /* アイコンの高さ */
  background-image: url('../images/instagram.png'); /* 通常時の画像 */
  background-size: cover;
}

.insta:hover
{
  width: 32px;  /* アイコンの幅 */
  height: 32px; /* アイコンの高さ */  
  background-image: url('../images/instagram_color.png'); /* ホバー時の画像 */
}

/* Hero section */

.hero {
   display: flex; 
   width: 90%;
   height: auto;
   margin: 0 auto;

/* Hero background image */
   background-image: url('../images/hero.png');
   background-size: cover;
   background-position: center;

   justify-content: space-around;
   align-items: center;
}

/* Keyphrases, h2 and h3 in the hero section */

.outer_h2 {
    margin-top: -35%;
    margin-left: 3%;
}

h2 {
    font-size: 3vw;
}

.btn_lea {
    margin-top: 160%;
    margin-left: -39%;
}

.btn_lea img {
    width: clamp(40px, 12vw, 200px); 
    height: auto;
}

.outer_h3 {
    margin-top: 45%;
    margin-left: -18%;
}

h3 {
    font-size: 2.5vw;
}

/* Projects Section will start from here */

#projects {
    margin-top: 0px;
}

.projects_cards {
    width: 100%;
    height: 100vh;
}

.projects_cards p {
    padding: .5rem 1rem;
}

.p_size {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
}

.row {
    display: flex;
    width: 100%;
    height: 35%;
    margin: 1rem 0;
}

/* base styling for all boxes */
.box {
    
    width: 100%;
    height: 100%;
    margin: .5rem;
    border-radius: .5rem;

    /* apply background image sizing */
    background-size: cover;
    background-position: center;

    /* apply flexbox realign the text */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    color: white;
    font-size: 2rem;
    font-weight: 500;
}

/* Links of projects carads images */

.box a {
    width: 100%;
    height: 100%;
    background: none;
}

.box a:hover {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: .5rem;

}

/* projects carads images */

#box-1 {
    background-image: url(../images/photo_93c.png);
}

#box-2 {
    background-image: url(../images/photo_kur.png);
}

#box-3 {
    background-image: url(../images/photo_kot.png);
}

/* projects section buttons styling */

.row_btn_p {
    display: flex;
    width: 100%;
    height: auto;
}

.btn_p {
    background: white;
    width: 100%;
    height: auto;
    margin: .5rem;
    border-radius: .5rem;
}

.btn_p p{
    margin: 0 auto;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
}

.row_btn_p .btn_p a:hover
{
    color: grey;
    transition: background-color 0.3s;
}

/* Instagram buttons styling */

.btn_ins {
    display: flex;
    width: 320px;
    height: 48px;
    border-radius: 8px;
    background-color: #E8E8E8;
    justify-content: center;   
    align-items: center;
    font-size: 2rem;
    font-weight: bolder;
    margin: 0 auto;
}

.btn_ins:hover {
    display: flex;
    width: 320px;
    height: 48px;
    border-radius: 8px;
    background-color: #B7B7B7;
    justify-content: center;   
    align-items: center;
    font-size: 2rem;
    font-weight: bolder;
    margin: 0 auto;
}

/* mybg section styling */

.mybg_cards {
    width: 100%;
    height: 100vh;
}

.row {
    display: flex;
    width: 100%;
    height: 35%;
    margin: 1rem 0;
}

/* mybg section styling row2 */

.row_b {
    display: flex;
    width: 100%;
    height: 30%;
}

.box_b {
    background: grey;
    width: 100%;
    height: 100%;

    /* apply background image sizing */
    background-size: cover;
    background-position: center;
}

/* mybg carads images */
#box_b-1 {
    background-image: url(../images/mybg01.png);
}

#box_b-2 {
    background-image: url(../images/mybg02.png);
}

#box_b-3 {
    background-image: url(../images/mybg03.png);
}

#box_b-4 {
    background-image: url(../images/mybg04.png);
}

#box_b-5 {
    background-image: url(../images/mybg05.png);
}

#box_b-6 {
    background-image: url(../images/mybg06.png);
}

#box_b-7 {
    background-image: url(../images/mybg07.png);
}

#box_b-8 {
    background-image: url(../images/mybg08.png);
}

/* contact us styling */

#contact {
    margin-top: 1rem;
}

.contact {
    width: 100%;
    height: auto;
    text-align: center;
}

/* footer styling */


footer {
    display: flex;
    max-width: 100%;
    height: 10vh;
    background-color: #E8E8E8;
    justify-content: flex-start;
    gap: 2rem;
    margin-left: -2rem;
    align-items: center;
    padding: .5rem 1rem;
    margin-top: 2rem;
    font-size: 1rem;
}

footer ul {
    display: flex;
    max-width: 100%;
    justify-content: space-between;
    font-size: .75rem;
    font-family: 'Roboto Condensed';
 　 font-weight: 200;
    align-items: center;
    padding-right: 0;
    margin-left: -.5rem;
    gap: 2rem;
}


footer img {
    padding-left: -1rem;
}

footer img:hover {
    opacity: 0.5;
}

/*========= Invisible of Hamburger ===============*/		

.header_inner {
	display: none;
	}
	
/*========= Invisible of hero Tablet ===============*/	

.hero_tablet {
    display: none;
}

/*========= Invisible of hero Tablet ===============*/	

.hero_sp {
    display: none;
}

/*========= Invisible of hero Tablet ===============*/	

.about_sp {
    display: none;
}

/*========= Invisible of Footer SP ===============*/	

.footer_sp { 
    display: none;
}

/*========= Invisible of mybg SP ===============*/	

.mybg_sp {
    display: none;
}

/* Tablet: 768px */

@media screen and (max-width:768px){

.flexbox_m {
	display: none;
	}

.header_inner {
	display: block;
	}    

ul {
  list-style-type: none;
}

.header {
  clear: both;
  width: 100%;
  background-color: #FFFFFF;
}

.header_fixed {
  position: fixed;
  top: 0px;
  z-index: 999;
}

.header_inner {
  position: relative;
  width: calc(100% - 4.8rem);
  margin: 0 auto;
  padding-top: 0px;
  padding-bottom: 0px;
}

.header_logo {
  text-align: center;
  margin: 0;
}
.header_logo a {
  font-family: "Bookman Old Style", serif;
  font-size: clamp(1.6rem, 1.494rem + 0.451vw, 1.9rem);
  font-weight: bold;
  line-height: 1.2;
}


/* ハンバーガーアイコン */

/* 視覚的に非表示：アクセシビリティ対応 */
.menu_checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.hamburger_menu {
  position: fixed;
  top: 24px;
  right: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 56px;
  cursor: pointer;
  z-index: 200;
  background: none;
  border: none;
  padding: 0;
  font-size: clamp(1.6rem, 1.530rem + 0.3vw, 1.8rem);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.6;
}

.hamburger_bar {
  display: block;
  width: 32px;
  height: 2px;
  background-color: #000;
  border-radius: 2px;
  transition: all 0.4s ease;
}

/* メニュー開閉時のバー変形 */
.menu_checkbox:checked + .hamburger_menu .hamburger_bar {
  background-color: #FFF;
}
.menu_checkbox:checked + .hamburger_menu .top {transform: translateY(10px) rotate(-45deg);}
.menu_checkbox:checked + .hamburger_menu .middle {opacity: 0;}
.menu_checkbox:checked + .hamburger_menu .bottom {transform: translateY(-10px) rotate(45deg);}


/* メニュー本体 */
.hamburger_open {
  position: fixed;
  inset: 0;
  background: #B7B7B7;
;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 50px 15px 15px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* チェックが入ったときに表示 */
.menu_checkbox:checked ~ .hamburger_open {
  opacity: 1;
  pointer-events: auto;
}

.hamburger_open * {text-align: left;}

.hamburger_open_box {
  width: 100%;
}

.hamburger_open_menu {margin-bottom: 40px;}

.header_menu {
  width: 100%;
}
.header_menu li a {
  display: block;
  padding-top: 1rem;
  padding-bottom: 1rem;
  color: #000F;
}    

/* SP Hero section */

.hero {
    display: none;
}

.hero_tablet {
   display: block; 
   width:100%;
   height: 50vh;
   text-align: center;
   align-items: flex-end;
   position:relative;
   top: 60px; 
}

.hero_tablet img {
   width:90%;
   height: auto;
;}

.h2, .h3{
    margin: 1rem;
    padding: 0;
    font-size: 5vw;
}

#projects {
    margin-top: 80px;
}

}

/*========= Footer Tablet and SP ===============*/	

footer {
    display: none;
}

.footer_sp{
    width: 100%;
    height: 20vh;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-content: center;
    gap: 1rem;
}

.footer_sp img {
    margin-left: 2rem;
}

.footer_sp ul {
    margin-bottom: 0;
    margin-top: 0;
    padding-left: 0;
}


/* SP 576px */

@media screen and (max-width:576px){

.hero_tablet {
    display: none;
}    

.hero_sp {
   display: block; 
   width:100%;
   height: 50vh;
   text-align: center;
   position:relative;
   top: 60px; 
}

.hero_sp img{
      width:90%;
   height: auto;
}

.btn_lea_sp img {
    width: clamp(80px, 12vw, 90px); 
    height: auto;
}

/* SP About Section 576px */

.about_sp{
    display: block;
    max-width: 100%;
    height: auto;
    text-align: center;
}
.about_sp h1 {
}

.about_sp img {
    margin-bottom: 2rem;
}

.about_sp p {
    font-size: 1.25rem;
}

.mybg_sp{
    display: block;
    max-width: 100%;
    height: auto;
    text-align: center;
}

.mybg_sp p{
  font-size: 1.25rem;

}

/* Grid Layout */

.responsive {
max-width: 100%;
height: auto;
margin: 0 auto;
padding-bottom: 1rem;
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: auto;
gap: 0px;
margin-left: 0;
margin-right: 0;
}

.responsive img {
max-width: 100%;
height: auto;
} 

.outer_sec, .mybg_cards{
   display: none; 
}

.btn_ins_sp {
    display: flex;
    width: 320px;
    height: 48px;
    border-radius: 8px;
    background-color: #E8E8E8;
    justify-content: center;   
    align-items: center;
    font-size: 2rem;
    font-weight: bolder;
    margin: 0 auto;
}

.btn_ins_sp p {
    font-size: 2rem;
}
    
.btn_ins_sp img{
    margin-bottom: 0rem;
}

footer {
    display: none;
}

.footer_sp{
    width: 100%;
    height: 20vh;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-content: center;
    gap: 1rem;
}

.footer_sp img {
    margin-left: 2rem;
}

.footer_sp ul {
    margin-bottom: 0;
    margin-top: 0;
    padding-left: 0;
}

/*========= Invisible of Contact Full size ===============*/	
.contact {
display: none;
}

#contact_sp{
    margin-top: 1rem;
}

.contact_sp {
    width: 100%;
    height: auto;
    text-align: center;
}


}

