
@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template: cocoon-master
Version: 1.1.3
*/

/************************************
  01. トップページの基本設定
************************************/

/* 固定ページのタイトルを非表示 */
.home.page .entry-title {
  display: none;
}

/* トップページのSNS・日付表示を非表示 */
.home.page .sns-share,
.home.page .sns-follow,
.home.page .date-tags {
  display: none;
}


/************************************
  02. メインビジュアル
************************************/

.home-hero {
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: 64px 32px;

  background: linear-gradient(
    110deg,
    #f1f7fc 0%,
    #e4f0fa 55%,
    #d6e9f7 100%
  );

  border-radius: 8px;
}

.home-hero__inner {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
}

.home-hero__title {
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.4;
  margin: 16px 0;
}

.home-hero__button {
  display: inline-block;
  padding: 14px 28px;
  background: #2768a8;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.home-hero__button:hover {
  background: #174e82;
  color: #fff;
}


/************************************
  03. ヘッダー共通
************************************/

#header-container {
  background-color: #fff;
  box-shadow: 0 2px 12px rgba(20, 38, 62, 0.06);
}


/************************************
  04. ヘッダー PC
************************************/

@media screen and (min-width: 1024px) {

  /* ヘッダー全体 */
  .header-container-in.hlt-top-menu {
    width: 100%;
    max-width: 1200px;
    min-height: 100px;
    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  /* ロゴの配置 */
  .header-container-in.hlt-top-menu #header {
    flex: 0 0 270px;
    min-width: 0;
  }

  .header-container-in.hlt-top-menu .header-in {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
  }

  /* ロゴの高さ制限を解除 */
  .header-container-in.hlt-top-menu .logo-header {
    max-height: none;
    margin: 0;
    padding: 0;
  }

  /* ロゴ画像 */
  .header-container-in.hlt-top-menu
  .logo-header img.site-logo-image {
    display: block;
    width: 270px;
    max-width: 100%;
    height: auto;
    max-height: none;
  }

  /* ナビゲーション全体 */
  #navi {
    flex: 1;
    min-width: 0;
    background-color: transparent;
  }

  /* メニュー横並び */
  #navi .navi-in > ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  /* メニュー項目 */
  #navi .navi-in > ul > li {
    width: auto;
    flex: 0 0 auto;
    height: auto;
    line-height: normal;
  }

  /* メニューリンク */
  #navi .navi-in > ul > li > a {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 100px;
    padding: 12px 14px;

    color: #172438;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;

    transition: color 0.3s;
  }

  /* ホバー */
  #navi .navi-in > ul > li > a:hover {
    background: transparent;
    color: #2768a8;
  }

  /* 現在のページ */
  #navi .navi-in > ul > li.current-menu-item > a,
  #navi .navi-in > ul > li.current_page_item > a {
    color: #2768a8;
  }

  /* アクティブ下線 */
  #navi .navi-in > ul > li.current-menu-item > a::after,
  #navi .navi-in > ul > li.current_page_item > a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 3px;
    background-color: #2768a8;
    border-radius: 3px;
  }


  /************************************
    ナビゲーションアイコン
  ************************************/

  /* Font Awesome 4を使用 */
  #navi .navi-in > ul > li > a::before {
    display: block;
    font-family: FontAwesome;
    font-size: 18px;
    font-weight: normal;
    line-height: 1;
  }

  /* 1. ホーム */
  #navi .navi-in > ul > li:nth-child(1) > a::before {
    content: "\f015";
  }

  /* 2. 学習記録 */
  #navi .navi-in > ul > li:nth-child(2) > a::before {
    content: "\f02d";
  }

  /* 3. つまずき・解決 */
  #navi .navi-in > ul > li:nth-child(3) > a::before {
    content: "\f0eb";
  }

  /* 4. 制作物 */
  #navi .navi-in > ul > li:nth-child(4) > a::before {
    content: "\f108";
  }

  /* 5. プロフィール */
  #navi .navi-in > ul > li:nth-child(5) > a::before {
    content: "\f007";
  }

  /* 6. お問い合わせ */
  #navi .navi-in > ul > li:nth-child(6) > a::before {
    content: "\f0e0";
  }
}


/************************************
  05. タブレット・スマホ
************************************/

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

  /* ヒーローの余白 */
  .home-hero {
    padding: 48px 24px;
  }

}


/************************************
  06. スマートフォン
************************************/

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

  .home-hero {
    min-height: 360px;
    padding: 48px 20px;
  }

  .home-hero__title {
    font-size: clamp(28px, 7vw, 36px);
  }

  .home-hero__button {
    padding: 12px 22px;
  }

}
