@charset "utf-8";

/* ========== ヘッダー ========== */

.header {
  position: relative;
  z-index: 100;
  width: 90%;
  margin: 0 auto 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e0d9;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  min-width: 0;
}

.header-logo img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 三本線の画像ボタン */
.hamburger {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 10px;
  margin-left: 12px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}

.hamburger img {
  display: block;
  width: 28px;
  height: auto;
}

/* 開閉するメニュー */
.header-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e5e0d9;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.header-menu[hidden] {
  display: none;
}

.header-menu ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.header-menu a {
  display: block;
  padding: 14px 20px;
  color: #555;
  text-decoration: none;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.header-menu a:hover,
.header-menu a:focus-visible {
  background: #f6f3ee;
}


/* ========== トップページ ========== */

.first-view {
  width: 90%;
  height: 600px;
  margin: 0 auto;
  background-image: url("../images/top_background.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.first-view-text {
  padding: 450px 20px 20px;
}

/* TopicsとMenuの枠 */
.topics,
.menu_title {
  width: 90%;
  margin: 30px auto;
  box-sizing: border-box;
}

/* 見出しの花アイコン（共通） */
.topics_title,
.menu_title,
.profile_title {
  background-image: url("../images/icon01.png");
  background-repeat: no-repeat;
  padding-left: 40px;
}

.topics_title,
.menu_title {
  background-size: 30px auto;
  background-position: left center;
}

.topics_title h1,
.menu_title h1 {
  margin: 0;
}

.topics_text {
  margin-left: 40px;
  line-height: 1.8;
}

.menu {
  width: 90%;
  margin: 30px auto;
}

.menu_box_01 {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.menu_button {
  flex: 1;
  min-width: 0;
}

.menu_button img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
}


/* ========== プロフィールページ ========== */

.profile_title {
  background-size: 5ch;
  margin-left: 55px;
}

.profile_box {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  width: 90%;
  margin: 30px auto;
}

.profile_text {
  flex: 1;
  min-width: 0;
  line-height: 1.8;
}

.profile_img {
  flex-shrink: 0;
}

.profile_img img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
}

.flower_title {
  background-image: url("../images/icon01.png");
  background-repeat: no-repeat;
  background-size: 5ch;
  padding-left: 40px;
  margin-left: 55px;
}

.flower_box {
  width: 90%;
  margin: 30px auto;
}

/* パソコン：3つ横並び */
.flower_box_1 {
  display: flex;
  gap: 30px;
}

.img_box {
  flex: 1;
  min-width: 0;
}

.img_box img {
  display: block;
  width: 100%;
  height: auto;
}

.img_text {
  line-height: 1.8;
}

.img_box img {
  cursor: zoom-in;
}

/* ========== 夢の作品集ページ ========== */

.dream_title {
  background-image: url("../images/icon01.png");
  background-repeat: no-repeat;
  background-size: 5ch;
  padding-left: 40px;
  margin-left: 55px;
}

.dream_box {
  width: 90%;
  margin: 30px auto;
}

/* パソコン：3つずつ横並び */
.dream_box_1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}


.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.85);
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ========== 過去作品集ページ ========== */

.past_title {
  background-image: url("../images/icon01.png");
  background-repeat: no-repeat;
  background-size: 5ch;
  padding-left: 40px;
  margin-left: 55px;
}

.past_box {
  width: 90%;
  margin: 30px auto;
}

/* パソコン：3つずつ横並び */
.past_box_1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}






/* ========== フッター ========== */

.footer {
  width: 90%;
  margin: 40px auto 0;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.footer-address {
  background-color: #9a6b76;
  color: #fff;
  margin: 0;
  padding: 20px 20px 12px;
}

.copyright {
  background-color: #7d535e;
  color: #fff;
  margin: 0;
  padding: 10px;
  text-align: center;
}


/* ========== スマートフォン ========== */

@media (max-width: 767px) {
  .header {
    width: 95%;
  }

  .header-logo img {
    width: 250px;
    max-width: 100%;
    height: auto;
  }

  .first-view {
    width: 95%;
    height: 500px;
  }

  .first-view-text {
    padding: 15px 15px 15px;
  }

  .first-view-text p {
    font-size: 14px;
    line-height: 1.7;
  }

  .topics,
  .menu_title,
  .menu {
    width: 95%;
  }

  .menu_box_01 {
    flex-direction: column;
    gap: 20px;
  }

  .menu_button img {
    margin: 0 auto;
  }

  .profile_title {
    margin-left: 0;
  }

  .profile_box {
    display: block;
  }

  .flower_title {
    margin-left: 0;
  }

  .flower_box_1 {
    flex-direction: column;
    gap: 30px;
  }

  .dream_title {
    margin-left: 0;
  }

 .dream_box_1 {
    grid-template-columns: 1fr;
  }

   .past_title {
    margin-left: 0;
  }

  .past_box_1 {
    grid-template-columns: 1fr;
  }

}

