/*
Theme Name:MOGAMI
Theme URI:
Description:
Author:
Author URI:
Template: haku_tcd080
Version:
Text Domain:
*/

@charset "UTF-8";

/* =========================================
   Variables
   ========================================= */
:root {
  --color-bg: #fcfaf5;
  --color-bg-dark: #e6e6dd;
  --color-text: #1a1a1a;
  --color-text-light: #555555;
  --color-text-sub: #9ca3af;
  --color-accent: #594a3c;
  --color-white: #ffffff;
  --color-border: #e5e7eb;

  --font-serif: "Noto Serif JP", serif;
  --font-sans: "Helvetica Neue", Arial, sans-serif;

  --size-container: 1600px;
  --spacing-base: 1rem;
}

/* =========================================
   Reset & Base
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-serif);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  font-weight: 500;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s, color 0.3s;
}

ul, ol {
  list-style: none;
}

/* =========================================
   Utilities
   ========================================= */
.u-vertical {
  writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl;
  letter-spacing: 0.1em;
}

.u-mt-4 {
  margin-top: 1rem;
  /* Since it's vertical text, margin-top visually pushes it to the left */
  /* However, in vertical-rl mode, logical margin-block-start is physical right.
     But typical Japanese vertical text p tags stack right-to-left.
     So we usually use margin-left (physical) to separate lines if they are blocks,
     or just let standard block flow handle it.

     If these are <p> tags inside a vertical container, they stack right-to-left.
     So margin-left adds space between lines.
  */
  margin-left: 1rem;
  margin-top: 0;
}

/* =========================================
   Header
   ========================================= */
