@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

html {
  scroll-behavior: smooth;
}

:root {
  --color-light-yellow: #fef1cb;
  --color-bright-yellow: #ffec5a;
  --color-green: #77e792;
  --color-gray: #f0f0f0;
  --color-dark-blue-gray: #30334f;
  --color-bright-blue: #5ad3ff;
  --color-button-primary: #ea5334;
  --color-button-primary-shadow: #aa4100;
  --color-button-blue-shadow: #2b5679;
  
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-md: 1rem; /* cocoon設定-全体-文字サイズ(現状16px) */
  --font-size-lg: 1.25rem; /* 20px */
  --font-size-xl: 1.5rem; /* 24px */
  --font-size-xxl: 1.75rem; /* 28px */
  --font-size-xxxl: 2rem; /* 32px */
  --font-size-xxxxl: 2.5rem; /* 40px */
  --font-size-xxxxxl: 3rem; /* 48px */
  --font-size-xxxxxxl:3.5rem; /* 55px */
}

.light-yellow { background-color: var(--color-light-yellow); }
.bright-yellow { background-color: var(--color-bright-yellow); }
.green-bg { background-color: var(--color-green); }
.blue-bg { background-color: var(--color-bright-blue); }
.gray { background-color: var(--color-light-gray); }
.dark-blue-gray { background-color: var(--color-dark-blue-gray); }

.text-align-center {
  text-align: center;
}

.text-underline {
  background: linear-gradient(transparent 60%, yellow 30%);
  display: inline;
}

.animate-fade-in {
  &::before {
    position: absolute;
    top: -180px;
    left: 0;
    display: inline-block;
    width: 30px;
    height: 100%;
    content: '';
    background-color: #fff;
    animation: animate-shine 3.5s ease-in-out infinite;
  }

  @keyframes animate-shine {
    0% {
      opacity: 0.4;
      transform: scale(0) rotate(45deg);
    }
    80% {
      opacity: 0.7;
      transform: scale(0) rotate(45deg);
    }
    81% {
      opacity: 1;
      transform: scale(4) rotate(45deg);
    }
    100% {
      opacity: 0;
      transform: scale(50) rotate(45deg);
    }
  }
}

.btn-primary {
  display: inline-flex;
  background-color: var(--color-button-primary);
  box-shadow: 0 12px 0 var(--color-button-primary-shadow);
  margin-bottom: 12px; /* shadow分の余白 */
  border-radius: 8px;
  padding: 12px 24px;
  color: white;
  font-weight: bold;
  font-size: var(--font-size-xxl);
  position: relative;
  overflow: hidden;

  .pdf-icon {
    width: 20px;
  }

  &.blue-btn {
    background-color: #3486ea;
    box-shadow: 0 12px 0 var(--color-button-blue-shadow);
  }

  &.blue-btn-mini {
    background-color: #3486ea;
    box-shadow: 0 4px 0 var(--color-button-blue-shadow);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: var(--font-size-ld);
    margin-bottom: 0;

    img {
        width: 16px;
        margin-left: 6px;
    }
  }

  &.header-mini-btn {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: var(--font-size-ld);
    margin-bottom: 0;
    box-shadow: 0 4px 0 var(--color-button-primary-shadow);

    img {
        width: 6px;
        margin-left: 6px;
    }
  }

  > img {
    width: 13px;
    margin-left: 8px;
  }

  &:hover {
    color: white;
  }
}



a:hover {
  opacity: 0.7;
  transition: 0.3s;
}

.logo-text {
  padding: 0;
}

.content {
  margin-top: 0;
}

.no-sidebar .content .main {
  padding: 0;
}

.footer-bottom {
  margin-top: 24px;
  margin-bottom: 74px;
}

.navi-footer-in a:hover {
  background: none;
}

.header-logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 16px;
  padding-right: 16px;
  border-radius: 6px;

  .site-title {
    a {
      display: flex;
    }
  }

  nav {
    ul {
      display: flex;
      align-items: center;
      gap: 16px;
      li {
        a {
          font-size: var(--font-size-lg);
          font-weight: bold;
          color: black;
        }
      }
    }
  }
}

