@import url('https://fonts.googleapis.com/css2?family=Domine&family=Noto+Sans+JP&display=swap');
@import url('footer_styles.css');

body {
    margin: 0;
    font-family: 'Domine', 'Noto Sans JP', sans-serif;
    background-color: white;
}

.horizontal {
  display: flex;
  align-items: center;
  justify-content: space-between;

  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 96px);
  gap: clamp(8px, 1.5vw, 18px);
}

.horizontal .title {
  flex: 1 1 auto;
  min-width: 520px;
}

.title h1,
.title h2 { margin: 0; }

.title h1 {
  font-size: clamp(56px, 5.2vw, 76px);
  line-height: 1.02;
}

.title h2 {
  margin-top: 10px;
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.05;
}

.horizontal .media {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.topics-image {
  width: clamp(220px, 20vw, 300px);
  height: auto;
  display: block;
}

/* 狭い画面でも横並び維持：画像と文字を縮める */
@media (max-width: 900px) {
  .horizontal {
    /* 横は維持 */
    flex-direction: row;

    /* 余白をさらに詰めて左右余白も維持 */
    padding: 0 16px;
    gap: 10px;
  }

  /* 左が潰れすぎないよう min-width を解除して収縮させる */
  .horizontal .title {
    min-width: 0;
    flex: 1 1 60%;
  }

  /* 文字を小さく */
  .title h1 {
    font-size: clamp(30px, 5vw, 42px);
    line-height: 1.05;
  }

  .title h2 {
    margin-top: 6px;
    font-size: clamp(16px, 2.8vw, 22px);
    line-height: 1.1;
  }

  /* 画像をさらに小さく */
  .topics-image {
    width: clamp(140px, 26vw, 200px);
  }
}

/* さらに狭い（例: 360px付近）でも横維持で詰め切る */
@media (max-width: 420px) {
  .horizontal {
    padding: 0 12px;
    gap: 8px;
  }

  .title h1 { font-size: 28px; }
  .title h2 { font-size: 16px; }

  .topics-image { width: 130px; }
}
.blogs-section {
    position: relative;
    width: 100%;
    padding: 40px 20px;
    box-sizing: border-box;
}

.blog-list {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

/* Blog Card Container */
.blog-card {
    position: relative;
    width: 361px;
    height: 309px;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

/* Background Layers */
.blog-card-bg-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 361px;
    height: 309px;
    background-color: rgba(100, 100, 101, 0.3);
    border-radius: 22px;
    z-index: 1;
}

.blog-card-bg-2 {
    position: absolute;
    top: 216px;
    left: 0;
    width: 361px;
    height: 93px;
    background-color: rgba(100, 100, 101, 0.3);
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
    z-index: 2;
}

/* Content Layer */
.blog-card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

/* Image */
.blog-image-container {
    position: absolute;
    top: 22px;
    left: 18px;
    width: 326px;
    height: 171px;
    background-color: #d9d9d9;
    border-radius: 30px;
    overflow: hidden;
}

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

/* Text Area */
.blog-text-area {
    position: absolute;
    top: 225px;
    left: 28px;
    width: 305px; /* 361 - 28 - 28 */
}

.blog-title {
    font-family: 'Domine', 'Noto Sans JP', sans-serif;
    font-size: 15px;
    color: white;
    margin: 0;
    margin-bottom: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-author-icon {
    width: 20px;
    height: 20px;
    background-color: #d9d9d9;
    border-radius: 50%;
    overflow: hidden;
}

.blog-author-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-author {
    font-size: 14px;
    color: #cdcdcd;
    margin: 0;
}



.sns-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    padding: 12px 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.sns-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.sns-icon {
    width: 24px;
    height: 24px;
    color: white;
}

.sns-label {
    font-family: 'Domine', 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Blogs Page */
.blogs-page {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-family: 'Domine', 'Noto Sans JP', sans-serif;
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
}

.blog-list-all {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.see-all-blogs {
    text-align: left;
    padding-right: 40px;
    margin-top: 20px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.see-all-blogs a {
    font-family: 'Domine', 'Noto Sans JP', sans-serif;
    font-size: 16px;
    color: #d5d5d5;
    text-decoration: none;
    font-weight: bold;
}

.see-all-blogs a:hover {
    text-decoration: underline;
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #0f0f11 50%);
    z-index: -1;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    color: white;
}

/* App Store Component */
.app-store {
    padding: 4rem 0;
    width: 100%;
    margin: 0 auto;
}

.app-store h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.app-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 2rem; /* Add padding for scroll/shadow area */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.app-scroll-container::-webkit-scrollbar {
    display: none;
}

.app-card-glass {
    flex: 0 0 auto;
    width: 320px;
    scroll-snap-align: center;
    background: rgba(0, 0, 0, 0.6); /* Darker background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 24px;
    text-decoration: none; /* For linker */
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-card-glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.app-card-header-glass {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.app-icon-glass {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.app-info-glass {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.app-name-glass {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
}

.app-seller-glass {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
}

.app-desc-glass {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.app-store-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;  
  margin-left: 2rem;
  gap: 0.6rem;              
  margin-bottom: 1rem;      
}

.app-store-header > * {
  margin: 0;
}
.app-store-header h2 {
  padding-left: 0;
}

.app-store-header p {
  padding-left: 1.25rem;
}

.license-item {
  padding: 0.5em 1em;
  margin: 2em 0;
  color: #5d627b;
  background: white;
  border-top: solid 5px #5d627b;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.22);
  cursor: pointer;

  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  text-decoration: none;
}

.links{
  display: flex;
  flex-direction: column;
  text-decoration: none;
  align-items: flex-start;
}
.links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


.links a {
  text-decoration: none;
  color: inherit; /* 必要なら */
}

/* SNS Section */
/* SNS Section */
.sns-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 20px 0;
    margin-left: 2rem;
    box-sizing: border-box;
    width: 100%;
}

.sns-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.sns-section p {
    color: #cbd5e1;
    font-size: 1rem;
    margin-bottom: 20px;
    padding-left: 1.25rem;
}

.sns-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 24px;
    margin-top: 0;
    margin-bottom: 40px;
    padding-left: 1.25rem;
}

/* CodeBlock Component */
.code-block-container {
    background-color: #1e1e1e;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 1000px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-block-header {
    background-color: #2d2d2d;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3d3d3d;
}

.copy-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #d4d4d4;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.copy-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.code-block-lang {
    font-size: 13px;
    color: #9cdcfe;
    font-family: inherit;
    text-transform: uppercase;
    font-weight: 600;
}

.code-block {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #d4d4d4;
    white-space: pre;
}

/* Workshop Layout */
.workshop-title {
    text-align: center;
    font-weight: 800;
    margin: 60px 0 20px 0;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.workshop-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 100px 20px;
    display: flex;
    flex-direction: column;
    gap: 0; /* Remove uniform gap to use margins for grouping */
}

.workshop-explanation {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 30px;
    margin: 0 auto;
    max-width: 1000px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.workshop-explanation h2 {
    font-size: 24px;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 16px;
    font-weight: 700;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.workshop-explanation p {
    font-size: 16px;
    line-height: 1.8;
    color: #cbd5e1;
    margin: 0;
}

.workshop-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 80px auto 24px auto;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

.workshop-content > .workshop-row:first-child {
    margin-top: 20px;
}

.workshop-row > p {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    line-height: 1.8;
    color: #cbd5e1;
    margin: 0;
    padding: 0 20px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.workshop-code-wrapper {
    flex: 1;
    min-width: 0;
}

.workshop-image-wrapper {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.workshop-image {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.device-image {
   width: 250px;
  height: auto;
}
/* Workshop Conclusion Box */
.workshop-conclusion {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.15) 0%, rgba(201, 75, 150, 0.15) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 40px;
    margin: 60px auto 40px auto;
    max-width: 1000px;
    box-shadow: 0 15px 40px rgba(88, 101, 242, 0.3);
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.workshop-conclusion h2 {
    font-size: 28px;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 24px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(255,255,255,0.2);
}

.workshop-conclusion p {
    font-size: 18px;
    line-height: 1.9;
    color: #e2e8f0;
    margin: 0 0 16px 0;
}


/* Reference Section */
.workshop-reference {
    margin: 60px auto 100px auto;
    text-align: center;
    max-width: 1000px;
}

.workshop-reference p {
    font-size: 20px;
    color: #cbd5e1;
    margin-bottom: 30px;
    font-weight: bold;
}

.reference-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.reference-button,
.reference-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.reference-button {
    background-color: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.reference-button:hover {
    background-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.8);
    color: #ffffff;
}

.reference-button-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.reference-button-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}


/* Responsive overrides for workshop */
@media (max-width: 900px) {
    .workshop-row {
        flex-direction: column;
        margin-top: 40px;
        gap: 20px;
        padding: 0 16px;
    }
    .workshop-row > p {
        padding: 0;
        font-size: 15px;
    }
    .workshop-image-wrapper,
    .workshop-code-wrapper {
        width: 100%;
    }
    .device-image {
        width: 200px;
    }
    .workshop-title {
        font-size: 28px;
        margin-top: 30px;
    }
    .workshop-subtitle {
        font-size: 15px;
    }
    .workshop-explanation {
        padding: 20px;
        margin-left: 10px;
        margin-right: 10px;
    }
    .workshop-conclusion {
        padding: 24px;
        margin-left: 10px;
        margin-right: 10px;
    }
    .workshop-conclusion p {
        font-size: 15px;
    }
    .workshop-reference {
        margin: 40px auto 60px auto;
        padding: 0 10px;
    }
    .reference-button,
    .reference-button-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* OGP Card Styles */
.workshop-subtitle {
    text-align: center;
    color: #cbd5e1;
    font-size: 18px;
    margin-bottom: 20px;
}

.ogp-card {
    display: block;
    max-width: 600px;
    margin: 0 auto 40px auto;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    overflow: hidden;
    transition: background 0.2s ease;
}

.ogp-card:hover {
    background: #252526;
}

.ogp-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ogp-card-title {
    color: #4daafc;
    font-size: 18px;
    font-weight: bold;
}

.ogp-card-desc {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
}

.ogp-card-url {
    color: #858585;
    font-size: 12px;
}

/* Responsive adjustments for OGP Card */
@media (max-width: 650px) {
    .ogp-card {
        margin-left: 20px;
        margin-right: 20px;
    }
}
