/*
Theme Name: NoraTech
Theme URI: https://noratech.jp
Author: NoraTech
Author URI: https://noratech.jp
Description: NoraTech - 野良のデジタル工作室。深夜食堂のようなスタンスのIT屋さん × 自由で逞しい野良猫をコンセプトにしたランディングページテーマ。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: noratech
Tags: one-column, custom-colors, custom-menu, featured-images, full-width-template
*/

/* ========================================
   CSS変数
   ======================================== */
:root {
  /* Colors - NoraTechカラーパレット */
  --nora-primary: #6F514C;      /* 煤竹色 */
  --nora-secondary: #888E7E;    /* 利休鼠 */
  --nora-accent: #9F563A;       /* 柿渋色 */
  --nora-bg-light: #F5F1EB;     /* 生成り */
  --nora-bg-dark: #343434;      /* 墨色 */
  --nora-text: #333333;
  --nora-text-muted: #707070;
  --nora-white: #FFFFFF;

  /* Typography */
  --nora-font-heading: "Noto Serif JP", "游明朝", "Yu Mincho", serif;
  --nora-font-body: "Noto Sans JP", "游ゴシック", "Yu Gothic", sans-serif;
}

/* ========================================
   リセット・ベース
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--nora-font-body);
  font-size: 16px;
  color: var(--nora-text);
  background-color: var(--nora-bg-light);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--nora-font-heading);
  font-weight: 600;
  line-height: 1.4;
  color: var(--nora-primary);
  margin-top: 0;
}

p {
  margin-top: 0;
}

a {
  color: var(--nora-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--nora-primary);
}

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

/* ========================================
   ヘッダー
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 24px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(52, 52, 52, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: var(--nora-font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--nora-white);
  text-decoration: none;
}

.site-logo span {
  font-size: 0.75rem;
  font-family: var(--nora-font-body);
  display: block;
  opacity: 0.7;
  font-weight: 400;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: var(--nora-white);
  font-size: 0.9rem;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.main-nav a:hover {
  opacity: 1;
  color: var(--nora-white);
}

/* ========================================
   ヒーローエリア
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4a4a4a 0%, #2d2d2d 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(52, 52, 52, 0.3) 0%, rgba(52, 52, 52, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--nora-white);
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.05em;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--nora-bg-light);
  margin-bottom: 40px;
  line-height: 2;
  opacity: 0.95;
}

/* 猫のシルエット */
.cat-silhouette {
  position: absolute;
  bottom: 60px;
  right: 10%;
  width: 120px;
  height: 60px;
  opacity: 0.3;
}

.cat-silhouette svg {
  width: 100%;
  height: 100%;
}

/* ========================================
   セクション共通
   ======================================== */
.section {
  padding: 100px 20px;
}

.section-light {
  background-color: var(--nora-bg-light);
}

.section-white {
  background-color: var(--nora-white);
}

.section-dark {
  background-color: var(--nora-bg-dark);
  color: var(--nora-bg-light);
}

.section-dark h2,
.section-dark h3,
.section-dark p {
  color: var(--nora-bg-light);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.text-container {
  max-width: 760px;
  margin: 0 auto;
}

/* セクションタイトル */
.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  margin-bottom: 16px;
  position: relative;
}

.section-lead {
  text-align: center;
  color: var(--nora-text-muted);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.section-dark .section-lead {
  color: rgba(245, 241, 235, 0.8);
}

/* 足跡デコレーション */
.paw-decoration {
  text-align: center;
  padding: 32px 0;
  opacity: 0.35;
  font-size: 0.9rem;
  letter-spacing: 1.5em;
}

/* ========================================
   Aboutセクション
   ======================================== */
.about-text {
  font-size: 1.05rem;
  line-height: 2.4;
}

.about-text p {
  margin-bottom: 1.8em;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ========================================
   メニューセクション
   ======================================== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.menu-card {
  background: var(--nora-white);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.menu-card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  color: var(--nora-accent);
}

.menu-card h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--nora-primary);
}

.menu-card p {
  color: var(--nora-text);
  line-height: 1.9;
  margin-bottom: 0;
}

/* 吹き出し */
.bubble {
  background: rgba(136, 142, 126, 0.1);
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--nora-text-muted);
  position: relative;
}

.bubble::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 24px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(136, 142, 126, 0.1);
}

/* ========================================
   料金セクション
   ======================================== */
.pricing-content {
  max-width: 700px;
  margin: 0 auto;
}

.pricing-text {
  line-height: 2.2;
  margin-bottom: 48px;
}

.pricing-table {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 32px;
  max-width: 480px;
  margin: 0 auto 24px;
}

.pricing-table-title {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 20px;
  text-align: center;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-item {
  font-size: 0.95rem;
}

.pricing-price {
  font-family: var(--nora-font-heading);
  font-size: 1rem;
  opacity: 0.9;
}

.pricing-note {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(245, 241, 235, 0.6);
  line-height: 1.8;
}

/* ========================================
   お問い合わせセクション
   ======================================== */
.contact-form {
  max-width: 560px;
  margin: 48px auto 0;
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--nora-text);
  font-size: 0.95rem;
}

.form-group label .required {
  color: var(--nora-accent);
  font-size: 0.8rem;
  margin-left: 6px;
}

.form-group label .optional {
  color: var(--nora-text-muted);
  font-size: 0.8rem;
  margin-left: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #d0ccc6;
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--nora-font-body);
  background: var(--nora-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--nora-accent);
  box-shadow: 0 0 0 3px rgba(159, 86, 58, 0.12);
}

.form-group textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.8;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23707070' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ========================================
   ボタン
   ======================================== */
.btn {
  display: inline-block;
  padding: 18px 48px;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--nora-font-body);
  text-decoration: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--nora-accent);
  color: var(--nora-white);
}

.btn-primary:hover {
  background: #B8694A;
  color: var(--nora-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(159, 86, 58, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--nora-white);
  border: 2px solid var(--nora-white);
}

.btn-outline:hover {
  background: var(--nora-white);
  color: var(--nora-bg-dark);
}

.btn-block {
  display: block;
  width: 100%;
}

/* LINE ボタン */
.line-contact {
  text-align: center;
  margin-bottom: 48px;
}

.line-contact-text {
  margin-bottom: 16px;
  color: var(--nora-text-muted);
  font-size: 0.95rem;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: #06C755;
  color: var(--nora-white);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-line:hover {
  background: #05B54C;
  color: var(--nora-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.35);
}

.line-icon {
  width: 24px;
  height: 24px;
}

/* ========================================
   フッター
   ======================================== */
.site-footer {
  background: var(--nora-bg-dark);
  color: var(--nora-bg-light);
  text-align: center;
  padding: 60px 20px 40px;
  position: relative;
}

.footer-cat-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--nora-secondary), transparent);
  opacity: 0.4;
}

.footer-logo {
  font-family: var(--nora-font-heading);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 24px;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(245, 241, 235, 0.5);
}

/* ========================================
   アニメーション
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 768px) {
  .section {
    padding: 70px 16px;
  }

  .main-nav {
    display: none;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .menu-card {
    padding: 32px 24px;
  }

  .pricing-table {
    padding: 24px 20px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .cat-silhouette {
    display: none;
  }

  .btn {
    padding: 16px 36px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 12px 16px;
  }

  .site-logo {
    font-size: 1.25rem;
  }

  .section {
    padding: 56px 16px;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .about-text {
    font-size: 0.95rem;
  }
}
