@layer classic, classic-support, hybrid;

@layer classic {
  /* Classicスタイル */
  body {
    margin: 0;
    font-family: "メイリオ", "Hiragino Kaku Gothic Pro", sans-serif;
  }

  .aligncenter {
    display: block;
    margin: auto;
  }

  /* ヒーロー */
  .hero {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 60vh;
    min-height: 300px;
    max-height: 600px;
    background-position: center;
    background-size: cover;
    transition: height 1000s ease;
  }

  .home .hero {
    background-position: top right;
  }

  .hero .container {
    width: 100%;
    max-width: 900px;
  }

  .hero p {
    max-width: 500px;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: auto;
    padding: 0 20px 5vh;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 20px #fff, 0 0 20px #fff, 0 0 10px #fff, 0 0 10px #fff, 0 0 2px #fff, 0 0 2px #fff, 0 0 2px #fff;
    transition: padding 1000s ease;
  }

  @media (max-width: 599px) {
    .hero {
      height: 50vh;
    }
    .hero p {
      font-size: 16px;
    }
  }

  @media (min-width: 600px) {
    .hero {
      background-image: url(./img/hero1500.jpg);
    }
  }

  /* ヒーロー: archive */
  .archive .hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30vh;
    min-height: auto;
    max-height: auto;
    background-position: center center;
    background-size: cover;
    text-align: center;
  }

  .archive .hero .container {
    background-color: rgba(255, 255, 255, 0.6);
    width: auto;
    padding: 20px;
  }

  .archive .hero h1 {
    font-size: 28px;
    font-weight: normal;
  }

  .archive .hero a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    border: solid 1px #fff;
    border-radius: 3px;
    background-color: rgba(255, 200, 0, 0.2);
    color: #fff;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
  }

  .archive .hero a:hover {
    background-image: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2));
  }

  @media (min-width: 700px) {
    .archive .hero {
      background-image: url(/wp-content/themes/kunioka/img/kome.jpg) !important;
    }
  }

  @media (min-width: 768px) {
    .archive .hero {
      height: 40vh;
    }
  }

  /* メインコンテンツ */
  .main {
    padding-bottom: 10px;
  }
  .main .text {
    padding: 20px;
  }

  .main h2 {
    margin: 0;
    padding: 40px 0 15px;
    background-color: #213869;
    color: #fff;
    font-size: 28px;
    font-weight: normal;
    line-height: 1;
    text-align: center;
  }

  .main h2 span {
    color: #ffcc00;
    font-size: 20px;
    opacity: 0.6;
  }

  .main h3 {
    font-size: 28px;
    opacity: 0.8;
    text-align: center;
  }

  .main p {
    max-width: 600px;
    margin: 0 auto 20px;
    font-size: 16px;
    line-height: 1.8;
  }

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

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

  @media (min-width: 768px) {
    .main {
      padding-bottom: 40px;
    }
    .main h2 {
      border-bottom: solid 1px #efefef;
      font-size: 40px;
    }

    .main .container {
      max-width: 900px;
      margin-left: auto;
      margin-right: auto;
    }

    /* .main .text {
			max-width: 600px;
			margin-left: auto;
			margin-right: auto;
		} */
  }

  /* メインコンテンツ： もっと見る */
  .more.container {
    padding: 0 20px 20px;
  }
  .more a {
    display: block;
    margin-top: 20px;
    padding: 10px 30px;
    border: solid 3px #ddd;
    border-radius: 6px;
    background-color: #ffcc00;
    color: #000;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
  }

  .more a span {
    color: #213869;
  }

  .more a:hover {
    background-image: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2));
  }

  /* YouTube */
  .fmov {
    position: relative;
    margin: 30px 0;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    height: 0;
  }
  .fmov iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  /* フッター */
  footer {
    color: #fff;
    background-color: #213869;
  }

  footer a {
    color: #fff;
    text-decoration: none;
  }

  footer .container {
    padding: 40px 20px;
  }

  @media (min-width: 800px) {
    footer .container {
      display: flex;
      justify-content: space-between;
      max-width: 900px;
      margin-left: auto;
      margin-right: auto;
    }

    .about {
      flex: 0 1 340px;
      margin-right: 20px;
    }

    .about2 {
      flex: 0 0 500px;
    }
  }

  /* フッター： サイト情報 */
  .about {
    max-width: 340px;
    margin-bottom: 30px;
  }

  .about h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 30px;
    letter-spacing: 0.2em;
  }

  .about p {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 14px;
  }

  /* フッター： サイト情報２ */
  .about2 {
    display: flex;
    padding: 0 20px;
    border: solid 1px #fff;
  }

  .about2 img {
    margin-right: 20px;
  }

  @media (max-width: 599px) {
    .about2 {
      font-size: 12px;
    }

    .about2 img {
      width: 20vw;
    }
  }

  @media (max-width: 360px) {
    .about2 img {
      display: none;
    }
  }

  /* フッター： コピーライト */
  .copyright {
    padding-bottom: 40px;
    font-size: 12px;
    text-align: center;
  }

  /* ヘッダー */
  header .container-small {
    padding: 0 20px;
  }

  @media (min-width: 768px) {
    header .container-small {
      max-width: 900px;
      margin: auto;
    }

    .sitemenu-link span {
      display: block;
      max-width: 900px;
      margin: auto;
    }
  }

  /* ヘッダー: サイト名 */
  .site {
    display: inline-block;
    line-height: 1;
    color: #000;
    font-size: 24px;
    text-decoration: none;
    text-align: center;
  }

  .site span {
    display: block;
    margin-top: 25px;
    font-size: 10px;
    letter-spacing: 0.5em;
    margin-left: 0.5em;
  }

  .site h1 {
    margin: 6px 0 0px 0;
    font-size: 16px;
    line-height: 1;
  }

  .site p {
    margin-top: 5px;
    margin-bottom: 27px;
    font-size: 18px;
  }

  .site img {
    width: 300px;
    vertical-align: bottom;
  }

  @media (max-width: 500px) {
    .site img {
      width: 250px;
    }
  }

  @media (max-width: 360px) {
    .site span {
      display: none;
    }
    .site h1 {
      margin-top: 15px;
    }
    .site p {
      margin-bottom: 10px;
    }
    .site img {
      width: 200px;
    }
  }

  /* ヘッダー： ナビゲーションメニュー */
  .sitemenu-link ul {
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: rgba(33, 56, 105, 0.6);
  }

  .sitemenu-link a {
    display: block;
    padding: 15px;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
  }

  .sitemenu-link a:hover {
    background-color: rgba(0, 0, 0, 0.3);
  }

  /* ヘッダー： トグルボタン */

  header .container-small {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .sitemenu {
    padding: 0;
    border: none;
    outline: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
  }

  .sitemenu-link {
    display: none;
  }

  /* インデックス */
  .gaiyo a {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 300px;
    margin: 10px;
    background-position: center;
    background-size: cover;
    transition: height 1000s ease;
    text-decoration: none;
    color: #000;
    position: relative;
  }

  .gaiyo a:hover {
    opacity: 0.8;
  }

  .gaiyo .text {
    width: 100%;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.75);
  }

  .gaiyo .text p {
    position: absolute;
    top: 5px;
    left: -5px;
    width: 6em;
    height: 6em;
    padding-top: 1.4em;
    box-sizing: border-box;
    border-radius: 50%;
    background-color: red;
    font-size: 12px;
    color: #fff;
    text-align: center;
  }

  .gaiyo .text span {
    position: absolute;
    bottom: 25px;
    right: 15px;
    font-size: 30px;
    color: #ca0;
  }

  .gaiyo h2 {
    margin: 12px 0;
  }

  .gaiyo p {
    margin: 0;
  }

  .index h1 {
    font-size: 24px;
    text-align: center;
  }

  .index h1 {
    margin: 0 0 20px;
    padding: 40px 0 15px;
    background-color: #213869;
    color: #fff;
    font-size: 28px;
    font-weight: normal;
    line-height: 1;
    text-align: center;
  }

  .index h1 span {
    color: #ffcc00;
    font-size: 20px;
    opacity: 0.6;
  }

  .index .container {
    display: flex;
    flex-wrap: wrap;
    max-width: 900px;
    margin: auto;
  }

  .index .container .gaiyo {
    flex: 1 1 380px;
  }

  /* 前後の記事へのリンク */
  .pagenav {
    margin-top: 30px;
    border-top: solid 1px #ededed;
  }

  .pagenav .container {
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: auto;
  }

  .pagenav .prev {
  }

  .pagenav .next {
  }

  .pagenav a {
    position: relative;
    display: block;
    padding: 40px 10px;
    color: #222;
    font-size: 14px;
    text-decoration: none;
  }

  .pagenav a:hover {
    text-decoration: underline;
  }

  .pagenav .next a {
    padding-right: 30px;
    text-align: right;
  }

  .pagenav .next a:before {
    position: absolute;
    right: 10px;
    top: 50%;
    content: "\f054";
    margin: -8px 0 0 0;
    color: #ca0;
    font-family: "FontAwesome";
    font-size: 16px;
    line-height: 1;
  }

  .pagenav .prev a {
    padding-left: 30px;
  }

  .pagenav .prev a:before {
    position: absolute;
    left: 10px;
    top: 50%;
    content: "\f053";
    margin: -8px 0 0 0;
    color: #ca0;
    font-family: "FontAwesome";
    font-size: 16px;
    line-height: 1;
  }

  /* Classic互換スタイル（Hybridでの表示を維持） */
  .main .entry-content p {
    margin: revert;
  }
  .main .text {
    padding: 20px 0 0 0;
  }
}

/* 
Classic-support
*/

@layer classic-support {
  /* Classic互換スタイル（Hybridでの表示を維持） */
  .entry-content {
    margin-block: 60px;
  }
  .text > * + * {
    margin-top: 1.5em;
  }

  [data-carousel-extra] {
    max-width: 900px !important;
  }
}