.scroll-in-bottom {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.7);
  padding:10px 8px;

  p {
    color: var(--color-bright-yellow);
    margin-bottom: 0;
    margin-right: 20px;
    font-weight: bold;
  }

  .scroll-in-bottom__img {
    position: absolute;
    bottom: 0;
    width: 140px;
    margin-left: 20px;
  }
}

.scroll-in-bottom {
  display: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;.scroll-in-bottom {
  display: none; /* 最初は非表示 */
  opacity: 0;
  transform: translateY(30px); /* 下から登場する動き */
  transition: opacity 0.2s ease, transform 0.4s ease;
  /* display: flex は JavaScript側で制御 */
}

.scroll-in-bottom.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
}

.scroll-in-bottom.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.copyright {
  color: white;
}

.footer-social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  background-color: var(--color-dark-blue-gray);
  color: white;
  font-weight: bold;

  img {
    width: 30px;
  }

  .youtube-logo {
    width: 100px;
  }
}

.hamburger-menu {
  display: none;
  background-color: white;
  width: 100%;
  padding: 0 12px 4px;

  nav {
    ul {
      justify-content: center;
      display: flex;
      align-items: center;
      gap: 16px;
      li {
        a {
          font-size: var(--font-size-lg);
          font-weight: bold;
          color: black;
        }
      }
    }
  }
}

.only-show-pc {
  display: block;
}

