@charset "utf-8";

/*Universal Reset*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ヘッダー全体 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: transparent;
  transition: background-color 0.3s ease;
  z-index: 1000;
}

/* ヘッダーの中身 */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0 1rem;
}

/* サイトタイトル */
.site-title {
  font-size: 1rem;
  text-decoration: none;
  color: #000;
  transition: color 0.3s;
}

.site-title:hover {
  color: #666; 
}


/* ハンバーガーアイコン */
.hamburger {
  width: 24px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
  
}/* ハンバーガーメニュー */
.side-menu {
  position: fixed;
  top: 0;
  right: -200px; 
  width: 200px;
  height: 100vh;
  background-color: #fff;
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  z-index: 999;
}

/* ハンバーガーメニュー開いた状態 */
.side-menu.open {
  right: 0;
}

/* メニュー内のリンク */
.side-menu ul {
  list-style: none;
  padding: 80px 20px; 
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.side-menu ul li a {
  text-decoration: none;
  color: #000;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.side-menu ul li a:hover {
  color: #666;
}

/* スムーズスクロール */
html {
  scroll-behavior: smooth;
}

/* メインコンテンツ */
.content {
  padding: 100px 20px 20px 20px; 
  max-width: 1200px;             
  margin: 0 auto;                
}

a{
  text-decoration: none;
  color: #333;
}
.text  a:hover {
  color: #666;
}

/* Flex  */

.flex-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
}

.flex-row.reverse {
  flex-direction: row-reverse;
}

.flex-row img,
.flex-row .text {
  flex: 0 0 50%;
  max-width: 50%;
  box-sizing: border-box;
}

.flex-row img {
  width: 100%;
  height: auto;
  display: block;
  margin-right: 40px;
  object-fit: contain;
}

.flex-row.reverse img {
  margin-right: 0;
  margin-left: 40px;
}


.text {
  color: #333; 
}

h2 {
  font-size: 1.4rem; 
}

body{
 

  font-family: 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', P052, serif;
}

#footer{
  text-align: center;
  color: dimgrey;
  margin-bottom: 100px; 
}







/*ここからメディアクエリ*/
@media screen and (max-width:768px) {
  body {
    padding-left: 0;
  }

  .side-menu {
    position: static;
    width: 100%;
    height: auto;
  }

  .flex-row,
  .flex-row.reverse {
    flex-direction: column;
  }

  .flex-row img,
  .flex-row .text {
    max-width: 100%;
    flex: 1 1 100%;
    margin: 0 0 20px 0;
  }

  .flex-row.reverse img {
    margin-left: 0;
  }

  h2 {
    font-size: 1.2rem; 
  }
  }

/*ここまでメディアクエリ*/

