:root {
            --primary: #00853E; /* イスラミックグリーン */
            --secondary: #4A7729; /* 濃いめのグリーン */
            --accent: #8CC63F; /* 明るいグリーン */
            --light: #F8F9FA;
            --light-accent: #EFF6F1;
            --dark: #1A3B32;
            --gold: #D4AF37;
            --white: #FFFFFF;
            --gray: #6c757d;
            --light-gray: #dee2e6;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
        }

        a {
          color: inherit; /* 親要素から文字色を継承 */
          text-decoration: none; /* 下線を削除 */
        }
        
        body {
            background-color: var(--light);
            color: var(--dark);
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 15px 20px 0px 20px;
        }
        
        /* ヘッダースタイル */
        header {
            background-color:white;
            color: white;
            padding: 0 0 1rem 0;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .gtcontainer{
            width:100%;
            height:35px;
            background-color:var(--primary);
        }
        .gtranslate_wrapper{
            padding:5px;
            text-align:right;
        }
        
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .white{
            color:#FFF !important;
        }
        .logo {
            display: flex;
            align-items: center;
            font-size: 1.5rem;
            font-weight: bold;
        }
        
        .logo img {
            height: 60px;
            margin-right: 10px;
        }


        
        .nav-links {
            display: flex;
            list-style: none;
        }



        
        .nav-links li {
            margin-left: 2rem;
            margin-top:20px;
        }
        
        .nav-links a {
            color: black;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .nav-links a:hover {
            color: var(--accent);
        }
        
        .btn {
            display: inline-block;
            padding: 0.8rem 1.5rem;
            background-color: var(--gold);
            color: var(--dark);
            border: none;
            border-radius: 30px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            text-align: center;
        }

        .vote{
            margin-top:-40px;
        }
        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .btn-outline {
            background-color: transparent;
            border: 2px solid var(--gold);
            color: var(--gold);
        }
        
        .btn-outline:hover {
            background-color: var(--gold);
            color: var(--dark);
        }
        
        /* ヒーローセクション */
        .hero {
            padding: 5rem 0;
            background-image: url('../image/background.png');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            color: white;
            text-align: center;
        }
        
        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 1rem;
        }
        
        .hero p {
            font-size: 1.2rem;
            max-width: 800px;
            margin: 0 auto 2rem;
        }
        
        .search-bar {
            max-width: 600px;
            margin: 0 auto;
            display: flex;
        }
        
        .search-bar input {
            flex: 1;
            padding: 15px;
            border: none;
            border-radius: 30px 0 0 30px;
            font-size: 1rem;
        }
        
        .search-bar button {
            padding: 15px 25px;
            background-color: var(--gold);
            color: var(--dark);
            border: none;
            border-radius: 0 30px 30px 0;
            cursor: pointer;
            font-weight: bold;
        }
        
        /* カテゴリーセクション */
        .categories {
            padding: 5rem 0;
            background-color: var(--white);
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 3rem;
        }
        
        .section-title h2 {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 1rem;
        }
        
        .section-title p {
            max-width: 600px;
            margin: 0 auto;
            color: var(--gray);
        }
        
        .categories-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 2rem;
        }
        
        .category-card {
            background-color: var(--light-accent);
            border-radius: 10px;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            text-decoration: none;
            color: var(--dark);
        }
        
        .category-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }
        
        .category-img {
            height: 150px;
            background-color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 2rem;
        }

        .category-img {
            position: relative;
            overflow: hidden;
            width: 100%;
            height: 150px;
        }

        .category-img img {
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;  /* 背景のように拡大トリミング */
            top: 0;
            left: 0;
        }
        
        .category-info {
            padding: 1.5rem;
        }
        
        .category-info h3 {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            color: var(--primary);
        }
        
        .category-info p {
            color: var(--gray);
            margin-bottom: 1rem;
        }
        
        .article-count {
            display: inline-block;
            padding: 5px 10px;
            background-color: var(--primary);
            color: white;
            border-radius: 20px;
            font-size: 0.8rem;
        }
        
        /* 注目記事 */
        .featured-articles {
            padding: 5rem 0;
            background-color: var(--light-accent);
        }
        
        .articles-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
        }
        
        .article-card {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }
        
        .article-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }
        
        .article-img {
            height: 200px;
            background-color: var(--secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
        }

        .article-img {
            position: relative;
            overflow: hidden;
            width: 100%;
            height: 200px;
        }


        .article-img img {
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;  /* 背景のように拡大トリミング */
            top: 0;
            left: 0;
        }
        
        .article-content {
            padding: 1.5rem;
        }
        
        .article-category {
            display: inline-block;
            padding: 5px 10px;
            background-color: var(--primary);
            color: white;
            border-radius: 20px;
            font-size: 0.8rem;
            margin-bottom: 0.5rem;
        }
        
        .article-content h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: var(--dark);
        }
        
        .article-meta {
            display: flex;
            justify-content: space-between;
            color: var(--gray);
            font-size: 0.9rem;
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid var(--light-gray);
        }
        
        /* 使い方 */
        .how-it-works {
            padding: 5rem 0;
            background-color: var(--white);
        }
        
        .steps {
            display: flex;
            justify-content: space-between;
            margin-top: 3rem;
            flex-wrap: wrap;
        }
        
        .step {
            flex: 1;
            min-width: 250px;
            text-align: center;
            padding: 2rem;
            margin: 1rem;
            background-color: var(--light-accent);
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }
        
        .step-number {
            width: 60px;
            height: 60px;
            background-color: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            font-size: 1.5rem;
            font-weight: bold;
        }
        
        .step h3 {
            margin-bottom: 1rem;
            color: var(--primary);
        }
        
        /* 貢献セクション */
        .contribute {
            padding: 5rem 0;
            background-color: var(--primary);
            color: white;
            text-align: center;
        }
        
        .token-info {
            display: flex;
            justify-content: center;
            margin-top: 3rem;
            flex-wrap: wrap;
        }
        
        .token-card {
            background-color: rgba(255, 255, 255, 0.1);
            padding: 2rem;
            margin: 1rem;
            border-radius: 10px;
            min-width: 250px;
            flex: 1;
            max-width: 300px;
        }
        
        .token-icon {
            width: 60px;
            height: 60px;
            background-color: var(--gold);
            color: var(--dark);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            font-size: 1.5rem;
            font-weight: bold;
        }
        
        .token-card h3 {
            margin-bottom: 1rem;
        }
        
        .token-value {
            font-size: 2rem;
            font-weight: bold;
            margin: 1rem 0;
            color: var(--gold);
        }
        
        /* コミュニティ */
        .community {
            padding: 5rem 0;
            background-color: var(--light-accent);
        }
        
        .stats {
            display: flex;
            justify-content: space-around;
            margin-top: 3rem;
            flex-wrap: wrap;
        }
        
        .stat-item {
            text-align: center;
            margin: 1rem;
            min-width: 200px;
        }
        
        .stat-number {
            font-size: 3rem;
            font-weight: bold;
            color: var(--primary);
            line-height: 1;
        }
        
        .stat-label {
            color: var(--gray);
            margin-top: 0.5rem;
        }
        
        /* フッター */
        footer {
            background-color: var(--dark);
            color: white;
            padding: 4rem 0 2rem;
        }
        
        .footer-content {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            margin-bottom: 3rem;
        }
        
        .footer-column {
            flex: 1;
            min-width: 200px;
            margin-bottom: 2rem;
            padding-right: 2rem;
        }
        
        .footer-column h3 {
            margin-bottom: 1.5rem;
            color: var(--gold);
        }
        
        .footer-column ul {
            list-style: none;
        }
        
        .footer-column ul li {
            margin-bottom: 0.8rem;
        }
        
        .footer-column a {
            color: var(--light-gray);
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .footer-column a:hover {
            color: var(--accent);
        }
        
        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
        }
        
        .social-links a {
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            font-size: 1.2rem;
            transition: all 0.3s ease;
        }
        
        .social-links a:hover {
            background-color: var(--gold);
            transform: translateY(-3px);
        }
        
        .footer-bottom {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        /* モバイルレスポンシブ */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }
            
            .hero h1 {
                font-size: 2.5rem;
            }
            
            .search-bar {
                flex-direction: column;
            }
            
            .search-bar input {
                border-radius: 30px;
                margin-bottom: 1rem;
            }
            
            .search-bar button {
                border-radius: 30px;
            }
            
            .step, .token-card {
                min-width: 100%;
                margin: 1rem 0;
            }
        }
        
        /* 記事ページスタイル */
        .halal-info p {
              margin-bottom: 1rem;
            }
            .halal-info ul {
              margin: 1rem 0 1rem 1.5rem;
            }
            .halal-info small {
              display: block;
              margin-top: 1rem;
              color: #666;
            }

        .article-page {
            padding: 3rem 0;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .article-header {
            margin-bottom: 2rem;
        }
        
        .article-header h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: var(--primary);
        }
        
        .article-meta-info {
            display: flex;
            justify-content: space-between;
            color: var(--gray);
            font-size: 0.9rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }
        
        .article-featured-img {
            width: 100%;
            height: 400px;
            background-color: #EEE;
            margin-bottom: 2rem;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
        }
        
        .article-body {
            line-height: 1.8;
        }
        
        .article-body p {
            margin-bottom: 1.5rem;
        }
        
        .article-tags {
            margin: 3rem 0;
        }
        
        .tag {
            display: inline-block;
            padding: 5px 15px;
            background-color: var(--light-accent);
            color: var(--primary);
            border-radius: 20px;
            margin-right: 10px;
            margin-bottom: 10px;
            font-size: 0.9rem;
        }
        
        .article-actions {
            display: flex;
            justify-content: space-between;
            margin: 3rem 0;
            padding: 2rem;
            background-color: var(--light-accent);
            border-radius: 10px;
            flex-wrap: wrap;
        }
        
        .action-buttons {
            display: flex;
            gap: 1rem;
        }
        
        /* 新規記事追加ページ */
        .add-article-form {
            max-width: 800px;
            margin: 0 auto;
            padding: 2rem;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }
        
        .form-group {
            margin-bottom: 1.5rem;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: bold;
            color: var(--dark);
        }
        
        .form-control {
            width: 100%;
            padding: 12px;
            border: 1px solid var(--light-gray);
            border-radius: 5px;
            font-size: 1rem;
        }
        
        textarea.form-control {
            min-height: 200px;
            resize: vertical;
        }
        
        .upload-area {
            border: 2px dashed var(--light-gray);
            padding: 2rem;
            text-align: center;
            border-radius: 5px;
            margin: 1rem 0;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .upload-area:hover {
            border-color: var(--primary);
        }
        
        .upload-icon {
            font-size: 2rem;
            color: var(--gray);
            margin-bottom: 1rem;
        }


        .page-btn {
          display: inline-block;
          padding: 0.5rem 1rem;
          margin: 0 0.25rem;
          border: 1px solid #ccc;
          border-radius: 6px;
          background-color: #fff;
          color: #008080;
          font-weight: bold;
          text-decoration: none;
          transition: background-color 0.2s, color 0.2s;
        }
        .page-btn:hover {
          background-color: #008080;
          color: #fff;
        }
        .page-ellipsis {
          display: inline-block;
          padding: 0.5rem 1rem;
          color: #999;
        }



        
        /* モーダル */
        .modal-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            display: none;
        }
        
        .modal {
            background-color: white;
            border-radius: 10px;
            max-width: 500px;
            width: 90%;
            padding: 2rem;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .modal-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--gray);
        }
        
        .modal-footer {
            margin-top: 2rem;
            display: flex;
            justify-content: flex-end;
            gap: 1rem;
        }

        .text-sha{
                text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.6); /* グレーのドロップシャドウ */
        }

        .login-section {
      padding: 80px 20px;
      background-color: #f9f9f9;
    }

    .login-form {
      max-width: 400px;
      margin: 0 auto;
      background-color: #fff;
      border-radius: 10px;
      padding: 2rem;
      box-shadow: 0 0 10px rgba(0,0,0,0.08);
    }

    .login-form h2 {
      text-align: center;
      margin-bottom: 1.5rem;
      font-size: 24px;
    }

    .login-form label {
      display: block;
      margin-bottom: 0.3rem;
      font-weight: bold;
    }

    .login-form input {
      width: 100%;
      padding: 10px;
      margin-bottom: 1rem;
      border: 1px solid #ccc;
      border-radius: 6px;
    }

    .login-form button {
      width: 100%;
      padding: 12px;
      background-color: #008080;
      color: white;
      font-weight: bold;
      border: none;
      border-radius: 6px;
      cursor: pointer;
    }

    .login-form .extra {
      text-align: center;
      margin-top: 1rem;
      font-size: 0.9rem;
    }

    .login-form .extra a {
      color: #008080;
      text-decoration: underline;
    }

    .cat-button {
      display: inline-block;
      margin: 0 8px 8px 0;
      padding: 8px 16px;
      background: #f0f0f0;
      border-radius: 20px;
      color: #333;
      text-decoration: none;
      font-size: 0.95rem;
      transition: background 0.2s;
    }
    .cat-button:hover {
      background: #00853e;
      color: white;
    }
    .cat-button.active {
      background: #00853e;
      color: white;
      font-weight: bold;
    }


    .spinner {
      border: 4px solid #f3f3f3;
      border-top: 4px solid #00853e;
      border-radius: 50%;
      width: 32px;
      height: 32px;
      animation: spin 1s linear infinite;
      margin: 0 auto;
    }

    #loading-spinner {
      text-align: center;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    /*いいねボタン*/
    .like-button {
      font-size: 16px;
      color: #e74c3c;
      padding: 0.5em 1em;
      background: none;
      border: none;
      cursor: pointer;
      transition: transform 0.2s ease;
    }
    .like-button:hover {
      transform: scale(1.1);
    }

    /*ページネーション*/

    .pagination ul {
          display: flex;
          justify-content: center;
          list-style: none;
          padding-left: 0;
        }

        .pagination li {
          margin: 0 5px;
        }

        .pagination li a,
        .pagination li span {
          display: block;
          padding: 8px 12px;
          border: 1px solid #ccc;
          color: #333;
          text-decoration: none;
          border-radius: 5px;
          transition: background-color 0.3s;
        }

        .pagination li a:hover {
          background-color: #f0f0f0;
        }

        .pagination li .current {
          background-color: #333;
          color: #fff;
          border-color: #333;
          font-weight: bold;
        }


    

}



