/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a3a5c;
    --accent-gold: #c5a572;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "游明朝", "Yu Mincho", "YuMincho", "Hiragino Mincho Pro", serif;
    line-height: 1.8;
    color: var(--text-color);
    background: #fff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    background: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
    position: relative;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

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

.header-btn {
    position: absolute;
    right: 20px;
    top: 5px;
    background: var(--accent-gold);
    color: white;
    padding: 5px 12px;
    text-decoration: none;
    font-size: 0.75rem;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.header-btn:hover {
    background: #b8954a;
}

.logo {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    white-space: nowrap;
}

.logo span {
    display: block;
    font-size: 1.2rem;
    margin-top: 10px;
    color: var(--accent-gold);
}

.tagline {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    opacity: 0.9;
}

/* ヒーロー */
.hero {
    padding: 0;
    background: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 龍の動画（フルスクリーン） */
.dragon-video {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    animation: dragonFadeIn 2.5s ease-out forwards;
    filter: brightness(1.1);
    mix-blend-mode: multiply;
}

.dragon-video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* 龍を画面全体に配置 */
.dragon-fullscreen {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

@keyframes dragonFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-100px) translateY(-50px) scale(0.9);
    }
    100% {
        opacity: 0.15;
        transform: translateX(0) translateY(0) scale(1);
    }
}

/* 龍ロゴコンテナ */
.dragon-logo-container {
    position: relative;
    width: 100%;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0;
    z-index: 1;
}

/* 金色の文字（前面に表示） */
.gold-frame-overlay {
    position: relative;
    z-index: 2;
    width: clamp(180px, 45vw, 600px);
    height: auto;
    pointer-events: none;
}

/* Legend of INZAI テキスト */
.legend-text {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-family: 'Times New Roman', 'Georgia', serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: bold;
    font-style: italic;
    letter-spacing: 0.1em;
    background: linear-gradient(180deg, #e8c252 0%, #c9a227 40%, #a67c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 2px 1px rgba(80, 80, 80, 0.7));
    white-space: nowrap;
}

/* お知らせバナー */
.news-banner {
    padding: 15px 0;
    background: #fff;
}

.news-banner .container {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 12px 20px;
    text-align: center;
}

.news-banner-text {
    font-size: 0.95rem;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.news-badge {
    background: var(--primary-color);
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

/* セクション共通 */
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--accent-gold);
    color: var(--primary-color);
    font-weight: 400;
}

/* 商品紹介 */
.product-intro {
    padding: 80px 0;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 2;
}

.intro-text p {
    margin-bottom: 1.5rem;
}

/* 特徴 */
.features {
    padding: 80px 0;
    background: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border: 1px solid var(--border-color);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 500;
}

.feature-card p {
    line-height: 1.9;
}

/* 商品情報 */
.product-info {
    padding: 100px 0;
    background: var(--light-gray);
}

.product-info-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.product-image {
    position: relative;
}

.product-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.product-image.placeholder {
    background: #7a9bb8;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.product-details h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.product-subtitle {
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin-bottom: 30px;
    letter-spacing: 0.1em;
}

.product-spec {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.product-spec th,
.product-spec td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.product-spec th {
    width: 130px;
    font-weight: 500;
    color: var(--primary-color);
    background: rgba(197, 165, 114, 0.1);
    white-space: nowrap;
}

.product-spec td {
    color: #555;
}

.product-producers {
    background: white;
    padding: 20px 25px;
    border-left: 3px solid var(--accent-gold);
}

.product-producers p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.6;
}

.product-producers p:last-child {
    margin-bottom: 0;
}

.product-producers .producer-label {
    font-weight: 500;
    color: var(--primary-color);
}

.product-producers .producer-name {
    font-weight: 400;
}

.product-producers .producer-address {
    font-weight: 400;
}

@media (max-width: 768px) {
    .product-info-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .product-spec th {
        width: 100px;
    }
}

/* 産地情報 */
.origin {
    padding: 80px 0;
}

.origin-section {
    margin-bottom: 50px;
}

.origin-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-left: 4px solid var(--accent-gold);
    padding-left: 15px;
}

.origin-content p {
    margin-bottom: 1rem;
    line-height: 2;
}

/* プロジェクト */
.project {
    padding: 80px 0;
    background: var(--light-gray);
}