.only-show-mobile {
  display: none;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*772px以下*/
@media screen and (max-width: 772px) {
  :root {
    --font-size-xs: 0.625rem;      /* 10px */
    --font-size-sm: 0.75rem;       /* 12px */
    --font-size-md: 0.875rem;      /* 14px */
    --font-size-lg: 1rem;          /* 16px */
    --font-size-xl: 1.125rem;      /* 18px */
    --font-size-xxl: 1.25rem;      /* 20px */
    --font-size-xxxl: 1.5rem;      /* 24px */
    --font-size-xxxxl: 1.75rem;    /* 28px */
    --font-size-xxxxxl: 1.9rem;      /* 32px */
  }

  .btn-primary {
    font-size: var(--font-size-xxxl);
    padding: 8px 16px;

    > img {
        width: 10px;
    }

    &.header-mini-btn {
      margin-left: auto;
    }

    &.blue-btn {
      box-shadow: 0 6px 0 var(--color-button-blue-shadow);
      margin-bottom: 0;
    }
  }

  .only-show-pc {
    display: none;
  }

  .only-show-mobile {
    display: block;
  }

  .header-logo {
    padding-left: 12px;
    padding-right: 12px;
    justify-content: normal;
    gap: 8px;
  }

  .copyright {
    font-size: var(--font-size-md);
  }

  .scroll-in-bottom {
    justify-content: start;
    padding: 10px 16px;

    .scroll-in-bottom__img {
      width: 90px;
      margin-left: 8px;
      right: 4px;
    }
  }
}

/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

   * {
    box-sizing: border-box;
  }
  
  /**
    * 1. Correct the line height in all browsers.
    * 2. Prevent adjustments of font size after orientation changes in iOS.
    */
  
  html {
    font-family:
      'ヒラギノ角ゴ ProN W3',
      'Hiragino Kaku Gothic ProN W3',
      'HiraKakuProN-W3',
      'ヒラギノ角ゴ ProN',
      'Hiragino Kaku Gothic ProN',
      'ヒラギノ角ゴ Pro',
      'Hiragino Kaku Gothic Pro',
      -apple-system,
      BlinkMacSystemFont,
      'Helvetica Neue',
      'Segoe UI',
      'Hiragino Sans',
      Arial,
      Meiryo,
      sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #e3e3e3;
  
    /* 1 */
    letter-spacing: 0.02rem;
    -webkit-font-smoothing: antialiased;
    text-size-adjust: 100%;
    /* 2 */
  }
  
  /* Sections
      ========================================================================== */
  
  /**
    * Remove the margin in all browsers.
    */
  
  body {
    margin: 0;
  }
  
  /**
    * Correct the font size and margin on `h1` elements within `section` and
    * `article` contexts in Chrome, Firefox, and Safari.
    */
  
  h1,
  h2,
  h3,
  h4,
  h5 {
    padding: 0;
    margin: 0;
    font-weight: bold;
  }
  
  /* Grouping content
      ========================================================================== */
  
  /**
    * 1. Add the correct box sizing in Firefox.
    * 2. Show the overflow in Edge and IE.
    */
  
  p {
    margin-top: 0;
    margin-bottom: 1em;
    line-height: 1.6;
    letter-spacing: 0;
  }
  
  hr {
    box-sizing: content-box;
  
    /* 1 */
    height: 0;
  
    /* 1 */
    overflow: visible;
  
    /* 2 */
  }
  
  /**
    * 1. Correct the inheritance and scaling of font size in all browsers.
    * 2. Correct the odd `em` font sizing in all browsers.
    */
  
  pre {
    font-family: monospace;
  
    /* 1 */
    font-size: 1em;
  
    /* 2 */
  }
  
  label {
    font-size: 1.08em;
  }
  
  /* Text-level semantics
      ========================================================================== */
  
  /**
    * Remove the gray background on active links in IE 10.
    */
  
  a {
    color: #99c9ff;
    text-decoration: none;
    cursor: pointer;
    background-color: transparent;
  }
  
  a:hover,
  a:focus,
  a:active {
  }
  
  /**
    * 1. Remove the bottom border in Chrome 57-
    * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
    */
  
  abbr[title] {
    /* 1 */
    text-decoration: underline;
  
    /* 2 */
    text-decoration: underline dotted;
    border-bottom: none;
  }
  
  /**
    * Add the correct font weight in Chrome, Edge, and Safari.
    */
  
  b,
  strong {
    font-weight: bolder;
  }
  
  /**
    * 1. Correct the inheritance and scaling of font size in all browsers.
    * 2. Correct the odd `em` font sizing in all browsers.
    */
  
  code,
  kbd,
  samp {
    font-family: monospace;
  
    /* 1 */
    font-size: 1em;
  }
  
  /**
    * Add the correct font size in all browsers.
    */
  
  small {
    font-size: 80%;
  }
  
  /**
    * Prevent `sub` and `sup` elements from affecting the line height in
    * all browsers.
    */
  
  sub,
  sup {
    position: relative;
    font-size: 75%;
    line-height: 0;
    vertical-align: baseline;
  }
  
  sub {
    bottom: -0.25em;
  }
  
  sup {
    top: -0.5em;
  }
  
  /* Embedded content
      ========================================================================== */
  
  /**
    * Remove the border on images inside links in IE 10.
    */
  
  img {
    border-style: none;
  }
  
  /* Forms
      ========================================================================== */
  
  /**
    * 1. Change the font styles in all browsers.
    * 2. Remove the margin in Firefox and Safari.
    */
  
  form {
    padding: 0;
    margin: 0;
  }
  
  button,
  optgroup,
  select,
  textarea {
    /* 1 */
    margin: 0;
    font-size: 100%;
  
    /* 2 */
    cursor: pointer;
  }
  
  input {
    cursor: inherit;
  }
  
  input::-ms-clear {
    visibility: hidden;
  }
  
  input::-ms-reveal {
    visibility: hidden;
  }
  
  input,
  textarea {
    font-family:
      'A-OTF Shin Go Pr5',
      'A-OTF 新ゴ Pro',
      'ヒラギノ角ゴ ProN W3',
      'Hiragino Kaku Gothic ProN W3',
      'HiraKakuProN-W3',
      'ヒラギノ角ゴ ProN',
      'Hiragino Kaku Gothic ProN',
      'ヒラギノ角ゴ Pro',
      'Hiragino Kaku Gothic Pro',
      -apple-system,
      BlinkMacSystemFont,
      'Helvetica Neue',
      'Segoe UI',
      'Hiragino Sans',
      Arial,
      Meiryo,
      sans-serif;
  }
  
  /**
    * Show the overflow in IE.
    * 1. Show the overflow in Edge.
    */
  
  button,
  input {
    /* 1 */
    overflow: visible;
  }
  
  /**
    * Remove the inheritance of text transform in Edge, Firefox, and IE.
    * 1. Remove the inheritance of text transform in Firefox.
    */
  
  button,
  select {
    /* 1 */
    text-transform: none;
  }
  
  button {
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    background-color: transparent;
    border: none;
  }
  
  /**
    * Correct the inability to style clickable types in iOS and Safari.
    */
  
  button,
  [type='button'],
  [type='reset'],
  [type='submit'] {
    appearance: button;
  }
  
  /**
    * Remove the inner border and padding in Firefox.
    */
  
  button::-moz-focus-inner,
  [type='button']::-moz-focus-inner,
  [type='reset']::-moz-focus-inner,
  [type='submit']::-moz-focus-inner {
    padding: 0;
    border-style: none;
  }
  
  /**
    * Restore the focus styles unset by the previous rule.
    */
  
  button:-moz-focusring,
  [type='button']:-moz-focusring,
  [type='reset']:-moz-focusring,
  [type='submit']:-moz-focusring {
    outline: 1px dotted ButtonText;
  }
  
  /**
    * Correct the padding in Firefox.
    */
  
  fieldset {
    padding: 0.35em 0.75em 0.625em;
    border: none;
  }
  
  /**
    * 1. Correct the text wrapping in Edge and IE.
    * 2. Correct the color inheritance from `fieldset` elements in IE.
    * 3. Remove the padding so developers are not caught out when they zero out
    *    `fieldset` elements in all browsers.
    */
  
  legend {
    box-sizing: border-box;
  
    /* 2 */
    display: table;
  
    /* 1 */
    max-width: 100%;
  
    /* 1 */
    padding: 0;
  
    /* 1 */
    color: inherit;
  
    /* 3 */
    white-space: normal;
  }
  
  /**
    * Add the correct vertical alignment in Chrome, Firefox, and Opera.
    */
  
  progress {
    vertical-align: baseline;
  }
  
  /**
    * Remove the default vertical scrollbar in IE 10+.
    */
  
  textarea {
    overflow: auto;
  }
  
  /**
    * 1. Add the correct box sizing in IE 10.
    * 2. Remove the padding in IE 10.
    */
  
  [type='checkbox'],
  [type='radio'] {
    box-sizing: border-box;
  
    /* 1 */
    padding: 0;
  }
  
  /**
    * Correct the cursor style of increment and decrement buttons in Chrome.
    */
  
  [type='number']::-webkit-inner-spin-button,
  [type='number']::-webkit-outer-spin-button {
    height: auto;
  }
  
  /**
    * 1. Correct the odd appearance in Chrome and Safari.
    * 2. Correct the outline style in Safari.
    */
  
  [type='search'] {
    appearance: textfield;
  
    /* 1 */
    outline-offset: -2px;
  }
  
  /**
    * Remove the inner padding in Chrome and Safari on macOS.
    */
  
  [type='search']::-webkit-search-decoration {
    appearance: none;
  }
  
  /**
    * 1. Correct the inability to style clickable types in iOS and Safari.
    * 2. Change font properties to `inherit` in Safari.
    */
  
  ::-webkit-file-upload-button {
    /* 1 */
    font: inherit;
    appearance: button;
  }
  
  /* Interactive
      ========================================================================== */
  
  /*
    * Add the correct display in Edge, IE 10+, and Firefox.
    */
  
  details {
    display: block;
  }
  
  /*
    * Add the correct display in all browsers.
    */
  
  summary {
    display: list-item;
  }
  
  /* Misc
      ========================================================================== */
  
  /**
    * Add the correct display in IE 10+.
    */
  
  template {
    display: none;
  }
  
  /**
    * Add the correct display in IE 10.
    */
  
  [hidden] {
    display: none;
  }
  
  ul,
  dl,
  dt,
  dd {
    padding: 0;
    margin: 0;
  }
  
  li {
    list-style: none;
  }
  
  *:focus {
    outline: none;
  }
  
  th {
    font-weight: normal;
  }
  
  [type='radio'] {
    margin: 0;
  }
  
  audio {
    width: 100%;
  }