:root {
    --primary-yellow: #f8e71c;
    --main-dark: #111111;
    --text-gray: #555555;
    --white: #ffffff;
    --earth-blue: #f1f5f8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans JP', sans-serif; color: var(--main-dark); background: #fff; line-height: 1.7; overflow-x: hidden; }

/* LAYOUT */
.container { width: 90%; max-width: 1300px; margin: 0 auto; }
.section-padding { padding: 160px 0; position: relative; }
.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; }
.grid-layout-large { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 80px; align-items: center; }

/* HEADER */
.header { position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; padding: 30px 5%; z-index: 1000; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); }
.header__logo { font-weight: 900; font-size: 1.2rem; letter-spacing: 0.1em; }
.header__nav ul { display: flex; list-style: none; gap: 30px; }
.header__nav a { text-decoration: none; color: #111; font-weight: 700; font-size: 0.8rem; }

/* HERO */
.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--primary-yellow); }
.hero__bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; opacity: 0.55; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__content { position: relative; z-index: 2; }
.hero__sub { font-size: 1.3rem; font-weight: 700; letter-spacing: 0.4em; margin-bottom: 30px; color: var(--main-dark); }
.hero__title { font-size: clamp(2.5rem, 8vw, 6rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.04em; }
.hero__title span { display: block; font-size: 0.4em; font-weight: 500; margin-top: 30px; opacity: 0.9; }

/* TYPOGRAPHY & LABELS */
.bg-large-text { position: absolute; font-size: 22vw; font-weight: 900; color: rgba(0,0,0,0.025); z-index: -1; line-height: 0.8; pointer-events: none; top: 0; left: -2%; }
.bg-large-text.right { left: auto; right: -2%; }
.section-label { font-size: 0.9rem; font-weight: 900; letter-spacing: 0.4em; margin-bottom: 25px; display: block; color: #888; }
.section-title.huge { font-size: clamp(2.2rem, 5.5vw, 4.8rem); font-weight: 900; line-height: 1.15; letter-spacing: -0.04em; margin-bottom: 40px; }

/* CONTENT ELEMENTS */
.desc-text, .concept-lead { font-size: 1.15rem; font-weight: 500; color: var(--text-gray); max-width: 700px; }
.align-center { text-align: center; }
.align-center .concept-lead { margin: 0 auto; }
.mb-60 { margin-bottom: 60px; }
.mb-100 { margin-bottom: 100px; }
.mt-60 { margin-top: 60px; }

/* STEP GRID (KOL) */
.step-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.step-item { background: #fff; padding: 70px 20px; text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,0.04); border-radius: 4px; }
.step-item span { background: #000; color: var(--primary-yellow); padding: 6px 16px; border-radius: 50px; font-weight: 900; font-size: 0.8rem; margin-bottom: 25px; display: inline-block; }
.step-item h4 { font-size: 1.6rem; font-weight: 900; margin-bottom: 10px; }

/* NEWS */
.news-list { list-style: none; }
.news-list li { border-bottom: 1px solid #ddd; padding: 30px 0; display: flex; gap: 40px; }
.news-list .date { font-weight: 900; font-size: 1rem; color: #aaa; }
.news-list a { text-decoration: none; color: #111; font-weight: 700; font-size: 1.1rem; }

/* PHILOSOPHY */
.philosophy__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 100px; }
.vision-box h3 { font-size: 1.4rem; font-weight: 900; margin-bottom: 15px; color: var(--main-dark); }
.value-list { list-style: none; }
.value-list li { font-size: 1.4rem; font-weight: 900; border-bottom: 2px solid #eee; padding: 25px 0; letter-spacing: 0.05em; }

/* INSTAGRAM */
.insta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.insta-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; filter: grayscale(10%) contrast(1.05); }

/* MEMBERS */
.member-card h4 { font-size: 1.5rem; font-weight: 900; margin-bottom: 15px; }
.member-card h4 span { font-size: 0.85rem; font-weight: 400; color: #888; margin-left: 10px; }
.mb-30 { margin-bottom: 30px; }

/* CTA */
.cta__box { background: var(--main-dark); color: #fff; padding: 120px 80px; text-align: center; border-radius: 6px; }
.cta-text { font-size: 1.3rem; margin-bottom: 50px; opacity: 0.8; line-height: 1.8; }
.btn-main { display: inline-block; background: var(--primary-yellow); color: #000; padding: 25px 70px; text-decoration: none; font-weight: 900; font-size: 1.1rem; letter-spacing: 0.1em; transition: 0.4s; }

/* FOOTER */
.footer { background: #000; color: #fff; padding: 120px 0 60px; }
.footer__grid { display: flex; justify-content: space-between; margin-bottom: 100px; }
.footer__logo { font-size: 1.5rem; font-weight: 900; margin-bottom: 30px; }
.footer__contact { border-left: 4px solid var(--primary-yellow); padding-left: 25px; line-height: 2; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; text-align: center; font-size: 0.8rem; opacity: 0.4; }

/* ANIMATION ELEMENTS */
.image-wrapper { position: relative; overflow: hidden; }
.image-wrapper img { width: 100%; height: auto; display: block; transform: scale(1.1); transition: 1.5s cubic-bezier(0.19, 1, 0.22, 1); }
.curtain-box { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--primary-yellow); z-index: 5; transform: translateX(-101%); }

@media (max-width: 1024px) { 
    .grid-2, .grid-3, .grid-layout-large, .philosophy__grid, .step-grid { grid-template-columns: 1fr; }
    .insta-grid { grid-template-columns: repeat(2, 1fr); }
    .section-padding { padding: 100px 0; }
}

    /* 選択時のカラー設定 */
    ::selection {
      background-color: #FFF100;
      color: #111827;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      overflow-x: hidden;
      background-color: #ffffff;
    }

    /* フェードインアニメーション */
    .fade-in {
      opacity: 0;
      transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
      will-change: transform, opacity;
    }
    .fade-in.up {
      transform: translateY(4rem);
    }
    .fade-in.left {
      transform: translateX(-3rem);
    }
    .fade-in.right {
      transform: translateX(3rem);
    }
    .fade-in.none {
      transform: none;
    }
    .fade-in.is-visible {
      opacity: 1;
      transform: translateY(0) translateX(0);
    }

    /* ライン描画アニメーション */
    .draw-line {
      background-color: #111827; /* gray-900 */
      transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
      transform-origin: top left;
    }
    .draw-line.bg-brandYellow {
      background-color: #FFF100;
    }
    .draw-line.horizontal {
      transform: scaleX(0);
    }
    .draw-line.horizontal.is-visible {
      transform: scaleX(1);
    }
    .draw-line.vertical {
      transform: scaleY(0);
    }
    .draw-line.vertical.is-visible {
      transform: scaleY(1);
    }

    /* ヒーロー画像のフェードインアウトスライドショー */
    .hero-slide {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      animation: heroFade 24s infinite linear;
      will-change: transform, opacity;
    }
    .hero-slide:nth-child(1) { animation-delay: 0s; }
    .hero-slide:nth-child(2) { animation-delay: 8s; }
    .hero-slide:nth-child(3) { animation-delay: 16s; }

    @keyframes heroFade {
      0% { opacity: 0; transform: scale(1.05); }
      10% { opacity: 0.8; transform: scale(1.025); } /* 最大の不透明度 */
      33% { opacity: 0.8; transform: scale(1); }
      43% { opacity: 0; transform: scale(1.05); }
      100% { opacity: 0; transform: scale(1.05); }
    }

/* =========================================================
   WordPress追加スタイル
   ========================================================= */
img { max-width: 100%; height: auto; }
.admin-bar #main-header { top: 32px; }
@media (max-width: 782px) { .admin-bar #main-header { top: 46px; } }

.wp-single-main,
.wp-archive-main { padding-top: 120px; }
.wp-content { font-size: 1.05rem; line-height: 2; color: #374151; }
.wp-content p { margin: 0 0 1.6em; }
.wp-content h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; line-height: 1.35; margin: 2.4em 0 0.8em; color: #111827; }
.wp-content h3 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; line-height: 1.45; margin: 2em 0 0.8em; color: #111827; }
.wp-content ul,
.wp-content ol { padding-left: 1.5em; margin: 0 0 1.8em; }
.wp-content a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.wp-content blockquote { border-left: 6px solid #FFF100; padding: 1.2em 1.4em; background: #f9fafb; margin: 2em 0; font-weight: 700; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.nav-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 48px; font-weight: 900; }
.nav-links a,
.nav-links span { border: 2px solid #111827; padding: 10px 16px; background: #fff; }
.nav-links .current { background: #FFF100; }

/* Contact Form 7 */
.wpcf7 form { display: grid; gap: 20px; }
.wpcf7 label { display: grid; gap: 8px; font-weight: 900; color: #111827; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea { width: 100%; border: 2px solid #111827; background: #fff; padding: 14px 16px; font: inherit; }
.wpcf7 textarea { min-height: 180px; }
.wpcf7 input[type="submit"] { display: inline-flex; justify-content: center; align-items: center; width: min(100%, 320px); border: 2px solid #111827; background: #111827; color: #fff; padding: 16px 24px; font-weight: 900; cursor: pointer; transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease; }
.wpcf7 input[type="submit"]:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 #FFF100; background: #000; }
.wpcf7-not-valid-tip { font-size: .9rem; font-weight: 700; margin-top: 6px; }
.wpcf7-response-output { border: 2px solid #111827 !important; margin: 20px 0 0 !important; padding: 14px 16px !important; font-weight: 700; }
