/* --- リセットCSS & 基本設定 --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
    color: #333;
    background-color: #fcfcfc;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* --- ヘッダー --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000; /* 最前面に */
    border-bottom: 1px solid #eee;
}

.logo {
    /* 既存の font-size: 24px; は削除または上書きされます */
    display: inline-flex;     /* 中身をFlexboxレイアウトにする */
    flex-direction: column;   /* 縦並びにする */
    align-items: flex-start;  /* 左揃え（左の肩に乗せる） */
    line-height: 1;           /* 行間を詰める */
    text-decoration: none;    /* 下線を消す */
    color: #333;              /* 文字色 */
}

/* 肩に乗る小さい文字 (----) */
.logo-shoulder {
    font-size: 14px;          /* 文字サイズを小さく */
    font-weight: normal;      /* 太字にしない */
    letter-spacing: 0.05em;   /* 文字間隔を調整 */
    margin-bottom: 2px;       /* 下の大きな文字との隙間 */
    opacity: 0.8;             /* 少し色を薄くしてメリハリをつける */
}

/* メインの大きい文字 (xxxx) */
.logo-main {
    font-size: 28px;          /* 元のサイズを維持 */
    font-weight: bold;        /* 太字 */
    letter-spacing: 0.02em;
}
/* --- PC用ナビゲーション --- */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    font-size: 15px;
    position: relative;
}

/* --- スマホ用ハンバーガーメニュー --- */
.hamburger {
    display: none; /* PCでは非表示 */
    position: fixed;
    right: 20px;
    top: 25px; /* ヘッダーの高さに合わせて調整 */
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001; /* メニューより手前に */
}

.hamburger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.4s;
}

/* 3本線の位置 */
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { bottom: 0; }

/* ハンバーガーが開いた時のアニメーション（×になる） */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: #fff; /* 背景が黒になるので白文字に */
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: #fff;
}

/* ロゴもメニュー展開時は白にする（背景が暗くなるため） */
.logo.active,
.logo.active .logo-shoulder,
.logo.active .logo-main {
    color: #fff;
    z-index: 1001;
}


/* --- レスポンシブ対応（スマホ表示） --- */
@media (max-width: 768px) {
    header {
        padding: 0 20px;
    }

    .hamburger {
        display: block; /* ハンバーガー表示 */
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(20, 20, 20, 0.95); /* 参考画像のような暗い背景 */
        color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s, visibility 0.4s;
        z-index: 1000;
    }

    nav.active {
        opacity: 1;
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    nav ul li a {
        font-size: 18px;
        color: #fff;
    }
}


/* --- ヒーローエリア --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://placehold.co/1920x1080/DDDDDD/999999?text=Hero+Image');
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.9);
}

.hero-text {
    writing-mode: vertical-rl;
    font-size: clamp(24px, 5vw, 42px);
    letter-spacing: 0.2em;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    background-color: rgba(255,255,255,0.8);
    color: #000;
    padding: 40px 20px;
    text-shadow: none;
    font-weight: 500;
}

/* --- 共通セクション設定 --- */
section {
    padding: 100px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 28px;
    font-weight: normal;
}

.section-title span {
    display: block;
    font-size: 14px;
    margin-top: 10px;
    color: #888;
    font-family: sans-serif;
    letter-spacing: 0.1em;
}

/* --- News セクション --- */
.news-list {
    list-style: none;
    border-top: 1px solid #ddd;
}

.news-item {
    border-bottom: 1px solid #ddd;
}

.news-link {
    display: flex;
    padding: 20px 0;
    align-items: baseline;
    gap: 30px;
}

.news-date {
    font-family: sans-serif;
    color: #666;
    font-size: 14px;
    min-width: 100px;
}

.news-title {
    font-size: 16px;
}

@media (max-width: 768px) {
    .news-link {
        flex-direction: column;
        gap: 5px;
    }
}

/* --- About セクション --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    box-shadow: 10px 10px 0px #eee;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: normal;
}

.btn-link {
    display: inline-block;
    margin-top: 30px;
    border: 1px solid #333;
    padding: 10px 40px;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-link:hover {
    background-color: #333;
    color: #fff;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item {
    overflow: hidden;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- Footer --- */
footer {
    background-color: #222;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    font-size: 14px;
}

.footer-nav {
    margin-bottom: 30px;
}

.footer-nav a {
    margin: 0 15px;
    display: inline-block;
}

.copyright {
    color: #888;
    font-family: sans-serif;
    font-size: 12px;
}
