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

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

:root {
  --primary-color: #1F3A34;
  --secondary-color: #2E4D38;
  --tertiary-color: #4F7E67;
  --text-color: #333;
  --white: #ffffff;
  --font-serif: 'adobe-garamond-pro', 'EB Garamond', serif;
  --font-sans: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  --font-serif-jp: 'Zen Old Mincho' , 'EB Garamond', 'Times New Roman', serif;
}

/* ========================================
Opening Animation Styles
======================================== */
.opening-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s;
}

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

.opening-title {
  font-size: 2rem;
  font-weight: 400;
  font-family: var(--font-serif-jp);
  color: var(--text-color);
  margin-bottom: 2.5rem;
  letter-spacing: 0.1em;
  /* タイプライター風アニメーション用 */
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--text-color);
  animation: typing 2s steps(15, end) 0.2s 1 normal both, blink-caret 0.7s steps(1) infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--text-color); }
}

.opening-girl {
  width: 180px;
  max-width: 60vw;
  height: auto;
  display: block;
  margin: 0 auto;
}

.opening-animation.fadeout {
  opacity: 0;
  pointer-events: none;
}

/* ========================================
FadeIn Animation
======================================== */
.fadein-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: 1.2s ease-out;
}

.fadein-scroll.show {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
Base Styles
======================================== */
html {
  font-size: 62.5%;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* ========================================
Buttons
======================================== */

.btn-ver1,
.btn-ver2{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14px;
  letter-spacing: 0.08em;
  border-radius: 2px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
    transform 0.1s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-ver1 {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 60px;
  margin: 0 auto;
}

.btn-ver1:hover {
  background-color: var(--tertiary-color);
}

.btn-ver2 {
  background-color: var(--white);
  color: var(--primary-color);
  border-color: var(--primary-color);
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease;
}

.btn-ver2::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  transition: left 0.4s cubic-bezier(0.4,0,0.2,1);
  z-index: 0;
}

.btn-ver2:hover::before {
  left: 0;
}

.btn-ver2:hover {
  color: var(--white);
}

.btn-ver2-icon {
  position: relative;
  z-index: 1;
}

.btn-ver2-icon path {
  stroke: var(--primary-color);
  transition: stroke 0.4s ease;
}

.btn-ver2:hover .btn-ver2-icon path {
  stroke: var(--white);
}

.btn-ver2-text {
  position: relative;
  z-index: 1;
}

a:hover {
  color: var(--white);
}

/* ========================================
ナビゲーションヘッダー
======================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  overflow-x: hidden;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  width: 100%;
  background-color: var(--primary-color);
}

.nav-logo img {
  width: auto;
  height: 60px;
}

.nav-container-menu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 3rem;
}

.nav-menu li {
  margin: 0;
}

.nav-menu-link {
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.08em;
  transition: opacity 0.3s ease;
  position: relative;
}

.nav-menu-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--white);
  transition: width 0.3s ease;
}

.nav-menu-link:hover::after {
  width: 100%;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  border: 1px solid;
  padding: 8px 16px;
  border-radius: 8px;
  gap: 8px;
  color: var(--white);
  background-color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.08em;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease, background-color 0.3s ease;
  z-index: 1;
}

.header-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  transition: left 0.4s cubic-bezier(0.4,0,0.2,1);
  z-index: 0;
}

.header-cta:hover::before {
  left: 0;
}

.header-cta:hover {
  color: var(--primary-color);
}

.header-cta-icon{
  position: relative;
  z-index: 1;
}

.header-cta-icon path {
  stroke: var(--white);
  transition: stroke 0.4s ease;
}

.header-cta:hover .header-cta-icon path {
  stroke: var(--primary-color);
}

.header-cta-text {
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  padding: 5px;
  flex-direction: column;
  justify-content: center;
  z-index: 102;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 70px;
  right: -100%;
  background-color: var(--primary-color);
  padding: 50px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 101;
  width: 60%;
  height: calc(100vh - 70px);
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
}

.mobile-menu.active {
  right: 0;
}

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-menu li {
  margin: 0;
}

.mobile-nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.08em;
  display: inline-block;
  padding: 10px 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-menu a {
  position: relative;
}

.mobile-nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 0;
  height: 2px;
  background-color: var(--white);
  transition: width 0.3s;
  pointer-events: none;
}

.mobile-nav-menu a:hover::after,
.mobile-nav-menu a:focus::after {
  width: 100%;
}

/* ハンバーガーメニューを表示 */
@media (max-width: 789px) {
  .hamburger {
    display: flex;
  }

  .nav-container-menu,
  .header-cta-container {
    display: none;
  }
}

/* ========================================
footer
======================================== */

.site-footer {
  background-color: #14342b;
  color: var(--white);
  padding: 3% 0;
  font-size: 12px;
}

.footer-container {
  text-align: center;
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 0 0 16px;
  padding: 0;
}

.footer-nav a {
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.16em;
}

.footer-nav a:hover {
  opacity: 0.7;
}

.footer-bottom {
  border-top: 1px solid var(--white);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  margin: 0;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
}

.footer-links a:hover {
  opacity: 0.7;
}

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



/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