.project-intro {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
    line-height: 2;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.story-item {
    background: white;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.story-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* プレースホルダー画像 */
.story-image.placeholder {
    background: #7a9bb8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    padding: 20px;
}

.story-item h4 {
    font-size: 1.2rem;
    padding: 20px 20px 10px;
    color: var(--primary-color);
}

.story-item p {
    padding: 0 20px 20px;
    line-height: 1.9;
}

/* 生産者 */
.producers {
    padding: 80px 0;
}

.producer-card {
    margin-bottom: 50px;
    padding: 40px;
    border: 1px solid var(--border-color);
    background: white;
}

.producer-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
}

.producer-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.producer-image-item {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.producer-image-item.placeholder {
    background: #7a9bb8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.producer-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.producer-text h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.producer-card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.producer-subtitle {
    font-size: 1rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.producer-content p {
    margin-bottom: 1rem;
    line-height: 2;
}

/* 製造過程 */
.production {
    padding: 80px 0;
    background: var(--light-gray);
}

.production-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.production-step {
    background: white;
    border: 1px solid var(--border-color);
}

.step-image {
    width: 100%;
    height: 165px;
    overflow: hidden;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.production-step h4 {
    font-size: 1.3rem;
    padding: 20px 20px 10px;
    color: var(--primary-color);
}

.production-step p {
    padding: 0 20px 20px;
    line-height: 1.9;
}

/* 取扱店舗一覧 */
.stores {
    padding: 80px 0;
}

.stores-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.stores-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.stores-table th,
.stores-table td {
    padding: 15px;
    text-align: left;
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.stores-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 500;
}

.stores-table tbody tr:hover {
    background: var(--light-gray);
}

.stores-table .placeholder-cell {
    background: #7a9bb8;
    color: #fff;
    font-weight: 500;
    text-align: center;
}

.stores-note {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 20px;
}

/* ニュース・お知らせ */
.news {
    padding: 100px 0;
    background: white;
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    background: white;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.news-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.news-header {
    padding: 25px 35px;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.news-header:hover {
    background: #fafafa;
}

.news-toggle {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.news-toggle::before,
.news-toggle::after {
    content: '';
    position: absolute;
    background: var(--primary-color);
    transition: transform 0.3s ease;
}

.news-toggle::before {
    width: 2px;
    height: 16px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.news-toggle::after {
    width: 16px;
    height: 2px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.news-item.active .news-toggle::before {
    transform: translate(-50%, -50%) rotate(90deg);
}

.news-date {
    display: inline-block;
    font-size: 0.95rem;
    color: var(--accent-gold);
    font-weight: 500;
    letter-spacing: 0.1em;
}

.news-item h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
    flex: 1;
    padding-right: 40px;
}

.news-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 35px;
    background: #f9f9f9;
}

.news-item.active .news-detail {
    max-height: 2000px;
    padding: 25px 35px;
}

.news-content {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
}

.news-content p {
    margin-bottom: 15px;
}

.news-content p:last-child {
    margin-bottom: 0;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    display: block;
}

.news-detail p {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 10px;
}

.news-detail p:last-child {
    margin-bottom: 0;
}

.news-item-hidden {
    display: none;
}

.news-more-btn {
    display: block;
    margin: 30px auto 0;
    padding: 12px 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.news-more-btn:hover {
    background: #2a4a6c;
}

/* お問い合わせ */
.contact {
    padding: 80px 0;
    background: var(--light-gray);
    text-align: center;
}

.contact-info {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-info a:hover {
    color: var(--accent-gold);
}

.contact-tel {
    font-size: 1.3rem;
    color: var(--accent-gold);
    font-weight: 500;
}

/* フッター */
.footer {
    padding: 30px 0;
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* レスポンシブ */
@media (max-width: 1024px) {
    .hero {
        min-height: 60vh;
    }

    .dragon-logo-container {
        height: 60vh;
    }

    .product-info-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-image {
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 25px 0;
    }

    .header-btn {
        padding: 5px 12px;
        font-size: 0.75rem;
        right: 10px;
    }

    .hero {
        min-height: 50vh;
    }

    .dragon-logo-container {
        height: 50vh;
        justify-content: flex-end;
        padding-right: 0;
    }

    .gold-frame-overlay {
        width: clamp(150px, 40vw, 450px);
    }

    .features-grid,
    .story-grid,
    .production-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo span {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
        padding-bottom: 15px;
    }

    .product-intro,
    .features,
    .origin,
    .project,
    .producers,
    .production,
    .news {
        padding: 60px 0;
    }

    .product-info {
        padding: 60px 0;
    }

    .intro-text p {
        font-size: 1rem;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .story-item {
        padding: 20px;
    }

    .stores-table {
        font-size: 0.85rem;
    }

    .stores-table th,
    .stores-table td {
        padding: 10px;
    }

    .news-header {
        padding: 20px;
    }

    .news-item h3 {
        font-size: 1rem;
        padding-right: 30px;
    }

    .news-detail {
        padding: 0 20px;
    }

    .news-item.active .news-detail {
        padding: 20px;
    }

    .producer-card {
        padding: 25px 20px;
    }

    .producer-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .producer-images {
        flex-direction: row;
        justify-content: center;
    }

    .producer-image-item {
        width: 150px;
        height: 100px;
    }

    .producer-card h3,
    .producer-text h3 {
        font-size: 1.2rem;
    }

    .producer-subtitle {
        font-size: 0.85rem;
    }

    .origin-content p {
        font-size: 0.95rem;
    }

    .contact {
        padding: 50px 0;
    }
}

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

    .dragon-logo-container {
        height: 40vh;
        padding-right: 0;
        justify-content: flex-end;
    }

    .gold-frame-overlay {
        width: clamp(120px, 35vw, 220px);
    }

    .container {
        padding: 0 15px;
    }

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

    .product-intro,
    .features,
    .origin,
    .project,
    .producers,
    .production,
    .news {
        padding: 40px 0;
    }

    .product-info {
        padding: 40px 0;
    }

    .product-image {
        max-width: 160px;
    }

    .product-image.placeholder {
        min-height: 220px;
    }

    .news-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        padding-right: 40px;
        gap: 5px;
    }

    .news-item h3 {
        padding-right: 0;
        font-size: 0.9rem;
    }

    .news-date {
        font-size: 0.85rem;
    }

    .news-list {
        gap: 15px;
    }

    .product-producers .producer-address {
        display: block;
        margin-left: 0;
    }

    .product-spec th {
        width: 90px;
        font-size: 0.85rem;
    }

    .product-spec td {
        font-size: 0.85rem;
    }

    .stores-table-wrapper {
        overflow-x: auto;
    }
}