.header {
  width: 100%;
  background-color: rgba(252, 250, 245, 0.95);
  backdrop-filter: blur(4px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.5rem 1rem;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.header__inner {
  max-width: var(--size-container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .header__inner {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 2rem;
  }
}

.header__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 768px) {
  .header__brand {
    align-items: flex-start;
  }
}

.header__since {
  font-size: 0.625rem;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.header__logo-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header__logo {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.header__symbol {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid var(--color-text);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__symbol-line {
  position: absolute;
  width: 100%;
  height: 100%;
  border-top: 2px solid var(--color-text);
  transform: rotate(45deg);
  top: 4px;
}

.header__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .header__info {
    align-items: flex-end;
  }
}

.header__contact {
  font-size: 0.625rem;
  color: var(--color-text-light);
  display: flex;
  gap: 1rem;
  letter-spacing: 0.05em;
}

.nav__list {
  display: flex;
  gap: 1.5rem;
}

.nav__link {
  font-size: 0.875rem;
  color: var(--color-text-light);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav__link:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}

/* =========================================
   Hero
   ========================================= */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    height: 80vh;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}


.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero__frame {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(2px);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
  .hero__frame {
    padding: 3rem;
  }
}

.hero__text-group {
  display: flex;
  flex-direction: row-reverse; /* Japanese vertical text flows right to left */
  gap: 2rem;
  height: 16rem; /* fixed height for vertical text flow */
  color: var(--color-white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
  .hero__text-group {
    height: 24rem;
    gap: 3rem;
  }
}

.hero__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.8;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 2.25rem;
  }
}

.hero__subtitle {
  font-size: 1.25rem;
}

@media (min-width: 768px) {
  .hero__subtitle {
    font-size: 1.875rem;
  }
}

/* =========================================
   Section Common
   ========================================= */
.section {
  padding: 5rem 1rem;
}

@media (min-width: 768px) {
  .section {
    padding: 8rem 2rem;
  }
}
@media (min-width: 1000px) {
  .section {
    padding: 8rem;
  }
}



.section--news {
  background-color: rgba(255, 255, 255, 0.5);
}

.section__inner {
  max-width: var(--size-container);
  margin: 0 auto;
}

.section__inner--cols {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 768px) {
  .section__inner--cols {
    flex-direction: row;
  }

  .section__inner--reverse {
    flex-direction: row-reverse;
  }
}

/* Columns */
.section__col-image {
  width: 100%;
}
.section__col-content {
  width: 100%;
  display: flex;
  justify-content: center;
}
.section__col-header {
  display: flex;
  justify-content: center;
}
.section__col-list {
  width: 100%;
}

@media (min-width: 768px) {
  .section__col-image {
    width: 50%; /* 3/5 */
  }
  .section__col-content {
    width: 50%; /* 2/5 */
    justify-content: center;
  }
  .section__col-header {
    width: 16.666%;
  }
  .section__col-list {
    width: 83.333%;
  }

  .section__col-content--start {
    justify-content: flex-start;
  }
  .section__col-content--end {
    justify-content: flex-end;
  }
}

.section__about {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.section__about-content {
  display: flex;
  justify-content: center;
}

@media (min-width: 1000px) {
  .section--about {
    padding-inline: 0;
  }
  .section__about {
    flex-direction: row;
    gap: 0;
  }
  .section__about-image {
    flex: 0 0 52%;
  }
  .section__about-content {
    flex: 1 1 0;
    max-width: calc( var(--size-container) / 2 );
  }
}


/* Images Styles */
.image-bordered {
  width: 100%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  filter: grayscale(20%) sepia(10%);
}

.image-grayscale {
  width: 100%;
  filter: grayscale(100%) contrast(1.25);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.image-shadow {
  width: 100%;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* =========================================
   Vertical Components (Title & Text)
   ========================================= */
.vertical-layout {
  display: flex;
  flex-direction: row-reverse;
  gap: 2rem;
  height: 320px; /* Mobile height */
}

@media (min-width: 768px) {
  .vertical-layout {
    height: auto;
    gap: 2.5rem;
  }
}

.section-title {
  display: flex;
  flex-direction: row-reverse;
  height: 100%;
}

.section-title--short {
  height: 12rem;
}

.section-title__en {
  font-size: 1rem;
  color: var(--color-text-sub);
  margin-bottom: 1rem;
}

.section-title__jp {
  font-size: 1.8rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .section-title__jp {
    font-size: 2.275rem;
  }
}

.vertical-text {
  font-size: 0.875rem;
  line-height: 2;
  letter-spacing: .2em;
  color: var(--color-text-light);
  writing-mode: vertical-rl;
}

@media (min-width: 768px) {
  .vertical-text {
    font-size: 1rem;
  }
}

/* =========================================
   News Component
   ========================================= */
.news-list {
  border-top: 1px solid var(--color-border);
}

.news-item {
  border-bottom: 1px solid var(--color-border);
}

.news-item__link {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  gap: 0.5rem;
  transition: background-color 0.3s;
}

.news-item__link:hover {
  background-color: rgba(0,0,0,0.02);
}

@media (min-width: 768px) {
  .news-item__link {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }
}

.news-item__date {
  font-size: 0.875rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.news-item__link:hover .news-item__date {
  color: var(--color-text);
}

.news-item__title {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .news-item__title {
    font-size: 1rem;
  }
}

.news-item__link:hover .news-item__title {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--color-text-sub);
}

.section__footer {
  margin-top: 3rem;
  display: flex;
  justify-content: flex-end;
}

.button {
  background-color: var(--color-text);
  color: var(--color-white);
  font-size: 0.75rem;
  padding: 1rem 2.5rem;
  letter-spacing: 0.1em;
  transition: background-color 0.3s;
}

.button:hover {
  background-color: #333;
}

/* =========================================
   Card Grid Component
   ========================================= */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: block;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .card {

    &:nth-child(1) {
      transform: translateY(-6rem);
    }
    &:nth-child(3) {
      transform: translateY(6rem);
    }
  }
}

.card__image-wrapper {
  width: 100%;
  height: 100%;
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  filter: brightness(0.9);
}

.card:hover .card__image {
  transform: scale(1.05);
  filter: brightness(1);
}

.card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 50%);
  opacity: 0.8;
  transition: opacity 0.3s;
}

.card:hover .card__overlay {
  opacity: 0.6;
}

.card__content {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--color-white);
  z-index: 10;
}

.card__subtitle {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.card__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* =========================================
   Footer
   ========================================= */
.footer {
  background-color: var(--color-bg-dark);
  padding: 5rem 1rem 2.5rem;
}

@media (min-width: 768px) {
  .footer {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.footer__inner {
  max-width: var(--size-container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer__address {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.footer__map-link {
  display: inline-block;
  margin-top: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer__map-link:hover {
  color: var(--color-text);
}

.footer__data {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 2rem;
  row-gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

.footer__nav {
  display: flex;
  flex-direction: column;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__nav-link {
  font-size: 0.875rem;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

.footer__nav-link:hover {
  color: var(--color-text);
}

.footer__copyright {
  text-align: center;
  margin-top: 5rem;
  font-size: 0.625rem;
  color: var(--color-text-sub);
  letter-spacing: 0.1em;
}

.section__col-link {
  transition: .2s ease-out;
  &:hover {
    opacity: .7;
  }
}

@media (min-width: 768px) {
    #header_logo {
        height: fit-content;
        flex: 0 0 194px;
    }
}

.kfooter {
  background-image: url(./images/pixta_121709024_1.png) !important;
  background-size: cover !important;
  background-position: center bottom !important;
}